text generator stuck first step | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

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.

28th Apr 2021, 10:59 PM
Taher Mohamed Ismail
Taher Mohamed Ismail - avatar
1 Answer
0
Sigh. A while loop and if statements, plus i think the isnumeric() method of str.
29th Apr 2021, 2:42 AM
Wilbur Jaywright
Wilbur Jaywright - avatar