print("\007")
Actually, this alone makes a sound.
Since 0x7 of ASCII code is BEL, there is a sound when 0x7 is output.
Recommended Posts