How to print degree symbol in python?
![](https://pythonpoint.net/wp-content/uploads/2020/12/Orange-Greyscale-Photo-Gaming-YouTube-Channel-Art-2-1024x576.jpg)
Degree symbol is very useful in mathematic operations and used to write temperatures.
Here we’ll see how to print degree symbol in python.
e.g.,
degree_sign = u"\N{DEGREE SIGN}" print(degree_sign)
![](https://pythonpoint.net/wp-content/uploads/2020/12/Screenshot-1086-1024x173.png)
e.g., using chr(176)
print("100",chr(176)) print("10",chr(176),sep='')
![](https://pythonpoint.net/wp-content/uploads/2020/12/Screenshot-1088-1024x157.png)
e.g.,
a = '\u00b0' print(a)
![](https://pythonpoint.net/wp-content/uploads/2020/12/Screenshot-1090-1024x156.png)
In this way we can print degree symbol in python.
Subscribe
Login
Please login to comment
0 Discussion