- Code: Select all
x = 1
print("x is {}.").format(x)
y = 2
print("y is {}.").format(y)
Then highlight the bottom 2 lines and turn it to this:
- Code: Select all
x = 1
print("x is {}.").format(x)
# y = 2
# print("y is {}.").format(y)
I'm sure there is an easy way to do this (as ST has thought of everything), but I can't seem to find it.