Complete the code to identify which language is high-level.
language = "Python" if language == [1]: print("This is a high-level language.")
Python is a high-level language because it is easy to read and write, closer to human language.
Complete the code to check if a language is low-level.
language = "Assembly" if language == [1]: print("This is a low-level language.")
Assembly language is low-level because it is closer to machine code and harder for humans to read.
Fix the error in the code to correctly identify a high-level language.
language = "JavaScript" if language == [1]: print("High-level language detected.")
The error is using '=' instead of '=='. The blank should be the language name to compare.
Fill both blanks to create a dictionary mapping languages to their level.
languages = {"Python": [1], "Assembly": [2]Python is a high-level language, and Assembly is a low-level language.
Fill all three blanks to create a dictionary comprehension filtering high-level languages.
high_level = {lang: level for lang, level in languages.items() if level == [1] and lang != [2] and lang != [3]This comprehension keeps only languages labeled 'high-level' and excludes 'Assembly' and 'Machine code'.