Advertisement
MrsMcLead

Untitled

May 2nd, 2014
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import random
  2.  
  3. print("Hi! What's your name?????")
  4. myName=input()
  5.  
  6. print("Hello " + myName)
  7.  
  8. number = random.randint(1,10)
  9. print("Well, " + myName + ", I am thinking of a number between 1 and 10.")
  10. print("What it is?")
  11. guess = int(input())
  12.  
  13.  
  14. if guess==number:
  15.     print("yea!!!!!")
  16.  
  17.  
  18. else:
  19.     print("You are wrong")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement