Repeated execution of a set of statements is called iteration. Because iteration is so common, Python provides several language features to make it easier. The for and the while commands use the iteration procedure
Loops are traditionally used when you have a block of code which you want to repeat. The Python for statement iterates over the members of a sequence in order, executing the block each time. For loops are traditionally used when you have a block of code which you want to repeat a fixed number of times. The Python for statement iterates over the members of a sequence in order, executing the block each time. Contrast the for statement with the ''while'' loop, used when a condition needs to be checked in each iteration, or to repeat a block of code forever.
Any integer (not a fraction) that cannot be divided exactly by 2.
The last digit is 1, 3, 5, 7 or 9.
Example: −3, 1, 7 and 35 are all odd numbers.
Operators are the constructs which can manipulate the value of operands.
Consider the expression 4 + 5 = 9. Here, 4 and 5 are called operands and + is called operator.
- arithmetic : +, -, *, /, **,
- comparison : > , <, ==, !=, >=, <=
- boolean: AND, OR, NOT, XOR, NOR, NAND, XNOR
a person or thing that watches or stands as if watching
Strings are among the most popular types in Python. We can create them simply by enclosing characters in quotes. Python treats single quotes the same as double quotes. Creating strings is as simple as assigning a value to a variable.
Example : "This is a string"
'This is also a string'
The result of adding two or more numbers.
Example: 9 is the sum of 2, 4 and 3
(because 2 + 4 + 3 = 9).
A temperature is an objective comparative measurement of hot or cold. It is measured by a thermometer. Several scales and units exist for measuring temperature, the most common being Celsius (denoted °C; formerly called centigrade), Fahrenheit (denoted °F), and, especially in science, Kelvin (denoted K).
existing only one time, being only once