Question: Python...How can I print out the information that user inputted in the previous function again? I would like to display the information that the user

Python...How can I print out the information that user inputted in the previous function again?

Python...How can I print out the information that user inputted in the

I would like to display the information that the user has inputted in customer_book_selection() function again under complete_transaction() function.

So basically, I want to show the book detail again under the customer's address info.

E 48 40 veny def customer_book_selection(): Book.py 41 d = populateAvailableBooklist() Customer.py 42 print(d) main.py a = 'If you would like to buy a book.' External Libraries 44 print(a) ) Scratches and Consoles 45 b = input("Please enter the number of the book you want here:") 46 print("{:3-100)".Format("Split Line")) 47 for i in b: print(d[1]) print("{:=-108)".format("Split Line")) 58 51 52 Edet complete_transaction(): 53 from Customer import Customer 54 first_name = input("Please enter your first name") last_name = input("Please enter your last name") 56 address = input("Please enter your address") 57 city = input("Please enter the city") 58 state = input("Please enter the state") 59 zip_code = input("Please enter the zip code") 60 print("Customer address info:"_first_name, last_name, address, city, state, zip_code) 61 print("THANK YOU FOR SHOPPING WITH US!) 62 63 E11 ir __name__ == main. 64 displayWelcome() 65 populateAvailableBooklist 66 customer_book_selection() 67 E complete_transaction() 68 complete_transaction() main {'1': 'Book name:Larry The Farting Leprechaun Author: Jane Bexley ISBN:9798761849219 Number of Pages: 39 Minimum Age Requirement: 1 ', '2': 'Book name: Game Changer Auth If you would like to buy a book. Please enter the number of the book you want here: 1 =============================================Split Line ========================= Book name:Larry The Farting Leprechaun Author: Jane Bexley ISBN:9798781849219 Number of Pages: 39 Minimum Age Requirement:1 =============================================Split Line ============================================= Please enter your first namex Please enter your last name XXX Please enter your addressxxx Please enter the city Please enter the state Please enter the zip code 11111 Customer address info: xxx xxxx xxx xxx xxx 11111 THANK YOU FOR SHOPPING WITH US

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!