Lecture 74 -OOP - Create your first class | #Python for Oil and Gas

preview_player
Показать описание
--------------------------------------------------- Python for Oil and Gas --------------------------------------------------------------

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

Solution of assignment 19:

class Well:
def __init__(self, c_t, z, d):
self.completion_type = c_t
self.no_of_zones = z
self.depth_of_well = d


# creating objects

w_1 = Well('cased hole', 1, 4000)
w_2 = Well('open hole', 2, 500)
w_3 = Well('cased hole', 3, 6500)

print(w_1.depth_of_well)

arghyakar
join shbcf.ru