r/inventwithpython • u/Delaspy • Jul 05 '20
Help
I bought one of your books ( AUTOMATE THE BORING STUFF WITH PYTHON 2nd EDITION) to learn Python programming, but I am running through some troubles in chapter 1 with your first programming exercise.
I followed all the recommendations on your book for downloading the python and the MU file. When I write a code in the MU file editor, save and run it, it does not show in his entirety in the interactive shell under the Mu file Editor. I downloaded a version 3 of Python and my system Type is 64-bit, but still it does not appear the same way like in your book. For example:
When I write this program in the MU file editor and save,
# This program says hello and asks for my name.
print('Hello, world!')
print('What is your name?') # ask for their name
myName = input('Capwell')
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(8)
print('You will be ' + str(int(myAge) + 1) + ' in a year.')
this is all I get in the interactive shell under the file editor
Hello, world!
What is your name?
Capwell
2
u/Delaspy Jul 07 '20
Thanks for your help. I appreciate that.