Complete the code to define a valid variable name in Python.
my[1] = 10
Variable names can include letters, digits, and underscores but cannot start with a digit or contain special characters like '-' or '!'.
Complete the code to follow Python naming conventions for constants.
[1] = 3.14
Constants in Python are usually named using all uppercase letters with underscores separating words.
Fix the error in the variable name to make it valid.
user[1]name = 'Alice'
Variable names cannot contain spaces or hyphens and cannot start with digits. Using an underscore is valid.
Fill both blanks to create a dictionary comprehension with valid variable names and a condition.
{word: len(word) for word in words if len(word) [1] [2]The condition filters words with length greater than 3. The operator '>' and number '3' are needed.
Fill all three blanks to create a dictionary comprehension with uppercase keys, values, and a condition.
result = [1]: [2] for word in words if len(word) [3] 4
Keys are uppercase words using word.upper(), values are the original words, and the condition filters words longer than 4 characters.