Chapter 1 - Getting started Flashcards
Object-Oriented Programming
Optional
Is Python platform-dependent?
No
Is Python case-sensitive
Yes
Function
A mini-program, goes off and does a specific thing
How do you call a function
Use the function name followed by a set of parentheses
- print()
Argument
values passed on to a function to work with
- print(“Game Over!”); where “Game Over! is the argument passed on to the function
Return values
return (provide) information back to the part of the program that called the function
String
series of characters
String literal
the string is literally it’s combination of characters
-print(“Game Over”) - literally means Game Over
Statement
a complete instruction (it does something)
Code
programming statements
Syntax highlighting
words displayed in different colors
Script mode vs Interactive mode
Interactive mode - instant results
Script mode - write -> save -> run
Comments
# - single line comment ''' ''' - multi-line comment
end=””
used inside of print() to define the end