Python Forum
My First Python Script. Feedback Sought.
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My First Python Script. Feedback Sought.
#3
I would agree with Zombie_Programming, but I would suggest using a triple quoted string for the line after the def statement:

def func(a):
    """Adds four."""
    return a + 4
Then when someone types help(func) in the interactive console, it will give them that text.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: My First Python Script. Feedback Sought. - by ichabod801 - Jun-29-2018, 02:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb Script broke with Python 3 / improve script for printing aspecteleven 4 4,712 Feb-22-2019, 12:23 PM
Last Post: buran
  Feedback on my first Python module CodeRaker 11 6,863 Jun-21-2018, 02:16 AM
Last Post: ichabod801
  Requesting feedback on this learning script I_love_py 2 2,981 Dec-01-2017, 12:22 PM
Last Post: I_love_py

Forum Jump:

User Panel Messages

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