1370
Comment: having problems getting UTF-8 or unicode friendly encoded sample - wikimedia incubator seems to work best
|
1866
attempt at code snippet
|
Deletions are marked like this. | Additions are marked like this. |
Line 42: | Line 42: |
#! ---- encoding utf-8 ---- | |
Line 43: | Line 44: |
# random Punjabi words # Python 3.1, OrderedDict from collections import OrderedDict وکیپیڈیا = OrderedDict() وکیپیڈیا['پنجابی'] = 'some random Punjabi text' وکیپیڈیا['انسائیکلوپیڈیا'] = 'some more random Punjabi text' وکیپیڈیا['اک کھلا '] = 'and yet even more random Punjabi text' for randomword in وکیپیڈیا: print(randomword) print(وکیپیڈیا[randomword]) print('\n') |
Links to Python related information in Western Punjabi
ISO 639-3 Code: pnb
پنجابی
stub - in work
Shamukhi words courtesy of wikimedia
#!
encoding utf-8
# random Punjabi words # Python 3.1, OrderedDict from collections import OrderedDict وکیپیڈیا = OrderedDict() وکیپیڈیا['پنجابی'] = 'some random Punjabi text' وکیپیڈیا['انسائیکلوپیڈیا'] = 'some more random Punjabi text' وکیپیڈیا['اک کھلا '] = 'and yet even more random Punjabi text'
for randomword in وکیپیڈیا:
- print(randomword) print(وکیپیڈیا[randomword]) print('\n')