- Joined
- Dec 4, 2009
- Messages
- 1,378
- Trophies
- 0
- Age
- 29
- Location
- Place
- Website
- Visit site
- XP
- 496
- Country
Writing a little program since I'm bored...
I need it to at the end print whatever the user decided their username should be. Instead I get this error
Suggestions?
Edit: Also if they enter a number higher than 5 with the bot test. The program goes on anyway. How do I make it, make them reenter the bot test?
Code:
import time
bot = int(input("Anti-Bot Test: Enter a number under 5? "))
if bot < 5:
print ("Passed")
else:
print ("Failed")
username = (input("Enter Username: "))
password = (input("Enter Password: "))
dob = (input("Date of Birth: "))
print ("Review the following information")
time.sleep(3)
print ("You would like your username to be: "(username))
I need it to at the end print whatever the user decided their username should be. Instead I get this error
Code:
Traceback (most recent call last):
File "C:/Users/Jake/Desktop/Test", line 12, in
print ("You would like your username to be: "(username))
TypeError: 'str' object is not callable
Edit: Also if they enter a number higher than 5 with the bot test. The program goes on anyway. How do I make it, make them reenter the bot test?