r/CodingHelp • u/Killiancin • Feb 14 '26
[Python] i seriously just cannot understand this...
So I'm really new to coding, and I just cannot understand this. I am using a payed website that helps me learn with activities and stuff but I mean, if I don't understand how can I do it? I've researched this for more than 4 hours today and just cannot understand.
I do not understand DEF, what comes after it, RETURN AREA, or what comes under the #...
Could someone please explain?
93
Upvotes
View all comments
Show parent comment
1
u/BobbyJoeCool Feb 18 '26
Because in many programming languages, there is no accessible power functions, and when there are, they automatically return a double instead of an integer. So doing 4 * 4 is preferable to pow(4,2). Or in Python terms 4**2.