Python:
-------
1) It is a high level language.
===============================
High Level Language v/s Low Level Language:
-------------------------------
High Level Language:- Programmers can easily understand or interpret or compile the
high level language in comparison of machine.
Low Level Language:- Machine can easily understand the low level language in
comparison of human beings.
Examples:
---------
High Level Languages:- C, C++, Java, Python, etc.
Low Level Languages:- Fortran
2) Interpreted Language:
========================
Python is an interpreted language, which means that the Python code is executed
line by line.
This makes it easy to test and debug code.
3)Dynamic Typing:
=================
Python is dynamically typed, which means that you don't need to declare the data
type of a variable explicitly. Python will automatically infer the data type based
on the value assigned to the variable.
4)Strong Typing:
================
Python is strongly typed, which means that the data type of a variable is enforced
at runtime.
This helps prevent errors and makes the code more robust.
Running a Python Program:
=========================
Open a text editor (e.g., Notepad on Windows, TextEdit on macOS, or any code editor
like VS Code, PyCharm, etc.).
Code
Save the file with a .py extension (e.g., hello_world.py).
Open a terminal or command prompt.
Navigate to the directory where you saved the file using the cd command (e.g., cd
path/to/your/directory).
Run the program by typing python hello_world.py and pressing Enter.