Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. num = int(input ("gimme a positive integer"))
  2. num2 = 0
  3. while ( num2 != num + 1 ) :
  4. print ( num2 )
  5. num2 = num2 + 1
  6. print ("done")
  7. ____________________________________________
  8.  
  9. username = input ("gimme a username: ")
  10. user1 = "cool"
  11. user2 = "beans"
  12. user3 = "dood"
  13. pass1 = "funkybeans"
  14. if ( username == user1 or username == user2 or username == user3 ) :
  15. password = input ("gimme a password: ")
  16. while ( password != pass1 ) :
  17. print ("incorrect try again")
  18. password = input ("gimme a password: ")
  19. print(" ur in")
  20. else :
  21. print ("invalid")
  22. ___________________________________________________
  23.  
  24. from random import randint
  25. num = randint(1,100)
  26. guess = int(input("guess a number between 1 and 100: "))
  27. while ( num != guess ) :
  28. guess = int(input("guess a number between 1 and 100: "))
  29. if ( guess > num ) :
  30. print ("too high try again")
  31. if ( guess < num ) :
  32. print ("too low try again")
  33. print ("u got it")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement