JobPrax
Python Functions โ practice questions ยท JobPrax
JobPrax
Practice
Live projects
Guided projects
For colleges
Pricing
Log in
Start free
All Python topics
Python
Functions
Parameters, defaults, return values and recursion.
Your progress
0
/ 40
Start the first question
All levels
Basic (26)
Intermediate (7)
Advanced (7)
All
To do
Solved
1
Return a value
Basic
2
Default parameter
Basic
3
GST calculator
Basic
4
Multiple return values
Basic
5
Even or odd
Basic
6
Celsius to Fahrenheit
Basic
7
Say hello
Basic
8
Add two numbers
Basic
9
Square a number
Basic
10
Area of a rectangle
Basic
11
Bigger of two
Basic
12
Is it positive?
Basic
13
Discount price
Basic
14
Full name
Basic
15
Kilometres to metres
Basic
16
Absolute value
Basic
17
Pass or fail
Basic
18
Average of three
Basic
19
Simple interest
Basic
20
Can they vote?
Basic
21
Minutes to hours
Basic
22
Repeat a word
Basic
23
Last character
Basic
24
Total and count
Basic
25
Sign of a number
Basic
26
Use your own function
Basic
27
Any number of arguments
Intermediate
28
Keyword arguments
Intermediate
29
Recursion: sum of a list
Intermediate
30
Fibonacci
Interview
Intermediate
31
Validate input
Intermediate
32
Function as an argument
Intermediate
33
Docstring and type hints
Intermediate
34
Recursive power
Advanced
35
Memoised staircase
Interview
Advanced
36
Closure counter
Advanced
37
Permutations
Interview
Advanced
38
Decorator-style timer
Advanced
39
Binary search, recursively
Advanced
40
Flatten any depth
Interview
Advanced