Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
guesssss
import random choice=random.randint(0,20) print("enter any no") 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 for i in range(0,3): num=int(input()) print(check(choice,num))
run
|
edit
|
history
|
help
0
dictionary function
Helloworld
python, Polymorphie, attributes, setter and getter the pythonic way (V3)
Algorytm szybkiego potęgowania
Emails_Python
Assignment-3c
String Toggling
E
количество 1 и 0 в последовательности чисел до n
16jan