Complete the code to assign the correct file extension for a text document.
file_name = "document" + [1]
The .txt extension is used for plain text files.
Complete the code to assign the correct file extension for an image file.
image_file = "photo" + [1]
The .jpg extension is commonly used for image files.
Fix the error in the code by choosing the correct file extension for an audio file.
audio_file = "song" + [1]
The .mp3 extension is used for audio files like songs.
Fill both blanks to create a dictionary mapping file types to their common extensions.
file_extensions = {"text": [1], "image": [2]Text files use .txt and image files use .jpg extensions.
Fill all three blanks to create a dictionary mapping file types to their extensions, including audio files.
file_types = {"text": [1], "audio": [2], "image": [3]Text files use .txt, audio files use .mp3, and image files use .jpg.
