Basic Python 49

Class, pass, instance, binding, Object, variable, self, method, __init__, dir, namespace, __dict__, __del__

Class Basic cookie frame. The meaning of defining the class is defining the new data type. It is a set or category of things having some property of attribute in common and differentiated from others by kind, type, or quality. A blue print for individual objects. class BusinessCard: pass pass : It can be defined the class without anything inside the class. instance Shaped cookie, result through ..

Basic Python 2021.04.20

parameter, argument, def, *arg, **kwargs, return, global, *val, nonlocal, namespace

name='aaa' email='bbb@gmail.com' addr='seoul' def print_business_card(name,email,addr): print('name:%s'%name) print('email:%s'%email) print('address:%s'%addr) print_business_card(name,email,addr) >>> name:aaa email:bbb@gmail.com address:seoul parameter A parameter is the variable listed inside the parentheses in the function definition. argument An argument is the value that is sent to the funct..

Basic Python 2021.01.27