# How to typeset a sans-serif \pi?

I would like to have different versions of $\pi$, to distinguish between them. However, commands like $\mathsf{\pi}$ don't alter the appearance of pi as compared to just $\pi$. Similarly for $\texttt{\pi}$. Could you tell me if there is any way to get different pi's?

Adapting the solution by [egreg (2016)], we define \sfpi.
\documentclass{article}
\DeclareMathSymbol{\sfpi}{\mathord}{sfitgreek}{p}
$\pi \sfpi$
`