Python is a high-level, interpreted programming language created by Guido van Rossum and first released in 1991. High-level means you write instructions that read almost like English instead of talking to the processor directly. Interpreted means a program called the interpreter reads your file line by line and executes it immediately — there is no separate compilation step.
Why Python is a great first language
- The syntax is minimal: no semicolons, no curly braces, very few symbols.
- It is used everywhere: data science, web backends, automation, AI, science.
- It ships with a huge standard library, so many tasks need no extra install.
- Errors are readable and tell you the line number and what went wrong.
Your first program
print("Hello, world!")print() is a built-in function. A function is a named block of behaviour that you call by writing its name followed by parentheses. Anything you put inside the parentheses is an argument: extra information the function needs. Here the argument is the text "Hello, world!".
Text, numbers and comments
# This is a comment — Python ignores it
print("Two plus three is:", 2 + 3)
print(10 / 4) # 2.5
print(10 // 4) # 2 (floor division)
print(10 % 4) # 2 (remainder)
print(2 ** 10) # 1024 (power)Text wrapped in quotes is called a string. Whole numbers are integers (int) and numbers with a decimal point are floats. Notice that / always produces a float, while // throws away the fractional part.
Running Python
You can run Python in three ways: interactively in a REPL (type python in a terminal and get a >>> prompt), by saving a file such as hello.py and running python hello.py, or inside a notebook. Beginners should use files — they are repeatable and can be shared.