What is the output of following? x = 12345 for i in x : print(i)
Answers
Answered by
8
Answer:
I do not understand your question is equals to 1 2 3 4 5 for I in range to print first
Answered by
1
Answer: the output is error.
Explanation:
According to the question,
The output of the following is,
x = 12345
for i in x : print(i)
As by running this program it occurs error.
Traceback (most recent call last):
File "./prog.py", line 2, in <module>
TypeError: 'int' object is not iterable
Hence, the output is error.
#SPJ2
Similar questions