Cn you explain to me how to test only the function show_flashcard on shell? Question: iii. When you have written the show_flashcard() function test it by calling it several times in the shell. Remember to first run the program and only after that use the

profileadelenoinwinderland
 (Not rated)
 (Not rated)
Chat

Cn you explain to me how to test only the function show_flashcard on shell? Question: iii. When you have written the show_flashcard() function test it by calling it several times in the shell. Remember to first run the program and only after that use the shell to call the function. from random import * def show_flashcard(): """ Show the user a random key and ask them to define it. Show the definition when the user presses return. """ random_key = choice(list(glossary)) print('Define: ', random_key) input('Press return to see the definition') print(glossary[random_key]) # Set up the glossary glossary = {'word1': 'definition1', 'word2': 'definition2', 'word3': 'definition3'}

    • 7 years ago
    the answer
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      12.docx