MCQs > IT & Programming > Python > 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=' ')

Python MCQs

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=" ")


Answer

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

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it