Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 12
    import os; os.system('say "Beer time."'); print('\a\a\a') Commented Aug 27, 2015 at 22:41
  • the question is answered but... you do need quotation marks for special control characters they are still represented as strings print('\a') Commented Jun 18, 2018 at 14:09
  • Does not seem to be working for me on Mojave Commented Feb 14, 2019 at 15:49