Skip to content

Conversation

RealOrangeOne
Copy link
Member

Specify the version of python we're using. The default in stretch is 3.5, so that's what we're using!

title: "Python: A Whirlwind Tour"
---
In this tutorial, we'll introduce the basic concepts of programming, which will be central to the programs that you will run on your robot. There are many different languages in which computers can be programmed, all with their advantages and disadvantages, but we use [Python](https://www.python.org/), specifically version 3. We chose Python because it's easy to learn, but also elegant and powerful.
In this tutorial, we'll introduce the basic concepts of programming, which will be central to the programs that you will run on your robot. There are many different languages in which computers can be programmed, all with their advantages and disadvantages, but we use [Python](https://www.python.org/). We chose Python because it's easy to learn, but also elegant and powerful.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why you've removed the detail here; having it duplicated feels quite reasonable to me.

If we're worried about things getting out of step we could:

  • Refer to it as "Python 3" in most places and only specify the actual version number once
  • Define a constant for the version number and then reference that everywhere

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of a constant, will add

Copy link
Contributor

@PeterJCLaw PeterJCLaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIce; :shipit:

@@ -0,0 +1 @@
{{ .Site.Params.pythonVersion }} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I see the point of this indirection?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a little syntactic sugar. Means you can use {{% python_version %}} where it's needed rather than `{{ .Site.Params.pythonVersion }}

@RealOrangeOne RealOrangeOne merged commit a6883e6 into master Dec 13, 2017
@RealOrangeOne RealOrangeOne deleted the python-version branch December 13, 2017 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants