I
I
ivandao2019-11-22 17:50:07
Flask
ivandao, 2019-11-22 17:50:07

How to count the number of elements of an object?

Tell me, I’m not strong in Python
There is a certain object with files (obj)
info.log(obj)
gives the following What methods to take the number of files in obj
[<FileStorage: '' ('application/octet-stream')>]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EvgenyCherny, 2019-11-22
@EvgenyCherny

I don't quite get the point, but I'll put in my 5 cents.

obj = [1,2,3,4,5]
len(obj)
>> 5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question