Algorithm - ANSWER A set of instructions to perform a task or solve a
problem, must be precise enough for a computer to execute
your code
Computation - ANSWER When a computer executes an algorithm
"run" or \.program.py
Semantics - ANSWER Refers to meaning, concepts/vocabulary used across
programming languages
Syntax - ANSWER Programming language specific, like a grammar that a
compiler can recognize
Input - ANSWER The data or information passed into a computational system
before a program is run
e.g., input()
Output - ANSWER The data or information passed out of a computational
system once the computation is complete
e.g., print()
Execution - ANSWER The process by which a computer interprets our
program or performs the instructions of our program
Interactivity - ANSWER The ability of the code to detect events from a user,
,e.g., mouse clicks, sensor-based information
Identifier - ANSWER Name given to item in program
letters and _
Value - ANSWER Value assigned to identifier
Memory location - ANSWER Location where identifier and value are stored
Variable - ANSWER Memory location with name and type to store value, A
representation for a value.
Value (2nd) - ANSWER e.g. 'flower' or 237
Identity - ANSWER Unique memory location
id()
Type - ANSWER Description of the information that guides how a
programming language interprets the content
Type()
String - ANSWER A sequence of characters
string()
Integer - ANSWER Whole numbers
Int()
Float - ANSWER Floating point numbers
float ()
Boolean - ANSWER Considered numeric type, value can be True or False
, True (1), False (0)
Assignment Statement - ANSWER This is how we get the value in the variable
identifier
=
Constant - ANSWER A term without a variable
use all caps
Function - ANSWER A block of code which only runs when it is called
Operators - ANSWER Operators are used to perform operations on variables
and values
Operands - ANSWER Values in the expression
Expression - ANSWER Particular instantiation of operators and operands
Evaluation - ANSWER Process of obtaining results from operations on
operands
Return value - ANSWER The output of a function or operation
Mathematical Operators - ANSWER -Add
-Subtract
-Multiply
-Divide
-Remainder
-Floor division
-Exponential
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Belina. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.99. You're not tied to anything after your purchase.