News for hackers. Stuff that matters.
Re:Hypermodern Python by kbenson on Thursday May 28, 2020 @12:55PM (#23339555)
Or use a heredoc to not worry about competing quote chars:

  # python << EOPYTHON
  print("Congrats, ${USER}")
  print("You are visitor ${RANDOM}")
  print("This is {__name__}, running in ${pwd}")
  print("It's a heredoc to allow both quote characters")
  EOPYTHON

There are no comments on this comment yet.