Page 142 - TP_Prime_v2.2_Class_6
P. 142
3. Long answer type questions.
a. Differentiate between Interactive and Script mode with example.
b. How can input data type be changed from string to float?
c. Explain the input( ) function with an example.
21 st
4. Competency-based/Application-based questions. Century #Critical Thinking
Skills
a. Eklavya wants to store his age, name, and favorite colour in Python. Which type of data
Prime (Ver. 2.2)-VI b. Simran is creating a shopping list using Python. She wants to add items like
types should he use for each, and how will he write a Python statement to store this data?
fruits and vegetables to her list as they are entered by the user. Which data
structure will help her keep adding items using Python?
Activity Time 21 st
Century #Critical Thinking
Skills
140 1. What will be the output of the following programs?
a. print("Hello, World!")
b. a = 5
b = 10
print(a + b)
2. Correct the Errors in the Following Python Code:
a. a = "Hello
Print(a)
b. a= "Hello!"
b= 'Friends"
print(a,b)
In the Lab Century #Critical Thinking
21 st
Skills #Technology Literacy
Write a program to:
1. print your name and age with a tab space. Print the class and section in the next line with a
space between them.
2. input two numbers and print the difference between them.
3. input a name and print it.

