Practice Printing Strings - 18.2 | 18. PRINT | CBSE Class 9 AI (Artificial Intelligence)
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.

Practice Questions

Test your understanding with targeted questions related to the topic.

Question 1

Easy

What is the output of print('Python!')?

💡 Hint: Consider what the print function does.

Question 2

Easy

Write a print statement using double quotes to display your name.

💡 Hint: Use the print function with quotes around your name.

Practice 4 more questions and get performance evaluation

Interactive Quizzes

Engage in quick quizzes to reinforce what you've learned and check your comprehension.

Question 1

What is the default separator for print() when printing multiple items?

  • Comma
  • Space
  • New line

💡 Hint: Think about how items appear when printed together.

Question 2

True or False: You can print numbers directly using the print() function.

  • True
  • False

💡 Hint: Consider the examples of using print with numbers.

Solve 2 more questions and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

Given the variables name = 'John' and score = 88, create a print statement using f-string to display 'John scored 88 marks.'

💡 Hint: Remember how to use f-strings to include variable values directly in the output.

Question 2

You have a variable temperature = 20. Write code that prints 'The temperature is 20 degrees.' using .format().

💡 Hint: You need to use the .format() method to insert the value for temperature.

Challenge and get performance evaluation