+ 1

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 https://code.sololearn.com/cdlt9BI7Ke8V/?ref=app

23rd Apr 2018, 1:38 PM
Doe Dare Oladimeji
Doe Dare Oladimeji - avatar
1 Réponse
0
Here's a tidy solution. No breaks! https://code.sololearn.com/cMJd1IdbCtlz/?ref=app Apologies for not adding comments. Hopefully ok to understand?
23rd Apr 2018, 2:23 PM
Emma