Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions