Guest User

Untitled

a guest
Dec 15th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #function to define user input number
  2. def num_selection():
  3. x = input("Pick a number between 1 and 10: ")
  4. return x
  5.  
  6. #Run number selection
  7. num_selection()
  8.  
  9. print(x)
  10.  
  11. print(num_selection())
  12.  
  13. num_selection()
  14.  
  15. x = num_selection()
  16.  
  17. print(x)
  18.  
  19. print(num_selection())
Add Comment
Please, Sign In to add comment