I am trying to search for the key in the dictionary of songs. They keys are the song titles, and the value is the length of the song. I want to search for the song in the dictionary, and then print out that song and its time. I have figured out searching for the song, but can't remember how to bring out its value as well. Here is what I currently have.
def getSongTime(songDictionary):
requestedSong=input("Enter song from playlist: ")
for song in list(songDictionary.keys()):
if requestedSong in songDictionary.keys():
print(requestedSong,value)