What do you want to save?
Add Code snippet
New code examples
-
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-11 09:20:04
print input in python
# Take input from user and store it as a variable. E.g. I store the input as 'user_inp' user_inp = input("Enter anything you want: ") #Now you can print it by using print function print("You entered ", user_inp) # If you don't want &q... Add solution -
Python 2022-02-03 14:42:58
dump data to pickle python
import pickle # take user input to take the amount of data number_of_data = int(input('Enter the number of data : ')) data = [] # take input of the data for i in range(number_of_data): raw = input('Enter data '+str(i)+' : ') data.append(raw) #... Add solution -
Python 2021-11-20 20:14:18
python basic programs
# Program to check if a number is prime or not num = 407 # To take input from the user #num = int(input("Enter a number: ")) # prime numbers are greater than 1 if num > 1: # check for factors for i in range(2,num): if (num % i... Add solution -
TypeScript 2021-11-19 20:45:17
Write a Python program to create a file containing student records where each record contain rollno and marks in 3 subjects separated by a comma (marks to be considered as list of 3 values).
##Write a Python program to create a file of elements of any data type (mixed data type, i.e. some elements maybe of type int, some elements of type float and some elements of type string). Split this file into three file containing elements of same dat... Add solution -
Python 2021-11-19 13:28:15
angstrong numebr ron python
# Python program to check if the number is an Armstrong number or not # take input from the user num = int(input("Enter a number: ")) # initialize sum sum = 0 # find the sum of the cube of each digit temp = num while temp > 0: digit = t... Add solution -
Python 2021-11-17 17:16:11
python coding examples
# Program to check if a number is prime or not num = 407 # To take input from the user #num = int(input("Enter a number: ")) # prime numbers are greater than 1 if num > 1: # check for factors for i in range(2,num): if (num % i... Add solution -
Other 2021-11-17 10:44:15
weather the given number is prime or not in R
# Program to check if the input number is prime or not # take input from the user num = as.integer(readline(prompt="Enter a number: ")) flag = 0 # prime numbers are greater than 1 if(num > 1) { # check for factors flag = 1 for(i in 2:(num-1))... Add solution -
Python 2021-11-06 06:30:16
create file and write numbers to file in python
##Write a Python program to create a file of numbers ##by taking input from the user and ##then display the content of the file. ##You can take input of non-zero numbers, ##with an appropriate prompt, from the user until the user enters a zero #to cr... Add solution
Best helpers
Ranking is empty