Différences entre les versions de « Utilisateur:Ârose »

De {}
Aller à la navigation Aller à la recherche
(What time is it ?)
 
Ligne 2 : Ligne 2 :
  
 
import time  
 
import time  
 
+
 
print("What time is it?")
 
print("What time is it?")
 
+
 
h = input("hh =  ")
 
h = input("hh =  ")
 
m = input ("mm = ")
 
m = input ("mm = ")
print(h + ":" + m)
+
print(f"{h}:{m}")
 
+
 
h = int(h)
 
h = int(h)
 
m = int(m)
 
m = int(m)
 
+
 
if h <= 3 :
 
if h <= 3 :
 
     print("Mmm")
 
     print("Mmm")
 
+
 
elif (h == 7) +  (m == 48) :
 
elif (h == 7) +  (m == 48) :
 
     print("Where, where are my, where are my")
 
     print("Where, where are my, where are my")
Ligne 25 : Ligne 25 :
 
     else :
 
     else :
 
         print ("Damn, where?")
 
         print ("Damn, where?")
 
+
 
elif h <= 12 :  
 
elif h <= 12 :  
 
     print("(Mmm) I know you want it")
 
     print("(Mmm) I know you want it")
Ligne 39 : Ligne 39 :
 
     print("T-t-take this", localtime)
 
     print("T-t-take this", localtime)
 
     time.sleep(4)
 
     time.sleep(4)
 
+
 
elif h >= 14 :
 
elif h >= 14 :
 
     print ("Zzzz Zzzz")
 
     print ("Zzzz Zzzz")
 
+
 
elif h > 16 :
 
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("Ooh " + name + "! that shit is good")
+
     print(f"Ooh {name} shit is good")
 
+
 
else :
 
else :
 
     print("I'm drunk and it is my birthday anyway")
 
     print("I'm drunk and it is my birthday anyway")
 
     input("Really ")
 
     input("Really ")
 
     print("Baby")
 
     print("Baby")

Version du 18 octobre 2021 à 09:17

<syntaxhighlight lang="python">

import time

print("What time is it?")

h = input("hh = ") m = input ("mm = ") 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 >= 14 :

   print ("Zzzz Zzzz")

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")

else :

   print("I'm drunk and it is my birthday anyway")
   input("Really ")
   print("Baby")