Anahita-tech/Type_Counter1
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
# Type Counter This simple Python script counts how many elements of different types exist in a given list. Currently, it checks for: String / Integers / Lists # How it works? It loops through the list using ' pop(0)' to remove each item one by one. For each item,it checks its type using ' isinstance()'. Finally,it prints the total counts