In this video we go over python iterators! Iterators allow you to loop over lists or other data structures easily calling the next value when you need it using the next keyword. Another great way to use iterators is to create one when you need create a counter or get the next value based off of some criteria - they don't even need a data structure to base them off of! These are fantastic tools for random number generators, level counters, next dates, etc. Here we will make an awesome counter that will be able to count _forever*_!
Python Classes: https://www.w3schools.com/python/pyth...
Thanks for watching! ❤️
_* or until the heat death of the universe..._
Timestamps:
00:00 Intro
00:28 Iterator with Simple List
02:14 Iterator Class (powerful)
06:42 Outro
#coding #python #iterators #counterclass