ⴰⴼⵀⴰⵎ ⵏ ⵜⵉⵖⴱⵓⵍⴰ ⵏ Pitun: Adlis ⵙ ⵍⴻⵎⵖⴰⵡⵍⴰ

ⴰⵀⵉⵍ ⵏ Pitun
Tazmert ⵏ ⵓⵙⴻⴽⵍⴻⵙ
Aselmed ⵏ ⵜⵉⵖⴱⵓⵍⴰ
ⴰⴼⵀⴰⵎ ⵏ ⵜⵉⵖⴱⵓⵍⴰ ⵏ Pitun: Adlis ⵙ ⵍⴻⵎⵖⴰⵡⵍⴰ cover image

ⴰⴼⵀⴰⵎ ⵏ ⵜⵎⴻⵥⴷⵉⵢⵉⵏ ⴷⴻⴳ Python ⴷ ⴰⵢⴻⵏ ⵉⵍⴰⵇⴻⵏ ⵉ ⵢⴰⵍ ⴰⵀⵉⵍ ⵢⴻⵜⵜⵏⴰⴷⵉⵏ ⴰⴷ ⵢⴰⵔⵓ ⴰⴽⴰⵔⴰⵎ ⵉ ⴷⵢⴻⵜⵜⴰⵡⵉⵏ ⵍⴼⴰⵢⴷⴰ ⴷ ⵜⵎⵓⵙⵙⵏⵉ. ⵜⵉⵖⴱⵓⵍⴰ ⵜⵜⵡⴰⵙⴻⵇⴷⴰⵛⴻⵏⵜ ⴷ ⴰⵎⴻⴽⴽⴰⵏ ⵉⵊⴻⵀⴷⴻⵏ ⵉ ⵓⵙⴻⵍⴽⴻⵎ ⵏ ⵍⴻⵇⴷⵉⵛⴰⵜ ⵢⴻⵜⵜⵡⴰⵄⴻⵔⴹⴻⵏ, ⴷ ⵓⵙⵏⴻⵔⵏⵉ ⵏ ⵜⵖⴻⵍⵍⵉⵙⵜ ⵏ ⵓⴹⵔⵉⵙ ⴷ ⵓⵙⵏⴻⴼⵍⵉ. ⴰⵎⴰ ⵜⴻⵜⵜⴽⴻⵎⵎⵉⵍⴻⴹ ⵖⴻⴼ ⵢⵉⵡⴻⵜ ⵏ ⵜⴻⴼⵢⵉⵔⵜ, ⵜⴻⵜⵜⵃⴰⴷⴰⵔⴹ ⵜⵉⵖⴱⵓⵍⴰ ⵏ ⵢⵉⵙⴻⴼⴽⴰ ⵙ ⵡⴰⵟⴰⵙ, ⵏⴻⵖ ⵜⴻⵜⵜⴽⴻⵎⵎⵉⵍⴻⴹ ⴰⴹⵔⵉⵙ ⵏ ⵜⵖⴰⵡⵙⵉⵡⵉⵏ ⴰⵟⴰⵙ ⵏ ⵜⵉⴽⴽⴰⵍ, ⵜⵉⵖⴱⵓⵍⴰ ⵜⵜⴰⴽⴻⵏⵜⴷ ⵜⵉⴼⵔⴰⵜ ⵢⴻⵜⵜⵡⴰⵙⵏⴻⵏ. ⴷⴻⴳ Python, ⵍⵍⴰⵏ ⵙⵉⵏ ⵏ ⵢⵉⴼⴻⵔⴷⵉⵙⴻⵏ ⵏ ⵜⵎⴻⵥⴷⵉⵢⵉⵏ ⵜⵉⴳⴻⵊⴷⴰⵏⵉⵏ : ⵉ ⵜⵎⴻⵥⴷⵉⵢⵉⵏ ⴷ ⵜⵎⴻⵥⴷⵉⵢⵉⵏ ⵏ ⵡⵀⵉⵍⴻ, ⵢⴰⵍ ⵢⵉⵡⴻⵜ ⴷⴻⴳⵙⴻⵏⵜ ⵜⴻⵙⵄⴰ ⵉⵙⵡⵉⵢⴻⵏ ⵢⴻⵎⴳⴰⵔⴰⴷⴻⵏ ⵢⴻⵔⵏⴰ ⵜⴻⵜⵜⵇⴰⴷⴰⵔ ⵉⵃⴻⵣⵣⵉⴱⴻⵏ ⵏ ⵓⵙⴻⵍⴽⴻⵎ ⵢⴻⵎⴳⴰⵔⴰⴷⴻⵏ. ⴰⴹⵔⵉⵙⴰⴳⵉ ⴰⴳⴻⵊⴷⴰⵏ ⴰⴷ ⴷⵢⴻⵙⵏⵓⵍⴼⵓ ⵉⵃⵔⵉⵛⴻⵏ ⵉⴳⴻⵊⴷⴰⵏⴻⵏ ⵏ ⵜⵎⴻⵥⴷⵉⵢⵉⵏ ⵏ Python, ⴰⴷ ⴰⴽⴷ-ⵢⴻⴼⴽ ⵜⴰⵣⵎⴻⵔⵜ ⵙ ⵜⵎⵓⵙⵏⵉ ⴰⴽⴽⴻⵏ ⴰⴷ ⵜⴻⵙⵇⴻⴷⵛⴻⴹ ⵜⵉⵣⴻⵎⵎⴰⵔⵏⵙⴻⵏⵜ ⴷⴻⴳ ⵜⵎⵓⵖⵍⵉⵡⵉⵏⵉⴽ ⵏ ⵓⵙⴻⵍⴽⴻⵎ.

