We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Damage Meter

You've been working with a group of interns to build a damage meter for Fantasy Quest... it's not going well.

Assignment

Fix the interns' syntax error. The calculate_dps function should accept two arguments, but due to a syntax error, it's being called with 4 instead. Use the proper delimiter for thousands so that the numbers are still easy to parse visually.

The two numbers should be:

  • damage: 8 million, time: 45
  • damage: 10 million, time: 49

Tip

In normal text, 1,000,000,000 is one billion written with commas as the delimiters for better legibility. In Python, commas can't be used this way, but you can use underscores instead: 1_000_000_000.