5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

IT Skills     Software Design and Development     Python     Intro to Python For Java/C++ Developers
A handy procedure in Python for controlling the execution order of program statements is to implement branching operations using conditional statements, such as 'if' and 'else'. In this course, you'll learn how to use statements, loops, and comprehensions.
First, you'll implement the conditional if statement. Then you'll use the else and elif statements.
Moving on, you'll use Python's looping constructs, including the for-loop to iterate over elements in complex data types as well as over lists, tuples, and dictionaries. You'll use the while-loop and the break, continue, and pass keywords to further control loop execution.
Finally, you'll implement list comprehension in Python, an elegant and efficient way of generating lists using 'for loops.'
When you're finished with this course, you'll be able to write conditional statements in your code and perform looping and branching operations using for and while loops.

Objectives

Python Development: Working with If Statements, Loops, & Comprehensions

  • discover the key concepts covered in this course
  • implement branching code blocks using if statements
  • implement branching using else blocks and ternary if expressions
  • implement branching using elif blocks
  • iterate over sequences using for loops
  • iterate over dictionaries using for loops
  • use nested for loops for multiple looping operations
  • perform looping operations using while loops
  • control loop iteration using break, continue, and pass
  • generate lists using list comprehension
  • generate lists using if conditions within list comprehension
  • implement generator and dictionary comprehension
  • summarize the key concepts covered in this course