PYTHON PROGRAMMING TUTORIAL: FOR LOOP STATEMENT

in #utopian-io7 years ago (edited)

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

Sort:  

Thanks for sharing knowledge

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @creon I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.029
BTC 61199.00
ETH 2393.68
USDT 1.00
SBD 2.56