Skip to content

Anahita-tech/Type_Counter1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

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

About

A simple Python script that counts data types in a list

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages