Search code examples
pythonsymbols

what is the purpose of these symbols in Python? ♀ ♂


print('\f') outputs ♀ (female symbol) and print('\v') outputs ♂ (male symbol). Since these symbols are not part of the ASCII characters, why does python output them?

Bonus question: I get why '\f' is the female symbol, but why is '\v' the male?


Solution

  • \f stands for Form Feed while \v stands for Vertical Tabulator.

    These are included because they are included with your font. There is also \t, \r and \n.