Multiplication Chart Python || Generators || Python 

In this we are going to see how to print table or Multiplication Chart Python, using Generators in Python Programming Language.


def table(n):
    for i in range(1, 11):
        yield n*i
        i = i+1

for i in table(15):
    print(i)

# Coded By Dhiraj Shelke

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post