79090847

Date: 2024-10-15 16:20:21
Score: 1
Natty:
Report link

To loop through the units, decrease them by 1, update rent and calculate profit each time. follow >

for u in range(50, 0, -1)
    rent += 30
    profit = (u * rent) - (u * 37)
    print(f"Units: {u}, Rent: {rent}, Profit: {profit}")

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohammed Faruk