anonymous
  • anonymous
how can I pass to the next line in python?
MIT 6.00 Intro Computer Science (OCW)
jamiebookeater
  • jamiebookeater
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
I write print("please, type sth") but I want to continue to a new line with answer=raw_input() when I press enter It just evaluates the expression, But I want to skip to a new line
anonymous
  • anonymous
i'm not sure what your asking exactly, but perhaps you need to append \n to your sentence answer=raw_input("please, type sth\n") keeping the \n inside the quotes
anonymous
  • anonymous
but I mean:http://en.wikibooks.org/wiki/Python_Programming/Variables_and_Strings the codes are made of 2-3 lines, How can I write like them

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
It sounds like you're running in the interpreter instead of creating a script file. You can use a text editor to create a .py file, then run it in Python. On another note, Nessman's suggestion will help clean up your code. There's no need to print a raw_input prompt on a separate line, just use something like: first_name = raw_input('Please enter your first name: ')
anonymous
  • anonymous
Adding on to GabeF's answer to get to a new text file from the interpreter go file New Window or ctrl+N. That is where you type your code and edit your code then to run it either hit F5 or go run at the top and click Run Module.

Looking for something else?

Not the answer you are looking for? Search for more explanations.