-
Notifications
You must be signed in to change notification settings - Fork 0
/
pythondocx
84 lines (51 loc) · 1.08 KB
/
pythondocx
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Error came while running ./hello.py
in python file i gave the wrong path (/usr/loca/bin python3 )
-bash: ./hello.py: /usr/local/bin: bad interpreter: Permission denied
after changed to #!/usr/local/bin/python3
successfull
This is for print multiple lines
"""
... this is 1st line
... this is 2nd line
... """
Single qoute
'single quoted'
'single quoted'
"double quoted"
'double quoted'
to find any letters in this string
'madras'.find('r')
3
Convert to lower
'MadrAs'.lower()
'madras'
Convert to Upper
'MadrAs'.upper()
'MADRAS'
for tab \t
print("ten \tspace")
ten space
for slash \\
print("t \\space")
t \space
for tab and slash \t\
print("t \t\space")
t \space
for new line
print("top \ntspace")
top
tspace
For nextline and tab
print("top \n sat\tspace")
top
sat space
Normal ranges
>>> list(range(1,12))
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
Range(start,end,step)
>>> list(range(1,12,2))
[1, 3, 5, 7, 9, 11]
>>>
git config --global user.name "yoges10decoder"
git config --global user.email "yogeskumar@10decoders.in"
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