In [ ]:
import sys
In [4]:
pyversion = !python -V
pyexecutable = sys.executable
print(f"""You are using Python {pyversion} located at {pyexecutable}""")
In [7]:
class Person:
def __init__(self, fname, lname):
self.fname = fname
self.lname = lname
person1 = Person("Satish", "Goda")
print(f"""Details of person: \n\tFirst Name is "{person1.fname}" \n\tLast Name is "{person1.lname}" """)