-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDAY1.PY
More file actions
53 lines (49 loc) · 1.17 KB
/
DAY1.PY
File metadata and controls
53 lines (49 loc) · 1.17 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
a = 987
d = 78
b = ("the hello")
c = True
# if (a>d):
# print(True)
# if(a==987):
# print(a)
# else:
# print(i)
# elif(a==d):
# print("equal")
# else:
# print(False)
# print(b.swapcase())
# print(b.istitle())
# print(b.islower())
# print(b.isalpha())
# print(b.isalnum()) #even giving space will be show false
# print(b.endswith("!")) # ans is in true false
# print(b.count("!"))
# print(b.rstrip("!"))
# b = input("the hEllo".strip())
# print(b.capitalize())
# print(b.split("split"))
# print(b.center(50))
# print(b.lower())
# print(b.index("hello"))
# print(b.title())
# print(b.upper())
# print("hello world ")
# print("""hello you are a terrr
# sjhsjsjfsfsfjbsfhb""")
# print(b[1])
# print(str(b.index('e')))
# This will print '1', which is the index of 'e' in "hello"
# print(b.find("the"))
# print(b.index("hello"))
# print(b.title())
# print(b.upper())
# print("hello world ")
# print("""hello you are a terrr
# sjhsjsjfsfsfjbsfhb""")
# print(b[1])
# print(str(b.index('e')))
# This will print '1', which is the index of 'e' in "hello"
# for i in range(10):
# i=i+2
# print(i)