Skip to content

Commit 57b5f13

Browse files
authored
Merge pull request #1 from kshitij10496/unicode_identifier
Python3 supports naming identifiers using Unicode character set
2 parents decd256 + 0461bf6 commit 57b5f13

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,17 @@ From the Zen again,
115115
There should be one-- and preferably only one --obvious way to do it.
116116
```
117117

118+
### 10. Naming identifiers can be unspeakably cool
119+
Just when you thought that working in Python couldn't possibly *be* any more fun,
120+
```
121+
>>> from math import pi
122+
>>> π = pi
123+
>>> area = π * r**2
118124
125+
>>> résumé = 'knows Python'
126+
>>> 'Python' in résumé
127+
True
128+
```
119129

120130
## Notes
121131
1. Easiest hello world program in a language without calling any function
@@ -127,6 +137,7 @@ There should be one-- and preferably only one --obvious way to do it.
127137
7. Guido van Rossum is a big fan of [Monty Python's Flying Circus](https://en.wikipedia.org/wiki/Monty_Python%27s_Flying_Circus)
128138
8. It's a substitution cipher called [ROT13](https://en.wikipedia.org/wiki/ROT13)
129139
9. In many languages there are two ways to do the same thing `--no` and `no--`. The message has a hidden example in itself
140+
10. Support for unicode character set for naming identifiers was added in Python3. Though, it is not explicitly preferred while writing code, it adds flavour to working with scientific formulas.
130141

131142
## Add more
132143

0 commit comments

Comments
 (0)