Skip to content

Instantly share code, notes, and snippets.

@Raj39120
Created May 4, 2020 19:19
Show Gist options
  • Save Raj39120/39345026ec42680b794a721b58f4c3f6 to your computer and use it in GitHub Desktop.
Save Raj39120/39345026ec42680b794a721b58f4c3f6 to your computer and use it in GitHub Desktop.
user_input = input("Enter a list of numbers from least to greatest over here: ")
user_input_2 = input("Enter the number you want to check to see if it's in the above list over here: ")
if user_input_2 in user_input:
print("This number is in the list you entered.")
if user_input_2 not in user_input:
print("This number is not in the list you entered.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment