+ 6

Why 8.0?

Why 8? The last element in range 1...8 is 7 https://code.sololearn.com/c6O0vBh31PAV/?ref=app

18th May 2019, 10:09 AM
Sławek J.
2 Answers
+ 9
Here last method returning last value not index value..
8th Jun 2019, 9:23 PM
A͢J
A͢J - avatar
+ 7
the last value in the string is 8 thus 8 * 1.0 = 8
8th Jun 2019, 9:51 PM
BroFar
BroFar - avatar