Python Forum
py.exe: printing ascii number 7
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
py.exe: printing ascii number 7
#1
I was messing around in python with ascii,
And I found something I think is interesting.
This:
quitfunc = 'r'
while(quitfunc == 'r'):
    ascnum = input('input an ascii number\nstandard 0-127\n')
    ascnum = int(ascnum)
    asctext = str(chr(ascnum))
    print(asctext)
    quitfunc = input("type 'r' to redo\n")
and that if you input 7,
it makes a "beep" sound despite it saying
print(asctext)
another weird thing about this is that it doesn't work with shell,
only with py.exe.
I wanna know why this happens.
I also wanna know if this works on other operating systems,
or other versions of python(I was using 3.6.3)
sadly, I couldn't find a "beep" sound that accurately sounded like
the one in py.exe, so your just gonna have to take my word for it.
Reply


Messages In This Thread
py.exe: printing ascii number 7 - by qrani - Aug-27-2018, 01:12 AM
RE: py.exe: printing ascii number 7 - by Larz60+ - Aug-27-2018, 02:49 AM
RE: py.exe: printing ascii number 7 - by DeaD_EyE - Aug-27-2018, 09:52 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020