Apr-03-2023, 02:14 PM
(This post was last modified: Apr-03-2023, 02:22 PM by deanhystad.)
int == list will never be True.
I do not understand what you are trying to do. If you want to make a list len(N) that starts with [a, b] why not make a list len(N-2) and append to [a, b]. Why are you generating N random numbers?
I do not understand what you are trying to do. If you want to make a list len(N) that starts with [a, b] why not make a list len(N-2) and append to [a, b]. Why are you generating N random numbers?
new_list = start_list + sorted([randint(3,MAX) for _ in range(2)])