I'm doing a project for school and I'm having some issues trying to get this white space out of it. Keep in mind I'm very much a beginner at all of this. It goes as follows:
print('What is your name?')
user_name = input()
print('How old are you?')
user_age = int(input())
birth_year = (2023 - user_age)
print('Hello',user_name,"!",'You were born in',birth_year,".")
Everything but the last line works perfectly, because once it runs everything and goes to print this, I get something that looks like this:
Hello e ! You were born in 2011 .
Is there any way I could fix the code to get rid of this whitespace? It's driving me crazy. Thanks in advance.
I did try to change things around by getting rid of commas and adding +
signs and tampering with it anyway I could and I only got syntax errors.