Skip to content

Comment on Zed Shaw is Writing A Book Teaching Beginner Python

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.

  >>> `1+1`
  '2'
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.