1265
Comment: added lang code + category
|
← Revision 6 as of 2009-10-24 04:34:17 ⇥
2063
tried to fix formatting
|
Deletions are marked like this. | Additions are marked like this. |
Line 33: | Line 33: |
Punjabi in code snippet courtesy of sarwara - Sikh blogger and moderator of [[http://www.phrasebase.com/forum/members/s/sarwara.php|phrasebase.com]] {{{#!python # -*- coding: utf-8 -*- # python 3.0 or 3.1 ਪੰਜਾਬੀ1 = 'ਮੈਂ ਨਿੱਕੀ ਉਮਰੇ' ਪੰਜਾਬੀ2 = 'ਸਾਰਾ ਦਰਦ ਹੰਡਾ ਬੈਠਾ' ਪੰਜਾਬੀ3 = 'ਸਾਡੀ ਜੋਬਨ ਰੁੱਤ ਲਈ' ਪੰਜਾਬੀ4 = 'ਦਰਦ ਕੁਵਾਰਾ ਹੋਰ ਦਿਉ' # easier to do this with list # use of dictionary to illustrate keys and Punjabi identifiers ਸਿ਼ਵ = {1:ਪੰਜਾਬੀ1, 2:ਪੰਜਾਬੀ2, 3:ਪੰਜਾਬੀ3, 4:ਪੰਜਾਬੀ4} for numx in range(4): print(ਸਿ਼ਵ[numx + 1]) }}} |
Links to Python information in Punjabi Language here.
ISO 639-1 Code: pa
ਪੰਜਾਬੀ
Punjabi in code snippet courtesy of sarwara - Sikh blogger and moderator of phrasebase.com
1 # -*- coding: utf-8 -*-
2 # python 3.0 or 3.1
3
4 ਪੰਜਾਬੀ1 = 'ਮੈਂ ਨਿੱਕੀ ਉਮਰੇ'
5 ਪੰਜਾਬੀ2 = 'ਸਾਰਾ ਦਰਦ ਹੰਡਾ ਬੈਠਾ'
6 ਪੰਜਾਬੀ3 = 'ਸਾਡੀ ਜੋਬਨ ਰੁੱਤ ਲਈ'
7 ਪੰਜਾਬੀ4 = 'ਦਰਦ ਕੁਵਾਰਾ ਹੋਰ ਦਿਉ'
8
9 # easier to do this with list
10 # use of dictionary to illustrate keys and Punjabi identifiers
11 ਸਿ਼ਵ = {1:ਪੰਜਾਬੀ1,
12 2:ਪੰਜਾਬੀ2,
13 3:ਪੰਜਾਬੀ3,
14 4:ਪੰਜਾਬੀ4}
15
16 for numx in range(4):
17 print(ਸਿ਼ਵ[numx + 1])