What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-06 07:45:10
how to make a python file run in the background
> pythonw script.py Add solution -
Python 2022-03-06 03:35:38
python find factors of a number
# Python Program to find the factors of a number # This function computes the factor of the argument passed def print_factors(x): print("The factors of",x,"are:") for i in range(1, x + 1): if x % i == 0: print(... Add solution -
Python 2022-03-05 09:35:20
tuples 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 2022-03-04 09:40:05
get py version
##in your console write: python --version python --version Add solution -
Python 2022-03-02 09:25:21
python regex from list of string that contains substring
# Python3 program to Filter list of # strings based on another list import re def Filter(string, substr): return [str for str in string if re.match(r'[^\d]+|^', str).group(0) in subs... Add solution
Best helpers
Ranking is empty