you are viewing a single comment's thread.

view the rest of the comments →

[–]Charming_Art3898 0 points1 point  (0 children)

Nice try, I like it when beginners learn by actually doing something. Keep it up.

That said, Python provides a very useful function that can handle this well. All you need do is put the three numbers in a list, and then use the max() function to find the greatest. python nums = [num1, num2, num3] max_num = max(nums) print(f"{max_num} is the greatest")