Author | Message |
---|---|
freddyg
Posts: 5
|
Posted 12:24 Jan 25, 2019 |
Hello class, I was wondering if someone could clarify exactly what we are commenting for the assignment. Are we commenting every section of code on the page we are redirected to when we click the "The Ultimate Guide to Python Type Checking" hyperlink, or just specific sections on that page? If it is only specific sections, which sections are we focusing on? Thanks for taking time to read and reply! |
kmarlis
Posts: 35
|
Posted 12:33 Jan 25, 2019 |
Hi Freddy, I'm working on it right now and this is what I've been doing. Our group of three people tried to split it up into thirds. I copied all of the segments of code in my section into a python document and gave a little comment above each code segment that gave the header of the section of the website that that code portion came from (if that makes sense). I then gave a brief overview of what that portion was trying to teach before adding the specific comments to the code. |
rabbott
Posts: 1649
|
Posted 14:56 Jan 25, 2019 |
As you have probably discovered, Python is a BIG language. One can get lost tracing down all the tangential paths. I don't expect you to memorize all of Python's features. But I do expect you to recognize features that are (probably) important and to see what you can do to find out where they are explained. For example, Hjelle, the author of the tutorial I've asked you to discuss, knows what he's talking about, and he writes intelligent Python. (I've tried to select readings whose authors are worth spending time with.) Even before he begins his discussion of typing, Hjelle gives an example of duck typing using the I suggest that you find an explanation of duck typing that makes sense to you so that you understand the basic idea. (The Python Readings list suggests Alex Thornton's discussion.) You might include some notes in your discussion of Hjelle's As I said, Hjelle's example raises an additional issue. What is the Hjelle's You will notice that Hjelle uses the term truthy in the In summary, in going through the readings, trace down things that look useful and write brief comments on them. You may find quite a few things. But you are a team of multiple people. So split up the work. The point of all this is to help you develop a feeling for and familiarity with Python so that when you need that information it will not be completely foreign. This is pretty much the way to learn anything. You should practice using this approach to learning a new area. Expect to find more things than you can possibly remember all at once. But note them down so that you can return to them later and so that the terms will at least be familiar. After doing all this, you may have lots of interesting things to share with the class! P.S. You will soon find out that I am not a Python expert. Everything I know about Python, I learned in just this way. There are many things I have not encountered (and therefore don't know), many other things I have encountered and have not bothered to explore (e.g., the Last edited by rabbott at
21:21 Jan 25, 2019.
|