第 6 步:我们现在有了用户的输入,但它有效吗?这家冰淇淋店一次最多卖三勺。
我们可以在 if 语句中使用>=来查看一个值是否大于或等于另一个值。
- 在 LOGIC 中,转到并拖动Greater Than or Equal To?在 try 语句中。
- 在新的 if 语句中将scoops更改为my_var 。将0更改为4 。删除打印· True从 if 语句。
- 从在 if 语句中拖动Integer Variable 。缩进四次或十六个空格!
To navigate the page using the TAB key, first press ESC to exit the code editor.