-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSyntax_sample.py
More file actions
43 lines (31 loc) · 693 Bytes
/
Syntax_sample.py
File metadata and controls
43 lines (31 loc) · 693 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
"""
Author: FaDr_YL (_YL_)
"""
import keyword
# Keyword list
print(keyword.kwlist)
print("-----")
print("Before the comment.") # Single-line comment.
"""
multi-lines comments
second line.
"""
print("After the comment.")
print("-----")
x = 5
if x > 0:
# 4-spaces indentation.
print("x is a positive number.")
print("-----")
the_sentence = "first line." + \
"second line." + \
"third line."
print(the_sentence)
the_sentence_2 = """first line.
second line.
third line."""
print(the_sentence_2)
print("-----")
item_list = ["itemOne", "itemTwo", "itemThree",
"itemFour", "itemFive"]
print(item_list)