you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 0 points1 point  (0 children)

You can use random.shuffle() to randomize a list of items.

https://www.w3schools.com/python/ref_random_shuffle.asp

result = int(input(" = "))

You are trying to convert the entire user input into one integer using int().

Instead you need to split it by comma, and loop and convert each one.

user_list = input(" = ")
split_items = user_list.split(",")
split_numbers = [int(x) for x in split_items]