Question: PYTHON Can someone help me debug this code in order to get the output required? def get_sale_price(original_price, percent_discount) return original price ** (percent_discount // 100)

PYTHON

Can someone help me debug this code in order to get the output required?

PYTHON Can someone help me debug this code in order to getthe output required? def get_sale_price(original_price, percent_discount) return original price ** (percent_discount //

def get_sale_price(original_price, percent_discount) return original price ** (percent_discount // 100) if __name__ item_count items = [] __main__': input() for i in range(item_count): items.append(input().split(',')) for item in items: price, discount - items [0] sale_price = get_sale_price(discount, price) print(round(sale_price, o)) Output Format The output should contain n lines, each containing the discounted price of the corresponding item (rounded to the nearest integer). Sample Input 0 5 100.00 10 200.00 20 300.00 30 400.00 40 500.00 50 Sample Output 0 90 160 210 240 250

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!