ⵉ ⵜⵉⵖⴱⵓⵍⴰ<ⴰ ⵉⴷ="ⵉ ⵜⵉⵖⴱⵓⵍⴰ"></ⴰ>

ⵜⴰⵖⴻⵛⵜ for ⵜⴻⵜⵜⵡⴰⵙⴻⵇⴷⴰⵛ ⵉ ⵓⵄⴻⴷⴷⵉ ⵖⴻⴼ ⵢⵉⵡⴻⵏ ⵏ ⵓⴹⵔⵉⵙ. ⵉⵎⴻⵣⵡⵓⵔⴰⴰⴳⵉ ⴷⴻⴳ Pitun ⴷ ⵜⵉⵖⴱⵓⵍⴰ ⵏ ⵉⵙⴻⴼⴽⴰ: ⵜⴰⵖⵓⵍⵜ, tuple, ⴰⵎⴰⵡⴰⵍ, ⵜⴰⴳⴳⵔⵓⵎⴰ ⵏⴻⵖ ⵜⴰⵖⴻⵛⵜ. For loop ⵢⴻⵜⵜⴽⴻⵎⵎⵉⵍ ⴰⵃⵔⵉⵛ ⵏ ⵓⴹⵔⵉⵙ ⵉ ⵢⴰⵍ ⴰⴼⴻⵔⴷⵉⵙ ⴷⴻⴳ ⵜⵎⴻⵣⴳⵓⵏⵜ.

ⵓⵇⴱⴻⵍ ⴰⴷ ⵏⵖⴻⵔ ⴷⴻⴳ ⵢⵉⵎⴻⴷⵢⴰⵜⴻⵏ ⵉⴳⴻⵔⵔⵣⴻⵏ, ⴰⴷ ⵏⵡⴰⵍⵉ ⴷⵉ ⵜⴰⵣⵡⴰⵔⴰ ⵍⴻⴱⵏⵉ ⵏ ⵍⵍⵙⴰⵙ ⵏ ⵜⵎⴻⵥⴷⵉⵜ for. ⵜⵓⵚⴽⵉⵡⵜⵉⵙ ⴷ ⵜⵉⵏ ⵉ ⴷⵉⵜⴻⴷⴷⵓⵏ:

 for item in sequence: 
    # Code to execute for each item

ⴷⴰⴳⵉ item ⴷ ⴰⴱⴻⴷⴷⴻⵍ ⵢⴻⵜⵜⴰⵡⵉⵏ ⴰⵣⴰⵍ ⵏ ⵢⴰⵍ ⴰⴼⴻⵔⴷⵉⵙ ⴷⴻⴳ ⵜⵎⴻⵣⴳⵓⵏⵜ ⵖⴻⴼ ⵢⴰⵍ ⴰⵄⵉⵡⴻⴷ, ⵢⴻⵔⵏⴰ ⴰⵃⵔⵉⵛ ⵏ ⵓⴹⵔⵉⵙ ⵢⴻⵜⵜⵡⴰⵙⴱⴻⴷⴷⴻⵏ ⵢⴻⵜⵜⵡⴰⵅⴷⴻⵎ ⵉ ⵢⴰⵍ ⴰⴼⴻⵔⴷⵉⵙ.

