0

Backwards spelling using recursion

Why can’t I just use break in the code? (See comment) I mean, the print function is somewhere else anyways. Why do I have to return a string that should actually empty by then? https://code.sololearn.com/cxX4MxepESqA/?ref=app

31st Aug 2022, 3:32 PM
Sonja
1 Resposta
0
break is used to stop a loop. So you can't use break because thats not a loop statement. It is if block.
31st Aug 2022, 3:48 PM
Jayakrishna 🇮🇳