lowercase letters
Author |
Message |
pwnapple
|
Posted: Tue Jan 24, 2006 9:00 am Post subject: lowercase letters |
|
|
how do i make the input to all lowercase letters?
thx[/code] |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Delos
|
Posted: Tue Jan 24, 2006 10:24 am Post subject: (No subject) |
|
|
For this you'll need some chr()'ing and some ord()'ing.
e.g.
code: |
put ord('1') % --> 49
put chr(34) % --> "
|
Next, you'll want to look at each letter at a time, do a bit of maths with the numbers, and output the desired sequence of letters. Yes, I'm keeping this cryptic, because this is a simple problem that you should be able to solve on your own - now that you have the chr/ord. |
|
|
|
|
|
do_pete
|
Posted: Tue Jan 24, 2006 11:11 am Post subject: (No subject) |
|
|
Or you could use Str.Lower (string) if you have a version of Turing that has that |
|
|
|
|
|
Andy
|
Posted: Tue Jan 24, 2006 12:07 pm Post subject: (No subject) |
|
|
maybe its just me, but i dont think you should use any functions that you cant recreate yourself |
|
|
|
|
|
|
|