110
What questions should I ask?
We do not answer questions on projects due today.
Final exam
Time: this Friday Dec 13, 6:00 - 8:00pm
Location: S SCI 100
Bring your photo ID
You have 10 minutes to complete the quiz.
int
on “110”:
int
on “CSC110”:
Use case: use int()
to convert "2"
to 2
when reading and summing the number 2 from a .txt file.
.isnumeric()
on “110”:
.isnumeric()
on “CSC110”:
Evaluate last line:
Evaluate last line:
Correct: Error
(code won’t proceed to last line)
Incorrect: 1000
version 1:
version 2:
Write a python function that does the following:
Its name is create_list
It takes two arguments, a set of strings and an integer n
It returns a list that contains each string from the set repeated n times
maximum
*values
values
Can we change the order of max == None
and v > max
?
No we CANNOT. Try it on your own laptop.
loop table (1D and 2D lists)
sorting (number of sweeps and swaps)
string methods
data structures and their mutability
iterate data structures
if conditions
reading, aggregating or writing to files