Preparing your workspace...
Loading latest data

Learn how to define reusable blocks of code using the def keyword. Understand function structure, indentation, and how to call a function.
Question1.
Which keyword used to define a function?
Question2.
What’s wrong here?

Question3.
What symbol is needed to call a function?
Question4.
What’s the output?

Question5.
What’s printed?

Understand how to pass values into functions using arguments, how default arguments work, and how to return results using the return keyword.
Question1.
Which argument type uses assignment in the call?
Question2.
What is the output?

Question3.
Which argument type must follow order?
Question4.
What keyword exits a function with a value?
Question5.
What’s printed?

Explore variable visibility in functions (local vs global), and how to use lambda for writing small anonymous functions quickly.
Question1.
What is printed?

Question2.
Which function type has no name?
Question3.
What’s the result?

Question4.
Lambda functions always return?
Question5.
What is the output?

Learn how to reuse code by importing existing modules or creating your own. Master the use of built-in libraries (like os, math, random), third-party tools (like requests), and understand how to organize code across multiple files for larger challenges or automation scripts.
Question1.
What keyword is used to bring in an external module?
Question2.
What keyword allows you to import only a specific method?
Question3.
Which module would you import to generate random numbers?
Questio4.
What command-line tool is used to install external packages in Python?
Question5.
What Python command shows the list of installed packages?
Question6.
What command installs the requests library via terminal?