CSC 127A Lecture Notes - Lecture 2: No Code

31 views4 pages

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.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents