In: Computer Science
# Q.4 performing a addition of three number
print("Please enetr three numbers")
a=int(input())
b=int(input())
c=int(input())
summ = (lambda x, y, z: (x + y) + z)(a, b, c)
print("sum is:",summ)
#Q.5 Python program to print first n Fibonacci numbers
def printFibonacciNumbers(n):
f1 = 0
f2 = 1
if (n < 1):
return
for x in range(0, n):
print(f2, end = " ")
next = f1 + f2
f1 = f2
f2 = next
print("\nFirst 6 numbes of Fibonacci series are: ")
printFibonacciNumbers(6)
I hope it helps.