Jump to content

Recommended Posts

Posted

Hello,

 

I wonder if anyone could help.

 

What script do I require for the following example.

 

when[space]key_pressed script that will take a word from the user and display a new word that is the same as the original except that each letter in the middle of the alphabet (j to q inclusive) has been replaced by a question mark (?).

The user should input the word as a single string and the new word that is displayed should be a single string.

For example, if the user enters

‘elephant’

then

‘e?e?ha?t’

is displayed.

 

Any help would be appreciated.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...