What is the output of this code?
my_list = [ 10, 20, 30, 40, 50, 60 ]
for e in my_list:
if e / 10 % 2 == 1:
print( e )
else:
print( '100' )
What is the output of this code?
my_list = [ 10, 20, 30, 40, 50, 60 ]
for e in my_list:
if e / 10 % 2 == 1:
print( e )
else:
print( '100' )
10 100 30 100 50 100
10 100 100 100 100 100
10 30 50
100 20 100 40 100 60