Looking for Python Fundamentals test answers and solutions? Browse our comprehensive collection of verified answers for Python Fundamentals at softserve.academy.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
What does the following print to the console.
word = ""
counter = 0
letters = ["c", "a", "r"]
while counter < len(letters):
word = word + letters[counter]
counter = counter + 1
print(word)
What is the output of the following nested loop
numbers = [10, 20]
items = ["Chair", "Table"]
for x in numbers:
for y in items:
print(x, y)
What is the value of x
x = 0
while (x < 100):
x+=2
print(x)
What is the value of the var after the for loop completes its execution
var = 10
for i in range(10):
for j in range(2, 10, 1):
if var % 2 == 0:
continue
var += 1
var+=1
else:
var+=1
print(var)
What is the output of the following nested loop
for num in range(10, 14):
for i in range(2, num):
if num%i == 1:
print(num)
break
Select which is true for for loop
What is the output of the following range() function
for num in range(2,-5,-1):
print(num, end=", ")
Match sentences with the appropriate keywords.
What will the following code print?