Comment on Zed Shaw is Writing A Book Teaching Beginner PythonComments−dotandimet16yThe first example print statements in Zed's book have backticks (`foo`). I don't know Python, but I'm guessing those should be single ticks ('foo')?−Estragon16yNot in the rendering I see.But backticks are valid python syntax, but relatively unused, these days. The contents of backticks are evaluated, and the result is returned as a string representation. >>> `1+1` '2'
Comments
The first example print statements in Zed's book have backticks (`foo`). I don't know Python, but I'm guessing those should be single ticks ('foo')?
Not in the rendering I see.
But backticks are valid python syntax, but relatively unused, these days. The contents of backticks are evaluated, and the result is returned as a string representation.