|
I don't know about the rest of the students here, but I got some problems with the homework 6.3 as the variables that should be returned were capitalized. It is nice of you to give us the return instruction at the end, but I prefer a good comment (as there already is) than the whole instruction written forcing me to use some variable name or making me think about changing it. Anyhow, what I came to say is, as we are so many many students at Udacity from many different backgrounds, I believe the code written in classes and the exams should be stricter with the style. This means, for example, no local variables with first letter in upper case (as it happened in 6.3, and specially upper case 'o' for "Omega"). This should help in two directions, code easier to understand and people learning to write better code. I hope you take it as a consideration for future classes. |
|
Python 3, of course, accepts unicode. :)
|
You could have used 'omega' starting with lower-case. It was accepted by the autograder. It would have to go deep down to the level of local variables in its retrospection for this to make a difference: not very likely. |
|
That is a good suggestion. However, we shouldn't look a gift horse in the mouth, and expect a free course from a leader in his field to also follow the best Python style guides (of which there is more than one.) He has obviously borrowed some styles from his vast experience in C or other languages. In this case, if you have written your code with lower case variable names, just fix the names in the return statement and be happy. I also thought it was odd. I thought the capitalized Omega was inspired by the upper case Greek letter $$\Omega$$, but the lecture uses a lower case $$ \xi $$. (Visible if you have Javascript for Mathjax.)
link
This answer is marked "community wiki".
|
|
Standards are always a good idea, but they might be a problem for people used to different standards. If you use a good IDE, you'll be notified right away if you are using incorrect variable names (ones that don't match). I use Eclipse and have no idea if there are better IDEs for Python, but it sure worked fine for me. |