What will be the output of the following Python code?
x = 'abcd' for i in x: print(i.upper())
a)a B C D
b) a b c d c) error d)A B C D
Answer: d Explanation: The instance of the string returned by upper() is being printed.