What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-07 09:02:02
python fastest fibonacci
#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-09-04 11:39:01
how to make a dice program in python
import random run = 1 level = 0 while(run == 1): print("**ROUND " + str(level) + "**") print("player 1: ",random.randint(0, 6)) print("player 2: ",random.randint(0, 6)) run = int(inp... Add solution -
Python 2021-09-03 23:16:02
atm python program
# ATM Processes while True: # Reading id from user id = int(input("\nEnter account pin: ")) # ... Add solution -
Python 2021-09-03 04:22:01
recalling a function in python
# defining a function with no input values def function(): print("test") # recalling function above function() #or # defining a function with two input values def function(input1, input2): print(input1) print(input2) # recalling the func... Add solution -
Python 2021-09-01 06:38:03
python lottery simulation
import random correct = 0 total = 0 run = 1 howmany = int(input("How many correct guesses should there be? (0-6) ")) if howmany < 0: print("That was below 0.") quit() elif howmany > 6: print("That was over 6.&... Add solution -
Other 2021-09-01 05:27:02
java.lang.NumberFormatException: For input string: ""
"N/A" is not an integer. It must throw NumberFormatException if you try to parse it to an integer. Check before parsing or handle Exception properly. Exception Handling try{ int i = Integer.parseInt(input); } catch(NumberFormatException e... Add solution
Best helpers
Ranking is empty