+ 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!
5 Answers
+ 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
+ 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.
+ 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.
+ 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
+ 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.