Page 1 of 1

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

Posted: Sat May 14, 2022 8:02 pm
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 31 times
main.py 1 # Type code for classes here 2 3 4. if name "_main__": 5 # Type main section of code here ==