PY
py
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
# created by All About Python
# check the top comment for details on Indentation
# To indent a block of code in python, you must indent each line of the block by the same amount, you can indent with both white space and tab..
''' using one whitespace '''
if 1 == 2:
print(1)
else:
print(2)
''' using the general 4 whitespace, 4 whitespace is equal to a single tab in your keyboard '''
if 1 == 2:
print(1)
else:
print(2)
''' The amount of indentation is up to you '''
# indentation can be ignored by line continuation
if 1 == 2: print(1)
else: print(2)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run