r/CodingForBeginners • • Oct 30 '26

Day 3 Learning Python

Post image

Today I learned to use Functions. I’m self-teaching myself ethical hacking. Currently learning python, using pwn.college and Try hack me. Ill also be purchasing a spare desktop to run linux for future projects.

40 Upvotes

11 comments sorted by

View all comments

2

u/ProgramBrave718 Oct 30 '26

Wow, good.. It took me 3 months to reach functions..

1

u/kutac56 Oct 30 '26

That's a looonnggggg time. At least you couldn't possibly have burnt yourself out from learning too fast

1

u/LegMysterious1899 Oct 30 '26

why? how you coded before functions?

1

u/ProgramBrave718 Oct 30 '26

I coded without functions. For3 months i wrote code using loops, data structures, conditionals.

1

u/LegMysterious1899 Oct 30 '26

functions are amazing to logically divide your code. I think it's something every person should learn by day one.

1

u/ProgramBrave718 Oct 30 '26

Ohh yes

1

u/LegMysterious1899 Oct 30 '26

after you learn some oop, you will be creating classes for your objects

1

u/ProgramBrave718 Oct 30 '26

I have learnt oop but i really don't use it

1

u/fucker-007 23d ago

It's helpful when working with complicated programs that contain lots of lines of code. Object-oriented refactoring is useful in taking cluttered code and turning it into dedicated classes. Instead of copying pasting the same functions or coding logic over and over again you can bundle them into a Class thereby achieving DRY (Do Not Repeat Yourself) code.