{
  "format": "tokbit",
  "version": 1,
  "name": "Boom",
  "main": [
    {
      "id": "u1",
      "kind": "for",
      "variable": "i",
      "range": "1, 101",
      "body": [
        {
          "id": "u2",
          "kind": "if",
          "condition": "i % 7 == 0 or \"7\" in str(i)",
          "then": [
            {
              "id": "u3",
              "kind": "output",
              "values": "\"Boom\""
            }
          ],
          "else": [
            {
              "id": "u4",
              "kind": "output",
              "values": "i"
            }
          ],
          "comment": "The number turned into text: the in operator finds the digit 7."
        }
      ]
    }
  ],
  "functions": [],
  "comment": "Solution to the task “The Boom game”: Instead of the number write “Boom” when it is a multiple of seven or contains the digit 7 (17, 27, 70 …). Hint: \"7\" in str(i).",
  "screen": "fit"
}
