Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

can someone remind me how to go down a line without running the code in python?

i remember them saying it just dont remember in which video. im a total newbie to code

sorry i meant starting a new line

Chris Freeman
Chris Freeman
Treehouse Moderator 68,426 Points

Can you provide more context? Are you in the REPL?

If you are in the REPL with a >>> prompt, then each line of code is immediately executed unless it is part of a complex statement. In a complex statement the prompt changes to ... to indicate it is a continuation. Once the end of the complex statement is detected, it is immediately executed.

2 Answers

You could use parentheses.

num_one = 1

is the same as

num_one = (
1)

or

num_one = (
1
)

Another way would be to escape the line return using \.

num_one = \
1

i got it it was just control enter thank you guys for the help though