Mar-23-2017, 03:32 PM
(This post was last modified: Mar-23-2017, 03:33 PM by sparkz_alot.)
(Mar-23-2017, 02:54 PM)Ayiden Wrote: print ("There are " feetInches "inches in " feet "feet")
Please do not post images of your code. As to this particular error, you are getting it because it is not formatted correctly. A better way would be:
print ("There are {} inches in {} feet".format(feetInches, feet)) # Notice the use of the curly braces
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