🐍

PyLab | Class 12 Python Review

1. The Python Environment

Welcome to the Python Revision Tour. This section recapitulates the basics of Python, an interpreted high-level language. Explore the two modes of operation provided by IDLE and understand the fundamental building blocks (Tokens) of the language.

Working Modes

Python 3.6.5 Shell
Type "copyright", "credits" or "license()" for more information.
>>> print("Hello")
Hello
>>> 10 + 50
60
>>> _

Interactive mode executes commands line-by-line. Great for testing.

Python Tokens

The smallest lexical units in a program.

Keywords
Reserved words (e.g., if, else, True)
Identifiers
Names for variables, functions
Literals
Fixed values (10, "Hello")
Operators
Symbols for computation (+, -, *)
Click a token type above to see examples and rules.