Z = y.split(‘;’)
len(z)
- 17
- 4
- 0
- 3
Correct Answer:
- 4
Explanation:
y=”stuff;thing;junk”
len(z) ==> 3
y=”stuff;thing;junk;”
len(z) ==> 4
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)
Correct Answer:
Explanation:
y=”stuff;thing;junk”
len(z) ==> 3
y=”stuff;thing;junk;”
len(z) ==> 4
Latest Updates
No posts found in this category.