New course! Every coder should learn Generative AI!
Try a free lesson0
Is iteration of all the datatype is possible ?
2 Answers
+ 4
Datatypes, structures and objects that can be iterated are:
string, list, tuple, set, dict, range, file, ...
+ 1
No. Only the types that have an __iter__ method in them.