CSC 127A Lecture Notes - Lecture 2: No Code
Document Summary
It will print this: this class is" the best Write a print statement to produce this output: / \ // \ /// \\ A comment is a note written in source code by the programmer to clarify the code. Comments are not executed once the program runs. You can make a comment using a # The teacher would like us to include our names and notes on lines like so: An algorithm is a list of steps for solving a problem. For example, a baking recipe is a type of algorithm. But to make a double batch, you get redundancy. Instead of that, you will make a structured algorithm: make batter, bake the cake. When declaring a function, always include a definition and statement. The teacher would like us to include a note to explain each one of our funcitons. Note: if something is indented over 4 spaces, python will get confused and may throw an error.