You will need a copy of the Java Edition of Minecraft to use Code Kingdoms, as that is the only version which supports coding 🙂.
Unfortunately that is only supported on Mac, Windows & Linux computers. Be careful not to select "Bedrock" or special "Windows 10 edition" - these are not the main edition of Minecraft. We wish Microsoft would make things clearer 😪.
Minecraft Java looks like this when you open it:
You can download it from the official Minecraft website here (be sure to select the Java edition):