Exam 3 Flashcards
(27 cards)
For loops flowchart
A
For loop code
A
For loop Sequences
Range
String
File
Range
Is used to generate an arthritic progression
String
A
File
Explain:
Examples:
Get ride of white space examples:
A
Nested for loops
Explain
A
______ of a for loop contain any type of Python statement
Body
Nested for loops can contain another:
For loop While loop Decision structure Input/output, Etc
______ loop must be completely inside the first loop
Second
Nested for loop must have a ______ loop variable
Different
_______ loop goes through all of its iterations for each iteration faster than _______ loops
Inner
Outer
_______ loops complete their iterations faster than outer loops
Inner
Transitions to and from while loops
Explain:
A
Functions: look it up a lil more pls
A
Pythong functions _______ of functions is a _____ value
Output
Single
Python function is said to _______ it’s output
Return
Items inside parentheses are called _________
Arguments
User-defined functions consider here _________________=
Pass by position
User-defined function arguments in the calling statement matched to the parameters in function header ________________
Based on order
User-defined function parameters and return statements are __________ on function definitions
Optional
User-defined function _______________________ should describe the role preformed
Function names
Definition: find info
A
Invocation
Built-in functions
User-defined functions
Using a main function