What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-31 15:50:01
Write a pseudo code for generating a fibonacci series starting with 0 and 1 for 10 values using while 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-08-31 12:49:02
write a program to input a number and display its double and half values using shift operator in python
# Write a program to input a number and display its Double and Half values using SHIFT operator. print("Hi \nThis is a basic calculator \nwhich doubles or divides into half the value entered in it") i = int(input("pls enter your number:\n&... Add solution -
Python 2021-08-30 14:00:02
python matrix calculation
# A basic code for matrix input from user R = int(input("Enter the number of rows:")) C = int(input("Enter the number of columns:")) # Initialize matrix matrix = [] print("Enter the entries rowwise:") # For use... Add solution -
Python 2021-08-30 13:16:01
sort half in ascendng and descending array
take user inputs for Month and year in integer Month = int(input('Enter the Month :')) Year = int(input('Enter the Year :')) #Check condition for Month and leap year if(Month == 2 and (Year%4 == 0) or ((Year%100 == 0) and (Year%400 == 0))): #if condit... Add solution -
Python 2021-08-28 05:22:02
fibonacci sequence in python 2.7
#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-08-28 04:51:01
fibonacci series print
# Program to display the Fibonacci sequence up to n-th term nterms = int(input("How many terms? ")) # first two terms n1, n2 = 0, 1 count = 0 # check if the number of terms is valid if nterms <= 0: print("Please enter a positive in... Add solution -
Python 2021-08-28 02:15:02
gaussian elimination python without library
# Importing NumPy Library import numpy as np import sys # Reading number of unknowns n = int(input('Enter number of unknowns: ')) # Making numpy array of n x n+1 size and initializing # to zero for storing augmented matrix a = np.zeros((n,n+1)) # Mak... Add solution
Best helpers
Ranking is empty