Making new lines of code - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Making new lines of code (/thread-32136.html) |
Making new lines of code - AvioxyYT - Jan-22-2021 Hi there! Sorry about the lame question but I just started using python and am wondering how to make a new line like this without it running the code. Any ideas? I'm using Python 3.9.1 btw :) RE: Making new lines of code - buran - Jan-22-2021 Your question is quite vague, but I guess you are using python interactive shell. That is when you have >>> at the start of the line. Interactive mode is useful for experiments, but as you discovered every line is evaluated when you hit enter (loops, ifs and similar a bit different).Normally you would write your code in IDE (or any text editor) and save it as python file with .py extensionthen you execute that script. Read https://python-forum.io/Thread-How-to-Execute-python-code |