Guess an Radiant Number
Question Describtion
Python generate a number between 1 and 20, and the user has six times to guess it.
Line of Thought
Iuput:
Python generate random number:
radint(a,b)
(remember to import radiant)User enter a number 1-20:
input()
(pay attention to the type of the input)
Output:
if right--Congratuations!
if wrong--It's close, the right number is between x(input)-1/20,don't worry you still have ? times--
raw_input()
if right--...
if wrong--...--Oops, no more chance, try one more time!
Progress:
...
Code
Last updated