Program Pythona, aby sprawdzić, czy określona wartość jest zawarta w grupie wartości
give = int(input('Enter a value'))
earch = input('Enter a number to check if its in the value of numbers')
g = 0
search = earch.split()
for i in range(0,len(search)):
if give == int(search[i]):
g = 1
break;
if g == 1:
print('True')
else:
print('False')
Harry the Programmer