Login Register






Why Python? filter_list
Author
Message
Why Python? #1
Why is Python always the go-to language to recommend to a beginner? What pros or cons does it have compared to other languages like JS, C++, Go, Ruby, Rust and so on and so forth?
I currently started with python and the thing making it easier for me is that its elements are similar to the English language like "print", "if", "else", "open". These make it easier to understand what does what and which is for what. It's implementation is also very straight forward. That's all I have. Yawn
With Love,
Shel.



                                                                                                                                                                                                       [Image: i3HqVvwM_o.png]

Reply

RE: Why Python? #2
Python is pretty diverse when it comes down to it. Django, py2web, pylons, Zope, all good for full-stack dev. Then there's aiohttp which is used in one of my projects heavily for an async framework. Also sanic & webstack, not very popular around here but these all have decent communities and people willing to help.

In short, it's used a lot because it works well for pretty much everything from web and data to hardcore ML with TensorFlow. Not really that useful for AI except Hugging Face so far, but it has potential.

I use Python every day and it's served me well alongside C++ and Ruby. Great for exploit development and automation, at its core.
ed25519/0x21AB6B6A6CB2C337
C87D87466FD205945CF10A3821AB6B6A6CB2C337

Reply

RE: Why Python? #3
(03-24-2022, 12:01 AM)vittring Wrote: Python is pretty diverse when it comes down to it. Django, py2web, pylons, Zope, all good for full-stack dev. Then there's aiohttp which is used in one of my projects heavily for an async framework. Also sanic & webstack, not very popular around here but these all have decent communities and people willing to help.

In short, it's used a lot because it works well for pretty much everything from web and data to hardcore ML with TensorFlow. Not really that useful for AI except Hugging Face so far, but it has potential.

I use Python every day and it's served me well alongside C++ and Ruby. Great for exploit development and automation, at its core.

Wow! I didn't know it was really that useful! Overall Python does have a really great community and so far I've found help for everything I needed either on forums or on YouTube, which made my learning journey a whole ton easier! Also, The project you worked on looks great, I am a Kali user myself and I really benefit from scripts like yours, they make the work alot easier. Scripts like yours are the main thing that got me into python considering that most of the pen-testing scripts are made in Python. I'm currently trying to make an AIO tool for social engineering.
With Love,
Shel.



                                                                                                                                                                                                       [Image: i3HqVvwM_o.png]

Reply

RE: Why Python? #4
A con for python is that it is not a "c based" language. The majority of languages are c based. python is good for web development, even web services, but its not a stable language for backend server code. Python can be learned very quickly, it can also allow you create fast multithreaded code. But you should know this, python is a very utilitarian language and not something with which you wouldn't write a full mobile app or desktop application.

but it has its uses and its all good.

Reply

RE: Why Python? #5
(05-27-2022, 11:24 PM)sunjester Wrote: A con for python is that it is not a "c based" language. The majority of languages are c based. python is good for web development, even web services, but its not a stable language for backend server code. Python can be learned very quickly, it can also allow you create fast multithreaded code. But you should know this, python is a very utilitarian language and not something with which you wouldn't write a full mobile app or desktop application.

but it has its uses and its all good.


I never really thought about it until this post, but the lack of C underpinnings *does* make it less familiar. I'm learning it right now primarily to start web scraping (and to stop procrastinating about learning it!). I was always taught that as your career progresses, always keep one language in your back pocket. How popular it is is less important than how well you know it. That was C for me - python wasn't created yet. Makes me wonder how things might have been different if it had. Python is also huge in computer vision, language processing, and loads of scriptable applications like IDA, Hopper Disassembler, iTerm and Sublime Text to name just a few. Even Apple's Swift language bear similarities to python. I think the catch phrase for the 'feature' mentioned earlier in this thread is Python has a "low barrier to entry" . Just don't call it easy ; ) Python was first implemented in C I think.

Reply

