79490565

Date: 2025-03-06 20:09:08
Score: 1
Natty:
Report link

all the values are integers

In the example you provided, 'god' is assigned the value '2.99' which is of string type given the fact it is in quotation marks. The same thing is happening with your second key-value pair, with 'sam' having the value of '7.87' rather than 7.87. Any value in quotation marks is a string-literal, not an integer.

Keep in mind the definition of an integer: a number that is not a fraction; a whole number. Your current key values are decimals, not whole numbers. You'll need to fix this as well if you want to make your pairs function correctly.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: jacob