Which one of these is the correct way to display the variable var, containing number 1 as value, to the console?(1 point) Responses print(‘var’) print(‘var’) print(var) print(var) print(1) print(1) print(‘1’)

print(var)

The correct way to display the variable var, containing the number 1 as a value, to the console is:

print(var)

To display a variable named "var" containing the number 1 as its value to the console, you should use the print(var) statement.

Here's a breakdown of the given options and their explanations:

1. print(‘var’): This will output the string 'var', not the value of the variable.
2. print(‘var’): Same as the first option, it will output the string 'var'.
3. print(var): This is the correct way to display the value of the variable to the console. It will output the value of the variable, in this case, the number 1.
4. print(var): Same as the third option, it will output the value of the variable.
5. print(1): This will output the number 1 directly, not the value stored in the variable.
6. print(1): Same as the fifth option, it will output the number 1 directly.
7. print(‘1’): This will output the string '1', not the value of the variable.

So, the correct way to display the value of the variable var to the console is:
print(var)