DEV Community

Discussion on: Daily Challenge #30 - What is the price?

Collapse
 
matrossuch profile image
Mat-R-Such

Python

def DiscoverOriginalPrice(new_price, discount):
    return '%.2fM' %((new_price*100)/(100-discount))