Practice What is the Function? - 18.1 | 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

What is the Function?

18.1 - What is the Function?

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

Simple use of print function. What will be the output of print("Python!")?

💡 Hint: Think about what you expect to see on the screen.

Question 2 Easy

Print two strings. What will be displayed if you run print("AI", "Learning")?

💡 Hint: Remember the default separator.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What will print("Hello", "World") output?

HelloWorld
Hello World
Hello
World

💡 Hint: Focus on how multiple items are printed.

Question 2

True or False: The print() function can only display strings.

True
False

💡 Hint: Consider all the data types we can print.

2 more questions available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Write a print statement that takes a name and age and outputs a sentence: 'Your name is [name] and you are [age] years old.'

💡 Hint: Use f-strings to include both variables in the output.

Challenge 2 Hard

Create a print statement that prints: 'Result: A1 + B2 = 5', where A1 and B2 are variables defined as A1 = 3 and B2 = 2.

💡 Hint: Incorporate variable values and arithmetic directly in your print statement.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.