Hotspurs96 Posted July 13, 2022 Posted July 13, 2022 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.
mavhc Posted July 13, 2022 Posted July 13, 2022 My advice: Don't do string manipulation in Scratch https://en.scratch-wiki.info/wiki/Replacing_a_Character_in_a_String. It would be about 3 lines of Python
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now