Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 217 Bytes

what_is_the_result_lvl_2.md

File metadata and controls

19 lines (15 loc) · 217 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

a
b
c