Practice Printing Variables - 18.8 | 18. PRINT | CBSE 9 AI (Artificial Intelligence)
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

Printing Variables

18.8 - Printing Variables

Enroll to start learning

You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What is the output of print('Hello, World!')?

💡 Hint: It's a basic greeting message.

Question 2 Easy

If name = 'Alice', what does print('Name:', name) display?

💡 Hint: It's showing the stored name variable.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What will print('Hello' + ' ' + 'World') output?

Hello World
HelloWorld
Hello World!

💡 Hint: Think about how strings combine.

Question 2

Is the following statement true? print('Age is ' + str(age)) correctly shows the value of age.

True
False

💡 Hint: Remember data types when combining!

1 more question available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

You have variables: username = 'Jane' and score = 88. Write a print statement that uses both variables in a meaningful sentence.

💡 Hint: Use f-string to include variables within a sentence.

Challenge 2 Hard

What would happen if you try to print a string and an integer directly using print('I am ' + age)?

💡 Hint: Think about the compatibility of the types.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.