Answers for "check if string in list elemnt python"

9

check if anything in a list is in a string python

y = any(x in String for x in List)
Posted by: Guest on April-10-2020
0

Python if in list

listttt = ["eee", "yee"]
if "yee" in listttt:
  print("yee")
else:
  print("no.")
Posted by: Guest on October-26-2021

Code answers related to "check if string in list elemnt python"

Python Answers by Framework

Browse Popular Code Answers by Language