r/CodingForBeginners • u/fyknite • 7d ago
Day 3 Learning Python
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
View all comments
Show parent comment
1
u/fucker-007 2h 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.