-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay1.py
More file actions
77 lines (28 loc) · 680 Bytes
/
Day1.py
File metadata and controls
77 lines (28 loc) · 680 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
46
z=3.451
text= """\
hello\
""";
print("text : ",text);
print("y=\temp\newValue");
#r is used to remove special character sequence meaning.
print(r"y=\temp\newValue");
if(z==3.451 and text=="hello"):
print("both are correct!");
else:
print("Both are unmatched!");
print('Kinght"s' 'abc"z' "hello");
str="Welcome to PSL. PSL Pune"
count = str.count('PSL',0,len(str))
print 'Cunt of PSL = ',count
print "Chinmay:%d,Abhlasha:%s"%(60.45,"Cjo");
print r"Hello\t" * 3;
print "h"in"yehoo";
print 'AB"C';
print "AB'C";
print """A'B"C"""
"""
a=raw_input("Enter string :");
print 4*a;
"""
myStr = "Reverse";
print myStr[::-1];