Question: Python Help.. I created this class/object in a separate python file(Customer.py), and Im trying to call this class from my main.py I would like the

Python Help.. I created this class/object in a separate python file(Customer.py), and Im trying to call this class from my main.py

Python Help.. I created this class/object in a separate python file(Customer.py), and

I would like the output to display whatever in inputs above, and print out the customer's personal info.

Im trying to call this class from my main.py I would like

main.py(shown above) I don't know where I should go from here.. Please answer it with screenshots, thank you!

codes:

class Customer(object): def __init__(self, first_name, last_name, address, city, state, zip_code) self.first_name = first_name self.last_name = last_name self.address = address self.city = city self.state = state self.zip_code = zip_code first_name = input("Please enter your last name") last_name = input("Please enter your last name") address = input("Please enter your address") city = input("Please enter the city") state = input("Please enter the state") zip_code = input("Please enter the zip code")

main.py x Customer.py Book.py X 1 2. 3 4 5 Eclass Customer(object): def __init__(self, first name, last name, address, city, state, zip code) self.first_name = first_name self.last_name last_name self.address = address self.city = city self.state = state self.zip_code = zip_code 6 7 8 9 10 11 12 13 14 first_name = input("Please enter your last name") last_name = input("Please enter your last name") address input("Please enter your address") city input("Please enter the city") state = input("Please enter the state") zip_code input("Please enter the zip code") 15 16 17 Edef complete_transaction(): global b global d from Customer import Customer Customer()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!