
Python is a dynamic, interpreted language. Source code does not declare the types of variables or parameters or methods. This makes the code very short and flexible, and you lose the compile-time type checking in the source code. Python tracks the types of all values at runtime.
Python code does not declare the types of variables -- just assign values to them and start working with it. Python raises a runtime error if the code tries to read from a variable that has not been given 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.
Here Comments begin with a '#' and extend to the end of the line.
No comments:
Post a Comment