Answers for "how to check the value of a variable in python"

1

how to check if item is in the variable python

a ="item"
if "i" in a :
  print("found in list")
else:
  print("not in list")
Posted by: Guest on June-24-2021

Code answers related to "how to check the value of a variable in python"

Python Answers by Framework

Browse Popular Code Answers by Language