ⴰⴷ ⵏⵡⴰⵍⵉ ⴰⵎⴻⴷⵢⴰ ⵏ ⵍⵍⵙⴰⵙ ⴷⴷⴰⵡⴰ:

   fruits = ["apple", "banana", "cherry"]
    for fruit in fruits:
        print(fruit)

ⴷⴻⴳ ⵓⵎⴻⴷⵢⴰ ⵏ ⵜⴼⴻⵍⵡⵉⵜ, ⵜⴰⵖⴻⵛⵜ for ⵜⴻⵜⵜⴽⴻⵎⵎⵉⵍ ⵙ ⵢⴰⵍ ⴰⴼⴻⵔⴷⵉⵙ ⴷⴻⴳ ⵓⴹⵔⵉⵙ fruits ⵢⴻⵔⵏⴰ ⵜⴻⵙⵙⵓⴼⵓⵖⴷ ⵉⴼⴻⵔⴷⵉⵙⴻⵏ ⵢⴻⵍⵍⴰⵏ ⴷⴰⵅⴻⵍ. ⵜⴰⵖⴻⵛⵜ for ⴷ ⵜⵉⵏ ⵉⴳⴻⵔⵔⵣⴻⵏ ⵉ ⵓⵄⴻⴷⴷⵉ ⵖⴻⴼ ⵢⵉⴳⴻⵏⵙⴰⵙⴻⵏ ⴷ ⵜⴳⴻⵎⵎⵉⵡⵉⵏ ⵢⴻⵜⵜⵡⴰⵙⵙⵏⴻⵏ.

ⴰⵙⴻⵇⴷⴻⵛ ⵏ ⵜⴼⴻⵍⵡⵉⵜ () ⵙ I Uferdis<ⴰ ⵉⴷ="ⴰⵙⴻⵇⴷⴻⵛ ⵏ ⵜⴼⴻⵍⵡⵉⵜⵙ-ⵉ-ⵜⴼⴻⵔⴽⵉⵜ"></ⴰ>

ⵜⴰⵖⵓⵍⵜ range() ⵜⴻⵙⵙⵓⴼⵓⵖⴷ ⵜⴰⵙⴻⴽⴽⵉⵔⵜ ⵏ ⵢⵉⴹⵔⵉⵙⴻⵏ, ⴷ ⵜⵉⵏ ⵉ ⴷⵢⴻⵜⵜⴰⵡⵉⵏ ⵏⵏⴼⴻⵄ ⵉ ⵓⵙⵎⴻⵍ ⵏ ⵓⵎⴹⴰⵏ ⵏ ⵜⵉⴽⴽⴰⵍ. ⴰⵎⴻⴷⵢⴰ ⵏ ⵡⴰⵢⴰ ⵢⴻⵍⵍⴰ ⴷⴷⴰⵡⴰ:

 for i in range(5):
     print(i)

ⵜⴰⵖⴻⵛⵜ ⵏⵏⵉⴳⴰ ⴰⴷ ⵜⴻⵙⵙⵓⴼⴼⴻⵖ ⴰⵎⴹⴰⵏ ⵙⴻⴳ 0 ⴰⵔ 4.

ⵎⴰ ⴷ ⵜⵉⵖⴱⵓⵍⴰ<ⴰ ⵉⴷ="ⵎⴰ ⴷⵜⵉⵖⴱⵓⵍⴰ"></ⴰ>

ⵜⴰⵖⴻⵛⵜ while ⴷ ⵜⴰⵖⴻⵛⵜ ⵏ ⵜⵖⴰⵡⵙⴰ. ⴰⵏⴰⵎⴻⴽⵉⵙ ⴷ ⴰⴽⴽⴻⵏ ⵢⴻⵜⵜⴽⴻⵎⵎⵉⵍ ⵙⴽⵓⴷ ⵢⴻⵍⵍⴰ ⵍⵃⴰⵍ ⵙ ⵜⵉⵎⵎⴰⴷⵉⵙ ⴷ Tidet. ⵢⴻⵜⵜⵡⴰⵅⴷⴻⵎ ⵙ ⵡⴰⵣⴰⵍⵉⵙ ⵍⴰⴷⵖⴰ ⵎⵉ ⴰⵔⴰ ⵢⵉⵍⵉ ⵓⵎⴹⴰⵏ ⵏ ⵜⵎⴻⵥⵔⵉⵡⵉⵏ ⵓⵔ ⵢⴻⵜⵜⵡⴰⵙⵙⴻⵏ ⴰⵔⴰ ⵓⵇⴱⴻⵍ.

