Whats the difference between a.len and len(a)? Suppose 'a' is a variable [closed]2019 Community Moderator ElectionWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?What does the “yield” keyword do?Difference between append vs. extend list methods in PythonWhat does if __name__ == “__main__”: do?How do I sort a dictionary by value?What's the difference between lists and tuples?Difference between __str__ and __repr__?Determine the type of an object?Iterating over dictionaries using 'for' loops

Happy pi day, everyone!

Min function accepting varying number of arguments in C++17

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Are there verbs that are neither telic, or atelic?

How could a scammer know the apps on my phone / iTunes account?

Are all passive ability checks floors for active ability checks?

How to write cleanly even if my character uses expletive language?

Is there a data structure that only stores hash codes and not the actual objects?

How to create the Curved texte?

Co-worker team leader wants to inject his friend's awful software into our development. What should I say to our common boss?

Sailing the cryptic seas

Error in Twin Prime Conjecture

Did Ender ever learn that he killed Stilson and/or Bonzo?

A sequence that has integer values for prime indexes only:

Are ETF trackers fundamentally better than individual stocks?

Why is the President allowed to veto a cancellation of emergency powers?

Do I need life insurance if I can cover my own funeral costs?

A Cautionary Suggestion

Official degrees of earth’s rotation per day

Credit cards used everywhere in Singapore or Malaysia?

Why do passenger jet manufacturers design their planes with stall prevention systems?

How to deal with a cynical class?

What did Alexander Pope mean by "Expletives their feeble Aid do join"?

Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible



Whats the difference between a.len and len(a)? Suppose 'a' is a variable [closed]



2019 Community Moderator ElectionWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?What does the “yield” keyword do?Difference between append vs. extend list methods in PythonWhat does if __name__ == “__main__”: do?How do I sort a dictionary by value?What's the difference between lists and tuples?Difference between __str__ and __repr__?Determine the type of an object?Iterating over dictionaries using 'for' loops










-4















Suppose there is a variable named a. Whats the difference between a.len and len(a)?



a could be a tuple, list or dictionary or a dataframe.










share|improve this question















closed as unclear what you're asking by deceze Mar 7 at 14:24


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 2





    Do you mean a.__len__()?

    – JETM
    Mar 7 at 14:21






  • 5





    The difference is that a.len is an attribute, and does not exist for list tuple or dictionary. len(a) calls the __len__() method of objects

    – BlueSheepToken
    Mar 7 at 14:22












  • Try it and let us know…?

    – deceze
    Mar 7 at 14:24






  • 1





    What happens when you compare the result of a.len and len(a) when a is each of the things you mentioned?

    – glibdud
    Mar 7 at 14:25















-4















Suppose there is a variable named a. Whats the difference between a.len and len(a)?



a could be a tuple, list or dictionary or a dataframe.










share|improve this question















closed as unclear what you're asking by deceze Mar 7 at 14:24


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 2





    Do you mean a.__len__()?

    – JETM
    Mar 7 at 14:21






  • 5





    The difference is that a.len is an attribute, and does not exist for list tuple or dictionary. len(a) calls the __len__() method of objects

    – BlueSheepToken
    Mar 7 at 14:22












  • Try it and let us know…?

    – deceze
    Mar 7 at 14:24






  • 1





    What happens when you compare the result of a.len and len(a) when a is each of the things you mentioned?

    – glibdud
    Mar 7 at 14:25













-4












-4








-4








Suppose there is a variable named a. Whats the difference between a.len and len(a)?



a could be a tuple, list or dictionary or a dataframe.










share|improve this question
















Suppose there is a variable named a. Whats the difference between a.len and len(a)?



a could be a tuple, list or dictionary or a dataframe.







python






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 7 at 14:28









ruohola

1,427319




1,427319










asked Mar 7 at 14:20









Ujjwal MahajanUjjwal Mahajan

1




1




closed as unclear what you're asking by deceze Mar 7 at 14:24


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as unclear what you're asking by deceze Mar 7 at 14:24


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2





    Do you mean a.__len__()?

    – JETM
    Mar 7 at 14:21






  • 5





    The difference is that a.len is an attribute, and does not exist for list tuple or dictionary. len(a) calls the __len__() method of objects

    – BlueSheepToken
    Mar 7 at 14:22












  • Try it and let us know…?

    – deceze
    Mar 7 at 14:24






  • 1





    What happens when you compare the result of a.len and len(a) when a is each of the things you mentioned?

    – glibdud
    Mar 7 at 14:25












  • 2





    Do you mean a.__len__()?

    – JETM
    Mar 7 at 14:21






  • 5





    The difference is that a.len is an attribute, and does not exist for list tuple or dictionary. len(a) calls the __len__() method of objects

    – BlueSheepToken
    Mar 7 at 14:22












  • Try it and let us know…?

    – deceze
    Mar 7 at 14:24






  • 1





    What happens when you compare the result of a.len and len(a) when a is each of the things you mentioned?

    – glibdud
    Mar 7 at 14:25







2




2





Do you mean a.__len__()?

– JETM
Mar 7 at 14:21





Do you mean a.__len__()?

– JETM
Mar 7 at 14:21




5




5





The difference is that a.len is an attribute, and does not exist for list tuple or dictionary. len(a) calls the __len__() method of objects

– BlueSheepToken
Mar 7 at 14:22






The difference is that a.len is an attribute, and does not exist for list tuple or dictionary. len(a) calls the __len__() method of objects

– BlueSheepToken
Mar 7 at 14:22














Try it and let us know…?

– deceze
Mar 7 at 14:24





Try it and let us know…?

– deceze
Mar 7 at 14:24




1




1





What happens when you compare the result of a.len and len(a) when a is each of the things you mentioned?

– glibdud
Mar 7 at 14:25





What happens when you compare the result of a.len and len(a) when a is each of the things you mentioned?

– glibdud
Mar 7 at 14:25












0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page