2

Very basic question. Im trying to use qpython. I can type things in the console but no obvious way to enter a return (or enter)

Nick Keighley
  • 161
  • 2
  • 5

4 Answers4

2

go to settings->input method select word-based

0

The console works just like a normally python console. You can use a function if you want to write a script in the console.

0

There is no way of doing it. The console will automatically input a break line when the line of code ends so you can continue inputting in the screen without any scroll bars. For complex code, you should use the editor.

Lombas
  • 1,000
  • 1
  • 8
  • 24
-1

Would a newline character solve your problem?

s = "line 1\n line 2"
print(s)

Should print out

line 1
line 2

If that's what you're looking for? It's called an escape - Python has other ones for tab, etc.

Nathan Smith
  • 475
  • 4
  • 12