- Python is an interpreted language, unlike other high-level programming languages such as C or C++. You only need to submit your Python program to an interpreter for execution, without having to explicitly compile and link the code first.
- Python is a dynamically typed language, which means variable names are bound to their respective types during execution time. You do not have to explicitly declare the type of a variable before using it in the code unlike Java, C++, and other statically-typed languages.
- Instead of using braces ‘{‘ and ‘}’, Python uses whitespace indentation to group together related statements in loops or other control-flow statements.
- Python uses the hash character (‘#’) to precede single-line comments. Triple-quoted strings (”’) are commonly used to denote multi-line comments (even though it is not part of the standard Python language) or docstring of functions.
- Python uses pass by reference (instead of pass by value) when assigning a variable to another (e.g., a = b) or when passing an object as input argument to a function. Thus, any modification to the assigned variable or to the input argument within the function will affect the original object.
- Python uses None to denote a null object (e.g., a = None). You do not have to terminate each statement with a terminating character (such as a semicolon) unlike other languages.
- You may access the variables or functions defined in another Python program file using the importcommand. This is analogous to the import command in Java or the #include command in C or C++.
- Link for code and template: https://drive.google.com/drive/folders/1oFtrhE9Qxi…