Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- randompassword = rd.randint(1, 5)
- print(randompassword)
- cursor.execute("SELECT password FROM testtable")
- rows = cursor.fetchone()
- row2 = cursor.fetchone()
- row3 = cursor.fetchone()
- row4 = cursor.fetchone()
- row5 = cursor.fetchone()
- if randompassword == 1:
- user_password = row
- elif randompassword == 2:
- user_password = row2
- elif randompassword == 3:
- user_password = row3
- elif randompassword == 4:
- user_password = row4
- else:
- user_password = row5
- print(user_password)
Add Comment
Please, Sign In to add comment