Jul-26-2017, 07:16 PM
I'll also add, since your practicing, it is a good idea to avoid bad habits before they become habits, so familiarize yourself with this document: Python Style Guide
Make sure your closing parenthesis matches your opening parenthesis (see your line 10).
Use lower case for variable names, ie: name instead of Name, age instead of Age and so on.
Use 4 spaces (not tabs) for indentation.
Remember that input() will return a string, if you are looking for a number use something like int(input()), so this line:
Make sure your closing parenthesis matches your opening parenthesis (see your line 10).
Use lower case for variable names, ie: name instead of Name, age instead of Age and so on.
Use 4 spaces (not tabs) for indentation.
Remember that input() will return a string, if you are looking for a number use something like int(input()), so this line:
Age = input ("Now " + Name + " What is your age? Now I must ask you enter this in numbers otherwise I will get confused")would look like this:
age = int(input("Now " + Name + " What is your age? Now I must ask you enter this in numbers otherwise I will get confused"))and would be much neater if you use formatting:
age = int(input("Now, {} what is your age? Now I must ask you enter this in numbers otherwise I will get confused".format(name)))The same would be true for your print functions:
print("Ahh, hello {}".format(name))
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition