Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Progrogramming
#3
When you want to call a function, you don't need to put print before it:

three_lines()

or

print(three_lines())

rather than

print three_lines()

Note. print(three_lines()) will print None as that is what is returned from your functions by default in the absence of a return statement. That will be in addition to any output the function produces.
I am trying to help you, really, even if it doesn't always seem that way
Reply


Messages In This Thread
Python Progrogramming - by mongweotsile - Sep-30-2018, 10:27 AM
RE: Python Progrogramming - by j.crater - Sep-30-2018, 10:28 AM
RE: Python Progrogramming - by gruntfutuk - Sep-30-2018, 12:24 PM

Forum Jump:

User Panel Messages

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