What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-13 01:49:04
python fibonacci sequence for loop
#Python program to generate Fibonacci series until 'n' value n = int(input("Enter the value of 'n': ")) a = 0 b = 1 sum = 0 count = 1 print("Fibonacci Series: ", end = " ") while(count <= n): print(sum, end = " &quo... Add solution -
Python 2021-10-12 22:48:03
Python program to find H.C.F of two numbers
#Python program for calculating the H.C.F. of two numbers # define a function def calc_the_hcf(x, y): #Select the smaller number if x > y: smaller = y else: smaller = x for i in range(1, smaller+1): if((x % i == 0)... Add solution -
Python 2021-10-10 10:49:10
greatest of three numbers in python
# Python program to find the largest number among the three input numbers # take three numbers from user num1 = float(input("Enter first number: ")) num2 = float(input("Enter second number: ")) num3 = float(input("Enter third numb... Add solution -
Python 2021-10-10 05:16:03
fabbinacci series program in python
#Python program to generate Fibonacci series until 'n' value n = int(input("Enter the value of 'n': ")) a = 0 b = 1 sum = 0 count = 1 print("Fibonacci Series: ", end = " ") while(count <= n): print(sum, end = " &quo... Add solution -
Python 2021-10-10 01:00:05
python see if a number is greater than other
# Python program to find the largest number among the three input numbers # take three numbers from user num1 = float(input("Enter first number: ")) num2 = float(input("Enter second number: ")) num3 = float(input("Enter third numb... Add solution -
Python 2021-10-07 07:46:01
python code to print fibonacci series
#Python program to generate Fibonacci series until 'n' value n = int(input("Enter the value of 'n': ")) a = 0 b = 1 sum = 0 count = 1 print("Fibonacci Series: ", end = " ") while(count <= n): print(sum, end = " &quo... Add solution -
Python 2021-10-07 05:55:03
fibonacci sequence script python
#Python program to generate Fibonacci series until 'n' value n = int(input("Enter the value of 'n': ")) a = 0 b = 1 sum = 0 count = 1 print("Fibonacci Series: ", end = " ") while(count <= n): print(sum, end = " &quo... Add solution -
Python 2021-10-06 12:32:03
python recursive fibonacci function
# Python program to display the Fibonacci sequence def recur_fibo(n): if n <= 1: return n else: return(recur_fibo(n-1) + recur_fibo(n-2)) nterms = 10 # check if the number of terms is valid if nterms <= 0: print("Plese... Add solution