Sunday, March 3, 2019

Iter Function - Python3

clg=['book','pen','girls','boys','chai']
clg_i=iter(clg)
print (next(clg_i))
print (next(clg_i))
print (next(clg_i))
print (next(clg_i))
print (next(clg_i))

ScreenShot:




No comments:

Post a Comment