Skip to content

Commit 2c93e46

Browse files
committed
Translate string indexing and slicing basics
1 parent 22cff4f commit 2c93e46

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎locales/pa-IN/LC_MESSAGES/tutorial/introduction.po‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ msgstr ""
267267

268268
#: ../../tutorial/introduction.rst:235
269269
msgid "This only works with two literals though, not with variables or expressions::"
270-
msgstr ""
270+
msgstr "ਹਾਲਾਂਕਿ ਇਹ ਸਿਰਫ਼ literals ਨਾਲ ਕੰਮ ਕਰਦਾ ਹੈ, variables ਜਾਂ expressions ਨਾਲ ਨਹੀਂ::"
271271

272272
#: ../../tutorial/introduction.rst:237
273273
msgid ">>> prefix = 'Py'\n"
@@ -285,7 +285,7 @@ msgstr ""
285285

286286
#: ../../tutorial/introduction.rst:249
287287
msgid "If you want to concatenate variables or a variable and a literal, use ``+``::"
288-
msgstr ""
288+
msgstr "ਜੇ ਤੁਸੀਂ variables ਜਾਂ ਕਿਸੇ variable ਅਤੇ literal ਨੂੰ ਜੋੜਨਾ ਚਾਹੁੰਦੇ ਹੋ ਤਾਂ ``+`` ਵਰਤੋ::"
289289

290290
#: ../../tutorial/introduction.rst:251
291291
msgid ">>> prefix + 'thon'\n"
@@ -294,7 +294,7 @@ msgstr ""
294294

295295
#: ../../tutorial/introduction.rst:254
296296
msgid "Strings can be *indexed* (subscripted), with the first character having index 0. There is no separate character type; a character is simply a string of size one::"
297-
msgstr ""
297+
msgstr "Strings ਨੂੰ *indexed* (subscripted) ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ, ਜਿੱਥੇ ਪਹਿਲੇ ਅੱਖਰ ਦਾ index 0 ਹੁੰਦਾ ਹੈ। ਕੋਈ ਵੱਖਰੀ character type ਨਹੀਂ ਹੁੰਦੀ; ਇੱਕ character ਅਸਲ ਵਿੱਚ ਲੰਬਾਈ ਇੱਕ ਵਾਲੀ string ਹੀ ਹੁੰਦੀ ਹੈ::"
298298

299299
#: ../../tutorial/introduction.rst:258
300300
msgid ">>> word = 'Python'\n"
@@ -306,7 +306,7 @@ msgstr ""
306306

307307
#: ../../tutorial/introduction.rst:264
308308
msgid "Indices may also be negative numbers, to start counting from the right::"
309-
msgstr ""
309+
msgstr "ਸੱਜੇ ਪਾਸੇ ਤੋਂ ਗਿਣਤੀ ਸ਼ੁਰੂ ਕਰਨ ਲਈ indices ਨਕਾਰਾਤਮਕ (negative) ਵੀ ਹੋ ਸਕਦੇ ਹਨ::"
310310

311311
#: ../../tutorial/introduction.rst:266
312312
msgid ">>> word[-1] # last character\n"
@@ -319,11 +319,11 @@ msgstr ""
319319

320320
#: ../../tutorial/introduction.rst:273
321321
msgid "Note that since -0 is the same as 0, negative indices start from -1."
322-
msgstr ""
322+
msgstr "ਧਿਆਨ ਦਿਓ ਕਿ -0 ਅਤੇ 0 ਇੱਕੋ ਹੀ ਹਨ, ਇਸ ਲਈ negative indices ਦੀ ਸ਼ੁਰੂਆਤ -1 ਤੋਂ ਹੁੰਦੀ ਹੈ।"
323323

324324
#: ../../tutorial/introduction.rst:275
325325
msgid "In addition to indexing, *slicing* is also supported. While indexing is used to obtain individual characters, *slicing* allows you to obtain a substring::"
326-
msgstr ""
326+
msgstr "Indexing ਤੋਂ ਇਲਾਵਾ, *slicing* ਦਾ ਵੀ ਸਮਰਥਨ ਹੈ। ਜਿੱਥੇ indexing ਵੱਖ-ਵੱਖ characters ਪ੍ਰਾਪਤ ਕਰਨ ਲਈ ਵਰਤੀ ਜਾਂਦੀ ਹੈ, ਉੱਥੇ *slicing* ਤੁਹਾਨੂੰ substring ਪ੍ਰਾਪਤ ਕਰਨ ਦੀ ਆਗਿਆ ਦਿੰਦੀ ਹੈ::"
327327

328328
#: ../../tutorial/introduction.rst:278
329329
msgid ">>> word[0:2] # characters from position 0 (included) to 2 (excluded)\n"

0 commit comments

Comments
 (0)