Python Forum
Morse Code Practice Script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Morse Code Practice Script
#10
Just an update, I made some changes to the original code posted above (thought it was better than re-posting the entire code again).

Line 98: added the 'single close quote' (\u00b4) back into the punc string, so it now reads:
punc = '.,?`!/()&:;=+-_$@\u00b4'    # ยด = '\u00b4'
Line 164: added encoding to the open statement, so it now reads:
with open('code_file.txt', 'r', encoding='utf-8') as file:
I will try and run it on Linux this weekend to make sure in works on that OS as well.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
Morse Code Practice Script - by sparkz_alot - Jan-18-2018, 03:56 PM
RE: Morse Code Practice Script - by Larz60+ - Jan-18-2018, 04:31 PM
RE: Morse Code Practice Script - by Skaperen - Jan-24-2018, 04:46 AM
RE: Morse Code Practice Script - by Larz60+ - Jan-24-2018, 10:38 AM
RE: Morse Code Practice Script - by league55 - Jan-24-2018, 10:46 AM
RE: Morse Code Practice Script - by sparkz_alot - Jan-24-2018, 02:24 PM
RE: Morse Code Practice Script - by Larz60+ - Jan-24-2018, 06:05 PM
RE: Morse Code Practice Script - by league55 - Jan-24-2018, 11:13 PM
RE: Morse Code Practice Script - by Skaperen - Jan-25-2018, 05:43 AM
RE: Morse Code Practice Script - by sparkz_alot - Jan-31-2018, 04:00 PM
RE: Morse Code Practice Script - by Skaperen - Feb-01-2018, 03:24 AM
RE: Morse Code Practice Script - by sparkz_alot - Feb-01-2018, 02:06 PM
RE: Morse Code Practice Script - by sparkz_alot - Feb-04-2018, 03:47 PM
RE: Morse Code Practice Script - by Skaperen - Feb-06-2018, 03:41 AM
RE: Morse Code Practice Script - by sparkz_alot - Feb-06-2018, 02:03 PM

Forum Jump:

User Panel Messages

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