-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchapter6_ps.py
More file actions
32 lines (23 loc) · 762 Bytes
/
chapter6_ps.py
File metadata and controls
32 lines (23 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# program
# p1="Make a lot of money"
# p2="buy now"
# p3="subscribe this"
# p4="click this"
# message=(input("Enter your comment: "))
# if((p1 in message) or (p2 in message) or (p3 in message) or (p4 in message)):
# print("This comment is a spam")
# else:
# print("This is not a spam")
# program
# username=input("Enter user name:")
# if(len(username)<10):
# print("your username contains less than 10 characters")
# else:
# print("your username contains more than 10 characters")
# program to find whether given name is present in th list or not
# l=["siri","sonu","bhavya","jaanu"]
# name=(input("Enter name: "))
# if(name in l):
# print("Your name is there in the list")
# else:
# print("Your name is not there in the list")