GollyImGully
Too many wavy women, gotta log outta IG
why isnt this thread stickied?
Working on them "while" loops now.
The only thing really tripping me up now is indentation. That and misspelling inputs.
what editor are you using?
Notepad++
Seems like the indentation interpretation gets messed up after loading the text into the Python shell. Or (more than likely) I'm just messing it up somewhere.
The book that I'm using spent maybe two sentences on indentation...feels like it should have been closer to a chapter dedicated to the subject.
you should check this out, Sublime Text - Download
Does input() work with sublime?you should check this out, Sublime Text - Download
Does input() work with sublime?
Ive been teaching myself python and when i run code with input() it doesnt seem to run the next line of code. For example in the code below after I type something it wont run the print line. Do i need to enable something in sublime?
myName = input("what is your name?: ")
print("oh so your name is " + myName)
Does input() work with sublime?
Ive been teaching myself python and when i run code with input() it doesnt seem to run the next line of code. For example in the code below after I type something it wont run the print line. Do i need to enable something in sublime?
myName = input("what is your name?: ")
print("oh so your name is " + myName)
no im running it straight from sublimeHow are you running the program? In the command line and typing python filename.py?
no im running it straight from sublime
print "Greetings! - Welcome to the Receipt Program!"
print""
print""
table = []
while True:
seat = raw_input("Enter the value for the seat [Or type 'q' to quit]: ")
if seat == "q":
break
seat = int(seat)
table.append(seat)
print""
print "*" * 5
print "Table Total: ${}".format(sum(table))