Remember
Register
Search With
Seek4Info.com
Programming & Software Q&A | CollectiveSolver
Questions
Tags
Users
Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.
Contact: aviboots(AT)netvision.net.il
Most popular tags
python
c
java
cpp
c#
javascript
php
vb#
typescript
nodejs
go
rust
scala
swift
kotlin
pascal
html
ruby
dart
vbnet
r
css
bootstrap
win32
groovy
winapi
sql
mysql
jquery
pascal-string
lua
winforms
kotlin-string
bash
c-string
swift-string
cpp-string
go-string
php-string
cobol
c#-string
java-string
vbnet-string
rust-string
python-string
cpp-vector
f#
opengl
scala-string
javascript-string
pascal-array
swift-array
typescript-string
c-array
php-array
javascript-array
rust-vector
typescript-array
python-list
reactjs
scala-array
c-windows
nodejs-string
go-array
kotlin-array
nodejs-array
sdl2
cpp-matrix
sdl3
c-matrix
cpp-array
c#-list
vbnet-list
pascal-matrix
go-slice
c#-array
java-array
nodejs-express
character-code-ascii-unicode
swift-matrix
c#-matrix
angularjs
transpose-matrix
binary-search-algorithm
dot-product-two-arrays
generate-random-floating-point-numbers
all-permutations-combinations
kotlin-matrix
typescript-matrix
vbnet-array
kotlin-list
longest-substring-without-repeating-characters
calculate-volume-cube
divide-given-amount-into-bills-coins
convert-decimal-number-to-rational-number
count-non-overlapping-instances-substring-in-string
print-floyds-triangle
case-insensitively-check-character-exists-in-string
calculate-area-pentagon
measure-function-execution-time
Disclosure:
My content contains affiliate links.
Recent questions tagged PYTHON
42,844
questions
55,671
answers
573
users
Recent questions tagged PYTHON
2
answers
15
views
How to generate a series of unique HEX colors in Python
asked
17 hours
ago
by
avibootz
python
python-generate-series-unique-hex-colors
generate-series-unique-hex-colors
2
answers
22
views
How to print the numbers 0 to 31 by changing 1 bit each time in Python
asked
3 days
ago
by
avibootz
python
python-print-0-31-changing-1-bit-each-time
print-0-31-changing-1-bit-each-time
1
answer
22
views
How to generate N random 1s in a zero-based matrix with Python
asked
4 days
ago
by
avibootz
python
python-generate-n-random-1-zero-based-matrix
generate-n-random-1-zero-based-matrix
1
answer
43
views
How to initialize a list with a range of numbers in Python
asked
Aug 17
by
avibootz
python
python-initialize-list-range-of-numbers
initialize-list-range-of-numbers
1
answer
52
views
How to do modulo multiplication for 64‑bit values without using BigInteger in Python
asked
Aug 16
by
avibootz
python
python-modulo-multiplication-64-bit-values-without-biginteger
modulo-multiplication-64-bit-values-without-biginteger
1
answer
62
views
How to remove every N‑th element from a list in Python
asked
Aug 15
by
avibootz
python
python-remove-every-n-element-list
remove-every-n-element-list
1
answer
52
views
How to build sparse list in Python
asked
Aug 15
by
avibootz
python
python-build-sparse-list
build-sparse-list
1
answer
62
views
How to get the first N digits of a BigInteger in Python
asked
Aug 14
by
avibootz
python
python-get-first-n-digits-biginteger
get-first-n-digits-biginteger
1
answer
68
views
How to extract and sort numbers from a string containing numbers and text in Python
asked
Aug 12
by
avibootz
python
python-extract-sort-numbers-string
extract-sort-numbers-string
1
answer
62
views
How to convert radians to degrees and degrees to radians in Python
asked
Aug 12
by
avibootz
python
python-convert-radians-degrees-degrees-radians
convert-radians-degrees-degrees-radians
1
answer
62
views
How to find the N smallest values in a 2D list in Python
asked
Aug 10
by
avibootz
python
python-find-n-smallest-values-2d-list
find-n-smallest-values-2d-list
1
answer
58
views
How to sort a list with a single loop in Python
asked
Aug 8
by
avibootz
python
python-sort-list-with-single-loop
sort-list-with-single-loop
1
answer
69
views
How to remove extra whitespace from a string in Python
asked
Aug 7
by
avibootz
python
python-remove-extra-whitespace-string
remove-extra-whitespace-string
1
answer
66
views
How to calculate the distance between two latitude-longitude points in Python
asked
Aug 7
by
avibootz
python
python-distance-between-two-latitude-longitude-points
distance-between-two-latitude-longitude-points
1
answer
56
views
How to implement the merge sort algorithm in Python
asked
Aug 5
by
avibootz
python
python-implement-merge-sort-algorithm
implement-merge-sort-algorithm
1
answer
70
views
How to remove duplicate words with Unicode characters from free‑text in Python
asked
Aug 4
by
avibootz
python
python-remove-duplicate-words-unicode-free-text
remove-duplicate-words-unicode-free-text
1
answer
72
views
How to remove duplicate words from free‑text in Python
asked
Aug 2
by
avibootz
python
python-remove-duplicate-words-from-free-text
remove-duplicate-words-from-free-text
1
answer
70
views
How to perform high‑performance reversible text compression using a word dictionary in Python
asked
Jul 31
by
avibootz
python
python-text-compression-using-word-dictionary
text-compression-using-word-dictionary
1
answer
66
views
How to traverse a list from both sides at the same time in Python
asked
Jul 31
by
avibootz
python
python-traverse-list-both-sides-same-time
traverse-list-both-sides-same-time
1
answer
67
views
How to generate random Powerball lottery numbers (pick 5 numbers from 1-69 + 1 Powerball from 1-26) in Python
asked
Jul 30
by
avibootz
python
python-generate-random-powerball-lottery-numbers-5-of-1-69-and-1-of-1-26
generate-random-powerball-lottery-numbers-5-of-1-69-and-1-of-1-26
1
answer
68
views
How to compute the total number of Powerball lottery combinations (5 out of 99 and 1 out of 26) in Python
asked
Jul 29
by
avibootz
python
python-compute-total-number-powerball-lottery-combinations-5-99-and-1-26
compute-total-number-powerball-lottery-combinations-5-99-and-1-26
1
answer
74
views
How to generate random lottery numbers for 6 numbers out of 37 and 1 power number out of 7 in Python
asked
Jul 28
by
avibootz
python
python-generate-random-lottery-numbers-for-6-out-of-37-power-1-out-of-7
generate-random-lottery-numbers-for-6-out-of-37-power-1-out-of-7
1
answer
76
views
How to compute the total number of lottery combinations for choosing 6 out of 37 and 1 power out of 7 in Python
asked
Jul 27
by
avibootz
python
python-total-lottery-combinations-choosing-6-out-of-37-power-1-out-of-7
total-lottery-combinations-choosing-6-out-of-37-power-1-out-of-7
1
answer
68
views
How to find the Nth set bit in a 64‑bit integer with Python
asked
Jul 25
by
avibootz
python
python-find-n-set-bit-in-64-bit-integer
find-n-set-bit-in-64-bit-integer
1
answer
64
views
How to find the Nth set bit in a 32‑bit integer with Python
asked
Jul 25
by
avibootz
python
python-find-n-set-bit-in-32-bit-integer
find-n-set-bit-in-32-bit-integer
1
answer
76
views
How to convert a decimal number to a rational number in Python
asked
Jul 23
by
avibootz
python
python-convert-decimal-number-to-rational-number
convert-decimal-number-to-rational-number
1
answer
65
views
How to round an integer up to the nearest multiple of 'multiple' in Python
asked
Jul 22
by
avibootz
python
python-round
python-round-integer-up-nearest-multiple-of-multiple
round-integer-up-nearest-multiple-of-multiple
1
answer
77
views
How to find the minimal possible sum of two distinct elements in a list with Python
asked
Jul 21
by
avibootz
python
python-minimal-sum-two-elements-list
minimal-sum-two-elements-list
1
answer
79
views
How to split a 32‑bit integer into its four bytes in Python
asked
Jul 20
by
avibootz
python
python-split-32-bit-integer-into-four-bytes
split-32-bit-integer-into-four-bytes
1
answer
75
views
How to split a number N into M random positive parts whose sum is exactly N in Python
asked
Jul 19
by
avibootz
python
python-split-number-n-into-m-random-parts-whose-sum-is-n
split-number-n-into-m-random-parts-whose-sum-is-n
1
answer
78
views
How to determine whether two axis‑aligned rectangles overlap in Python
asked
Jul 18
by
avibootz
python
python-determine-whether-two-axis-aligned-rectangles-overlap
determine-whether-two-axis-aligned-rectangles-overlap
1
answer
74
views
How to generate 3 no-digit repeated random integers, each with distinct digits in Python
asked
Jul 16
by
avibootz
python
generate-3-no-digit-repeated-random-integers-each-with-distinct-digits
2
answers
103
views
How to generate N random integers, each with distinct digits and exact length L in Python
asked
Jul 16
by
avibootz
python
python-generate-n-random-integers-with-distinct-digits-and-length-l
generate-n-random-integers-with-distinct-digits-and-length-l
1
answer
75
views
How to calculate the next multiple of 10 in Python
asked
Jul 15
by
avibootz
python
python-next-multiple-of-10
next-multiple-of-10
1
answer
70
views
How to use re.sub() function in Python
asked
Jul 14
by
avibootz
python
python-use-re-sub-function
use-re-sub-function
1
answer
64
views
How to use the reduce function in Python
asked
Jul 14
by
avibootz
python
python-use-reduce-function
use-reduce-function
1
answer
75
views
How to sort a string in the order: lowercase letters - uppercase letters - odd digits - even digits in Python
asked
Jul 14
by
avibootz
python
python-sort-string-order-lowercase-uppercase-odd-even
sort-string-order-lowercase-uppercase-odd-even
2
answers
89
views
How to create an alphabet rangoli (geometric and character pattern) of size N in Python
asked
Jul 13
by
avibootz
python
python-create-alphabet-rangoli
create-alphabet-rangoli
1
answer
72
views
How to get union of a set with a list in Python
asked
Jul 12
by
avibootz
python
python-union-set-with-list
union-set-with-list
1
answer
75
views
How to get union of a set with another set in Python
asked
Jul 12
by
avibootz
python
python-union-of-set-with-another-set
union-of-set-with-another-set
2
answers
111
views
How to wrap a string into lines of width w in Python
asked
Jul 11
by
avibootz
python
python-wrap-string-into-lines-width-w
wrap-string-into-lines-width-w
1
answer
88
views
How to compute the day of the week for January 1st of any given year in Python
asked
Jul 11
by
avibootz
python
python-day-of-week-january-1st-any-given-year
day-of-week-january-1st-any-given-year
1
answer
72
views
How to get common letters that appear in every word in a list of words with Python
asked
Jul 10
by
avibootz
python
python-common-letters-every-word-list-words
common-letters-every-word-list-words
1
answer
84
views
How to create a unique list from multiple lists with duplicate values in Python
asked
Jul 9
by
avibootz
python
python-unique-list-from-multiple-lists-with-duplicate-values
unique-list-from-multiple-lists-with-duplicate-values
1
answer
79
views
How to encode and decode any string into Base‑36 in Python
asked
Jul 7
by
avibootz
python
python-encode-decode-string-base-36
encode-decode-string-base-36
1
answer
85
views
How to generate random positive integers that sum to N in Python
asked
Jul 6
by
avibootz
python
python-generate-random-integers-sum-to-n
generate-random-integers-sum-to-n
1
answer
75
views
How to perform multiple 5‑card draws from a shuffled 52‑card deck in Python
asked
Jul 5
by
avibootz
python
python-perform-multiple-5-card-draws-from-52-card-deck
perform-multiple-5-card-draws-from-52-card-deck
1
answer
76
views
How to pick 5 random cards from a 52‑card deck in Python
asked
Jul 4
by
avibootz
python
python-pick-5-random-cards-from-a-52-card-deck
pick-5-random-cards-from-a-52-card-deck
1
answer
60
views
How to randomly place a random value in each row of an 8x8 int list with zero values in Python
asked
Jul 3
by
avibootz
python
python-randomly-place-random-value-each-row-8-8-int-list
randomly-place-random-value-each-row-8-8-int-list
1
answer
81
views
How to display string letters sorted by frequency in Python
asked
Jul 3
by
avibootz
python
python-display-string-letters-sorted-by-frequency
display-string-letters-sorted-by-frequency
Page:
1
2
3
4
5
6
...
102
next »
...