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

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.

主站蜘蛛池模板: 隆安县| 嘉鱼县| 泸州市| 榕江县| 中方县| 乐亭县| 新和县| 崇仁县| 策勒县| 鹤壁市| 南投县| 社旗县| 天峻县| 南城县| 曲周县| 西昌市| 石林| 黄梅县| 内江市| 时尚| 沈阳市| 盈江县| 托克逊县| 靖西县| 韶山市| 全州县| 通江县| 绵阳市| 淮滨县| 唐海县| 木兰县| 龙川县| 高安市| 木里| 桐梓县| 吴江市| 连南| 密云县| 九龙坡区| 祁东县| 宁海县|