Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function
#1
Code:
def h():
    print('hey')
print(h(),'hello')
Output:
Output:
hey None hello
Please someone explain me the output. I am a beginner and have just started learning python.
Reply


Messages In This Thread
Function - by AmanTripathi - Feb-01-2018, 07:05 PM
RE: Function - by buran - Feb-01-2018, 07:11 PM
RE: Function - by AmanTripathi - Feb-02-2018, 04:30 AM

Forum Jump:

User Panel Messages

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