CSC 127A Lecture Notes - Lecture 1: Code Reuse, Algebraic Equation, Escape Sequence

67 views5 pages

Document Summary

Python: relatively simple, object-oriented, pre-written software, widely used. Print: a statement that prints a line of output on the console. Strings: a sequence of characters to be printed, starts and ends with a quote character or a quote" character, examples: hello , here is another with quotes in". Escape sequence: a special sequence of characters used to represent certain special characters in a string. Comment: a phrase that computer ignores/doesn"t run: use # to add comment. Algorithms: a list of steps for solving a problem, example: bake sugar cookies , problems with algorithms. Lack of structure: many steps, tough to follow. Redundancy: structured algorithm: split into coherent tasks. Functions: a named group of statements, denotes the structure of a program, eliminates redundancy by code reuse, declaring a function: gives your function a name so it can be executed. Control flow: when a function is called, the program"s execution.

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