In this we are going to see a basic program about Python Loop Generator, in Python Programming Language.
def get_sequence_upto(x):
for i in range(x):
yield i
g = get_sequence_upto(10)
for i in g:
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