What will be the output of the following code?
x= ['3', '2', '5']
y= ' '
while x:
y= y+x [ -1]
x= x[: len (x) -1]
print (y)
print (x)
print (type (x), type (y))
Answers
Answered by
0
Explanation:
If the issue is how to get the text marks positioned on their respective segments, I usually write a python function to calculate the midpoints of each segment. Then, I add a column to my DataFrame to use as the position of the text mark (so the X position in this case). You can change the align property of the text mark to shift the marks to the right or left.
Similar questions
English,
2 months ago
Social Sciences,
2 months ago
English,
2 months ago
CBSE BOARD XII,
9 months ago
English,
9 months ago
Political Science,
9 months ago