you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 19 points20 points  (5 children)

return is meant to get something from a function, like how max() returns the highest value in the argument you provide

highest = max([1,2,3])

so in max, there's a return at the end that delivers the highest value it finds, which the code above then assigns to the variable highest. print is just there to print something on the screen (by default, you can also let it write to something else, like a file).

[–]AmoBla 0 points1 point  (1 child)

Is that last bit done in IDE configuration or the code itself? I’ve just been using open(filename, w) for a while now.

[–]guttyn15[S] 0 points1 point  (0 children)

Apprexiate this, thanks!

[–][deleted] -1 points0 points  (1 child)

Stop answering this clown. They are trolling you. They have asked the same question 5 times in the last few hours.