pythontest
pythontest
bookmark_border
Prelude
Language Introduction
Python is a dynamic, interpreted (bytecode-compiled) language.
There are no type declarations of variables, parameters,
functions, or methods in source code. This makes the code short
and exible, and you lose the compile-time type checking of the
source code. Python tracks the types of all values at runtime and
ags code that does not make sense as it runs.
As you can see above, it's easy to experiment with variables and
operators. Also, the interpreter throws, or "raises" in Python
fi
fi
parlance, a runtime error if the code tries to read a variable that
has not been assigned a value. Like C++ and Java, Python is
case sensitive so "a" and "A" are different variables. The end of a
line marks the end of a statement, so unlike C++ and Java,
Python does not require a semicolon at the end of each
statement. Comments begin with a '#' and extend to the end of
the line.
#!/usr/bin/python3