Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Is iteration of all the datatype is possible ?
2 ответов
+ 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.