4. What will be the output of the following code?
😁) 9
😭) 4
😢) 3
🤓) 5
numbers = [3, 7, 2, 9, 4]
print(len(numbers))
😁) 9
😭) 4
😢) 3
🤓) 5
🤓3
5. What will be the output of the following code?
😁) "apple"
😭) "banana"
😢) "orange"
🤓) "kiwi"
words = ["apple", "banana", "orange", "kiwi"]
print(max(words))
😁) "apple"
😭) "banana"
😢) "orange"
🤓) "kiwi"
😭1
6. What will be the output of the following code?
😁) "cat"
😭) "bird"
😢) "sheep"
🤓) "elephant"
words = ["cat", "sheep", "elephant", "bird"]
print(min(words, key=len))
😁) "cat"
😭) "bird"
😢) "sheep"
🤓) "elephant"
😁2🤓1
Shake off problems:
Moral: Don’t choose to live with your problem. Just shake off your problems and stand on it and step up in life after learning from them. Every bad experience is a new learning. So get the positives out of it and work towards your goals.
#Stories
@python_pioneers
A man and his donkey were on the way to grazing while the donkey fell into a huge pit. The man was shaken and tried hard to pull off his favorite donkey up to the ground.
Despite his strenuous attempts, he failed to bring the donkey back. But he can’t leave the donkey to starve and die with pain for days.
So he decided to bury him alive and make his death smoother. So he started pouring soil over the donkey in the pit. When he poured the soil, the donkey felt the load and shakes it off and he steps on it.
He does the same every time when the soil was poured on his body. In the end, he reached the ground level and easily walked away to graze in the green pastures.
Moral: Don’t choose to live with your problem. Just shake off your problems and stand on it and step up in life after learning from them. Every bad experience is a new learning. So get the positives out of it and work towards your goals.
#Stories
@python_pioneers
❤3🔥2
Memory of the past
This was our first post, at the time there were only 69 subscribers, but now there are so many ppl, who also become part of this family 🥰
ሁላችሁንም ስለ አብሮነታችሁ፣ የጉዟችን አካል ስለሆናችሁ እናመሰግናለን!
@python_pioneers
This was our first post, at the time there were only 69 subscribers, but now there are so many ppl, who also become part of this family 🥰
ሁላችሁንም ስለ አብሮነታችሁ፣ የጉዟችን አካል ስለሆናችሁ እናመሰግናለን!
@python_pioneers
🔥3
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