ThePythonGameBook

learn Python. Create Games

User Tools

Site Tools


Sidebar

en:glossary:l:line_numbers

line numbers

Python does not use line numbers like basic, but every python code editor can display line numbers optionally. Line numbers are never part of any python code.

Example with line numbers:

for x in range(21):
    print(x, x*2, x**2)

Because line numers are never part of the python code, the the pure python code looks like this:

for x in range(21):
    print(x, x*2, x**2)
/var/www/horst/thepythongamebook.com/data/pages/en/glossary/l/line_numbers.txt · Last modified: 2020/05/13 06:54 by Horst JENS