+ 1

Python input() function is strange (a bug or a feature?)

why can’t the input() function just display the alt text like in a normal Python console, don’t know if this is meant as a bug or a feature? It is also strange to have to input something in a new line for multiple input arguments.. Like in here for example: https://sololearn.com/compiler-playground/cqSM09XRDj3k/?ref=app

8th Mar 2025, 6:50 PM
Sebastián Quevedo
Sebastián Quevedo - avatar
2 Antworten
+ 1
multiple input at once. feel free to search in the history
8th Mar 2025, 6:55 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
0
if you're just using the functions once, just do the calculations in print. defining non-reused functions seems redundant. There's also lots of simplification to be gained if you used multiline f-strings...
9th Mar 2025, 1:48 AM
Bob_Li
Bob_Li - avatar