Skip to main content
Question

What is the output of the following?

  • January 15, 2021
  • 1 reply
  • 15 views

x = [‘ab’, ‘cd’]

print(len(list(map(list, x))))

 

Source: Python programming tutorial

1 reply

alexlynch3450
Contributor
Forum|alt.badge.img+14

It would result in syntax error.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings