-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprintingPython.py
More file actions
45 lines (35 loc) · 981 Bytes
/
printingPython.py
File metadata and controls
45 lines (35 loc) · 981 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# print ("This is {0} first print statement".format("Guru's"))
# mystring = "Guruprasad loves Suneetha and Vaivaswatha!"
# print (mystring[::1])
# print (mystring[1::1])
# print (mystring[1:-1:1])
# print (mystring[1:-1:2])
#
# mystr1 = "Hello I am here!"
# mystr2 = "Hello I am Here!"
#
# if mystr1 == mystr2:
# print ("They are Equal!!")
# else:
# print ("They are not equal!!")
# print("Enter your age ->")
# myage=int(input())
# if (18 <= myage <= 30):
# print("Welcome to 18-30 Holidays")
# else:
# print("I am afraid, we cant let you in now!")
number="Blah blah blah 2,44,654,78,534,908,733,5,23,44"
onlynumber=''
for i in number:
if i in "0123456789":
onlynumber=onlynumber+i
print(onlynumber)
for i in range(0,10,2):
print(i)
thisset = {"apple", "banana", "cherry"}
thisset.update(["orange", "mango", "grapes"])
print(thisset)
from collections import Counter
m=Counter("This is just a test")
print(m.most_common(3))
print(m.keys())