LinkedIn Python Skill Assessment Quiz Answers

When would you use a for loop?

Latest Update on 24th January, 2022 by Certification Course Answers

When would you use a for loop?

  1.  Only in some situations, as loops are used only for certain type of programming.
  2.  When you need to check every element in an iterable of known length.
  3.  When you want to minimize the use of strings in your code.
  4.  When you want to run code in one file for a function in another file.

Correct Answer:

  •  When you need to check every element in an iterable of known length.

Latest Updates

No posts found in this category.