Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
guessgame
import random choice=random.randint(0,1000) print("enter any no") num=int(input()) for i in range(3): def check(choice,num): if num==choice: return "correct you won" elif num<=choice: return num,"is smaller guess,correct ans is",choice else: return num,"is larger guess,correct ans is",choice print(check(choice,num))
run
|
edit
|
history
|
help
0
teste
me
H.W5
Linked Lists in python
PyTypeSub
324
Assignment-3b
PYTHON 3 ÖDEV :)
intresting pattern
multiple inheritance