Complete the code to declare a variable named 'resourceGroup' with the value 'myResourceGroup'.
resourceGroup = "[1]"
The variable resourceGroup should be assigned the string "myResourceGroup".
Complete the code to create a loop that iterates over the list of VM names.
for vm in [1]: print(vm)
The loop should iterate over the list ["vm1", "vm2", "vm3"] to print each VM name.
Fix the error in the code to correctly increment the counter variable inside the loop.
count = 0 for i in range(5): count [1] 1
= instead of increment +=.== by mistake.The operator += correctly increments the variable count by 1 inside the loop.
Fill both blanks to create a dictionary comprehension that maps VM names to their lengths, but only for names longer than 3 characters.
{vm[1]: len(vm) for vm in vmList if len(vm) [2] 3}The dictionary keys are the VM names converted to uppercase using .upper(). The condition filters names with length greater than 3 using >.
Fill all three blanks to create a dictionary comprehension that maps VM names in lowercase to their status, but only include VMs with status 'running'.
{vm[1]: status for vm, status in vmStatus.items() if status [2] '[3]'}= instead of comparison ==.The VM names are converted to lowercase using .lower(). The condition checks if the status equals 'running' using ==.