Complete the code to print a simple AI greeting message.
print([1])
The print function requires a string inside quotes to display text. Option A correctly provides a string with quotes.
Complete the code to create a list of AI technologies.
ai_tech = [[1]]List elements must be strings inside quotes and separated by commas. Option D correctly uses double quotes and commas.
Fix the error in the code that checks if AI is transforming technology.
if ai_impact [1] "transforming": print("AI is transforming technology")
The double equals sign (==) is used to compare values in an if statement. Option B is correct.
Fill both blanks to create a dictionary mapping AI fields to their descriptions.
ai_fields = { [1]: [2] for [1] in ["ML", "NLP", "CV"]}The code creates a dictionary comprehension. The key is the variable 'field' and the value is 'field.upper()' to show uppercase descriptions.
Fill all three blanks to filter AI technologies with names longer than 3 characters.
filtered_ai = { [1]: [2] for [1] in ai_tech if len([3]) > 3 }The dictionary comprehension uses 'tech' as the key, 'tech.upper()' as the value, and filters by length of 'tech'.