i just wondering, i build the code to ignore the zero division like this, since im new in python here's my code
product_a_sales = 5
product_b_sales = 5
total_sales = product_b_sales - product_a_sales
try:
product_a_percentage_sales = (product_a_sales/total_sales) * 100
except ZeroDivisionError:
product_a_percentage_sales=0
but eventually, it return an error :
File "<ipython-input-21-126bc16d81e9>", line 5
product_a_percentage_sales = (product_a_sales/total_sales) * 100
^
IndentationError: expected an indented block
and im stuck with this error. Thank you.