Flashield's Blog

Just For My Daily Diary

Flashield's Blog

Just For My Daily Diary

Day: January 19, 2024

exercise-booleans-and-conditionals【练习:布尔值及条件语句】

This notebook is an exercise in the Python course. You can reference the tutorial at this link. Try It Yourself Think you are ready to use Booleans and Conditionals? Try it yourself and find out. To get started, run the setup code below before writing your own code (and if you leave this notebook and […]

booleans-and-conditionals【布尔值及条件语句】

Booleans Python has a type of variable called bool. It has two possible values: True and False. 布尔值 Python 有一种称为bool的变量类型。 它有两个可能的值:True和False。 x = True print(x) print(type(x)) True Rather than putting True or False directly in our code, we usually get boolean values from boolean operators. These are operators that answer yes/no questions. We’ll go through […]

exercise-functions-and-getting-help【练习:函数】

This notebook is an exercise in the Python course. You can reference the tutorial at this link. Try It Yourself Functions are powerful. Try writing some yourself. As before, don’t forget to run the setup code below before jumping into question 1. 自己尝试一下 函数功能强大。 尝试自己写一些。 和以前一样,在进入问题 1 之前,不要忘记运行下面的设置代码。 # SETUP. You don't need to worry […]

Scroll to top