Practice Calling A Function (11.9.2) - Python Programming - CBSE 11 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

Calling a Function

Practice - Calling a 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

What is the keyword used to define a function in Python?

💡 Hint: Think about what word comes before the function name.

Question 2 Easy

How do you call a function named 'say_hi'?

💡 Hint: What do you write to execute the function?

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What does the def keyword do in Python?

Defines a function
Calls a function
Returns a value

💡 Hint: Think about how we initiate a function.

Question 2

True or False: You can call a function by writing just its name inside parentheses.

True
False

💡 Hint: Recall the format for calling functions.

1 more question available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Create a function that checks if a number is even or odd and returns a string indicating the result.

💡 Hint: Use the modulus operator to determine the answer.

Challenge 2 Hard

Write a function to reverse a string and demonstrate calling it.

💡 Hint: Think about how indexing works with strings.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.