To display the variables var_1
, var_2
, var_3
, var_4
, var_5
, var_6
, and var_7
such that a maximum of two variables are printed in a single statement, and they are displayed in the specified order, the correct approach would be:
print(var_1, var_2)
print(var_3, var_4)
print(var_5, var_6)
print(var_7)
This satisfies all the requirements: it displays each variable in the specified order, and each print statement contains a maximum of two variables.
Hence, the second option is the correct response:
print(var_1, var_2)
print(var_3, var_4)
print(var_5, var_6)
print(var_7)