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
Biology,
2 months ago
Biology,
2 months ago
CBSE BOARD XII,
10 months ago
English,
10 months ago
Political Science,
10 months ago