Answer: See below.
class Intern:
def __init__(self):
self.first_name = input("Enter first name: ")
self.last_name = input("Enter last name: ")
self.address = input("Enter address: ")
self.mobile_number = input("Enter mobile number: ")
self.e_mail = input("Enter e-mail: ")
def getdata(self):
print("First name: ", self.first_name)
print("Last name: ", self.last_name)
print("Address: ", self.address)
print("Mobile number: ", self.mobile_number)
print("E-mail: ", self.e_mail)
def putdata(self):
print("First name: ", self.first_name)
print("Last name: ", self.last_name)
print("Address: ", self.address)
print("Mobile number: ", self.mobile_number)
print("E-mail: ", self.e_mail)
Step-by-step explanation: