how can I pass to the next line in python?
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
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
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
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: ')
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.
Join our real-time social learning platform and learn together with your friends!