Will the following lines of code print the same thing? Explain why or why not.
x = 7
print(x)
print("x")
The following lines of code do not print the same thing.
The output is 7 and x.
The line "print(x)" displays variable x
The line "print("x")" displays string "x"
Comments
Leave a comment