ⴰⴷ ⵏⵡⴰⵍⵉ ⴷⵉ ⵜⴰⵣⵡⴰⵔⴰ ⵍⴻⴱⵏⵉ ⵏ ⵍⵍⵙⴰⵙ ⵏ ⵜⵎⴻⵥⴷⵉⵜ while. ⵜⵓⵚⴽⵉⵡⵜⵉⵙ ⴷ ⵜⵉⵏ ⵉ ⴷⵉⵜⴻⴷⴷⵓⵏ:

 while condition:
    # Code to execute while condition is true

ⴷⴻⴳ ⵜⴰⵍⵓⴼⵜⴰ ⵏⵏⵉⴳⴰ ⵢⴻⵜⵜⵡⴰⵇⴱⴻⵍ ⵍⵃⴰⵍ ⵓⵇⴱⴻⵍ ⵢⴰⵍ ⴰⵄⵉⵡⴻⴷ, ⵢⴻⵔⵏⴰ ⵜⴽⴻⵎⵎⴻⵍ ⵜⵎⴻⵥⴷⵉⵜ ⵜⴻⵜⵜⴽⴻⵎⵎⵉⵍ ⵙⴽⵓⴷ ⵍⵃⴰⵍ ⴷ True.

ⴰⴷ ⵏⵡⴰⵍⵉ ⴰⵎⴻⴷⵢⴰ ⵏ ⵍⵍⵙⴰⵙ ⴷⴷⴰⵡⴰ:

count = 0
    while count < 5:
        print(count)
        count += 1

ⴷⴻⴳ ⵓⵎⴻⴷⵢⴰ ⵏ ⵜⴼⴻⵍⵡⵉⵜ ⵏⵏⵉⴳⴰ ⴰⴷ ⴷⵜⴻⵙⵙⵓⴼⴼⴻⵖ ⵜⴼⴻⵍⵡⵉⵜ ⵉⴹⵓⵎⴰⵏ ⵙⴻⴳ 0 ⴰⵔ 4, ⴰⵎ ⵓⵎⴻⴷⵢⴰ ⵏ ⵜⴼⴻⵍⵡⵉⵜ for. ⵎⴰⵛⴰ, ⵜⴰⵖⴻⵛⵜ while ⵜⴽⴻⵎⵎⴻⵍ ⴰⵍⴰⵎⵎⴰ ⵓⵔ ⵜⴻⵇⵇⵉⵎ ⴰⵔⴰ ⵜⵖⴰⵡⵙⴰ (ⴰⵃⵙⴻⴱ < 5) __ⴷ ⵜⵉⴷⴻⵜ.

ⴰⵙⴻⵇⴷⴻⵛ ⵏ ⵜⴼⴻⵍⵡⵉⵜ () ⵙ I Uferdis<ⴰ ⵉⴷ="ⴰⵙⴻⵇⴷⴻⵛ ⵏ ⵜⴼⴻⵍⵡⵉⵜⵙ-ⵉ-ⵜⴼⴻⵔⴽⵉⵜ1"></ⴰ>

ⵜⴰⵖⵓⵍⵜ range() ⵜⴻⵙⵙⵓⴼⵓⵖⴷ ⵜⴰⵙⴻⴽⴽⵉⵔⵜ ⵏ ⵢⵉⴹⵔⵉⵙⴻⵏ, ⴷ ⵜⵉⵏ ⵉ ⴷⵢⴻⵜⵜⴰⵡⵉⵏ ⵏⵏⴼⴻⵄ ⵉ ⵓⵙⵎⴻⵍ ⵏ ⵓⵎⴹⴰⵏ ⵏ ⵜⵉⴽⴽⴰⵍ. ⴰⵎⴻⴷⵢⴰ ⵏ ⵡⴰⵢⴰ ⵢⴻⵍⵍⴰ ⴷⴷⴰⵡⴰ:

for i in range(5):
     print(i)

ⵜⴰⵖⴻⵛⵜ ⵏⵏⵉⴳⴰ ⴰⴷ ⵜⴻⵙⵙⵓⴼⴼⴻⵖ ⴰⵎⴹⴰⵏ ⵙⴻⴳ 0 ⴰⵔ 4.

