/
hello_world.py
executable file
·53 lines (37 loc) · 961 Bytes
/
hello_world.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
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
#!/usr/bin/env python3
"""
This file is part of eRCaGuy_hello_world:
https://github.com/ElectricRCAircraftGuy/eRCaGuy_hello_world
(description)
Status: (status)
keywords: (keywords)
Check this script with `pylint` v2.0.0 or later. See "eRCaGuy_hello_world/python/README.md" for
installation instructions to install the latest version from GitHub.
For a list of all error codes, such as `C0301`, `C0116`, `W0105`, etc., see here:
https://pylint.pycqa.org/en/latest/messages/messages_list.html
```bash
pylint hello_world.py
```
Run command:
```bash
./hello_world.py
# OR
python3 hello_world.py
```
References:
1.
"""
def main():
"""
The main function of this program.
"""
print("Hello world!")
# Only run `main()` if this script is **run**, NOT imported
if __name__ == '__main__':
main()
# pylint: disable-next=pointless-string-statement
"""
SAMPLE OUTPUT:
eRCaGuy_hello_world/python$ ./hello_world.py
Hello world!
"""