When working with actual python on the laptop, I can type one line then "enter" key, runs the code. Help? | Sololearn: Learn to code for FREE!
+ 1

When working with actual python on the laptop, I can type one line then "enter" key, runs the code. Help?

trying to practice different ways, or looking for best places to practice outside of here. Thanks everyone!

13th Feb 2018, 3:15 AM
Brayden Alexander
Brayden Alexander - avatar
5 Réponses
+ 4
After Changing the newly created text file's extension to .py....right click on file will give you an option to 'open with Python IDE'. It will be better to use Python IDE and Python Shell instead of Command prompt
13th Feb 2018, 4:48 AM
Zoetic_Zeel
Zoetic_Zeel - avatar
+ 2
I don't really understand your question, so here are the possible answers: 1) You want to be able to enter one line of code, then have it execute: Open up a command prompt (I assume you're using Windows), and type "python" in the window that pops up. That is the Python interpreter, and it can generate live output from live input. 2) You want to run code like a script: Make a text file, and change the extension to .py (from .txt, I presume). Right-click and hit "edit," and type your code. After, just double-click on the file to run it. If it closes immediately, try adding input() to the end of the file.
13th Feb 2018, 4:00 AM
LunarCoffee
LunarCoffee - avatar
+ 1
I found the" \" allows for an extra line to be typed but I can't do it again to make extra lines like in sololearn.
13th Feb 2018, 3:16 AM
Brayden Alexander
Brayden Alexander - avatar
+ 1
yes I wanted to write a script on the comp, thank you. I appreciate the answer. I will let you know if I succeed.. lol
13th Feb 2018, 4:03 AM
Brayden Alexander
Brayden Alexander - avatar
+ 1
I'm not sure if this is what you're looking for, but if you have trouble adding extra lines, you should try shift + enter. This works on almost every program.
14th Feb 2018, 6:34 AM
Speedie778
Speedie778 - avatar