Find the output of the following Python code and choose the correct answer from the given options.
ast = [2, 1, 3, 5, 3, 8]
ast.sort()
print (end="")
for i in range(0, len(ast)):
print(ast[i]*2, end=" ")
print("\r")
ast.reverse()
print (end="")
for i in range(1, len(ast)):
print(ast[i]+3, end=" ")
Correct Answer:
2 4 6 6 10 16
8 6 6 5 4
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions