Comments
Comments are used to explain your code and they have nothing to do with the interpreter. Interpreter ignores your comment and do not consider them the part of your code. They just make your code more readable.
There are two types of comments:
- Single Lined Comments
- Multi Lined Comments
Single Lined Comments
Put a hash symbol "#" before the line which you want to comment.
Or;
Multi Lined Comments
Put three quotation marks at the start and end of the lines you want to comment.
You can also put # before multiple lines.
Practice Exercises
Complete these exercises to reinforce your learning and earn XP
Sign in to track your progress and earn XP!
Exercise 1 of 2Easy
Which of the following is a best practice in programming?
10 XP~2 min
Exercise 2 of 2Easy
Code that is easy to read and understand is called ___ code.
10 XP~2 min