






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







10?: ran-dom.randint(1,10)
Which of the following functions is the correct implementation of is_super-man?: def is_superman(is_bird, is_plane): return not is_bird and not is_plane
my_list = [...] num = 0 for thing in my_list: num = num - thing print (num): 5, -10, 6
result += i print(result): 10
52.. Which of the following returns a random number between 1 and 99?: ran-dom.randint(1,99)
} REPEAT UNTIL(condition) {
} Consider the following program, which is intended to print the sum of all the positive integers up to number. sum • 0 REPEAT number TIMES { sum • sum + number } DISPLAY sum Which of the following best describes the behavior of this program?: The program does not work as intended but rather it displays the number squared.