Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

superscript print python

print("Superscript: xu00b2")
Comment

superscript python

# function to convert to superscript
def get_super(x):
    normal = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-=()"
    super_s = "ᴬᴮᶜᴰᴱᶠᴳᴴᴵᴶᴷᴸᴹᴺᴼᴾQᴿˢᵀᵁⱽᵂˣʸᶻᵃᵇᶜᵈᵉᶠᵍʰᶦʲᵏˡᵐⁿᵒᵖ۹ʳˢᵗᵘᵛʷˣʸᶻ⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾"
    res = x.maketrans(''.join(normal), ''.join(super_s))
    return x.translate(res)
  
# display superscipt
print(get_super('GeeksforGeeks')) #ᴳᵉᵉᵏˢᶠᵒʳᴳᵉᵉᵏˢ
Comment

PREVIOUS NEXT
Code Example
Python :: select multiple dict 
Python :: conda install pypy 
Python :: remove first item form dictionary python 
Python :: Python Remove all occurrences of a character from a string 
Python :: python convert json string to class 
Python :: multiprocessing join python 
Python :: print for loop in same line python 
Python :: python string to list of int 
Python :: how to check all the elements in a list are even or not 
Python :: What does hexdigest do in Python? 
Python :: scrapy proxy pool 
Python :: python get local ipv4 
Python :: python exec script 
Python :: plotly go axis labels 
Python :: python unresolved import vscode 
Python :: csv len python 
Python :: pyodbc cursor create list of dictionaries 
Python :: list comprehesion python 
Python :: count specific instances in a columb in pandas 
Python :: how to change int to four decimal places in python 
Python :: concatenate list of strings python 
Python :: modify a list with for loop and range function in python 
Python :: import stock data from yahoo finance 
Python :: sphere volume formula 
Python :: numpy create array with values in range 
Python :: timedelta python 
Python :: RGB To Hex Conversion python 
Python :: how to show mean values on histogram in seaborn 
Python :: render() in django 
Python :: regex for repeating words python 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =