What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-30 19:31:20
how to convert dollars to rupees and rs to dollar in python
print('hello welcome to converter of rs to dollar and dollar to rs') print() carry_on = True while carry_on: try: ask = int(input('write what do you want to do find? for finding dollar to rs type "1" or to find rs to dollar write... Add solution -
Python 2022-01-30 17:21:17
fibonacci numbers function python print
#Learnprogramo Number = int(input("How many terms? ")) # first two terms First_Value, Second_Value = 0, 1 i = 0 if Number <= 0: print("Please enter a positive integer") elif Number == 1: print("Fibonacci sequence upto",Num... Add solution -
Other 2022-01-30 11:30:22
Raycasting to find mouseclick on Object in unity 2d games
RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.mousePosition), Vector2.zero); if(hit.collider != null) { Debug.Log ("Target Position: " + hit.collider.gameObject.transform.position); } Add solution -
Python 2022-01-24 17:42:20
python how to take the last digit of a number
# Python Program to find the Last Digit in a Number number = int(input("Please Enter any Number: ")) last_digit = number % 10 print("The Last Digit in a Given Number %d = %d" %(number, last_digit)) Add solution -
Python 2022-01-23 03:41:17
how to use if else to prove a variable even or odd in python
#To check if the given number is even or odd num = int(input("Enter a number: ")) if (num % 2) == 0: print("{0} is Even".format(num)) else: print("{0} is Odd".format(num)) Add solution
Best helpers
Ranking is empty