Complete the code to print the type of software license.
license_type = "GPL" print("The license is [1]")
The variable license_type holds the license name. Using it without quotes prints its value.
Complete the code to check if the license is 'MIT'.
if license == [1]: print("License is MIT")
String values must be enclosed in quotes when compared in code.
Fix the error in the code to print 'Free software' if license is 'GPL'.
if license == [1]: print("Free software")
The license name 'GPL' must be a string literal in quotes for comparison.
Fill the blank to create a dictionary of licenses and their types.
licenses = [1]Option B provides the complete dictionary enclosed in braces with key-value pairs for licenses.
Fill all three blanks to filter licenses that are Open Source.
open_source = {k: v for k, v in licenses.items() if v [1] [2]
print(open_source.get([3], "Not found"))The filter checks if the license type equals 'Open Source'. Then it prints the value for key 'MIT'.
