How to make a program that opens a FILE and counts the number of words with 1 character, 2 characters, 3... and so on.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make a program that opens a FILE and counts the number of words with 1 character, 2 characters, 3... and so on..

How to make a program that opens a FILE and counts the number of words with 1 character, 2 characters, 3... and so on.. I've been wondering about this but I don't know how to start.

21st Jan 2019, 11:34 PM
Ignacio Montero
Ignacio Montero - avatar
1 Answer
+ 1
start by creating a usrr prompt to open a txt file. then its just a matter of creating loops through lines..words and characters
22nd Jan 2019, 5:39 AM
Jason Kennedy