Printing special characters 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 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')

Related

Why am I getting this "ImportError: cannot import name 's_remover' from 'S_Remover'" [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 6 days ago.
Improve this question
I don't see any circular dependency, no misspelling, and no misposition of my class. It is still having an import error nonetheless.
I tried writing a function to take in a string, and return that string but all uppercase, and with all of the "S" characters removed. I was expecting to be able to import this into my test file under the same directory, but it is unable to import.enter image description here

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?

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()

Why isn't the while-loop working 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 2 years ago.
Improve this question
I tried a basic while-loop in Python 3.8 but I always get a syntax error. Anybody know why?
I tried Notepad++ but when I write the loop, Python doesn't run
i = 1
while i <= 5:
print(i)
i += 1
This works in PyCharm, looking at the image it seems that you wrote the if statement
and the print() on the same line. Which also gave me an error.

Python 3.5.2 TypeError:' int ' object is not callable [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 6 years ago.
Improve this question
When module openpyxl was imported, I want to get the highest row. Then it turned out to be an Error.
The error speaks for itself, max_row is not callable.
# do This
print (sheet.max_row)
# instead of
print (sheet.max_row())

Categories