0

I'm having a problem with my recursive equation generator

Im trying to flip the string above the answer so that it can be more easily read but my attempt at appending to a list fail because I'm working in a recursive loop. I've thought about returning the append but I can't figure out how I would do that without throwing a monkey wrench into the whole program. Any suggestions on how to flip the string? https://code.sololearn.com/cHOO6i6aFRki/#py

13th Aug 2019, 6:12 PM
Evan Martine
3 Respuestas
+ 2
I think this is what you are looking for. https://code.sololearn.com/cVrTglFp52BP
14th Aug 2019, 4:25 AM
John Wells
John Wells - avatar
+ 2
Switcing the order of the recursive call and the print made it so the first print was the one instead of ten.
14th Aug 2019, 1:10 PM
John Wells
John Wells - avatar
+ 1
Wow, I can't believe that just by returning a value recursion flips the whole string
14th Aug 2019, 12:24 PM
Evan Martine