Print: "I'm From Function1 "
Print: "I'm From Function1 "
Print: "I'm From Function1 "
print(car.car_model)
obj1=car()
obj2=car()
print(f"output from obj:{obj1.car_model}")
print(car.car_model)
obj1 == obj2
obj1.car_model == obj2.car_model
print(car.car_m)
Hundai
output from obj:Hundai
Hundai
maruti
localhost:8888/notebooks/Untitled99.ipynb?kernel_name=python3 1/4
6/26/2020 Untitled99 - Jupyter Notebook
Out[47]: ['__class__',
'__delattr__',
'__dict__',
'__dir__',
'__doc__',
'__eq__',
'__format__',
'__ge__',
'__getattribute__',
'__gt__',
'__hash__',
'__init__',
'__init_subclass__',
'__le__',
'__lt__',
'__module__',
'__ne__',
'__new__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'db',
'ports',
'user']
Hundai
In [48]: ports=(80,120,345)
type(ports)
Out[48]: tuple
localhost:8888/notebooks/Untitled99.ipynb?kernel_name=python3 2/4
6/26/2020 Untitled99 - Jupyter Notebook
Out[50]: ['__class__',
'__delattr__',
'__dict__',
'__dir__',
'__doc__',
'__eq__',
'__format__',
'__ge__',
'__getattribute__',
'__gt__',
'__hash__',
'__init__',
'__init_subclass__',
'__le__',
'__lt__',
'__module__',
'__ne__',
'__new__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'db',
'ports',
'user']
localhost:8888/notebooks/Untitled99.ipynb?kernel_name=python3 3/4
6/26/2020 Untitled99 - Jupyter Notebook
dbi.__dict__
localhost:8888/notebooks/Untitled99.ipynb?kernel_name=python3 4/4