Quiz Catalog

Catalog of quizzes

number = 0
str = 'I love Python'
letter = 'l'

if letter in str:
  number = 1

print(number)
1
  • expression/operation/in
  • string

data = {"age": 30, "name": "Bob"}

print("age" in data)
True
  • expression/operation/in
  • dict

txt = "The best things in life are free!"

print("free" in txt)
True
  • expression/operation/in
  • string/literal