Answers 100% Pass
What is the purpose of the `break` statement in Python?
✔✔It exits the nearest loop, regardless of the loop's condition.
What will the following code output?
```python
for i in range(5):
if i == 3:
break
print(i)
```
✔✔0 1 2
How do you define a function that accepts keyword arguments?
✔✔By using `**kwargs` in the function definition.
What will the following code output?
1
, ```python
def show_values(**values):
for key, value in values.items():
print(key, value)
show_values(a=1, b=2, c=3)
```
✔✔a 1
b2
c3
What does the `continue` statement do in a loop?
✔✔It skips the current iteration and moves to the next iteration of the loop.
What will the following code output?
```python
for i in range(5):
if i == 2:
continue
2