READING INPUT INTO LIST
INTEGER INPUTS
numberList = list(map(int, input().split()))
print(numberList[::-1])
* INPUT
1 2 3 4
* OUTPUT
[4, 3, 2, 1]STRING INPUTS
shoppingList = list(map(str, input().split()))
input2 = input()
if input2 in shoppingList:
print("YES")
else:
print("NO")
* INPUT
ToothBrush Pen NoteBook Pencil Chess
Ludo
* OUTPUT
NOLast updated