GenBodha
by GenAI Engineers
Products
Bytes
Docs
About
Products
Bytes
Docs
About
Account
Reading Material
Read
Python Essentials
/
Functions
Hands-on Labs
Labs
Knowledge Check
50 questions · Test your understanding before moving on
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Question 1 of 50
Select one answer
Why should you use None as the default value for mutable parameters like lists or dictionaries?
A
Python does not allow lists as default values
B
None is faster to evaluate than an empty list
C
Mutable defaults are shared across all calls, which can leak state between invocations
D
It prevents the function from accepting keyword arguments
Previous
Check Answer