RE: Why Python? #6
It's practical, simple and easy to pick up.

Reply

RE: Why Python? #7
(03-23-2022, 10:34 PM)sheltexen Wrote: Why is Python always the go-to language to recommend to a beginner? What pros or cons does it have compared to other languages like JS, C++, Go, Ruby, Rust and so on and so forth?
I currently started with python and the thing making it easier for me is that its elements are similar to the English language like "print", "if",  "else",  "open". These make it easier to understand what does what and which is for what. It's implementation is also very straight forward. That's all I have. Yawn

my opinion:
python is built on top of C, so you can start there to get things going, but to understand the depths, start in C or C++, not important ( classes v structs )

C is good for understanding things like stacks, queues and why you need a linked list.

Do projects to keep practice and once you have use cases, you expand.
Follow m3 and come c#E

Reply

RE: Why Python? #8
Python was my first language too, and I've known it for almost 11 years now, having picked it up back when Codecademy was more popular and moving on to make a few Discord bots with it as my first real projects.

I think it's often recommended to beginners because it's tried and true, has a massive community with plenty of resources and support (which also comes with a lot of diversity - there's a script or library for most things), and has a lot of syntactic sugar. It's pretty easy to learn, but also has a decently high skill ceiling with a lot of concepts to explore.

One of its worst cons for me was that it's terribly slow. If you want speed, Python shouldn't be your choice - but most beginner projects don't require incredible performance, so I wouldn't really steer beginners clear of it for that reason. Despite its snail pace, it's pretty popular in AI research, and I used it to do a study on facial recognition software, so it's still useful.

One of my favourite things about it is that it introduces concepts like Object Oriented Programming very well. I'm not such a fan of OOP myself, but it's a popular concept, so it's useful for beginners to get a good early start with it. Another great thing is that it's a somewhat distant relative of C - the reference implementation is written in C, and it's similar enough conceptually that you can jump from one to the other with memory management being the only real barrier.

This is a somewhat lengthy post, so I'm gonna cut it off there, but there's still plenty more to discuss. Overall, I think it's recommended to beginners because it's an easy start that gives solid foundations for a lot of pathways and concepts. I'd certainly recommend it over Java, that's for sure.
~ Nytelife26 ~

Reply

RE: Why Python? #9
(09-11-2022, 12:26 AM)Nytelife26 Wrote: Python was my first language too, and I've known it for almost 11 years now, having picked it up back when Codecademy was more popular and moving on to make a few Discord bots with it as my first real projects.

I think it's often recommended to beginners because it's tried and true, has a massive community with plenty of resources and support (which also comes with a lot of diversity - there's a script or library for most things), and has a lot of syntactic sugar. It's pretty easy to learn, but also has a decently high skill ceiling with a lot of concepts to explore.

One of its worst cons for me was that it's terribly slow. If you want speed, Python shouldn't be your choice - but most beginner projects don't require incredible performance, so I wouldn't really steer beginners clear of it for that reason. Despite its snail pace, it's pretty popular in AI research, and I used it to do a study on facial recognition software, so it's still useful.

One of my favourite things about it is that it introduces concepts like Object Oriented Programming very well. I'm not such a fan of OOP myself, but it's a popular concept, so it's useful for beginners to get a good early start with it. Another great thing is that it's a somewhat distant relative of C - the reference implementation is written in C, and it's similar enough conceptually that you can jump from one to the other with memory management being the only real barrier.

This is a somewhat lengthy post, so I'm gonna cut it off there, but there's still plenty more to discuss. Overall, I think it's recommended to beginners because it's an easy start that gives solid foundations for a lot of pathways and concepts. I'd certainly recommend it over Java, that's for sure.

Don't program as much as I used to but Python was definitely one of my favorite languages to learn. Lots of documentation/libraries available.
[Image: 7ajmN5P.jpg]

Telegram: Oni_SL (Link)

[+] 1 user Likes Oni's post
Reply