\

ⴰⴷ ⵜⴻⵙⵄⵓⴹ ⴰⵙⴻⴼⵀⴻⵎ ⵉⵊⴻⵀⴷⴻⵏ ⴷ ⵓⵙⴻⵇⴷⴻⵛ ⵏ ⵜⵎⵓⵙⵏⵉ ⵏ ⵜⵉⵖⴱⵓⵍⴰ ⴷⴻⴳ Pitun ⴷ ⴰⵢⴻⵏ ⵢⴻⵙⵄⴰⵏ ⴰⵣⴰⵍ ⴰⵎⴻⵇⵇⵔⴰⵏ ⵉ ⵢⴰⵍ ⴰⵀⵉⵍ. ⵜⵉⵖⴱⵓⵍⴰ ⵏ For ⵜⵜⵡⴰⵇⴱⴰⵍⴻⵏⵜ ⵎⵍⵉⵃ ⵉ ⵓⵄⴻⴷⴷⵉ ⵖⴻⴼ ⵜⵎⴻⵣⵣⵓⴳⵉⵏ, ⵎⴰ ⴷ ⵜⵉⵖⴱⵓⵍⴰ ⵏ while ⵜⵜⵛⴻⵄⵛⵉⵄⴻⵏⵜ ⴷⴻⴳ ⵜⴻⵙⵏⴰⵍⵍⵓⵏⵉⵏ ⴰⵏⴷⴰ ⴰⵃⵔⵉⵛ ⵏ ⵓⵄⴻⴷⴷⵉ ⵢⴻⵜⵜⴽⴻⵍ ⵖⴻⴼ ⵢⵉⵡⴻⵏ ⵏ ⵍⵃⴰⵍ. ⴰⵄⵇⴰⵍ ⵏ ⵢⵉⵎⴳⴻⵔⵔⴰⴷⴻⵏ ⴳⴰⵔ ⵜⵎⵉⴹⵔⴰⵏⵜⴰⴳⵉ ⵏ ⵜⵎⴻⵥⴷⵉⵢⵉⵏ ⵢⴻⵜⵜⴰⴽⴰⴽ ⵜⴰⵣⵎⴻⵔⵜ ⴰⴽⴽⴻⵏ ⴰⴷ ⵜⴻⴼⵔⴻⵏⴹ ⴰⴼⴻⵔⴷⵉⵙ ⵉⵡⵓⵍⵎⴻⵏ ⴰⴽⴽ ⵉ ⵜⴻⴳⵏⵉⵜⵉⴽ ⵏ ⵓⵙⴻⵇⴷⴻⵛ ⵙ ⵜⵉⵎⵎⴰⴷⵉⵙ, ⵙ ⵡⴰⵢⴰ ⴰⴷ ⵜⴻⵙⵙⴻⵍⵀⵓⴹ ⵜⴰⵣⵎⴻⵔⵜ, ⴷ ⵜⴼⴻⵀⵎⵉⵜ ⴷ ⵜⵖⵓⵔⵉ ⵏ ⵓⴹⵔⵉⵙⵉⴽ. ⵙ ⵜⵎⵓⵖⵍⵉⵡⵉⵏⴰ ⵏ ⵍⵍⵙⴰⵙ, ⵜⵣⴻⵎⵔⴻⴹ ⴰⴷ ⵜⴻⵙⴷⵓⴽⴽⵍⴻⴹ ⵙ ⵜⵖⴰⵡⵍⴰ ⵜⵉⵖⴱⵓⵍⴰ ⴷⴻⴳ ⵢⵉⵙⴻⵏⴼⴰⵔⴻⵏⵉⴽ ⵏ Python, ⵙ ⵓⵙⵏⴻⵔⵏⵉ ⵏ ⵜⴻⵣⵎⴻⵔⵜ ⴷ ⵜⵖⴰⵔⴰ ⵏ ⵓⴹⵔⵉⵙⵉⴽ.


Career Services background pattern

ⵉⵎⴻⵥⵍⴰ ⵏ ⵜⵎⵓⵙⵏⵉ

Contact Section background image

ⴰⴷ ⵏⴻⵇⵇⵉⵎ ⴷⴻⴳ ⵓⵙⵉⵡⴰⴹ

Code Labs Academy © 2024 ⵉⵣⴻⵔⴼⴰⵏ ⴰⴽⴽ ⵜⵜⵡⴰⵃⴻⵔⵣⴻⵏ.