Python Forum
Whats the difference between these two?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whats the difference between these two?
#4
General rule - a function should do one thing and do it well. In this case it should return the string to the main program and let the program control the output formatting, etc. Functions should not print unless printing is the actual purpose of the function.
Reply


Messages In This Thread
Whats the difference between these two? - by Puxk - Jul-08-2020, 10:34 AM
RE: Whats the difference between these two? - by jefsummers - Jul-08-2020, 11:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Whats the problem here? Class Ronaldx 4 2,268 Nov-26-2019, 10:29 PM
Last Post: jefsummers
  whats wrong with my code? syntax errors r6lay 5 6,562 Mar-16-2017, 04:14 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

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