Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exercism with Python
#9
When you return a value from a function, it can be used in subsequent parts of the program (assigned to a variable, passed to another function as in the test, etc.). Printing doesn't do that - the value is simply written to the console.

That is to say the console is external to your program, not part of it.
Reply


Messages In This Thread
Exercism with Python - by Gyga_Hawk - Mar-13-2022, 10:12 AM
RE: Exercism with Python - by Larz60+ - Mar-13-2022, 12:45 PM
RE: Exercism with Python - by Gyga_Hawk - Mar-15-2022, 05:53 AM
RE: Exercism with Python - by Yoriz - Mar-15-2022, 06:20 AM
RE: Exercism with Python - by Gyga_Hawk - Mar-17-2022, 05:55 AM
RE: Exercism with Python - by Yoriz - Mar-17-2022, 06:26 AM
RE: Exercism with Python - by ndc85430 - Mar-17-2022, 06:57 AM
RE: Exercism with Python - by Gyga_Hawk - Mar-17-2022, 08:57 AM
RE: Exercism with Python - by ndc85430 - Mar-18-2022, 08:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tracking leap.py years for gregorian calendar (Exercism org) Drone4four 11 4,085 Oct-14-2022, 03:20 PM
Last Post: betinajessen
  Meltdown Mitigation (operators + conditionals) beware: Exercism potential spoiler Drone4four 5 2,752 Feb-21-2022, 08:49 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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