L1 = [ ]
L2 = [ ]
for i in range (16,10):
L.append(i)
for i in range (20,4,-2):
L1.append(i)
for i in range len(L1)):
L2.append(L[i]+L1[i])
L2.append(len(L)-len[L1])
print(L2)
write the output of the following :
Answers
Answered by
2
Answer:
This code will show you an error:
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in <module>
start(fakepyfile,mainpyfile)
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start
exec(open(mainpyfile).read(), __main__.__dict__)
File "<string>", line 13
for i in range len(L1)):
^
SyntaxError: invalid syntax
[Program finished]
Similar questions