Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not working
#2
you need to return name from the functions
at end of each function, return what function creates:
for example:
def AskForLastName():
    last = input('your last name?')
    print ("Nice meating you.Have a good day")

    return last
and when calling AskForLastName:
lastname = AskForLastName()
print(lastname)
# or simply:
print(AskForLastName())
Reply


Messages In This Thread
Not working - by tommytime555 - Feb-25-2018, 04:02 PM
RE: Not working - by Larz60+ - Feb-25-2018, 06:29 PM

Forum Jump:

User Panel Messages

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