The Python Game Book

code games. learn Python.

User Tools

Site Tools


Sidebar

Github:

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)
en/glossary/l/line_numbers.txt · Last modified: 2020/05/13 06:54 by horst