Skip to content
This repository was archived by the owner on Mar 1, 2020. It is now read-only.

Commit 1ee7870

Browse files
committed
Added function, link to Traffic Light project
1 parent 1d3c058 commit 1ee7870

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,28 @@
22

33
This repository describes some of the tips and tricks for using the Python programming
44
language.
5+
6+
## Running Python Scripts
7+
8+
```bash
9+
python <script name>
10+
```
11+
12+
Replace "<script name>" with the file name of the Python script that you want to run.
13+
14+
## Functions
15+
16+
To write a function in Python, you start the function out with the "def" keyword.
17+
18+
### Example
19+
20+
```python
21+
def
22+
```
23+
24+
## More Resources
25+
26+
The Raspberry Pi traffic light project is written in Python code. You can review the
27+
code at
28+
[https://github.com/almostengr/raspitraffic-stem](https://github.com/almostengr/raspitraffic-stem).
29+

0 commit comments

Comments
 (0)