Différences entre les versions de « Utilisateur:Ârose »
Aller à la navigation
Aller à la recherche
m (Lionel a déplacé la page Utilisateur:U00c2 vers Utilisateur:Ârose : Page déplacée automatiquement lorsque l’utilisateur « U00c2 » est devenu « Ârose ») |
|||
| Ligne 5 : | Ligne 5 : | ||
print("What time is it?") | print("What time is it?") | ||
| − | h = input(" | + | h = input("h : ") |
| − | m = input (" | + | m = input ("min : ") |
print(f"{h}:{m}") | print(f"{h}:{m}") | ||
| Ligne 33 : | Ligne 33 : | ||
print(time.time(), "seconds since it is all yours") | print(time.time(), "seconds since it is all yours") | ||
time.sleep(4) | time.sleep(4) | ||
| − | input("To let it out. It's time | + | input("To let it out. It's time ") |
time.sleep(3) | time.sleep(3) | ||
print(time.time()) | print(time.time()) | ||
| Ligne 39 : | Ligne 39 : | ||
print("T-t-take this", localtime) | print("T-t-take this", localtime) | ||
time.sleep(4) | time.sleep(4) | ||
| − | + | ||
| − | elif h | + | elif h <= 16 : |
| − | |||
| − | |||
| − | |||
print("Mmm, but you don't even know my name") | print("Mmm, but you don't even know my name") | ||
name = input ("My name is ") | name = input ("My name is ") | ||
print(f"Ooh {name} shit is good") | print(f"Ooh {name} shit is good") | ||
| + | for indice in range(0, len(name)): | ||
| + | print(f"{name[indice]} like...") | ||
| + | time.sleep(0.5) | ||
| + | input("... like what ? : ") | ||
| + | time.sleep(0.5) | ||
| + | print(f"What if you, what if you, what if you're the one {name} ?") | ||
| + | |||
| + | elif h >= 21 : | ||
| + | print("Zzz...") | ||
| + | time.sleep(2) | ||
| + | def Zzz(n): | ||
| + | if(n <= 1): | ||
| + | return n | ||
| + | else: | ||
| + | return (Zzz(n-1) + Zzz(n-2)) | ||
| + | n = int(input("Zzz... How much ? : ")) | ||
| + | print("Sleep Spiral") | ||
| + | for i in range(n): | ||
| + | print(Zzz(i)) | ||
| + | time.sleep(0.1) | ||
else : | else : | ||
Version du 24 octobre 2021 à 17:10
<syntaxhighlight lang="python">
import time
print("What time is it?")
h = input("h : ") m = input ("min : ") print(f"{h}:{m}")
h = int(h) m = int(m)
if h <= 3 :
print("Mmm")
elif (h == 7) + (m == 48) :
print("Where, where are my, where are my")
time.sleep(1)
what = input("What...")
if what == "?" :
print("Where, where are my panties?")
elif what == "??":
print ("Oh my God, where are my panties?")
else :
print ("Damn, where?")
elif h <= 12 :
print("(Mmm) I know you want it")
time.sleep(1.5)
input("... ")
print("Time")
print(time.time(), "seconds since it is all yours")
time.sleep(4)
input("To let it out. It's time ")
time.sleep(3)
print(time.time())
localtime = time.gmtime()
print("T-t-take this", localtime)
time.sleep(4)
elif h <= 16 :
print("Mmm, but you don't even know my name")
name = input ("My name is ")
print(f"Ooh {name} shit is good")
for indice in range(0, len(name)):
print(f"{name[indice]} like...")
time.sleep(0.5)
input("... like what ? : ")
time.sleep(0.5)
print(f"What if you, what if you, what if you're the one {name} ?")
elif h >= 21 :
print("Zzz...")
time.sleep(2)
def Zzz(n):
if(n <= 1):
return n
else:
return (Zzz(n-1) + Zzz(n-2))
n = int(input("Zzz... How much ? : "))
print("Sleep Spiral")
for i in range(n):
print(Zzz(i))
time.sleep(0.1)
else :
print("I'm drunk and it is my birthday anyway")
input("Really ")
print("Baby")