· By Codomo Singapore
Forbidden Magic III: The Answer to All
For a moment, Potato King was speechless. His throat felt tight and his heart sank as his eyes tried to make sense of the words on the Answer to All.
The truth has now become clear. He had messed up the ritual. It split him into seven different parts, each a different aspect of himself and sealed them into their own frozen time. He had been erased from the timeline in which his crew existed, and the only one who had been trapped in this current time was the lone spear-holding potato, who had been standing guard outside his cabin when the explosion occurred.
While it rendered him immortal technically, he was an incomplete entity. Yet, despite all this, he felt oddly cheerful and optimistic - no matter; he would have time to find the other six pieces and reunite them. After all, he still had his trusty ship, and finding a crew would be fun - meeting new friends would be a wonderful thing.
Congratulations! Your help has revealed the truth to Potato King, who is now determined to seek out the other six pieces of himself. You had also gone on a great journey, ending it off with a real bang!
As promised to all our Challenge 2 Buds, Spuds and Sages, below are your secret chests. When you have found your special keyword, key it into their suspiciously modern interfaces and you will get your cool rewards!
What you could have learnt
- Creating a variable
- Creating a function || def myfunction():
- What is a string, index, ASCII || index starts from 0 , chr(97) = 'a'
- Assigning some content to your variable using =
- Changing mutable content with operators || + - += -=
- If-loops || if char == key:
- elif, also known as else if || elif char == key2:
- If-else loops || if char == key: ... else: ...
- For loops || for char in string: ...
- String formatting || string = string + char, string.replace(char, '')
- File actions || file.open(PATH , 'r') , file.read(), file.readlines()
- Dictionaries and their key-value pairs|| my_dict = {key1: value1 , key2: value2 }
- Getting dictionary keys || keys = my_dict.keys()
- Getting dictionary values using their keys || value = my_dict[key1]
- Getting one character in a string || char1 = string[0]
- Regular expression (regex) || r'\b{1,10}\w\b'
Thank you so much for participating!
We hope that you had a great time with programming, especially if this is your first time trying to code. To help us better improve possible future events, please take a couple minutes of your time filling out the feedback form below. As always, may the winds always be on your back!
Speaking of encryption
Can a board game alone teach cybersecurity to children?
Potato Pirates — Enter the Spudnet is a board game inspired by how the Internet works. Dispatch ships, fulfill orders and dodge cyber-attacks while learning a thing or two about network and cybersecurity. Now available on our website!