Computer Science, asked by Adityaakadam4284, 11 months ago

how to display degree symbol in python

Answers

Answered by sbala101963
0

Answer: The Adafruit LCD seems to use a HD44780 compatible display - this supports an extended ASCII character set, not Unicode.

It should have a '0' superscript character which you could use as the degree symbol.

You should be able to print this character using chr(176) like this:

lcd.message("Temperature: \n"+ str(temp)+ chr(176)+ "C")

Hope this helps.

Explanation:

Similar questions