Day 33 Functions return statement | Return Single Value, Multiple Values, Boolean Values, List

preview_player
Показать описание
Python Functions
Function return Statement
Return Single Value
Passing Arguments with Key and Value
Return Multiple Values
Return Boolean Values
Return a List
How to call a function in python?

Рекомендации по теме
Комментарии
Автор

A link to the jupyter notebook would be well appreciated ma'am.

Shaam_Ark
Автор

Could you help me please understand why this prints 120?

def fact(x):
if x == 0:
return 1
return x * fact(x - 1)

x = int(input('Enter 5: '))
print(fact(x))

liri
join shbcf.ru