انت فعلا مبدع وتستحق الدعم "مبدع ، متميز ، بسيط ، معلومة صحيحة" من أفضل من شرح البايثون شكرا لك
@SoftwareTube21 күн бұрын
حبيبي ❤️
@freePalestine-s9d21 күн бұрын
import random import osClear userInput=input("please type (H) for Heads ,(T) for tails or press any key to exit ").upper() while userInput in ("H","T"): computerChoice=random.choice(["H","T"]) if userInput==computerChoice: print(f""" the computer choose ( {computerChoice} )and you choose ( {userInput} ) You Win """) else: print(f""" the computer choose {computerChoice} and you choose {userInput} You Lose """) osClear.sleeeping(2) osClear.clearance() userInput=input("please type (H) for Heads ,(T) for tails or press any key to exit ").upper() print("exiting ................")