Answer:
- price = 380
- dollar = (price // 100) + 1
- print(dollar)
Step-by-step explanation:
Presume the an item cost 380 cents and we set 380 to the variable price (Line 1). To estimate the number of single dollars to be paid, we can use // operator to divide price by 100 and we will get 3 (the remaining decimal point will be discarded). Then we add 3 by one. So the expression is
(price//100) + 1
*The reason we divide price by 100 is because 1 dollar = 100 cents