use of in
# find the name in the list
names=["dinesh","sonu","kamlesh","kishan lal","pooja","hunar","rashmi"]
name=input("Enter YOur name: ")
if(name in names):
print("you are the member of family")
else:
print("you are not the member of the family")
#lenght of the character is 10 or not
# name=input("Enter YOur name: ")
# l= len(name)
# if(l<10):
# print("You have less then 10 character in your name")
# else:
# print("Your name has atleast 10 character")
# Find that weather a text is a spam or not.
# text=input("Enter the text\n")
#
# if("make a lot of money" in text):
# spam=True
# elif("buy now" in text):
# spam=True
# elif("click this" in text):
# spam=True
# elif("subscribe now" in text):
# spam=True
# else:
# spam=False
#
# if(spam):
# print("This is a spam")
# else:
# print("this is not spam")
Comments
Post a Comment