Letter replacer - suggestions?
Schachner, Joseph
Joseph.Schachner at Teledyne.com
Mon Dec 7 14:48:51 EST 2020
The only comment I have is that you didn't check the inputs at all. Suppose the word I type in is "1234". 1234 will turn into an int, not a string.
You can't index through an int, it's one thing. So the program will probably throw an error.
If the word at least starts with a letter, then it will be a string. If I say I want to replace "?" that may not exist in the string, but that's OK.
---- Joseph S.
-----Original Message-----
From: Bischoop <Bischoop at vimart.net>
Sent: Monday, December 7, 2020 10:48 AM
To: python-list at python.org
Subject: Letter replacer - suggestions?
I worked on my wee script that replaces a letters: https://bpa.st/OYBQ .
I would like to have some suggestions about the code from more experienced programmers, the code does work and do its job but perhaps could work in a better way.
Thanks
More information about the Python-list
mailing list