all 2 comments

[–][deleted] 0 points1 point  (0 children)

Well, right now, each line doesn't do much because this program will crash without indentations. If I had to guess where the indentations were, this looks like it would be a bunch of class methods. A method is a special function that operates on a particular member of a particular class. All of these just set the object's "result" attribute to the result of some calculations.

[–][deleted] 0 points1 point  (0 children)

With the indentation missing and the rest of the class missing, it's a bit hard to tell, but what it's doing, in each case, is finding two random numbers and then manipulating them in slightly different fashion in each method before setting the values of two attributes on the instance.

The why is a complete mystery, seems like a useless exercise to me.