hi! I'm a beginner and I found here to help or solving my problems. could you please tell me what's wrong with WHILE code?
import random hads= random.randint(1,99) print (hads) ans=str(input('if Javab is higher please enter k and it is lower please enter b and if it's equal enter d')) print (ans) while ans != 'd': if ans==k: hads=random.randint(1,hads) else: hads=random.randint(hads,99) print (hads) print= ("yes it's true")
nilamo write Mar-19-2021, 09:53 PM:
Python tags are important to preserve indentation. I've added them for you, but please include them going forward.
Python tags are important to preserve indentation. I've added them for you, but please include them going forward.