Question: What will be the output of the following Python program if the file contents are as given below? f= open(qa05.txt, r) S = f.read() f.close()

What will be the output of the following Python program if the file contents are as given below? f= open("qa05.txt", "r") S = f.read() f.close() for c in s: if c. isupper(): a += 1 print(a) Contents of the file qa05.txt: Once upon a time there was a programmer who wrote Python programs for the spaceships of Galactic Union. Ltfen birini sein: O a. 3 O b. None of the others O c.4 O d. Once upon a time there was a programmer who wrote Python programs for the spaceships of Galactic Union. O e
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
