How can I make a code continue in Python?
Let's assume we have the number sequence 135792468
I want it to continue the sequence of numbers for as long as I want.
What keys or script do I need to write to make it continue?
Let's assume we have the number sequence 135792468
I want it to continue the sequence of numbers for as long as I want.
What keys or script do I need to write to make it continue?
Hey, I recently started learning Python. I'd say I've got all the basics down. Should I start looking into frameworks (what are they for anyway?) or libraries?
I'm going to create a small website for a friend using HTML and CSS. The website should be accessible enough for him to be able to can log in You can add new posts (news/current events). Like with WordPress, for example. You have to log in, then you might have a "News" module, click on…
Hello, I want to upload my Canva website to my own Worldpress domain. How can I do this? LG
If you were the boss of a software company, you would be more likely to hire a developer who is very skilled in the respective framework (e.g. Angular, React, Spring, Composer, Unity, Wpf, etc.) but has only a mediocre command of the actual (software) language, or someone who is excellent at using the actual language…
That’s not clear. I have several possibilities to continue the episode. You can see at most a lot of construction procedures for consequences with the current episode matches and which fits.
What do you mean βcontinue longβ? How/what should the number sequence (actually rather a number sequence) be continued?
Should the sequence be continued with β135…β again? Then you can easily build an appropriate iterator with itertools.cycle()…
A lighter example would be:
I have the numbers 1234, I want to get him to carry them on at 56789….
More complex would then be 13245768….
But what do you expect to continue the script 13245768? Theoretically, any number could come next.
In simple things, such as 1234, it is possible, for example, to write something that checks whether the distances between adjacent sequence elements are constant, and then to add this constant more and more to obtain the next sequence elements. That would then be a possible continuation, which probably in many cases corresponds to what one wants.
But in general…? How are you going to continue? The problem is yes: there can and will be several different patterns that can be reinterpreted in sequences of numbers… Which of the patterns should be used?
As I said, I have not dealt with artificial intelligence and neural networks so far.
But by Google, I found the following article that might interest you in this:
https://www.linux-magazin.de/issue/2017/10/snapshot/
On page 1, a corresponding script is also listed below.
An artificial intelligence that recognizes the patterns of codes would be good. Is there a page where you can get similar scripts? This also exceeds my programming knowledge.
But how would that continue? What would happen at 13245768… after that. …9102… or…9111012…, right, right? Or do you want to stop the episode?
What about 1, 2, 3, 5, 7,? What’s next? There would be, for example, the possibility that comes next 11 as the next prime number. On the other hand, there would be the possibility that the pattern is based on the addition of +1, +1, +2, +3, +3, … and then, as the next, actually comes 10. Which of the two options would you prefer? Or maybe you’d rather have another third option here?
This is definitely not so easy!
What could be done would be to create a data collection of corresponding patterns as you want them, and then to train an artificial intelligence with this data. But that goes beyond my programming knowledge, how to solve it most easily.
13245768 means only the first two odd and then the first two straight, etc.
It would be easier to recognize how a code works and then expand it
Do you think you're gonna let that go?
Unfortunately, he uses numbers behind the number order randomly. But I need a way for my program. 12345 then extended with 6789…. and so on. Do you mind?
Oh, he’s supposed to recognize the pattern in the first numbers?
Yes
pay order 135792468?
You’d have to determine what your number order should be
You mean with initial number
13579
Then +1
24680
The nΓ€chate number:
3579
Or what kind of episode do you mean?
Yes, he does
Then you have the rule here
You take the initial number (13579) and picture a new number you increase each digit by 1.
The new number you are looking for
You’d have to write a script that adds it to your wishes. Btw. isn’t a sequence of numbers but only a single number.
You can best see here in this helpful website π
https://geekflare.com/de/python-sort-list/
But I don’t use the Python program.
Got another program. This source SDK.
You should write a script that goes according to your wishes.
That has nothing to do with the question, since the questioner does not ask how to sort list.