Skip to main content
Question

What is the output of the following?

  • January 15, 2021
  • 1 reply
  • 17 views

x = [‘ab’, ‘cd’]

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

 

Source: Python programming tutorial

1 reply

alexlynch3450
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 68 replies
  • January 15, 2021

It would result in syntax error.