Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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'




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: