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

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.

主站蜘蛛池模板: 许昌县| 吉木萨尔县| 潜山县| 广丰县| 马公市| 贵德县| 漯河市| 舟曲县| 鹤岗市| 济南市| 汝城县| 东丽区| 大余县| 镇康县| 麦盖提县| 漳浦县| 长乐市| 安溪县| 和龙市| 驻马店市| 甘孜县| 新源县| 金坛市| 台南县| 隆林| 喀什市| 尼勒克县| 兴安县| 鹤峰县| 宜黄县| 奎屯市| 大悟县| 阿拉善右旗| 全州县| 崇明县| 瑞丽市| 绵阳市| 乐安县| 惠东县| 陕西省| 古田县|