0

May i have some feedback on my code, please?

https://www.sololearn.com/en/compiler-playground/cIyAg0ZwZlq2 It works, but i feel i could've written it better. Was the while loop a poor choice?

2nd Feb 2025, 4:07 PM
Igor Matić
Igor Matić - avatar
2 Answers
+ 2
it needs 3 inputs. 13 7 0 (No output.) possible: if val_min > val_max: # change the values, using a helper variable but what to do with the start, if is it smaller than a val_min?
2nd Feb 2025, 7:45 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
0
Mihaly Nyilas i knew i forgot something. Thank you kindly.
2nd Feb 2025, 10:48 PM
Igor Matić
Igor Matić - avatar