As I understood you want the index too!
there are two things wrong.
you used an Array List not a tuple, the code should work either way
Your input comes as a string not an integer
Here's how to fix them, will not return Index of the value
tuple = (5, 10, 7, 4, 15, 3)
num = int(input("input ? ")) # the int function makes input() an integer
if num in list: print('Found!') # you don't need a for loop here
This will return the Index of the value:
for i in range(len(tuple)):
if num not in tuple: print("Not Found"), break # for efficiency
if num == tuple[i]: print( 'Found at Index', i)
The difference between Array Lists and tuples are that tuples cannot change values, but an Array List can
this will produce an error
tuple[1] = "some value"
but this won't, given that the ArrayList variable exists
ArrayList[1] = "some value"