calling a function within a loop | SoloLearn: Learn to code for FREE!


calling a function within a loop

this is my assignment and my code is attached. i feel i used too many breaks. please help edit it. Create a str_analysis() function that takes 1 string argument and returns a string message. The message will be an analysis of a test string that is passed as an argument to str_analysis(). The program will call str_analysis() with a string argument from input collected within a while loop. The while loop will test if input is empty and continue to loop

4/23/2018 1:38:03 PM

Doe Dare Oladimeji

1 Answer

New Answer


Here's a tidy solution. No breaks! Apologies for not adding comments. Hopefully ok to understand?