Computer Science, asked by akshaybhardwaj987154, 5 months ago

What will the below Python code
will return?
list1 =[0,2,5,1]
str1="7"
for i in list1:
str1=str1+i
print(str1)
70251
7
15
Error​

Answers

Answered by MuhammadSameer74
2

Answer:

Error

Explanation:

To fix this code to write like this

list1 =[0,2,5,1]

str1="7"

for i in list1:

str1=str1+ str(i)

print(str1)

The answer of this code is;

70251

Similar questions