Sanjay Kapilesh
Sanjay Kapilesh

Reputation: 399

I need to superscript letters in python

The letter 'st' needs to be superscripted. Got unicodes that scripted number. Any help with strings? Without the use of extra modules.

name = ['Sanjay','sai','clarke','Bellamy']
for i, name in enumerate(name):
    print(f'{i}st place goes to {name}')

Upvotes: 0

Views: 121

Answers (1)

user6597761
user6597761

Reputation:

Consoles don't support superscripts natively.

You can leave it like that, or use some special characters to show that (ˢᵗ), but those might not be supported in some fonts or terminals.

Upvotes: 1

Related Questions