+ 3

Is Python a slow computer language.

24th Mar 2018, 7:55 AM
Saurabh Bhattacharjee
Saurabh Bhattacharjee - avatar
3 Antworten
+ 3
Thank you 😊
24th Mar 2018, 8:03 AM
Saurabh Bhattacharjee
Saurabh Bhattacharjee - avatar
+ 2
I am sure you won't recognise the difference on a modern computer. The most codes work immediatly in python, even recursiv fractals. Slow programs are often written in bad Style. For example: In Python 'x += 1' works much faster than 'x = x + 1'.
24th Mar 2018, 8:51 AM
Sebastian Keßler
Sebastian Keßler - avatar
+ 1
@Sebastian: Gotta love the in-place operators. To me, Python can be fast or slow, depending on the style of coding. even = list(filter(lambda x: x % 2 == 0, nums)) is slower than a “for” loop that iterates over the list to separate the even numbers from a given list. Just two cents from a humble Python novice.
24th Mar 2018, 8:54 PM
DianaTheAlien
DianaTheAlien - avatar