










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











Shilpa Bafna(P.G.T)(IP)
Shilpa Bafna(P.G.T)(IP) Shilpa Bafna(P.G.T)(IP)
Shilpa Bafna(P.G.T)(IP)
Shilpa Bafna(P.G.T)(IP) In Python, we use assignment statements to create variables and store values like text, numbers, or a mix of both. Example: gender = 'M’ message = "Keep Smiling“ price = 987. Here, gender, message, and price are variables. A variable must be assigned a value before it is used, otherwise the program will show an error. The interpreter replaces the variable name with its value during execution.
DATA TYPES
Sequence A sequence in Python is an ordered collection of items indexed by numbers. The main sequence types are:
Mapping In Python, Dictionary is the standard mapping type. It stores data as key–value pairs inside { }. Keys are usually strings; values can be any type. Access values using their key. Example: student = {"name": "Ravi", "age": 16} print(student["name"]) # Ravi
ARITHMETIC OPERATORS
???