length.md

March 6, 2022 ยท View on GitHub

Length

  1. How to print the length of the string 'abcd' ?
  2. How to print the length of the variable x (x is the list [5, 30 ,2]) ?
  3. What would be the length of following dictionary {'x': 3, 'y': 3} ?
  4. What would be the length of the tuple ('x', 'y') ?