Practice Input and Output - 11.5 | 11. Python Basics | CBSE Class 10th AI (Artificial Intelleigence)
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

Write a line of code to take input for age from the user.

💡 Hint: Use input() with a prompt.

Question 2

Easy

How do you display a welcome message using the user's name?

💡 Hint: Think about string concatenation.

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 function used to take user input in Python?

  • input()
  • get()
  • takeInput()

💡 Hint: Think about how users provide data.

Question 2

Does print() allow for multiple arguments?

  • True
  • False

💡 Hint: Remember the examples with different print usage.

Solve 2 more questions and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

Create a simple interactive program that asks three questions: the user's name, favorite color, and age. It should then print a sentence summarizing the user's responses.

💡 Hint: Use f-strings for formatted output.

Question 2

Write a program that asks the user for their birth year and calculates their age, then prints a personalized birthday greeting.

💡 Hint: Remember to convert the input to an integer for calculation.

Challenge and get performance evaluation