import sys
pyversion = !python -V
pyexecutable = sys.executable
print(f"""You are using Python {pyversion} located at {pyexecutable}""")
You are using Python ['Python 3.6.0'] located at E:\pyvenv\3.6\test2\Scripts\python.exe
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}" """)
Details of person: First Name is "Satish" Last Name is "Goda"