Question: What is displayed when the following program is executed. s = 'Hello World' for k in range(len(s)): if k%2 == 0: print(s[k],end = )
What is displayed when the following program is executed. s = 'Hello World' for k in range(len(s)): if k%2 == 0: print(s[k],end = ")
Step by Step Solution
There are 3 Steps involved in it
Code s Hello Worldfor k in rangelensif k 2 0printsk end Explanation 1 s Hello World assigns the st... View full answer
Get step-by-step solutions from verified subject matter experts
