Sri Venkateshwara Primary and High School
Python Worksheet – Answer Key
A. Tick (✓) the correct option.
1 1. Python is an Interpreted language.
2 2. In Python, Script mode is used for writing lengthy programs and saving them for later use.
3 3. Print() function in Python is used to display output on the screen.
4 4. Break statement is used to exit a loop in Python.
5 5. To make a decision is the purpose of an if…else statement in Python.
B. Fill in the blanks.
1 1. Python is an interpreted language because it is easy to read and write, and it has an
English-like syntax.
2 2. In Python, the symbol # is used to indicate a comment.
3 3. The symbol = is used for assignment.
4 4. The escape sequence \t is used to add a tab space between values in the output.
5 5. The for loop in Python can iterate over sequences such as lists, strings, and tuples.
C. Write ‘T’ for true and ‘F’ for false statements.
1 1. T
2 2. T
3 3. F
4 4. T
5 5. F
D. Answer the following questions.
1 1. Two domains where Python is widely used: • Web Development – Python has frameworks
like Django and Flask which make development faster and easier. • Data Science & Machine
Learning – Python has powerful libraries like Pandas, NumPy, and TensorFlow, making it
popular for data analysis and AI.
2 2. Indentation is important in Python because it defines the block of code. Without proper
indentation, Python cannot understand which statements belong to loops, functions, or
conditions.
3 3. Two examples of Python’s basic data types: • int – Stores whole numbers (e.g., 5, -12, 100).
• str – Stores text/strings (e.g., 'Hello', 'Python').
4 4. Difference between print() and input(): • print() – Used to display information/output to the
user. • input() – Used to take input from the user as a string.
5 5. If a condition in an infinite while loop never becomes false, the loop will run forever, and the
program will not stop unless it is manually interrupted.