Nov-12-2022, 06:49 PM
i wrote the following code:
while True: howMany = int(input("how many numbers do you want ?")) def fibo(): a = 0 b = 1 count = 0 while count < howMany: print(a) c = a + b a = b b = c count += 1 number_exe = int(input("choose a number bellow or above 5: ")) if number_exe > 5: fibo() else: print("number is smaller than 5, fibo() function didn't execute")i don't know if there had to be a function written for it, but there's my first function :)