Final 1 Flashcards
(11 cards)
What is IntelliSense?
It’s kinda like auto-complete for coding – it anticipates what you’re doing and tries to give you helpful shortcuts. It also flags potential problems or errors.
Powerpoint Trivia Reference: Heavy - The Beatles
How do you prevent python from going to the next line when printing?
include ,end=””) as a parameter of the print statement. i.e print(output, end=””)
What is “sep”?
A print parameter that can change the default separation for multiple printed strings (default is normally a single space). print(“a”,”b”,”c”, sep=””) would output abc instead of a b c (default)
In a flowchart, what does an oval represent?
It’s a terminal symbol (start, stop)
In a flowchart, what do parallelograms (that are not rectangles) represent?
input and output
In a flowchart, what do diamonds represent?
True/False condition statements
In a flowchart, what does a rectangle represent?
Processing symbols
Trivia: What was used as a reference for an object called “monster” in an early object oriented program lecture?
A clip from the 1931 film “Frankenstein”
‘It’s alive!’, etc.
Is a list an object type?
Yes.
Trivia Reference: Toby Keith song “My List”
What does the professor think is the single greatest advantage of Python over every other programming language?
Dynamic variable types such as lists, dictionaries, and sets are simple to use even for beginners.
Declaring a dynamic list is as simple as:
List = []
How does the professor like to add items to a dynamic list?
The .append method
a=[]
a.append(4)
a.append(6)
print(a)
[4, 6]
Easily adds things to the list.