>>> a = {1, 2, {3, 4}}
>>> len(a)
- 3
- 4
- error
Write your answer in comment with explaination
>>> a = {1, 2, {3, 4}}
>>> len(a)
Write your answer in comment with explaination
For further actions, you may consider blocking this person and/or reporting abuse
Use any Linode offering to create something unique or silly in the DEV x Linode Hackathon 2022 and win the Wacky Wildcard category.
→ Join the Hackathon <-
Pedro Aravena -
Roy -
Gus Pear 🍐 -
Dennis Whalen -
Once suspended, lakshyatyagi24 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, lakshyatyagi24 will be able to comment and publish posts again.
Once unpublished, all posts by lakshyatyagi24 will become hidden and only accessible to themselves.
If lakshyatyagi24 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Lakshya Tyagi.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community 👩💻👨💻 safe. Here is what you can do to flag lakshyatyagi24:
Unflagging lakshyatyagi24 will restore default visibility to their posts.
Top comments (5)
Bad order of answers. "3" is ambiguous.
would be much better
Correct
A is parsed as set with three values: two integers and another set. Thus it gives a Len of 3
3