Discord Server Red Security Twitter Donation to Red Security Red Security Youtube Channel Red Security Tumblr Profile
Login or Register to Hide ads and Accessing all features on the forum

Tutorial 

Python 4: Comments in Python

0 Replies, 732 Views

Comments: 
           Comments are important in writing code. No matter how small or big your project is, comments should be added to your code so that your code will not be confusing and at debugging things will not be more complex.
Comment in python starts with hash sign “#”. Comments are not run as Python code. So, they will not have any effect on the result. 
For example

Code:
print(7 + 10)

# Addition of two numbers

print(10/2) # Division

Exclamation It was a quick and important which I forgot to mention in early threads so enjoy your coding journey take care. Bye and Allah Hafiz...
Love me like you do Heart
(This post was last modified: 04-17-2022, 12:54 AM by Covid-19.)

Messages In This Thread
Python 4: Comments in Python - by Covid-19 - 04-17-2022, 12:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tutorial Doubly Linked List in Python Covid-19 0 2,280 07-30-2022, 09:15 PM
Last Post: Covid-19
  Tutorial Linked List in Python Covid-19 2 2,701 07-30-2022, 08:25 PM
Last Post: Covid-19
  Tutorial File Handling in Python Covid-19 2 2,737 06-16-2022, 06:17 PM
Last Post: Covid-19
  Tutorial Exceptions in Python Covid-19 0 1,881 06-08-2022, 09:19 PM
Last Post: Covid-19
  Free Automate the boring stuff with Python Covid-19 0 1,638 06-07-2022, 06:58 PM
Last Post: Covid-19
  Tutorial Turtle in Python Covid-19 0 1,869 06-02-2022, 10:14 PM
Last Post: Covid-19
  Tutorial Python 3.5: Class Methods Covid-19 0 1,821 05-29-2022, 01:07 PM
Last Post: Covid-19
  Tutorial Python 3.2: Inheritance in Python Covid-19 2 2,874 05-27-2022, 06:47 PM
Last Post: Covid-19
  Tutorial Python 3.4: Encapsulation and Abstraction Covid-19 0 1,853 05-27-2022, 06:45 PM
Last Post: Covid-19
  Tutorial Python 3.3: Operator Overloading Covid-19 2 2,871 05-26-2022, 08:50 PM
Last Post: Covid-19



Users browsing this thread: 1 Guest(s)