What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-27 15:55:01
how to return Fibbonaci(n) 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 -
C# 2022-02-18 14:30:06
how to drag a 2d rigidbody in unity
// add this to your player. Make sure there is a rigidbody2d attached to it. private Vector2 direction; public float force = 1000; private Rigidbody2D r; void Start () { r = transform.GetComponent <Rigidbody2D> (); } void Update { if (I... Add solution -
Python 2022-02-15 09:30:14
how to use try except in while loop in python
while True: try: num = int(input("Enter an int: ")) except Exception as e: print(e) else: print("Thank you for the integer!") break# Enter an int: a# invalid literal for int() with base 10: 'a'# Enter an int: 3# Thank yo... Add solution -
Python 2022-02-14 18:25:48
input in python
name = input("What is your name?\n") # Asks the user 'What is your name?' and stores it in the 'name' variable print("You said your name was " + name) number = int(input("Please select a random number:\n")) # Will get input... Add solution -
Python 2022-02-12 01:10:15
snake water gun game in python
# Snake water gun game in python ''' Snake vs. Water: Snake drinks the water hence wins. Water vs. Gun: The gun will drown in water, hence a point for water Gun vs. Snake: Gun will kill the snake and win. In situations where both players choose the same ... Add solution -
Python 2022-02-04 11:55:01
s=0 def sum(x,y): n=int(input("enter no. of terms") for i in range(n): l=int(input("enter no.")) s=s+l print(s) sum()
s=0 def sum(x,y): n=int(input("enter no. of terms") for i in range(n): l=int(input("enter no.")) s=s+l print(s) sum() Add solution
Best helpers
Ranking is empty