Python function with arguments and no return value

Python function with arguments and no return value

John Philip Jones

9 лет назад

7,509 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@davidochieng1443
@davidochieng1443 - 02.09.2022 14:20

hey john thanks for your awesome videos,,I would love to follow you on github

Ответить
@TOUSSIAGAMEPLAYS
@TOUSSIAGAMEPLAYS - 20.04.2020 07:51

def User(name, phone_numbber, id):
print("This User Infos Are :".upper())
print("NAME :", name)
print("PHONE :", phone_numbber)
print("ID :", id)


print(User("Ahmed", "0796643919", "9145685"))

##############################################
##############################################
print(" ")
print(" ")

def User(name, phone_number, id):
print("This User Infos Are :".upper())
print("NAME :", name)
print("PHONE :", phone_number)
print("ID :", id)

User_name = input("Please Enter User Name Here : ")
User_Phone = input("Please Enter User Phone Number Here : ")
User_id = input("Please Enter User ID Here : ")

User(User_name,User_Phone,User_id)

Ответить
@TOUSSIAGAMEPLAYS
@TOUSSIAGAMEPLAYS - 20.04.2020 07:50

شكرا
Thank you very much i'm learning a lot from you its amazing

Ответить
@fillerchatter7612
@fillerchatter7612 - 18.04.2020 00:42

When you say nothing is returned, are you referring to a variable being returned from the initial arguments? Considering the print statements are displayed by using the function.


Many thanks.

Ответить
@westfield90
@westfield90 - 26.03.2019 06:35

Thank you

Ответить
@luckster2473
@luckster2473 - 27.10.2016 16:36

I'm STILL missing something after re-watching and re-watching the video....
Why are the definitions different in:
"def display_wage_slip (name, net_pay):" vs. " display_wage_slip (employee_name, employee_net_pay)" ??
How does the computer know that "employee_net_pay" is the same as "net_pay"?

Ответить