Float Object is not Subscriptable - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Float Object is not Subscriptable (/thread-33375.html) |
Float Object is not Subscriptable - quest - Apr-20-2021 I have this object: a=(994.7, <__main__.bit object at 0x7f35b7f2c220>)And I am trying to get just 994.7 so I am using this: a[0][1]But I have float object is not sunbscriptable error HOw can I solve the problem? RE: Float Object is not Subscriptable - buran - Apr-20-2021 From what you show a is a tuple. so just a[0]
RE: Float Object is not Subscriptable - quest - Apr-20-2021 (Apr-20-2021, 09:13 AM)buran Wrote: From what you show thanks!! |