Alright, I know how to print variables and strings. But how can I print something like \"My string\" card.price (it is my variable). I mean, here is my code: print \"
print \"
Something that (surprisingly) hasn't been mentioned here is simple concatenation.
Example:
foo = "seven" print("She lives with " + foo + " small men")
Result:
She lives with seven small men
Additionally, as of Python 3, the % method is deprecated. Don't use that.
%