官术网_书友最值得收藏!

Debug and print() – detecting your bugs

We can use the Debug panel (at the bottom of the following screenshot) using print(). So, let's see how print() works by printing both our name and age. We can do this by adding the following:

print(fullName)
print(age)

It should appear on your screen as follows:

You should now see the output in both the Results and Debug Panels. Using print() allows us to see things in our Debug Panel and therefore verify expected results. Using print() is a handy debugging tool.

主站蜘蛛池模板: 磴口县| 松原市| 太和县| 石景山区| 滦南县| 河东区| 镇雄县| 隆德县| 牟定县| 新安县| 晋州市| 顺昌县| 寿阳县| 镇江市| 华阴市| 定结县| 即墨市| 融水| 邓州市| 南郑县| 巴彦淖尔市| 岢岚县| 黄山市| 和龙市| 辰溪县| 甘泉县| 聂拉木县| 邯郸市| 昌图县| 正蓝旗| 永安市| 余江县| 石阡县| 牟定县| 平顶山市| 平远县| 万州区| 扶绥县| 湄潭县| 兴山县| 如东县|