Natrium
Natrium

Reputation: 185

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?

Upvotes: 0

Views: 852

Answers (1)

Seaver Olson
Seaver Olson

Reputation: 478

\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.

Upvotes: 1

Related Questions