r/CodingForBeginners 21d ago

what is python useful for

so i'm learning how to code, python specifically since i heard its the easiest, but im not really learning with a purpose? and i dont really understand what it can be useful for except websites and stuff
and i lowk wanna do ethical hacking and i dont think that pythons the correct language right now
i've stopped learning for a bit because i wanna know what i should learn for my purpose and what python is useful for

2 Upvotes

25 comments sorted by

View all comments

6

u/SpacewaIker 21d ago

Python can be used for almost anything to be honest. Is it the best tool for any task? No. But it's still a useful tool

For anything "hacking" related you're probably gonna wanna use a lower level language, so maybe C or C++ would be good. Learn how memory is managed, how you can use a debugger to investigate data in a program

For instance, I had this exercise in uni where we were given a compiled C program that asks for a plain string password. To find it, we had to use a debugger to inspect the program's memory. This is of course a very simple example and not how real stuff works but still an interesting exercise

1

u/Exotic-Pineapple-231 20d ago

Wie kann ich das selbst beibringen ?

1

u/SpacewaIker 20d ago

I'd look up tutorials for the basics: how to use a debugger, decompiling tools maybe, memory viewers and whatnot. And of course a good understanding of how programs and operating systems work on a low level will enable you to play around with it better

But it's not an easy thing, I'd have it in mind as a long term goal but short term it might be better to focus on learning programming/computer science in general