I'm looking for a way to print elements from a tuple with no brackets.
Here is my tuple:
mytuple = [(1.0,),(25.34,),(2.4,),(7.4,)]
I converted this to a list to make it easier to work with
mylist = list(mytuple)
Then I did the following
for item in mylist:
print(item.strip())
But I get the following error
AttributeError: 'tuple' object has no attribute 'strip'
Which is strange because I thought I converted to a list?
What I expect to see as the final result is something like:
1.0,
25.34,
2.4,
7.4
or
1.0, ,23.43, ,2.4, ,7.4