What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-11 13:23:02
how to select python 3 interpreter in linux
How to set Python 3 as default interpreter in Linux. Open terminal and write “alias python=python3” and hit enter. You are done! Now check your default interpreter version by simply \ run “python -V” command in the terminal. Add solution -
Python 2021-09-11 13:03:02
what is tuple in python
# A tuple is a sequence of immutable Python objects. Tuples are # sequences, just like lists. The differences between tuples # and lists are, the tuples cannot be changed unlike lists and # tuples use parentheses, whereas lists use square brackets. tup1 =... Add solution -
Python 2021-09-11 04:36:02
python numpy floor
# Python program explaining # floor() function import numpy as np in_array = [.5, 1.5, 2.5, 3.5, 4.5, 10.1] print ("Input array : \n", in_array) flooroff_values = np.floor(in_array) print ("\nRounded values : \n", flooroff_val... Add solution -
Python 2021-09-11 04:02:04
Triangle Quest
# Triangle Quest in Python - Hacker Rank Solution # Python 3 for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also # Triangle Quest in Python - Hacker Rank Solution START print(int(i * 10**i / 9)) ... Add solution -
SQL 2021-09-10 11:55:03
how to take backup of mysql database using python
#!/usr/bin/python ########################################################### # # This python script is used for mysql database backup # using mysqldump and tar utility. # # Written by : Rahul Kumar # Website: http://tecadmin.net # Created date: De... Add solution -
Python 2021-09-10 01:57:01
odd or 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 -
Python 2021-09-09 23:11:05
how to use tupels python
# A tuple is a sequence of immutable Python objects. Tuples are # sequences, just like lists. The differences between tuples # and lists are, the tuples cannot be changed unlike lists and # tuples use parentheses, whereas lists use square brackets. tup1 =... Add solution