Forwarded from Abiy Ahmed Ali 🇪🇹
በዲጂታል ኢትዮጵያ ጉዞ አንድ እመርታ የታየበት ደረጃ ላይ ደርሰናል። ኢትዮ ቴሌኮም ከቪዛ ኩባንያ ጋር በመተባበር በኢትዮዽያ የመጀመሪያውን በኪስ የሚያዝ 'ቨርቱዋል ቪዛ' ካርድ ብሎም የተሻሻለ የሀዋላ አገልግሎት በቪዛ ዳይሬክት እና በቴሌብር ረሚት አቅርቧል።
ቪዛ ዳይሬክት ከ190 ሀገራት በላይ ቀለል ያለ የገንዘብ ማዘዋወር አገልግሎትን በቴሌብር ቨርቱዋል ካርድ ቁጥር አማካኝነት የሚያቀላጥፍ ይሆናል። ይህ አዲስ አገልግሎት ከ47.55 ሚሊዮን በላይ የሆኑ የቴሌብር ተጠቃሚዎችን ያገለግላል። ኢትዮ ቴሌኮም ትልቅ ስራ ሰርቷል።
A significant milestone in our Digital Ethiopia journey has been achieved with Ethio telecom, in partnership with Visa Inc., launching the country's first wallet-based Virtual Visa Card and enhanced remittance services via Visa Direct and telebirr Remit.
Visa Direct facilitates easy money transfers to Ethiopia from over 190 countries using a telebirr virtual card number. This partnership supports over 47.55 million telebirr users and advances Ethiopia's digital financial services. Well done to EthioTelecom!
ቪዛ ዳይሬክት ከ190 ሀገራት በላይ ቀለል ያለ የገንዘብ ማዘዋወር አገልግሎትን በቴሌብር ቨርቱዋል ካርድ ቁጥር አማካኝነት የሚያቀላጥፍ ይሆናል። ይህ አዲስ አገልግሎት ከ47.55 ሚሊዮን በላይ የሆኑ የቴሌብር ተጠቃሚዎችን ያገለግላል። ኢትዮ ቴሌኮም ትልቅ ስራ ሰርቷል።
A significant milestone in our Digital Ethiopia journey has been achieved with Ethio telecom, in partnership with Visa Inc., launching the country's first wallet-based Virtual Visa Card and enhanced remittance services via Visa Direct and telebirr Remit.
Visa Direct facilitates easy money transfers to Ethiopia from over 190 countries using a telebirr virtual card number. This partnership supports over 47.55 million telebirr users and advances Ethiopia's digital financial services. Well done to EthioTelecom!
👍1
What are Tuples?
Tuple በpython የobjects ስብስብ ሲሆን ባለፈው እንደተማርነው we can't change the order of the items in it.
Objectኦቹ strings, lists, tuples, integers etc. ሊሆኑ ይችላሉ።
የTuple insertion characteristics preserved ነው፣ once elements ካስቀመጥን we can't modify them.
Elements ከtuple የምናገኘው መጀመሪያ ባስቀመጥንበት order ነው።
ከlist የሚለያቸው ነገር ቢኖር ይህ ነው ፡ immutable መሆናቸው።
Tuple duplicate data store ማረግ ይችላል unlike set.
Tuple ተመሳሳይም ሆነ የተለያየ data type store ያረጋሉ እንደ list ማለት ነው
to be cont'd...
#Tuple
@python_pioneers
👍4
✓ Which of the following statements correctly describes a tuple in Python?
Anonymous Quiz
9%
A) Tuples are mutable and can have their elements changed after creation.
75%
B) Tuples are immutable, meaning their elements cannot be changed after creation.
9%
C) Tuples are mutable, but their length is fixed once created.
7%
D) Tuples are immutable, but their elements can be changed.
👍1
Tuple የምንፈጥርባቸው ብዙ መንገዶች አሉ ፣ like
1. By using tuple() function
2. By manually inserting the elements inside a parenthesis
ለምሳሌ :
ወይም range function inside tuple function በመጠቀም a tuple of numbers መፍጠር እንችላለን።
የTuple ጥቅሞች ውስጥ packing እና unpacking ትልቁን ድርሻ ይወስዳሉ።
Packing
We can create a tuple by packing a group of variables.
ለምሳሌ :
Unpacking
Tuple unpacking is the reverse process of tuple packing, we can unpack a tuple and assign its values to different variables.
ለምሳሌ :
Tuple unpacking በመጠቀም multiple variables በአንድ ጊዜ declare ማድረግ እንችላለን።
#Tuple
@python_pioneers
1. By using tuple() function
2. By manually inserting the elements inside a parenthesis
ለምሳሌ :
my_tuple = ("Monday", "Tuesday" "Wednesday")ወይም range function inside tuple function በመጠቀም a tuple of numbers መፍጠር እንችላለን።
የTuple ጥቅሞች ውስጥ packing እና unpacking ትልቁን ድርሻ ይወስዳሉ።
Packing
We can create a tuple by packing a group of variables.
Syntax :
tuple_name = elements
ለምሳሌ :
a, b, c, d = 10, 20, 30, 40
my_tuple = a, b, c, d
print(my_tuple)
#Output: (10, 20, 30, 40)
Unpacking
Tuple unpacking is the reverse process of tuple packing, we can unpack a tuple and assign its values to different variables.
Syntax :
elements = tuple_name
ለምሳሌ :
my_tuple = (10, 20, 30, 40)
a, b, c, d = my_tuple
print(" a =", a, " b =", b, " c =", c, " d =", d)
#Output : a = 10 b = 20 c = 30 d = 40
Tuple unpacking በመጠቀም multiple variables በአንድ ጊዜ declare ማድረግ እንችላለን።
#Tuple
@python_pioneers
Tomorrow, we will be building a simple Python number guessing game to ensure you gain deep and applicable knowledge from what you're learning.
#NumberGuessingGame
@python_pioneers
#NumberGuessingGame
@python_pioneers
Media is too big
VIEW IN TELEGRAM
ትላንት ባልነው መሠረት here is our simple number guessing game python code.
ስለ codeኡ አሰራር ከስር እንጽፋለን...
#Game
#GuessGame
@python_pioneers
ስለ codeኡ አሰራር ከስር እንጽፋለን...
#Game
#GuessGame
@python_pioneers
👍1
Number guessing game በPython ይሄን ይመስላል፣ እያንዳንዱን የcodeኡን section እስቲ እንይ፣
1. Importing the
- `random
Gameኡን የሚጫወቱው ሰው ለguessing range minimum እና maximum value እንዲመርጥ እንጠይቀዋለን። ከዛ የተቀበልነውን string data type int() function በመጠቀም ወደ integerነት እንቀይረዋለን።
3. Generating a Random Number:
በዚህ section ደግሞ random number generate እንዲያረግልን import ያረግነውን module ተጠቅመናል:
Using
4. Initializing the Guess Counter:
እዚህ ደግሞ userኡ ምን ያህል ጊዘ እንደገመተ የምንቆጣጠርበትን variable declare አርገናል፣ initial value ደግሞ zero ሰጥተንዋል።
#GuessGame
@python_pioneers
1. Importing the
random module:import random
- `random
moduleን import ያረግነው set ባረግነው range ገደብ random ቁጥር እንዲሰጠን ነው።
2. User Input for the Range:
min = int(input("Minimum number for your guess range: "))
max = int(input("Maximum number for your guess range: "))Gameኡን የሚጫወቱው ሰው ለguessing range minimum እና maximum value እንዲመርጥ እንጠይቀዋለን። ከዛ የተቀበልነውን string data type int() function በመጠቀም ወደ integerነት እንቀይረዋለን።
3. Generating a Random Number:
rand_num = random.randint(min, max)
በዚህ section ደግሞ random number generate እንዲያረግልን import ያረግነውን module ተጠቅመናል:
Using
random.randint()4. Initializing the Guess Counter:
no_of_guesses = 0
እዚህ ደግሞ userኡ ምን ያህል ጊዘ እንደገመተ የምንቆጣጠርበትን variable declare አርገናል፣ initial value ደግሞ zero ሰጥተንዋል።
#GuessGame
@python_pioneers
while True:
user_guess = int(input("Make a guess: "))
if user_guess == rand_num:
print("Congrats, you got the number!")
break
elif user_guess > max or user_guess < min:
print("Your guess is out of range!")
break
elif user_guess > rand_num:
print("You are above the number, make a lower guess.")
elif user_guess < rand_num:
print("You are below the number, make a higher guess.")
else:
print("Wrong Input!")
break
no_of_guesses += 1
- The program enters an infinite loop using
while True: where the user is repeatedly prompted to guess the number.- Checking if the Guess is Correct:
Userኡ ያስገባው ቁጥር ከ random numberኡ ጋር እኩል ከሆነ "Congrats, ..." የሚለው message printed ይሆናል።
- Checking for Out-of-Range Guesses:
Userኡ ያስገባው ቁጥር specified ከሆነው range ውጪ ከሆነ loopኡ ይቆማል።
- Providing Hints:
- If the guess is higher than the random number, the user is informed and asked to guess a lower number.
- If the guess is lower than the random number, the user is informed and asked to guess a higher number.
- Incrementing the Guess Counter:
After each guess, the
no_of_guesses counter is incremented by 1 to track the number of attempts.#GuessGame
@python_pioneers
👍3⚡1🙏1