Python Forum
I need help for adding def to my code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help for adding def to my code
#2
I think your tutor is asking you to create a function from your code.

change this :
# this print the output
print (output)
to this:
def show_output (output) :
	# this print the output
	print (output)
Reply


Messages In This Thread
RE: I need help for adding def to my code - by BashBedlam - Mar-28-2021, 02:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  adding to code but still getting same output Crackity 7 4,698 Jul-12-2017, 02:36 PM
Last Post: buran

Forum Jump:

User Panel Messages

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