首页 > 其他 > 详细

My notebook-Exercise 2: Comments and Pound Characters

时间:2021-07-12 15:39:01      阅读:19      评论:0      收藏:0      [点我收藏+]

Exercise 2: Comments and Pound Characters

Tasks

  • Learn how to use comments in Python.

 

What I Did

In the text editor:

技术分享图片

In the command:

技术分享图片


What I Learned

  1. Comments are used to tell you what something does in English so that you can understand the parts of script when you come back to  them later. 

  2. Comments can also be used to comment out a piece of code, which means it will not be run in the command.

  3. How to tell the computer what part of the code is a comment?

Put an # character in front of the line that you want to comment out or use as a comment. 

    1. The # character can be called octothrope, pound, hash, and mesh.

My notebook-Exercise 2: Comments and Pound Characters

原文:https://www.cnblogs.com/Irene0831/p/15001647.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!