Course details

Conditional Statements & Loops: The Basics of for Loops in Python

Conditional Statements & Loops: The Basics of for Loops in Python


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

Loops are one way to perform the same operations repeatedly in a program. For loops are the control structure to use when the repeated operations are performed on a sequence such as a list or a tuple. In this 9-video course, you will explore different ways to iterate over a sequence using for loops. Key concepts covered in this course include how to use for loops to process elements in a list and characters in a string; and how to code for loops to iterate over values in a tuple and the keys and values in a dictionary. Next, learn the function of associating an else block with a Python for loop; include if-else statements and other for loops within a for loop; how to generate a sequence of consecutive integers with the range function; and how to use the range function to iterate over a large range of values and apply it within nested for loops. Finally, observe how to write for loops in order to iterate over 1-dimensional and 2-dimensional sequences.



Expected Duration (hours)
1.0

Lesson Objectives

Conditional Statements & Loops: The Basics of for Loops in Python

  • discover the key concepts covered in this course
  • use for loops to process the elements in a list and the characters in a string
  • code for loops to iterate over values in a tuple and the keys and values in a dictionary
  • recognize the function of associating an else block with a Python for loop
  • include if-else statements and other for loops within a for loop
  • generate a sequence of consecutive integers with the range function
  • define the interval in a sequence of increasing and decreasing integers using the range function
  • use the range function to iterate over a large range of values and apply it within nested for loops
  • write for loops in order to iterate over 1-dimensional and 2-dimensional sequences
  • Course Number:
    it_pycslpdj_02_enus

    Expertise Level
    Beginner