Différences entre les versions de « Salomé Veilleux »

De {}
Aller à la navigation Aller à la recherche
Ligne 125 : Ligne 125 :
 
time.sleep(1)
 
time.sleep(1)
 
   
 
   
print("fais en bon usage")
+
print("voilà, il est codé, fais en bon usage")
  
 
</source>
 
</source>

Version du 19 octobre 2020 à 16:18

Le code

100101001001111100001110100101000001110010110010111101101100101010000011100011110101110010101000001001010010011111000011110110110000111010011110011010000011101011101110010 00011000111101000110100111001011101110

programme

script de code qui compte combien de jours il reste avant le weekend

# -*- coding: utf-8 -*-
import time

print("le combientieme jour de la semaine est-ton (lundi=1, mardi=2, ...)") 

jour = raw_input()
jour = int(jour)

for compteur in range(1, jour + 1):
    print("jour" + str(compteur))
    time.sleep(1)

print("cool")

if jour == 1:
    print("il reste 4 jours avant le weekend")
    print(":•(")
if jour == 2:
    print("il reste 3 jours avant le weekend")
    print(":•|")
if jour == 3:
    print("il reste 2 jours avant le weekend")
    print(":•)")
if jour == 4:
    print("il reste 1 jour avant le weekend")
    print(":•)")
if jour == 5:
    print("le weekend c'est ce soir!!!!!!!")
    print(":•)")
if jour == 6:
    print("t en weekend gros veinard")
    print(":•)")
if jour == 7:
    print("t en weekend gros veinard")
    print("mais ya école demain rip")
    print(":•(")

programme

script de code verificateur d'orthographe

# -*- coding: utf-8 -*-
import time

loop = True
 
while loop:
    print("comment tu écris amidale????")
    
    rep=raw_input()
    
    repLenght=len(rep) 
    
    print(rep[1])
    
    for compteur in range(0, repLenght):
        print("tu l'écrirais " + rep[compteur])
        time.sleep(1)
    
    if rep==("amygdale"):
        print("bingo!!!!!")
        loop = False
    
    else:
        print("raté!!!! essaies encore")

programme

script de code de générateur de code secret

# -*- coding: utf-8 -*-
import time

print("écris ton message secret")

mess = raw_input()

mess = mess.replace("a","b")
mess = mess.replace("b","c")
mess = mess.replace("c","d")
mess = mess.replace("d","e")
mess = mess.replace("e","f")
mess = mess.replace("f","g")
mess = mess.replace("g","h")
mess = mess.replace("h","i")
mess = mess.replace("i","j")
mess = mess.replace("j","k")
mess = mess.replace("k","l")
mess = mess.replace("l","m")
mess = mess.replace("m","n")
mess = mess.replace("n","o")
mess = mess.replace("o","p")
mess = mess.replace("p","q")
mess = mess.replace("q","r")
mess = mess.replace("r","s")
mess = mess.replace("s","t")
mess = mess.replace("t","u")
mess = mess.replace("u","v")
mess = mess.replace("v","w")
mess = mess.replace("w","x")
mess = mess.replace("x","y")
mess = mess.replace("y","z")
mess = mess.replace("z","a")


print(mess)

time.sleep(1)
 
print("voilà, il est codé, fais en bon usage")