+ 4
#you can just copy paste this code and for future doubts u can ask chatgpt
n = int(input())
print(round((40 + 5*n)*1.1))
+ 2
Himawari the task has a specific rounding requirement:
"Output format
A number that represents the cost of your purchase rounded up to the nearest whole number."
To round up you can import math and use the math.ceil() function.
+ 1
canvas = 40
while True:
try:
color = int(input())
break
except ValueError:
continue
color_price = color * 5
total = canvas + color_price
tax = total * 0.10
to_pay = total + tax
print(int(to_pay))
0
hg