Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
raja praja
IP Network and Broadcast calculator
codigo1
Python3 complete func.
😚😚😚
nth root
Q5
Nearest Prime Number
Country Flags
(P3) Rok przestępny
stackse - search stackoverflow differently
Please log in to post a comment.