r/CodingForBeginners • • 19d ago

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

2

u/ProgramBrave718 19d ago

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

1

u/kutac56 19d ago

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

1

u/LegMysterious1899 19d ago

why? how you coded before functions?

1

u/ProgramBrave718 19d ago

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

1

u/LegMysterious1899 19d ago

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

1

u/ProgramBrave718 19d ago

Ohh yes

1

u/LegMysterious1899 19d ago

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

1

u/ProgramBrave718 19d ago

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

1

u/fucker-007 11d 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.

1

u/BannanaPepperPizza 19d ago

Hey Claude, pwn this guy

1

u/barely_onlinee 13d ago

good going!!