Hey guys, newbie question here on the "Hello, world!" tutorial in Automate The Boring Stuff
What is it for? hello "(print world)" : r/learnpython - Reddit
Learning Python with no experience. Print(“Hello “ “World!”)
What is it for? hello "(print world)"
Videos
So I'm trying to get the output:
Hello, world!
What is your name?
Jacob
It is good to meet you, Jacob.
The length of your name is:
5
What is your age?
24
You will be 25 in a year.
------------------------------------------
Unfortunately all I'm getting printed out is:
Hello, world!
What is your name
-----------------------------------------
I don't know where to put my name and age and I also don't know if there's an error in my code. I followed the tutorial code word for word. Someone please explain to me like I'm 5 where I'm going wrong so I can understand what I'm doing wrong here. I'm using Visual Studio Code if that makes any difference. I feel really dumb right now.
Here's the code:
# This program says hello and asks for my name and age.
print('Hello, world!') print('What is your name?') # ask for their name myName = input() print('It is good to meet you,' + myName) print('The length of your name is:') print(len(myName)) print('What is your age?') # ask for their age myAge = input() print('You will be' + str(int(myAge) + 1) + 'in a year.')