Closed treyhunner closed 10 years ago
yes
Actually under "Variables" we also show:
cups_of_flour = 5
cups_of_flour * .5
1 / 2
1.0 / 2
and it says "two different data types" and then shows the type
function.
I think we should change the variables part to just cups_of_flour / 2
and leave out the next two lines (since they're equivalent).
Showing the two different number types seems fine, but I'm not sure it's necessary.
when we introduce the notion of type: should we have examples to explain the following:
@alaindomissy I think we go over your first point pretty well.
We actually use type
many times throughout part 1 and we do show concatenation between strings and numbers:
"Hello" + 1
"Hello" + "1"
type(1)
type("1")
"Hello" + str(1)
As for your second point, I vote for answering that question if it comes up but not specifically noting it in the curriculum. I vote for that because that might confuse those not familiar with strictly-typed programming languages already.
Agree with not mentioning differences with other languages unless asked. Analogies are only as good as your target audience's knowledge of them.
+1 to all comments. I plan to work late afternoon until late this evening on the workshop. If this is still open then, I will make changes to the notebook :)
Closing this issue. PR #37 addresses this issue. :cookie:
Currently we show 5 examples of division in part 1. We did this originally to show the difference between integer/float division. In Python 3 all division results in a float, so I think we can reduce the number of examples.
Currently we have:
Maybe we should change this to just a couple. I propose: