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

Don’t Sweat It – Chill with Crompton Air Cooler Deals

 ðŸŒž Don’t Sweat It – Chill with Crompton Air Cooler Deals  More Details : https://www.amazon.in/s?k=laptops+under+70000&crid=29QIFPXQYB3...