Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)
Can anyone tell me, Is there any possibility of getting a ° (degree) character into a string?

1 Answer

0 votes
by (26.4k points)

Look at the following line:

# -*- coding: utf-8 -*-

Just put this line at the top of the source

In case, your editor uses a dissimilar encoding, then replace for utf-8

Want to know more about python? Come and join: python course

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Sep 10, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer

Browse Categories

...