def generator_Magic(n1):
# the value starts from 3 and m is formula for constant,
#for generator yield should use
for a in range(3,n1+1):
m=a*(a**2+1)/2
yield m
# Write your code here
if __name__ == '__main__':
This blog has content related to python programing language and Automation with python and hacker rank solutions , leet code solution
Comments
Post a Comment