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
P
chickens,cows,pigs
Email_Python
Code hello world
Breadth-First Path Finding
DuckTyping.py
Lab_III_2_01_12_2020
Knn (weights=distance)
Single and double qoute
library