Answers for "python program to check whether a specified value is contained in a group of values"

0

python program to check whether a specified value is contained in a group of values

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')
Posted by: Guest on October-31-2020

Code answers related to "python program to check whether a specified value is contained in a group of values"

Python Answers by Framework

Browse Popular Code Answers by Language