What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-05 08:20:07
formula for compounding interest in python
P = int(input("Enter starting principle please. ")) n = int(input("Enter number of compounding periods per year. ")) r = float(input("Enter annual interest rate. e.g. 15 for 15% ")) y = int(input("Enter the amount of yea... Add solution -
Java 2021-10-05 00:26:04
program to calculate and return the sum of distance between the adjacent numbers in an array of positive integer java
def findTotalSum(n,numbers,pos): total = 0 for i in range(pos-1,n-1): total+= abs(numbers[i]-numbers[i+1])  ... Add solution -
Python 2021-10-04 16:43:04
python find smallest value in list
#Exercise 3 - Find the largest and smallest number in a list thislist = input("How many numbers do you want to enter:") newlist = [] for x in range (0, int(thislist)): owl = int(input("Please Enter your numbers:")) newlist.append(ow... Add solution -
Python 2021-10-04 00:31:03
how to do guess the number in python
import random hidden = random.randrange(1, 201) print(hidden) guess = int(input("Please enter your guess: ")) if guess == hidden: print("Hit!") elif guess < hidden: print("Your guess is too low") else: pr... Add solution
Best helpers
Ranking is empty