What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-27 21:25:09
python odd or even
# Python program to check if the input number is odd or even. # A number is even if division by 2 gives a remainder of 0. # If the remainder is 1, it is an odd number. num = int(input("Enter a number: ")) if (num % 2) == 0: print("{0} i... Add solution -
Python 2022-03-16 14:25:13
Write a program to take input Dividend and Divisor and print its Quotient and Reminder in python
# Write a program to take input Dividend and Divisor and print its Quotient and Reminder print("This is a simple calculator program which only divides.") did = int(input("Pls enter the value of your divided in numbers:")) dir = int(in... Add solution -
Python 2022-03-10 19:20:43
ecuaciones de segundo grado con phyton
from math import sqrt A = int(input("Ingrese el coeficiente de la variable cuadrática\n")) B = int(input("Ingrese el coeficiente de la variable lineal\n")) C = int(input("Ingrese el término independiente\n")) x... Add solution -
Python 2022-03-09 10:20:03
combination of 1 2 3 4 5 python
a=int(input("Enter first number:")) b=int(input("Enter second number:")) c=int(input("Enter third number:")) d=[] d.append(a) d.append(b) d.append(c) for i in range(0,3): for j in range(0,3): for k in range... Add solution -
Python 2022-03-06 04:25:04
how to get matrix element in the form of matrix in python
# 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 2022-03-02 21:20:06
encoding and decoding in python
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w'... Add solution -
Other 2022-03-02 21:05:06
calendar library in python
please check out my video also - https://www.youtube.com/watch?v=ZA3XAZ-dB5M&t=9s please subscribe my channel - https://bit.ly/2Me2CfB # importing the calendar module import calendar #taking input of year from the user y = int(input("ENTER THE ... Add solution -
Python 2022-02-28 01:10:22
fibo with for loop 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