What is wrong with my python script?

Donald J Trump

Active member
Elite
Joined
Dec 7, 2012
Messages
5,982
Kin
912💸
Kumi
9💴
Trait Points
0⚔️
name= print("hello sir what is your name?: ")
wait = input("Press enter to continue")

username= print("that is very nice, now tell me what your user online id is: ")

wait = input("press enter after you are finished.")

print("okay your username is " + username + " and your real name is " + name)

Look this is my script, the first few parts work but than the last part does not it comes up with "TypeError: Can't convert 'NoneType' object to str implicitly" First part with the name and username works but at the end it does not!




TypeError: Can't convert 'NoneType' object to str implicitly
 

Wabbit

Banned
Legendary
Joined
Nov 15, 2011
Messages
11,335
Kin
0💸
Kumi
0💴
Trait Points
0⚔️
name= raw_input("hello sir what is your name?: ")
raw_input("Press enter to continue")

username= raw_input("that is very nice, now tell me what your user online id is: ")

raw_input("press enter after you are finished.")

print("okay your username is " + username + " and your real name is " + name)
you gotta use raw_input to store strings in variables..input() doesnt take strings...
 
Top