+ 3
What again does the "in" command/operator?
Sorry for the basic question but it seems impossible to search for a small word like "in"!
4 Réponses
+ 10
the in command checks to see if a certain variable is in a string or list or something else.
a = "0"
string = "079844325889"
if a in string:
print("yes")
else:
print("no")
+ 9
Tom Riddle no problem
+ 3
Thanks a lot! Really helped!
+ 2
Tom Riddle
I have a code for "in" in loops, check it out
https://code.sololearn.com/ckYo5k5111Dm/?ref=app