Type function does not work - 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: Type function does not work (/thread-16800.html) |
Type function does not work - sunnyarora - Mar-15-2019 l=["Red", "Blue","Green","Orange","Violet"] for c in l: print(c) type(l)In this code type function does not showing the answer. Why so? RE: Type function does not work - metulburr - Mar-15-2019 you have to wrap in print unless your in the python interpreter print(type(l)) RE: Type function does not work - sunnyarora - Mar-15-2019 (Mar-15-2019, 10:44 AM)metulburr Wrote: you have to wrap in print unless your in the python interpreter Thanks ! Sir, C will be a variable when using in for loop |