What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-22 15:07:02
typing test python
How to test Typing Speed using Python? Difficulty Level : Basic Last Updated : 05 Sep, 2020 Prerequisites: Python GUI – tkinter #We will create a program test the typing speed of the user with a basic GUI application using Python language. Here th... Add solution -
Other 2021-09-22 14:54:04
difference between range and xrange in python
-- In Python 2.x: -- range() creates a list, so if you do range(1, 10000000) it creates a list in memory with 9999999 elements. This will become an expensive operation on very large ranges. xrange() is a sequence object that evaluates lazily. It is much... Add solution -
Python 2021-09-22 09:32:02
takewhile iterator
# Python code to demonstrate the working of # takewhile() import itertools # initializing list li = [2, 4, 6, 7, 8, 10, 20] # using takewhile() to print values till condition is f... Add solution -
Other 2021-09-22 04:53:04
openssh exploit
┌─[justin@parrot]─[~/projects/CVE-2018-15473-Exploit] └──╼ $python sshUsernameEnumExploit.py --help usage: sshUsernameEnumExploit.py [-h] [--port PORT] [--threads THREADS] ... Add solution -
Python 2021-09-21 23:05:02
permutations in python
# A Python program to print all permutations using library function from itertools import permutations perm = permutations([1, 2, 3]) for i in list(perm): print (i) # (1, 2, 3) # (1, 3, 2) # (2, 1, 3) # (2, 3, 1) # (3, 1, 2) # (3, 2, 1) Add solution -
Other 2021-09-17 12:26:03
collection.sort time complexity
t array. It is well-suited to merging two or more sorted arrays: simply concatenate the arrays and sort the resulting array. The implementation was adapted from Tim Peters's list sort for Python ( TimSort). It uses techiques from Peter McIlroy's "Op... Add solution -
Other 2021-09-13 14:07:02
save document dynamo revit
# Enable Python support and load DesignScript library import clr # Import DocumentManager clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager # The inputs to this node will be stored as a... Add solution -
Python 2021-09-13 12:07:03
python for data analysis
You could indeed use python as a data analysing tool. There's a lot of python apps you can install by the pip install command. Examples of data analysing tools are: - pandas - scipy - numpy - matplotlib And there's probably more that I didn't list. Add solution