What do you want to save?
Add Code snippet
New code examples
-
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-18 16:26:31
how to print the fibonacci sequence in python 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 -
Other 2021-11-15 17:41:12
what are items() for a dictionary in python?
# Python program to show working # of items() method in Dictionary # Dictionary with three items Dictionary1 = { 'A': 'Geeks', 'B': 4, 'C': 'Geeks' } print("Dictionary items:") # Printing all the item... Add solution -
Python 2021-11-14 23:28:16
finding odd even python
# 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