Python Programs
# Fibonacci series
# Using Multiple assignments and keyword argument end
# the sum of two elements defines the next
a, b = 0, 1
while a < 10:
print(a, end=' ')
a, b = b, a+b
# Using Multiple assignments and keyword argument end
# the sum of two elements defines the next
a, b = 0, 1
while a < 10:
print(a, end=' ')
a, b = b, a+b
Comments
Post a Comment