Python For Og Lecture 64 - All Kind of Parameters Inside A Function
Python For Og Lecture 64 - All Kind of Parameters Inside A Function
Website - https://petroleumfromscratchin.wordpress.com/
LinkedIn - https://www.linkedin.com/company/petroleum-from-scratch
YouTube - https://www.youtube.com/channel/UC_lT10npISN5V32HDLAklsw
# normal parameter
def func(a):
return a+2
func(8)
10
func_2(4)
Order of Parameters
# create a function which takes porosity in normal parameters, formations names in *args
# depth as default parameters and info lik area name and field name in **kwargs
# this function prints all kind of parameters
0.16
('Sandstone', 'shale', 'limestone')
3500
{'area': 'Assam', 'field': 'xyz'}
func_3(0.16, 'Sandstone', 'shale', 'limestone', depth = 4000, area = 'Assam', field = 'xyz')
0.16
('Sandstone', 'shale', 'limestone')
4000
{'area': 'Assam', 'field': 'xyz'}
/
2/2/2021 Python for O&G Lecture 64: All kind of parameters inside a function - Colaboratory