3 ms·
Maybe one factor is its versatility in leetcode, which to a first approximation every SWE has to do. Declare sets, lists, and maps in one line. Don’t need to w
by janalsncm 1y ago
Maybe one factor is its versatility in leetcode, which to a first approximation every SWE has to do.
Declare sets, lists, and maps in one line. Don’t need to worry about overflow or underflow. Slicing is extremely convenient and expressive. Types not necessary, but that’s rarely confusing in short code blocks.
Compare to js, you’re immediately dealing with var/let/const decisions using up unnecessary mental energy.
- jinushaun 1y agoPython is popular in education too. I guess people like to continue with the language that they did their homework with. Combine that with its prevalence in coding interviews because “python basically pseudocode”, it makes sense why it’s popular.