What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-03 09:38:08
rotate matrix 90 degrees clockwise in python
#The program defines the square matrix 90 degrees clockwise direction. m,n = map(int,input().split()) #m,n are the number of rows and columns. #m = int(input('rows')) l = [] for i in range(m): x = list(map(int,input().split())) #for taking the rows a ... Add solution -
Python 2021-10-02 05:28:02
append and delete hackerrank solution in python
if __name__ == '__main__': s = input().strip() t = input().strip() k = int(input().strip()) min_len = min(len(s), len(t)) first_different_index = min_len for i in range(min_len): if s[i] != t[i]: first_differen... Add solution -
Python 2021-10-02 02:55:03
fibonacci series python using function
#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-01 11:54:02
guessing game in python
# updated version import random # for instructions so that the user understands def instructions(): print("Welcome to the guessing game you will have 3 tries to pick a number 1-10") print("Good luck btw it's all random") inst... Add solution -
Python 2021-09-29 21:33:02
programm the fibonacci sequence
#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
Best helpers
Ranking is empty