complete the list programming assignment . complete the dictionary programming assignment.

profileKhaledMaarof
disctionarySample.py

# disctionarySample.py # a program to demonstrate some sample operations on a disctionary # last edited Sept. 30, 2019 by C. Herbert # declare a dictionary using an assignment statement myDictionary = dict(Joe="CSCI", Mary="math", Fred="CSCI", Tom="CIS", Ali="CIS", Ben="CSCI") print() # blank line in output for readability # print a dictionary using the print method print(myDictionary) print() # blank line in output for readability # iterate and print a dictionary for key, value in myDictionary.items(): print(key, ",",value) print() # blank line in output for readability # iterate and print a dictionary with a tab for name, major in myDictionary.items(): print(name, "\t",major) print() # blank line in output for readability # iterate and print the values that match a condition # here the condition is major = CSCI #print heading print( "A list of all CSCI majors") #iterate and print list of all CSCI majors for name, major in myDictionary.items(): if (major == "CSCI"): print(name) #end if #end for