Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: producing numbers out of a list
Post: RE: producing numbers out of a list

Cheers my friend :)
bouraque7878 General Coding Help 10 3,740 Nov-12-2021, 04:44 PM
    Thread: producing numbers out of a list
Post: RE: producing numbers out of a list

What about if i want to product numbers out of the same digits without repition ? I mean i don't want to product numbers like 1111, 1114, 1115 etc. I want to use a digit only once in a number.
bouraque7878 General Coding Help 10 3,740 Nov-12-2021, 04:14 PM
    Thread: producing numbers out of a list
Post: RE: producing numbers out of a list

(Nov-09-2021, 08:46 PM)bowlofred Wrote: Possibly want product. Although shoving the results together to make numbers isn't always trivial. from itertools import product digits = "1457" for numbe...
bouraque7878 General Coding Help 10 3,740 Nov-09-2021, 08:52 PM
    Thread: producing numbers out of a list
Post: RE: producing numbers out of a list

(Nov-09-2021, 08:09 PM)Yoriz Wrote: You need to explain more clearly what you are trying to do, and what have you tried to code this so far? I want to add all possible 4 digit numbers that i can wri...
bouraque7878 General Coding Help 10 3,740 Nov-09-2021, 08:14 PM
    Thread: producing numbers out of a list
Post: producing numbers out of a list

Hi, i want to produce 4 digit numbers out of the numbers in the list (like 1111, 1112, 1113, 1114,....) How can i do that? list_ = [1, 2, 3, 4] range = (1111, 44445)
bouraque7878 General Coding Help 10 3,740 Nov-09-2021, 08:05 PM
    Thread: What's wrong with these codes?
Post: RE: What's wrong with these codes?

I solved it. The for loop shouldn't be there. Thanks for replies.
bouraque7878 General Coding Help 4 1,787 Oct-27-2021, 08:43 PM
    Thread: What's wrong with these codes?
Post: What's wrong with these codes?

It doesn't work. What's wrong? list1 = [1, 1] i = 2 while True: terim = list1[i - 1] + list1[i - 2] list1.append(terim) terim = str(terim) for x in terim: if len(terim) == 100:...
bouraque7878 General Coding Help 4 1,787 Oct-27-2021, 07:25 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020