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?
Type function does not work
Type function does not work
|
you have to wrap in print unless your in the python interpreter
print(type(l))
Recommended Tutorials:
Mar-15-2019, 10:50 AM
(This post was last modified: Mar-15-2019, 10:57 AM by sunnyarora.)
|
|
Users browsing this thread: 1 Guest(s)