- 1

Program for python

7th Jan 2018, 2:35 AM
Karan
2 Answers
+ 13
Input function is given as input(), raw_input() functions. Output function is given as output() function.
7th Jan 2018, 2:40 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
0
What do you mean If you want a program to write Guessing game Import random Answer=random.randint(1,1000) print("what number am I thinking of out of 1000") While True: guess=int(input(‘’)) If guess>answer: print("too high”) elif guess<answer: print("too low”) elif guess==answer: print("You Win”)
7th Jan 2018, 2:38 AM
Someone Else
Someone Else - avatar