Horje
finbbonacci in python Code Example
finbbonacci in python
#Learnprogramo
Number = int(input("How many terms? "))
# first two terms
First_Value, Second_Value = 0, 1
i = 0
if Number <= 0:
print("Please enter a positive integer")
elif Number == 1:
print("Fibonacci sequence upto",Number,":")
print(First_Value)
else:
print("Fibonacci sequence:")
while i < Number:
print(First_Value)
Next = First_Value + Second_Value
# update values
First_Value = Second_Value
Second_Value = Next
i += 1




Python

Related
how to update phyton to phycram Code Example how to update phyton to phycram Code Example
python script that turns bluetooth on Code Example python script that turns bluetooth on Code Example
queryset.raw() in django rest framework joining tables Code Example queryset.raw() in django rest framework joining tables Code Example
Gets an existing SparkSession or, if there is no existing one, creates a new Code Example Gets an existing SparkSession or, if there is no existing one, creates a new Code Example
Percentage change between the current and the prior element. Code Example Percentage change between the current and the prior element. Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12