In addition to the concepts below, you should know the concepts that were tested on all the quizzes in the course:
Historically, the final exam includes questions about each of the big ideas and skills in the course, such as:
Below are some of the new topics covered since the last quiz, as well as some additional practice problems.
While you will need to understand how objects work, you do not need to memorize the methods and objects for the Zelle graphics library
main()function and at least one additional function.
The following is a sample run of the program:
I'm thinking of a number between 1 and 100. Enter guess: 50 Number is higher than 50 Enter guess: pony Invalid, try again: 588 Invalid, try again: 75 Number is lower than 75 Enter guess: 62 Number is lower than 62 Enter guess: 56 Correct! You guessed it in 4 tries!
Studentclass that stores information for a Swarthmore student.
Write the following methods for your
stu1 = Student(25,"Knerr")
email = stu1.createEmail() print(email)
Write recursive and iterative versions of a function that, given a string and a character, returns a new string with the character before and after each letter in the string. For example, calling the function with
"hello" and "
*" would return
Assume we have a word-count list, such as this:
wc = [['around', 99], ['beer', 300], ['bottle', 3], ['bottles', 297], ['buy', 1], ['down', 99]]
Write a function to take a word-count list and return the word that has the highest count. For example, if called on the list above, the function should return "beer".