lundi 22 novembre 2021

how can I make an "if" condition effect while in the else condition in python

import time

#it's something like this.

Option = input("Yes or No : ")

if Option == "Yes" : print("Yes")

else :

    print("Do you want to wait for a while ?")
    how_long = input("How long " )
    time.sleep(how_long)
    print("okay , let's continue")
    Option == "Yes"  

print("This is what I want to do ")

Aucun commentaire:

Enregistrer un commentaire