Correct Answer: 2.0
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Python Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Python MCQ Questions
Python is a garbage collected language. The CPython implementation primarily accomplishes this memory management via _____.
you can create a list of the values in a dict sorted by the value's related keys
In Python 2.x, 'round(1)' and 'abs(-1)' will produce identical results.
Correct way to get the exception as variable in except statement?
How do you increase a datetime variable called 'dt' with three days?
This question is based on the graphic shown below. If the id's of 'a1', 'a2' and 'a3' in the given Python code are 3012123901, 3012123902 and 3012123903 respectively, then what will be the output of the code?
This question is based on the graphic shown below. Consider the Python code in Figure 1 of the given image and choose its correct output from Figure 2.
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=' ')
Output of the following program? def country(*abc): if len(abc) == 1: item = abc[0] def f(obj): return obj[item] else: def f(obj): return tuple(obj[item] for item in abc) return f selection = [] selection = country(slice(2, None))('AUSTRALIA') print (selection)
Output of the following program? i = [12, 9, 14] k = [7, 16, 11] for j in i[:]: for m in k[:]: if(j%m == 0): j = j // 2 m = m / 2 print (j, m) else: j = j + m m = m - j print (j, m)