24th Feb 2025, 5:25 PM
Houache Yacine
Houache Yacine - avatar
4 Antworten
+ 1
# print("______") # DRY : Don't Repeat Yourself! why don't you add a constant, for instance: DIVIDER = print("______")
24th Feb 2025, 6:17 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 1
Is there any modification
24th Feb 2025, 5:27 PM
Houache Yacine
Houache Yacine - avatar
+ 1
Thank you
24th Feb 2025, 6:27 PM
Houache Yacine
Houache Yacine - avatar
+ 1
Houache Yacine you can use multiline strings, functions to execute repeated code and the 'in' keyword for your if-elif condtions. Also, do input validation for the numbers and zero-checking for your division. maybe something like this: https://sololearn.com/compiler-playground/cr9TryiMERG5/?ref=app
25th Feb 2025, 3:13 AM
Bob_Li
Bob_Li - avatar