Practice Conditional Statements (10.6.1) - Introduction to Python - CBSE 10 AI (Artificial Intelleigence)
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

Conditional Statements

Practice - Conditional Statements

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

Write a simple if statement to print 'You are an adult' if age is above 18.

💡 Hint: Think about the condition that defines adulthood.

Question 2 Easy

Create an if-else statement to check if it is raining.

💡 Hint: Consider what action to take based on the weather.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What does an if statement do?

Executes code if condition is false
Executes code if condition is true
Both of the above

💡 Hint: Remember what happens when the condition evaluates.

Question 2

True or False: The else clause can be used without an if statement.

True
False

💡 Hint: Think about how else relates to if.

2 more questions available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Create a program that determines what to wear based on weather conditions (sunny, rainy, cold).

💡 Hint: Think about layering for cold and rain protection.

Challenge 2 Hard

Write an eligibility checker for multiple jobs based on age, experience, and qualifications.

💡 Hint: Consider what each job requires for eligibility.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.