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
Let's have some fun๐
๐คฃ4
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
แฐแ
แ แแแฝแ แคแฐแฐแฆแฝ!
แแฌ แฝแแ แฐแจแแฝแ แแญ?
แแฌ แฝแแ แฐแจแแฝแ แแญ?
Anonymous Poll
14%
แ แ
86%
แ แญ
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