What will be the output of the following Python code? x = ‘abcd’ for i in x: print(i.upper())Questions & Answers › Category: Programming Language › What will be the output of the following Python code? x = ‘abcd’ for i in x: print(i.upper()) -1 Vote Up Vote Down Geek Boy Staff asked 2 years ago 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 DShare this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...1 Answers -1 Vote Up Vote Down Geek Boy Staff answered 2 years ago d. A B C D Explanation: The instance of the string returned by upper() is being printed.Share this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...