R

@randomchessplayer159

cours 2

Python
2 months ago
texte = "bonjour tout le monde" print(texte.upper()) # BONJOUR TOUT LE MONDE print(texte.lower()) # bonjour tout le monde print(texte.capitalize()) # Bonjour tout le monde print(texte.replace("bonjour", "salut")) mots = ["Python", "c'", "

bibliothèque

Python
2 months ago
# 1️ Liste de livres, chaque livre est un dictionnaire bibliotheque = [ {"titre": "Le Petit Prince", "auteur": "Antoine de Saint-Exupéry", "disponible": True}, {"titre": "Harry Potter", "auteur": "J.K. Rowling", "disponible": True}, {"ti

Robin est le goat

Python
2 months ago
# 1️ Dictionnaire pour stocker les élèves et leurs notes eleves = { "Alice": [15, 18, 14], "Leo": [12, 10, 16], "Robin qui est le goat": [19.5, 20, 20], "Tom": [7, 11, 11] } # 2️ Fonction pour calculer la moyenne def calculer_moyen

cours

Python
2 months ago
for i in range(0, 231, 23): print(i) notes = [12, 15, 18, 10] for i in range(len(notes)): # len(notes) = 4, donc i va de 0 à 3 notes[i] = notes[i] + 2 print(notes)

jeu de la vie

Python
2 months ago
# -*- coding: utf-8 -*- """ Created on Thu Jan 15 21:20:26 2026 @author: bazoulefoufou """ # -*- coding: utf-8 -*- from random import uniform

1er que je fais seul

Python
3 months ago
u=3 while u<100000000: print(u) u*=23 y=1 while y<200: print(y) if y==30: break

java

Java
3 months ago
import java.util.*; import java.lang.*; import java.io.*; // The main method must be in a class named "Main". class Main { public static void main(String[] args) { System.out.println("Hello world!"); } }

1er programme

Python
3 months ago
f=5 r=12 my_var=f+r x=4 print(my_var) d= 'fantastic' print(d)

J'aime les échecs

Python
3 months ago
a= """huhuhu hello la team je suis bien ici caca sur vous""" print(a) b= "Hello you" print(b[1]) for x in 'banana': print(x)

Coucou les gens

Python
3 months ago
class Person: def __init__(self, name, age): self.name = name self.__age = age def get_age(self): return self.__age def set_age(self, age): if age > 0:

Coucou les gens

Python
3 months ago
thisdict = { "brand": "Ford", "model": "Mustang", "year": 2026 } print(thisdict["year"]) i = 1 while i < 6: print(i)