Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 284 Bytes

what_is_the_result_lvl_2.md

File metadata and controls

15 lines (11 loc) · 284 Bytes

What is the result? - Level 2

  1. What is the result of the following block of code?
x = ['a', 'b', 'c']
for i in x:
    if i == 'b':
        x = ['z', 'y']
    print(i)

Solution

Click here to view the solution.