LinkedIn Python Skill Assessment Quiz Answers

Suppose you have a string variable defined as y=”stuff;thing;junk;”. What would be the output from this code?

Latest Update on 25th January, 2022 by Certification Course Answers

Suppose you have a string variable defined as y=”stuff;thing;junk;”. What would be the output from this code?

Z = y.split(‘;’)
len(z)
  1.  17
  2.  4
  3.  0
  4.  3

Correct Answer:

  •  4

Explanation:

y=”stuff;thing;junk”
	len(z) ==> 3

y=”stuff;thing;junk;”
	len(z) ==> 4

Latest Updates

No posts found in this category.