Learn practical skills, build real-world projects, and advance your career
number = 22
if number % 2 == 0:
    print("O hey the number is even congrats!")
else:
    print("nah mang it ain't even")
O hey the number is even congrats!
tuple1 = ('me','myself','I')
tuple2 = "you"
if tuple2 in tuple1:
    print("{} is in tuple 1".format(tuple2))
else:
    print("{} is not in tuple 1".format(tuple2))
you is not in tuple 1
print("It's {}, {}, and {}".format('me','myself','I'))
It's me, myself, and I
sample1 = "you"
if sample1 == "myself":
    print("correct-o")
elif sample1 == "I":
    print("This bench is {}".format(sample1))
elif sample1 == "me":
    print("No one else but {}".format(sample1.upper() + "!"))
elif not sample1 == "me":
    print("It's not {}, {}, and {}. It's {}".format("me".upper(),"myself".upper(),"I".upper(),sample1.upper() + "!"))
It's not ME, MYSELF, and I. It's YOU!