+ 9
If/elif/else code differences?
hello i have tryed the following code and get the same result .... does py interpret the following code different? https://code.sololearn.com/cfQrc86s4eMw/?ref=app https://code.sololearn.com/cY895CUa9nYQ/?ref=app
4 odpowiedzi
+ 8
No, that's the same code, actually - both will work the same way.
The properly indented is the more pythonic one, though 🐍
+ 6
ty for quick help ☺👍
+ 2
By questioning this , you also have helped me to understand elif properly.Thanks man.
0
both are same only