How do you make a block comment in python? [closed] - python

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I have tried using triple quotes but it only turns the code green. As if i were to print it. Not red
"""
How do i make a block comment
"""
So how can i make a block comment, or is it supposed to be green.

'''
This is a multiline
comment. I can type here whatever I want.
'''

You have too many quotes in the closing line - you have 4. It should be 3

Related

why does my console show nothing in pyhon? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 months ago.
Improve this question
This is my coding
below one is the screenshot of the lecture
I would like to know why my console does not show anything, unlike the lecture.
I can't tell from the photos but it looks like you're not calling the function? and if you are, maybe with the wrong parameters, can you upload all of your code?

Python for loop and if control [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 months ago.
Improve this question
Greetings, I'm trying to make a user login using a for loop, but when I use and in the if block I use to cancel the operation, even if I don't enter 0, the process ends, but when I use or it doesn't work, why?
Number 3 and string '3' are not equal
example

How to make the text not repeat [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
In this photo, you can see it is repeating even though I didn't put any code for it to do so. I want to make sure it also is not happening to the other ones like the (e)open penguinos book command.
prompt - A String, representing a default message before the input.
input(prompt)
You don't have to add a default message:
input()

How do i get a comma delimited output using the print function in python [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am trying to separate this using "sep" in the print function. But I keep running into some syntax errors. Any ideas?
print ((my_loc_dict[a]),(my_env_dict[a]),sep=",")
Maybe like this?
print(a, ',' ,b)
Or if you don't want to use the cold comma each time you could do something like that :
myListOfValues = ['test', 'other','yet']
print(','.join(myListOfValues))

Printing special characters in Python [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am a beginner Python programmer and I wanted to use this character: █. I have tried just doing: print "█" but I always got an error. I Have looked for solutions, but have found nothing that helped me.
You can print any unicode symbol by using the \uxxxx notation. For instance, 2588 is a code for unicode block.
print('\u2588')

Categories