I donot understand an escape sequence...

p4p1 [lexostras]
9 years ago | edited 9 years ago

0

So I am learning python with a great book and I did the escape sequence part and in the book there was this escape sequence:
\a

The writer defined it as an ascii bell. I understand what ascii is but not what bell is, I tried using the \a in some of my test code but I don’t know what it does. Nothing changes on the screen no sound ( yes I thought it would do a little sound :( ) and on google I found stuff about c programming and that if you want to use it in windows you need to do echo ^G but I still don’t understand why it does not do a sound in my python thing.

Sorry if this question is out of place. And might sound stupid but I am using python on my android this might be why there is a problem with the bell.
Edit 1: I just saw the error in the title sorry :s

4replies
2voices
236views
p4p1 [lexostras]
9 years ago

0

Thx @dloser but I already read that but what I am asking is why when I use \a nothing happens, my sound is on by the way :)

dloser
9 years ago

1

[quote=http://en.wikipedia.org/wiki/Bell_character]On modern systems this may not make a noise, it may instead make a visual indication such as flashing the screen, or do nothing at all.[/quote]

p4p1 [lexostras]
9 years ago

0

Oh my i fell dump thank you @dloser and sorry for me waisting your time, but that really is a shame that it doesn’t do anything.

Discussion thread has been locked. You can no longer add new posts.
1 of 5

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss