Last answered:

05 Feb 2023

Posted on:

02 Aug 2022

0

how to create a list with float numbers

Hello,
is it possible to create a list with float numbers?
Thanks,

2 answers ( 0 marked as helpful)
Instructor
Posted on:

04 Aug 2022

0

Hi Marc!
Thanks for reaching out.

Yes, you can use the following syntax:
array_floats=[1.5, 1.7, 2.5]

Hope this helps.
Best,
Tsvetelin

Posted on:

05 Feb 2023

0

My guess is changing any of star, stop, and step from integer to a float number will give you a float number.


Submit an answer