0 of 7 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 7 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
You have the potential to do better! 🙂
If you found a concept confusing on this page then please leave a comment below asking for clarity.
Try re-reading the tutorial on this page before you retake this quiz!
Good work on clearing this quiz!
Outstanding work! You have mastered this lesson. Onward to the next one!
What is the output of the following?
x = ‘abcd’
for i in range(len(x)):
   i[x].upper()
print (x)
What is the output of the following?
for i in range(0):
   print(i)
What is the output of the following?
      for i in range(2.0):
                  print(i)
How would you create a loop to iterate over the contents of the list `mylist = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] and print out each element ?
What is the output of the following?
for i in range(int(2.0)):
  print(i)
What is the output of the following?
x = 2
for i in range(x):
   x += 1
   print (x)
What is the output of the following?
x = 2
for i in range(x):
   x -= 2
   print (x)