+ 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? 🤔

10th Jun 2018, 1:26 AM
Kidale Smith
Kidale Smith - avatar
13 odpowiedzi
+ 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.
10th Jun 2018, 5:41 AM
Ahri Fox
Ahri Fox - avatar
+ 2
Jay Matthews see I didn't know that now i learned something new 👍
10th Jun 2018, 1:41 AM
LONGTIE👔
LONGTIE👔 - avatar
+ 2
LONGTIE I'd recommend just getting an actual IDE.
22nd Jun 2018, 5:52 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 1
When using idle it automatically runs the code
10th Jun 2018, 1:34 AM
LONGTIE👔
LONGTIE👔 - avatar
+ 1
It sounds like you're trying to code in interactive mode. Code in an IDE, then run it in Python.
11th Jun 2018, 4:06 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 1
Ahri Fox you play league
15th Jun 2018, 11:40 PM
Kidale Smith
Kidale Smith - avatar
+ 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
21st Jun 2018, 10:06 PM
LONGTIE👔
LONGTIE👔 - avatar
0
Jay Matthews gonna try that now
10th Jun 2018, 3:19 AM
Kidale Smith
Kidale Smith - avatar
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
10th Jun 2018, 3:22 AM
Kidale Smith
Kidale Smith - avatar
0
David Ashton very detailed. thank you
10th Jun 2018, 4:03 AM
Kidale Smith
Kidale Smith - avatar
0
Jay Matthews hey that worked but It turns out if I just enter the code correctly it automatically jumps line and indents
10th Jun 2018, 4:41 AM
Kidale Smith
Kidale Smith - avatar
- 1
i would suggest making a function for small codes
10th Jun 2018, 1:35 AM
LONGTIE👔
LONGTIE👔 - avatar