dakota ferrell1,454 Points
how can I get this code to work?
l1 = ([1, 2, 3, 1, 2, 3])
l3 = set(l1)
l2 = list(set(l1)) l4 = list(l3) print(l1, l2, l3, l4)
def user_number (num): user_num = input ("whats your number?") num = user_num return user_num
number = print(user_number(1))
if user_number == 2: print("found")
Steven Parker181,132 Points
It's hard to read Python without Markdown formatting, and it's not clear what the program is intended to do. But one thing that stands out even now is that "user_number" is defined as a function but then later compared it with the number "2" as if it was a variable.
Also, "print" doesn't return anything so it's not useful to assign to the variable "number" (which is then not used anyway).