Skip to content

Commit c81ff75

Browse files
authored
Merge pull request #243 from srobo/kjk/programming-section
Update outdated references in programming section
2 parents 701f59c + ebc02d7 commit c81ff75

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

programming/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Programming
66
Programming Your Robot
77
======================
88

9-
Robots that are made using the SR kit are programmed with [Python](/docs/programming/python/) which is made possible with a custom-built Python library, `sr.robot`; see [here](/docs/programming/sr/) for more details. The pages under this section should contain all of the information you need to know to successfully code for your robot.
9+
Robots that are made using the SR kit are programmed with [Python](/docs/programming/python/) which is made possible with a custom-built Python library, `sr.robot3`; see [here](/docs/programming/sr/) for more details. The pages under this section should contain all of the information you need to know to successfully code for your robot.
1010

1111
* In order to develop the code for your robot, we recommend that you use a code
1212
editor. For more information about this, including some suggestions for

programming/python/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ The same function modified & printing a log message:
3333

3434
~~~~~ python
3535
def square(num):
36-
print("found the square of {:d}".format(num))
36+
print(f"found the square of {num}")
3737
return num * num
3838
~~~~~

programming/python/index.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Python
66
Python
77
======
88

9-
Student Robotics robots are all programmed in [Python 2.7](https://www.python.org);
9+
Student Robotics robots are all programmed in [Python 3.9](https://www.python.org);
1010
to program a robot, it is important that you have a basic understanding of Python.
1111

1212
There are a number of tutorials out there which might help you to learn to program in Python:
@@ -15,15 +15,11 @@ There are a number of tutorials out there which might help you to learn to progr
1515
This was written especially for Student Robotics competitors,
1616
and explains the basics while trying not to overwhelm you.
1717

18-
* [The Official Tutorial](https://docs.python.org/tutorial/) -- the good stuff starts at chapter 3,
18+
* [The Official Tutorial](https://docs.python.org/3.9/tutorial/) -- the good stuff starts at chapter 3,
1919
but you should at least skim the stuff before it;
2020
there is a lot there and it may be a little overwhelming.
2121

2222
* A number of tutorials for beginners are linked to from [here](https://wiki.python.org/moin/BeginnersGuide/NonProgrammers).
23-
[Wikibooks Tutorial](https://en.wikibooks.org/wiki/Non-Programmer%27s_Tutorial_for_Python_2.6) seems like a good one.
23+
[Wikibooks Tutorial](https://en.wikibooks.org/wiki/Non-Programmer%27s_Tutorial_for_Python_3) seems like a good one.
2424

25-
* A number of tutorials for people that have programmed before are linked to from [here](https://wiki.python.org/moin/BeginnersGuide/Programmers).
26-
[Google's Python Class](https://developers.google.com/edu/python) looks to be a good tutorial which has some lecture videos to go with it.
27-
28-
* [The Official Docs](https://docs.python.org/2.7/), for the version of python on the [Odroid Brain Boards](/docs/kit/brain_board).
29-
We also host a [copy]({{ site.url }}/docs/python) of docs for the precise version (2.7.5) that it uses.
25+
* [The Official Docs](https://docs.python.org/3.9/), for the version of python on the [Odroid Brain Boards](/docs/kit/brain_board).

0 commit comments

Comments
 (0)