A
Austin Cox
Hello, I just started with python and have run into a problem using
lists.
If I enter:
li = [.25,.10,.05,.01]
and then enter:
print li
it'll output:
[0.25, 0.10000000000000001, 0.050000000000000003, 0.01]
Can anyone tell me why it does this, and how I can get just the value
..10, and .05 into a list? Thanks.
lists.
If I enter:
li = [.25,.10,.05,.01]
and then enter:
print li
it'll output:
[0.25, 0.10000000000000001, 0.050000000000000003, 0.01]
Can anyone tell me why it does this, and how I can get just the value
..10, and .05 into a list? Thanks.