School Revise · Class 11 Informatics Practices · Chapter 2
Code 065, Class 11. Python is a simple, readable language. Here we print output, store values in variables, and meet the basic data types and operators.
|
|
Python lets us instruct the computer in plain words. We run it interactively or as a script, print output, store values, and use operators.
print() shows output. A variable stores a value with name = value. A line starting with # is a comment.
|
city = “Doha” print(“I live in”, city) Output: I live in Doha |
Common types are int, float, str and bool. Python chooses the type from the value, and input() reads text from the user.
Arithmetic: + – * / % (remainder) ** (power). Relational: > < == compare values. Logical: and, or, not combine conditions.
Explore the idea by tapping. The interactive opens right here in the lesson.
Write and run real Python right here in the lesson, then work through the practice problems with answers.
Type each one into the code lab above, then open the card to see the worked solution and its output.
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
print().
float.
2, the remainder.
input().
|
Python runs interactively or as a script. print() shows output, a variable stores a value with name = value, and # marks a comment. Data types are int, float, str and bool. Operators include arithmetic (+ – * / % **), relational (> < ==) and logical (and, or, not). input() reads text from the user. |
| Open the Virtual Lab |
These free Class 11 Informatics Practices notes explain Python fundamentals, print variables and comments, data types, and arithmetic relational and logical operators with worked examples and practice, for CBSE students across India and the Gulf including the UAE, Saudi Arabia, Qatar, Oman, Kuwait and Bahrain.
© 2026 School Revise. All rights reserved. Original content aligned to the CBSE and NCERT Class 11 Informatics Practices syllabus. Unauthorised copying is not permitted.