Computer Science, asked by abhaymishraa8224, 10 months ago

What will be the output of following? x = ‘abcd’ for i in range(len(x)): print(x[i])

Answers

Answered by alvinajerry123
15

Answer:

x = 'abcd' foriinrange(len(x)): print(i.upper()) a) a b c d b) 0 1 23 c) error (correct ans) d) none of the mentioned Explanation: Objects of type int have no attribute upper(). 10. Which of the following cannot be a variable? 11. Which module in Python supports regular expressions? 12. Which of the following creates a pattern object?  

Unlocks Icon

Subscribe to Course Hero to unlock this document

Unlocks Icon

Subscribe to Course Hero to unlock this document

Unlocks Icon

Subscribe to Course Hero to unlock this document

Explanation:

Similar questions