+ 1
Why python is not difficult 😬?
tell what ever u like
5 ответов
+ 12
!difficult == easy //can be true sometimes
//se what your friends think about python
https://www.sololearn.com/Discuss/1146983/?ref=app
+ 2
@Jan Markus 🍓 , this man speaks the truth
+ 1
@Jan: ditch those modules, and try to use simplicity wherever you can. I just spent several hours battling with the “Counter” module, and I just gave up and wrote one loop instead. I was trying to do text analysis (regarding word count and their occurrence). Just wasted my time instead.
0
Do not get me wrong: I do not say that you do not need modules at all, and that you should never use them. Sometimes they actually can work better than without using them, and of course, sometimes it is impossible to do what you want without them (take math and datetime, for example). Sometimes, if you need your code to be fast as can, and modules can help you in achieving this, use them. But, when there is no need to use the module, and you can use another method instead, use it, i do not think you shall use modules whenever you can, without good reason. Because there are so many modules, not everyone can be familiar with all the modules there are. While everyone is familiar with loops, functions, and other Python stuff. Think of someone who might need to analyze your code someday, do not make you code look like a nightmare. So, that is my humble opinion.
- 1
I've got a different opinion about Python. The language itself is slim and easy to learn. For many tasks you can use modules - or you write an own solution.
If you need Pi you'll find it in the math-module or you define a float. If you need an array you may use numpy or you may interlace lists.