Python

Ernestas Kovalenko
Ernestas Kovalenko
1,017 Points

can I use float step of 0.1?

I try to make a 0.1 step, ant it returns Float error

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 64,074 Points

If you are using step as in a list slice, then the step means an integer number spacing between the index integer values.

So a float is not an appropriate step vale.

Post back if you need more help. Good luck!!!