text generator stuck first step | Sololearn: Learn to code for FREE!

0

text generator stuck first step

my code will start with reading a file name as input the output will be like below filename statistics All tokens: ?????? Unique tokens: ????? second input will be like > 0 what > 4 life > 72379990π43799 IndexError, please input an integer that is in range of the file name >six Type Error.pleaseinput an integer >exit how to implement thati am stuck in it for a whilei need agood ideas, appreciated your efforts.

4/28/2021 10:59:47 PM

Taher Mohamed Ismail

1 Answer

New Answer

+1

Sigh. A while loop and if statements, plus i think the isnumeric() method of str.