Skip to content

Commit

Permalink
Update ilen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
binguszingus authored Dec 9, 2024
1 parent 720218e commit f28a9b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ilen.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ def ilen(item = None) -> int:
length += 1

return length

def ilfs(item = None) -> int:
if item is None or len(item) == 0 or (item is not str and item is not list):
# checks
return 0

return len(item) - 1

0 comments on commit f28a9b2

Please sign in to comment.