Calculate the Number of Uppercase Letters in a File Posted on 2018-11-27 | Visitors: 123456789import osos.chdir("C:\\users\\lixiang\\desktop")with open("file.txt") as file: count = 0 for i in file.read(): if i.isupper(): count += 1print(count)