CSC 171 - Introduction to Computer Programming

Lab Assignment #25 - A Basic Dictionary Program

Due Wednesday, December 6, 2023

Start with a basic dictionary containing the following:
cars = {'buick': 'ABC-123', 'chevrolet': 'def456', 'cadillac', 'ghj789'}

Add two additional cars makes and license plate numbers.

Allow the user to enter a make of car repeatedly and have the program print the license plate number. If you enter "exit", the program will terminate. If you enter anything else, the program continues.

Make you to have it check to see if that particular make is in the dictionary.

[Back to the Lab Assignment List]