+ 1

Python /breaking lines

How do I move to the next lot with my code, without executing the code. I’m sure this is a beginner question but I’ve only been learning heavily for about a month now. I hope I explained myself well enough if not please let me know.

22nd Nov 2020, 9:40 PM
Andrew Bristow
10 Respostas
+ 1
Hey Andrew, I am somewhat new to this as well but will try my best to help! Can you please clarify what you mean by moving “to the next lot”? Are you trying to start a new paragraph in a string?
22nd Nov 2020, 9:49 PM
Cameron
Cameron - avatar
+ 1
what im having trouble with is i know to break the line in a string you use /n but trying to move the cursur that puts your code out on the interpreter down to the next numbered line i don’t know how.
22nd Nov 2020, 9:54 PM
Andrew Bristow
+ 1
ok now that helps a lot . i totally forgot about the ‘#’ to comment it out . for some reason it skipped my mind. thank you very much. you helped me a lot
22nd Nov 2020, 10:13 PM
Andrew Bristow
+ 1
ok i just tryed to transfer my code to my other computer so i can show you and its giving me troubles sending it. But after i used my books and looked deeper i found that there might be an easier way to start a newline without having it interpret the code. use ctrl-j keys to move down for a new line with indetation.
22nd Nov 2020, 10:27 PM
Andrew Bristow
+ 1
i appreciate everything i hope you have a happy thanksgiving cameron
22nd Nov 2020, 10:28 PM
Andrew Bristow
0
Are you trying to have it skip a line, trying to change the order in which your lines are evaluated, or trying to force it to continue to the next lime in spite of an error? If none if those, let me know.
22nd Nov 2020, 9:58 PM
Cameron
Cameron - avatar
0
ya im in an esence trying to force it down without putting the code into operation
22nd Nov 2020, 10:00 PM
Andrew Bristow
0
If you want it to be conditional we would have to do some further research into things like a break statement (I think). Otherwise a simpler approach would be to comment out the line of code with a ‘#’ until you decide you’d like to use it again.
22nd Nov 2020, 10:06 PM
Cameron
Cameron - avatar
0
Glad I could help!
22nd Nov 2020, 10:24 PM
Cameron
Cameron - avatar
0
That’s great, hopefully that works out! Likewise Andrew, Happy Holidays!đŸŠƒâœŒïž
22nd Nov 2020, 10:35 PM
Cameron
Cameron - avatar