i've decided to speed through this class, i.e. skip to the answers for quizzes. the teacher is clearly an expert in his field but he seems to conflate concepts with syntax. no, i don't know how to print something because that is done with 'return', but i understand the steps of logic i need to get the output i want.
anyway, a few things that he has mentioned recently that i think i will remember
== is used for equals because = is used to set values
dont use variable names like a,b,c because they dont describe what the variable is/does. in bigger code settings where you cant keep everything in short term memory, the names will help you understand what is actually happening.
these four things can be used to do anything in computer science. thanks mr turing:
arithmetic
comparisons
procedures
if
No comments:
Post a Comment