the code has a if __name__ == "__main__" please the last time i submitted this question it wasnt present 10.20 LAB*: Pro

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

the code has a if __name__ == "__main__" please the last time i submitted this question it wasnt present 10.20 LAB*: Pro

Post by answerhappygod »

the code has a if __name__ == "__main__" please the last time i
submitted this question it wasnt present
10.20 LAB*: Program: Online shopping cart (Part 1)
(1) Build the ItemToPurchase class with the following
specifications:
Ex. of print_item_cost() output:
(2) In the main section of your code, prompt the user for two
items and create two objects of the ItemToPurchase class. (2
pts)

Ex:
(3) Add the costs of the two items together and output the total
cost. (2 pts)

Ex:
The Code Has A If Name Main Please The Last Time I Submitted This Question It Wasnt Present 10 20 Lab Pro 1
The Code Has A If Name Main Please The Last Time I Submitted This Question It Wasnt Present 10 20 Lab Pro 1 (10.61 KiB) Viewed 29 times
main.py 1 # Type code for classes here 2 3 4. if name "_main__": 5 # Type main section of code here ==
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply