Coding Adventure 4: Let’s continue to learn about the benthic animals!

Discover Python in the Ocean

Everything from movement through loops, conditions to nested structures in your winter journey with Python

免费加入

描述

When we finish this adventure we will have reached the middle of our journey. We can do this! It's time to get to know the sea inhabitants well!

预览视频

任务

有多少块薄冰?

该计划是向前移动,并打印一张关于我们已经滑过的薄冰块数的记录,以便获得拐杖糖。 非常容易!

让我们一起再写一个字母!

正如我们以前所做的那样,当我们到达冒险的最后环节时,我们需要滑冰来收集最后的装饰品,同时在冰上写下另一个字母来完成我们的圣诞愿望。

薄冰和裂冰哪个块数更多?

很好,现在我们需要去拿糖果。我们需要能够计算出薄冰块的数量,以及我们经过的裂冰数。不仅如此,如果薄冰块数大于裂冰块,我们还需要打印出薄冰块的颜色。 反之,则需要打印裂冰块的颜色。

绿色的拐杖糖在哪里:左边还是右边?

我们需要去拿糖果并计算出我们经过的薄冰和裂冰的冰块数。如果我们发现薄冰数大于裂冰数,则需要向右移动来拿糖果。 反之,如果裂冰块的数量较多,则向左移动去拿糖果。

有多少块薄冰和裂冰?

我们需要向前移动并计算出危险冰块(薄和破裂)数,然后将数值加到我们已经滑过的危险冰块上, 最后打印该数字记录。

Discover Python in the Ocean

Everything from movement through loops, conditions to nested structures in your winter journey with Python

免费加入
Canada Flag 隐私政策使 使用条款
Got an invite