hi i need help with this thank you if you could help me thAT WOULD BE AWSON
On line 5 don't put a space in between input and (
Also, instead of using commas it's better you use + with spaces in between values.
Here is the repl: https://repl.it/@TristanMisja/Help
this should neating it up a bit
firstname = input("What is you name")
print ("hello",firstname)
surname = input ("What is your surname")
print ("your surname is",surname)
print ("hello",firstname,surname)
You can take in the data immediately to a variable by changing the structure slightly.
fname = input('Enter name: ')
sname = input('Enter surname: ')
age = int(input('Enter age: ')) # will throw an error if not integer
print('Hello, {}. Your surname is {} and your age is {}.'.format(fname, sname, age))
What do you need help with?
change line 5 fromsurname = input ()
to surname = input()
print ("What is you name")
firstname = input()
print ("hello,",firstname)
print ("What is your surname")
surname = input ()
print ("your surname is,",surname)
print ("hello,",firstname,surname)
print("What is your age?")
age = int(input())
print("your age is", age)
Try:
age = input("What is your age?")
Have you tried:
print ("What is your age?")
age = input ()
print ('Your age is,',age, "!")```
I NEED HELP ADDING WHAT IS YOUR AGE
@Alicat What have you tried so far? Can you start by giving it a shot on your own? You learn a lot better that way, and then we can see what's going wrong and help you out.
@Alicat use an int or you can try printing your age as a string
Try using \n to put line spacing in between lines. You could also put spaces after the questions (Both inside the quotation marks) to make it so that the names aren't connected to the questions.