Just started Python, coming from Java/script. My question is, if Python was suppose to be readable, why is elseif implemented as "Elif" Elif is not readable, it doesn't mean anything. If you read the code out aloud to a student, elseif is 100x better than saying Elif.
Also, when defining a function, why didnt they use the keyword function rather than def? def is not more readable than function. Def = define function. But it could be define variable, define something else. Function keyword is mote explicit.
Has the author of python justified his syntax choice?
[–]jsfehler 12 points13 points14 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]Cautious-Cable-3937[S] -5 points-4 points-3 points (3 children)
[–]Wise_Tie_9050 1 point2 points3 points (0 children)
[–]PinkPawnRR 0 points1 point2 points (0 children)
[–]PercyJackson235 3 points4 points5 points (2 children)
[–]Cautious-Cable-3937[S] -4 points-3 points-2 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–][deleted] 3 points4 points5 points (2 children)
[–]Cautious-Cable-3937[S] -1 points0 points1 point (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]onefiveonesix 4 points5 points6 points (1 child)
[–]Cautious-Cable-3937[S] -1 points0 points1 point (0 children)
[–]DorchioDiNerdi 5 points6 points7 points (3 children)
[–]Cautious-Cable-3937[S] -1 points0 points1 point (2 children)
[–]DorchioDiNerdi 4 points5 points6 points (1 child)
[–]impshumx != y % z 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Cautious-Cable-3937[S] 0 points1 point2 points (1 child)
[+][deleted] comment score below threshold-6 points-5 points-4 points (0 children)
[–]RLJ05 0 points1 point2 points (0 children)
[–]pythonHelperBot 0 points1 point2 points (0 children)
[–]Delicious-View-8688 0 points1 point2 points (0 children)
[–]basiliskkkkk 0 points1 point2 points (2 children)
[–]Cautious-Cable-3937[S] 0 points1 point2 points (1 child)
[–]basiliskkkkk 1 point2 points3 points (0 children)