This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
got it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def matrix_to_tex(matrix) -> str: | |
tex_str = '\\begin{matrix}\n' | |
lines_strs = list() | |
for line in matrix: | |
lines_strs.append(' & '.join([str(el) for el in line])) | |
tex_str += '\\\\\n'.join(lines_strs) + '\n\\end{matrix}' | |
return tex_str |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def weather_status_to_emoji(status: str) -> str: | |
if status == "Clouds": | |
return u'\U00002601' | |
if status == "Clear": | |
return u'\U00002600' | |
if status == "Rain": | |
return u'\U00002614' | |
if status == "Extreme": | |
return u'\U0001F300' | |
if status == "Snow": |