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

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.

主站蜘蛛池模板: 都江堰市| 三都| 阳春市| 无棣县| 南京市| 舒兰市| 灵川县| 宁南县| 澳门| 景德镇市| 宜春市| 宁化县| 宜兰县| 庄浪县| 三台县| 拉萨市| 杭锦旗| 内黄县| 临洮县| 牙克石市| 昌都县| 大方县| 邛崃市| 汉沽区| 丰台区| 改则县| 营山县| 神池县| 惠水县| 尚志市| 鄯善县| 新田县| 定边县| 兴仁县| 湖南省| 兴文县| 钦州市| 永兴县| 闽侯县| 马鞍山市| 漳浦县|