79473733

Date: 2025-02-27 19:33:14
Score: 2.5
Natty:
Report link

The last index in your [2:4] slice is not inclusive. This means slicing your string like that will result in '06'.

If you want '068', you need to take the [2:5] slice.

Then, converting to a float using float('068') should give you 68.0.

I don't get why slicing your string using the [2:5] slice would return '068;'. I've tried it in my interpreter and it really only returns '068'.

Are you sure that you are using the right slices?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: TrickyTroll