How '\a' equal to '\7' in python?
python
Solution
`\a` is escaped character sequence for control character BEL (a for alert). The character's ASCII code is also happened to be 7, which matches the octal value in the escape sequence `\7`.
References:
http://en.wikipedia.org/wiki/Bell_character
http://docs.python.org/reference/lexical_analysis.html#string-literals
Problem
``` a = '\a' >>> b = '\7' >>> a == b True >>> ``` How can `a` and `b` be equal? Can someone give the reason?