Functions, recursion and methods | Analytics in Python from scratch | 05

preview_player
Показать описание
#python #data #analytics #tutorial #functions

Fifth video in my Python for analytics series. Today we take a look at functions: what they are, how to use them and how to build them. We also learn about methods and the magic of recursion.

Check out my other videos, I am building a full course to get you from zero to hero in analytics!
Рекомендации по теме
Комментарии
Автор

Because of this video I'm finally able to tell my OFF numbers from my ON ones! Thanks ape analytics!

victorenciso
Автор

ape = {'head':'bald', 'build':'puny',
'height':1.50}

i=0
def am_I_like_xander(dict):
global i
for k in dict.keys():
if(k=='head' and dict[k]=='bald'):
i += 1
elif(k=='build' and dict[k]=='ripped'):
i += 1
elif(k=='height' and dict[k]>1.9):
i += 1
if(i<2):
print('You are not like Xander, you are just a baldy ape')

am_I_like_xander(ape)

victorenciso
welcome to shbcf.ru