Question: What is the output of the following Python code? int_list = [0, 1, 2, 3, 4, 5] ch = 0 %3D element = 0
What is the output of the following Python code? int_list = [0, 1, 2, 3, 4, 5] ch = 0 %3D element = 0 while element is int_list[ch]: print(element, end="") ch = ch + 1 element = int_list[ch+1] else: print (int_list[element]) a) SyntaxError: invalid syntax b) 012345 c) 02 d) IndexError: list index out of range
Step by Step Solution
3.30 Rating (156 Votes )
There are 3 Steps involved in it
The answer is option asyntax errorinvalid syntax B... View full answer
Get step-by-step solutions from verified subject matter experts
