What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-11 13:33:02
ipaddress in python
# Python 3 has a std lib # module for working with # IP addresses: >>> import ipaddress >>> ipaddress.ip_address('192.168.1.2') IPv4Address('192.168.1.2') >>> ipaddress.ip_address('2001:af3::') IPv6Address('2001:af3::') # Le... Add solution -
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 -
Python 2021-09-10 15:03:02
download python
Here is a basic Python function print('Hello') 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 -
Best helpers
Ranking is empty