multi line cooment in python 1

multi line cooment in python

#single line comment 

"""
    multi
        line
           comment
"""

Here is what the above code is Doing:
1. We’re creating a variable called “name” and setting it equal to a string of our name.
2. We’re creating a variable called “age” and setting it equal to an integer of our age.
3. We’re creating a variable called “gpa” and setting it equal to a float of our GPA.
4. We’re creating a variable called “is_male” and setting it equal to a boolean value of our gender.
5. We’re creating a variable called “favorite_food” and setting it equal to a list of our favorite foods.
6. We’re creating a variable called “least_favorite_food” and setting it equal to a tuple of our least favorite foods.
7. We’re creating a variable called “favorite_sport” and setting it equal to a dictionary of our favorite sports.
8. We’re creating a variable called “favorite_color” and setting it equal to a set of our favorite colors.
9. We’re creating a variable called “favorite_number” and setting it equal to a complex number of our favorite number.

Similar Posts