def split_income(amount):
needs = amount * 0.50
wants = amount * 0.30
savings = amount * 0.20
print(f"Total amount: {amount:,} Toman")
print();print()
print(f"Needs (50%): {needs:,.0f} Toman")
print(f"Wants (30%): {wants:,.0f} Toman")
print(f"Savings (20%): {savings:,.0f} Toman")
print()
amount_input = int(input("Enter today's income (in Toman): "))
split_income(amount_input)
To embed this program on your website, copy the following code and paste it into your website's HTML: