+ 1
Coding on Laptop
so I downloaded Python 3.6.5 and when I press enter, it doesn't create a new line. it just completes the task of whatever. how do I skip or start new lines? š¤
13 Answers
+ 3
That's the point of IDLE. It reads, evaluates, prints, and loops. If you don't want to do things one line at a time I'd reccomend writing a python script file instead.
+ 2
Jay Matthews
see I didn't know that now i learned something new š
+ 2
LONGTIE I'd recommend just getting an actual IDE.
+ 1
When using idle it automatically runs the code
+ 1
It sounds like you're trying to code in interactive mode. Code in an IDE, then run it in Python.
+ 1
Ahri Fox you play league
+ 1
Jay Matthews I just tried this In IDLE it dose not work.
>>>print("hi")#ctrl+j
print("test")
syntax error multiple statements found while compiling a single statement
0
Jay Matthews gonna try that now
0
LONGTIE yep completely different from what we are learning on our phones. fyi when you look in the "example" box. that's how it looks.
I've noticed where we type "print" its replaced with ">>>"
example:
Android App
Print "Hello World"
"Hello World"
Laptop
>>> 'Hello World'
'Hello World'
looks just like that
0
David Ashton very detailed. thank you
0
Jay Matthews hey that worked but It turns out if I just enter the code correctly it automatically jumps line and indents
- 1
i would suggest making a function for small codes