This topic is READ ONLY
AllSmiles (2) [Avatar] Offline
#1
I keep getting a syntax error when I try to run this program. I have underlined where the program is telling me I have a problem.

length = float (raw_input ('What is the length of the room in feet?'))
width = float (raw_input ('What is the width of the room in feet?'))
CarpetNeeded = float (length * width)
Print 'Amount of Carpet Needed: ', CarpetNeeded, 'square feet'

I have had problems with the end quotes on other programs as well. What am I doing wrong? Thanks!
AllSmiles (2) [Avatar] Offline
#2
Re: Chapter 5 - Try it Out
I figured out my own mistake. I needed a lower case p in print. Thanks!
carter.sande (32) [Avatar] Offline
#3
Re: Chapter 5 - Try it Out
I'm glad you're enjoying our book! Good job on figuring out the bug in your program.

Carter