Have a question as a newbie to Python?
There's a list function. I've also created one in Python with different numbers in a row. My goal is to generate multiple random numbers, which already works, and the value of the generated two-digit number that is at the end of the list, compared to the other generated numbers, wins. How do I do that?
Lists are not a function, but a data type. Your question is difficult to understand without at least one, two lines of code.
The last (“sinterest”) item of a list you will get
out. List indices may also be negative in Python, then counted from the rear to the front.
First you have to sort the list:
Now the list is sorted.
On the last value of a list, you’ll get over
too.