Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = int(input ("gimme a positive integer"))
- num2 = 0
- while ( num2 != num + 1 ) :
- print ( num2 )
- num2 = num2 + 1
- print ("done")
- ____________________________________________
- username = input ("gimme a username: ")
- user1 = "cool"
- user2 = "beans"
- user3 = "dood"
- pass1 = "funkybeans"
- if ( username == user1 or username == user2 or username == user3 ) :
- password = input ("gimme a password: ")
- while ( password != pass1 ) :
- print ("incorrect try again")
- password = input ("gimme a password: ")
- print(" ur in")
- else :
- print ("invalid")
- ___________________________________________________
- from random import randint
- num = randint(1,100)
- guess = int(input("guess a number between 1 and 100: "))
- while ( num != guess ) :
- guess = int(input("guess a number between 1 and 100: "))
- if ( guess > num ) :
- print ("too high try again")
- if ( guess < num ) :
- print ("too low try again")
- print ("u got it")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement