PYTHON PROGRAMMING TUTORIAL: FOR LOOP STATEMENT

Words
138
Reading
1 min
9y
Listen to this post
~1 min

What Will I Learn?

  • You will learn about the for loop statement in python.
  • You will learn iterating_var in sequence
  • You will learn Iterating by Sequence Index

Requirements

  • Basic Knowledge about Python Programming
  • Pycharm IDE

Difficulty

  • Basic
  • Intermediate

Description

we have two types of loops in Python, and they are the for and while loop. The For loops can iterate over a sequence of numbers using both the "range" and "xrange" functions.
The range function returns a new list with numbers of that specified range, while the xrange returns an iterator.

for loop.JPG

Video Tutorial

Curriculum

Here are the links to my previous tutorials on Python programming.



Posted on Utopian.io - Rewarding Open Source Contributors