Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Min Max
#3
find_min is a function.  If you  print find_min (note no parentheses), it will give you a short blurb saying it's a function.  That's happening in your print statements.

Before that you call the function (with the parentheses and the arguments) and it runs.  But since you don't assign the return value to anything, the information is lost.  Put that info into a variable and then print the variable.

Or put the full call (with arguments and parentheses) into the print if you don't need the information after printing.
Reply


Messages In This Thread
Min Max - by 01andy - Oct-13-2020, 06:23 PM
RE: Min Max - by Yoriz - Oct-13-2020, 06:47 PM
RE: Min Max - by bowlofred - Oct-13-2020, 07:25 PM
RE: Min Max - by Skaperen - Oct-13-2020, 07:45 PM
RE: Min Max - by ndc85430 - Oct-14-2020, 12:09 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020