Hey guys, newbie question here on the "Hello, world!" tutorial in Automate The Boring Stuff
how say in Phytom "hello world"
Most ridiculous ‘Hello World’ in Python
needs more threads and networking. seems it could be more efficient(complex).
More on reddit.comWhy is print ("Hello World") famous?
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.')
i learning phytom for my futures jobs in is my nex new hobbi for my carrera in my university. so how scrip "hello world" im in the pages "exercism". yes, i know, my english is bad.