How to Program: A Word Counter in Python

preview_player
Показать описание
RATE COMMENT AND SUBSCRIBE!

Thank you to all the patrons on Patreon!
Рекомендации по теме
Комментарии
Автор

I like your tutorials, they are helping me make a game similar to The Oregon Trail in batch file!

OfficialKody
Автор

Good day sir. After i ran my program it gave me this:
Traceback (most recent call last)
File "C line 58, in <module> word_counter()
File "C line 36, in word_counter counts["I'm"] = counts["i'm"]
KeyError: "i'm"

Why does it say that qnd what must i change to fix it?

robertadriaan
Автор

Traceback (most recent call last):
File "C:\Users\x1\Desktop\CS Dojo\main.py", line 62, in <module>
word_counter()
File "C:\Users\x1\Desktop\CS Dojo\main.py", line 40, in word_counter
counts["I'm"] = counts["i'm"]
KeyError: "i'm"

??

alikuytu
Автор

Hey, nice tutorial dude :) But can You explain me why you need to lower case "I'm" or "I'd" etc.? Hope You understand what i mean, I'm from Poland :)

MrCipek
Автор

hello, sir is this program applicable to any languages other than English?

sileshics
welcome to shbcf.ru