Types of Comments in Python - Creating a Comment

 Types of Comments in Python

Two types of comments in python

  Creating a Comment

  single line Comments starts with a #, and Python will ignore them:

   #print("Welcome to Training Center")


  Multi-Line Comments starts with

  """

  This is a comment

  written in

    more than just one line

   """

  Ex:

  #print('welcome to python single line comments')

  x=90

  print("x value is =",x)

  output : x value is = 90

 Ex: Multi-line Comments 

  """ 

  print('Basic python programming language')

  print("Web Designing and Web Development")  """

  print(""" Mobile App Designing and Development""")

  print("Python Frameworks : Django,Flask")

 output:  Mobile App Designing and Development, Python Frameworks : Django,Flask

No comments:

Post a Comment

Latest Post

How to Generate Barcode and QR code For Our Products

 మీ products కి barcode / QR code generate చేయాలంటే OPTION 1: ONLINE (No Coding – Quick) Best for small shops / beginners 👉Free websites: T...