Web appOpen in Telegram

PostCount Printable character from file using Python

29 July 2025
<
</> ᴍᴜᴋᴇsʜ </>
Count Printable character from file using Python from string import printable def count_char(): with open(r"bookbot/books/frankenstein.txt", "r", encoding="utf-8") as f: file_contents = f.read().lower() char=list(printable) d=dict() for i in char: d[i]=0 for i in file_contents: if i in d: d[i]+=1 print(d) count_char() Sample Output: {'0': 18, '1': 91, '2': 19, '3': 15, '4': 12, '5': 12, '6': 9, '7': 18, '8': 24, '9': 9, 'a': 25894, 'b': 4868, 'c': 9011, 'd': 16318, 'e': 44538, 'f': 8451, 'g': 5795, 'h': 19176, 'i': 23927, 'j': 497, 'k': 1661, 'l': 12306, 'm': 10206, 'n': 23643, 'o': 24494, 'p': 5952, 'q': 325, 'r': 20079, 's': 20360, 't': 29493, 'u': 10111, 'v': 3737, 'w': 7450, 'x': 691, 'y': 7756, 'z': 235, 'A': 0, 'B': 0, 'C': 0, 'D': 0, 'E': 0, 'F': 0, 'G': 0, 'H': 0, 'I': 0, 'J': 0, 'K': 0, 'L': 0, 'M': 0, 'N': 0, 'O': 0, 'P': 0, 'Q': 0, 'R': 0, 'S': 0, 'T': 0, 'U': 0, 'V': 0, 'W': 0, 'X': 0, 'Y': 0, 'Z': 0, '!': 201, '"': 0, '#': 1, '$': 2, '%': 1, '&': 5, "'": 0, '(': 35, ')': 35, '*': 97, '+': 0, ',': 5962, '-': 173, '.': 3121, '/': 8, ':': 211, ';': 1350, '<': 0, '=': 0, '>': 0, '?': 208, '@': 0, '[': 2, '\\': 0, ']': 2, '^': 0, '_': 124, '`': 0, '{': 0, '|': 0, '}': 0, '~': 0, ' ': 70480, '\t': 0, '\n': 7631, '\r': 0, '\x0b': 0, '\x0c': 0}
4 · 3.9K ·

Nearby in the feed

<</> ᴍᴜᴋᴇsʜ </>Random User API import requests response = requests.get('https://randomuser.me/api/') if response.status_code == 200: data = response.json() print(data) else: p<</> ᴍᴜᴋᴇsʜ </>explore free api : https://freeapi.hashnode.space/freeapi-docs/freeapi Jᴏɪɴ ᴜs :- @CodesSnippet
this message
रराम सियाराम सियाराम जय जय राम 🙏 तुम साथ हो जो मेरे, किस चीज की कमी है ।Join BCA/MCA developers group on arattai A Indian chat app by zoho Supported by government https://chat.arattai.in/groups/t43545f3132373735363338343334383434343रराम सियाराम सियाराम जय जय राम 🙏 तुम साथ हो जो मेरे, किस चीज की कमी है ।Sabhi log arattai app install karlo Hame apne desh ki app ko support karna chahiye Vahi pe ek doosre se bat Karo whatsapp ki bajaye Dheere dheere sare log whats
PPython Codes Basic to AdvancePython Codes Basic to Advance@Python_Codes_Pro · channel · Tech
2 562subscribers425posts in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count