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
The Weight of the Glass
Once upon a time a psychology professor walked around on a stage while teaching stress management principles to an auditorium filled with students. As she raised a glass of water, everyone expected they’d be asked the typical “glass half empty or glass half full” question. Instead, with a smile on her face, the professor asked, “How heavy is this glass of water I’m holding?”
Students shouted out answers ranging from eight ounces to a couple pounds.
She replied, “From my perspective, the absolute weight of this glass doesn’t matter. It all depends on how long I hold it. If I hold it for a minute or two, it’s fairly light. If I hold it for an hour straight, its weight might make my arm ache a little. If I hold it for a day straight, my arm will likely cramp up and feel completely numb and paralyzed, forcing me to drop the glass to the floor. In each case, the weight of the glass doesn’t change, but the longer I hold it, the heavier it feels to me.”
As the class shook their heads in agreement, she continued, “Your stresses and worries in life are very much like this glass of water. Think about them for a while and nothing happens. Think about them a bit longer and you begin to ache a little. Think about them all day long, and you will feel completely numb and paralyzed – incapable of doing anything else until you drop them.”
#EnglishStory
@python_pioneers
Once upon a time a psychology professor walked around on a stage while teaching stress management principles to an auditorium filled with students. As she raised a glass of water, everyone expected they’d be asked the typical “glass half empty or glass half full” question. Instead, with a smile on her face, the professor asked, “How heavy is this glass of water I’m holding?”
Students shouted out answers ranging from eight ounces to a couple pounds.
She replied, “From my perspective, the absolute weight of this glass doesn’t matter. It all depends on how long I hold it. If I hold it for a minute or two, it’s fairly light. If I hold it for an hour straight, its weight might make my arm ache a little. If I hold it for a day straight, my arm will likely cramp up and feel completely numb and paralyzed, forcing me to drop the glass to the floor. In each case, the weight of the glass doesn’t change, but the longer I hold it, the heavier it feels to me.”
As the class shook their heads in agreement, she continued, “Your stresses and worries in life are very much like this glass of water. Think about them for a while and nothing happens. Think about them a bit longer and you begin to ache a little. Think about them all day long, and you will feel completely numb and paralyzed – incapable of doing anything else until you drop them.”
The moral: It’s important to remember to let go of your stresses and worries. No matter what happens during the day, as early in the evening as you can, put all your burdens down. Don’t carry them through the night and into the next day with you. If you still feel the weight of yesterday’s stress, it’s a strong sign that it’s time to put the glass down
#EnglishStory
@python_pioneers
❤6🔥2
የቴሌግራም መስራች እና ዋናው ስራ አስኪያጅ ፓቨል ዱሮቭ ፍርድ ቤት ቀርቧል።
ፍርድ ቤት በ5 ሚሊዮን ዩሮ ወይም 5.56 ሚሊዮን ዶላር ዋስ ተለቆ ጉዳዩን እንዲከታተል ወስኖለታል።
ከፈረንሳይ እንዳይወጣ ግን ታግዷል።
እገዳው ተጨማሪ ምርመራ ስለሚደረግ ነው የተጣለው።
በሳምንት ሁለት ጊዜ ለፖሊስ ሪፖርት ማድረግ እንዳለበት ተገልጿል።
ዱሮቭ ከቀናት በፊት ፓሪስ አቅራቢያ ኤርፖት ተይዞ ከታሰረ በኃላ በፖሊስ ቁጥጥር ስር ቆይቶ ነበር። ከዚህ በላይ በህጉ ማቆየት ስለማይቻል ከማቆያ ወጥቶ በፍርድ ቤት ጉዳዩ ታይቷል።
ፍርድ ቤቱም ከፈረንሳይ እንዳይወጣ በማገድ የ5 ሚሊዮን ዩሮ ዋስትና ፈቅዶለታል።
የፈረንሳይ መንግስት ዱሮቭ ላይ ምርመራ የከፈተው በቴሌግራም ፦
- ሞደሬት የማድረግ / ቁጥጥር የማድረግ ክፍተት አለ፣
- ለባለስልጣናት አስፈላጊ መረጃ አይሰጥም
- የወንጀል ድርጊቶች ይፈጸምበታል፣
- የአደገኛ እፅ ዝውውር ይከናወንበታል
- ሽብር፣ መኒ ላውንደሪንግ ይሰራበታል በሚል ነው።
ቴሌግራም ወደ 1 ቢሊዮን ተጠቃሚዎች ያሉት ሲሆን በነጻነቱና ደህንነቱ በተጠበቀ የመልዕክት እና መረጃ ልውውጥ በብዙዎች ዘንድ እጅግ ተመራጭ ነው።
#TikvahEthiopia
@tikvahethiopia
ፍርድ ቤት በ5 ሚሊዮን ዩሮ ወይም 5.56 ሚሊዮን ዶላር ዋስ ተለቆ ጉዳዩን እንዲከታተል ወስኖለታል።
ከፈረንሳይ እንዳይወጣ ግን ታግዷል።
እገዳው ተጨማሪ ምርመራ ስለሚደረግ ነው የተጣለው።
በሳምንት ሁለት ጊዜ ለፖሊስ ሪፖርት ማድረግ እንዳለበት ተገልጿል።
ዱሮቭ ከቀናት በፊት ፓሪስ አቅራቢያ ኤርፖት ተይዞ ከታሰረ በኃላ በፖሊስ ቁጥጥር ስር ቆይቶ ነበር። ከዚህ በላይ በህጉ ማቆየት ስለማይቻል ከማቆያ ወጥቶ በፍርድ ቤት ጉዳዩ ታይቷል።
ፍርድ ቤቱም ከፈረንሳይ እንዳይወጣ በማገድ የ5 ሚሊዮን ዩሮ ዋስትና ፈቅዶለታል።
የፈረንሳይ መንግስት ዱሮቭ ላይ ምርመራ የከፈተው በቴሌግራም ፦
- ሞደሬት የማድረግ / ቁጥጥር የማድረግ ክፍተት አለ፣
- ለባለስልጣናት አስፈላጊ መረጃ አይሰጥም
- የወንጀል ድርጊቶች ይፈጸምበታል፣
- የአደገኛ እፅ ዝውውር ይከናወንበታል
- ሽብር፣ መኒ ላውንደሪንግ ይሰራበታል በሚል ነው።
ቴሌግራም ወደ 1 ቢሊዮን ተጠቃሚዎች ያሉት ሲሆን በነጻነቱና ደህንነቱ በተጠበቀ የመልዕክት እና መረጃ ልውውጥ በብዙዎች ዘንድ እጅግ ተመራጭ ነው።
#TikvahEthiopia
@tikvahethiopia
Forwarded from Tikvah-University
በ2016 ዓ.ም አራት የመንግሥት ዩኒቨርሲቲዎች 16 ፕሮግራሞቻቸውን ዓለም አቀፍ ዕውቅና እንዲያገኙ አስደርገዋል፡፡
አዲስ አበባ ሳይንስና ቴክኖሎጂ ዩኒቨርሲቲ ዘጠኝ፣ ባሕር ዳር ዩኒቨርሲቲ አራት፣ አዲስ አበባ ዩኒቨርሲቲ ሁለት እንዲሁም ሐረማያ ዩኒቨርሲቲ አንድ በድምሩ 16 ፕሮግራሞች ዓለም አቀፍ ዕውቅና ማግኘታቸውን ተሰምቷል፡፡
ይህ ዕውቅና አለም አቀፍ ተቀባይነት ያለው ተማሪ ለማፍራት እንደሚያግዝ በትምህርት ሚኒስቴር የከፍተኛ ትምህርት ልማት ዘርፍ አስተዳደርና መሰረተ ልማት መሪ ስራ አስፈጻሚ ሰለሞን አብርሃ (ዶ/ር) ዛሬ በአዲስ አበባ በተጀመረው ሀገር አቀፍ የትምህርት ጉባኤ ላይ ተናግረዋል፡፡
@tikvahuniversity
አዲስ አበባ ሳይንስና ቴክኖሎጂ ዩኒቨርሲቲ ዘጠኝ፣ ባሕር ዳር ዩኒቨርሲቲ አራት፣ አዲስ አበባ ዩኒቨርሲቲ ሁለት እንዲሁም ሐረማያ ዩኒቨርሲቲ አንድ በድምሩ 16 ፕሮግራሞች ዓለም አቀፍ ዕውቅና ማግኘታቸውን ተሰምቷል፡፡
ይህ ዕውቅና አለም አቀፍ ተቀባይነት ያለው ተማሪ ለማፍራት እንደሚያግዝ በትምህርት ሚኒስቴር የከፍተኛ ትምህርት ልማት ዘርፍ አስተዳደርና መሰረተ ልማት መሪ ስራ አስፈጻሚ ሰለሞን አብርሃ (ዶ/ር) ዛሬ በአዲስ አበባ በተጀመረው ሀገር አቀፍ የትምህርት ጉባኤ ላይ ተናግረዋል፡፡
@tikvahuniversity
እዚህ የደረስነው ብዙ ነገሮችን ተሻግረን ነው። ያልተመዘዘ ሰይፍ፣ ያልተሰበቀ ጦር፣ ያልተተከለ ወጥመድ፣ ያልተሤረ ሤራ፣ ያልተቆፈረ ገደል አልነበረም። በፈጣሪ ርዳታ ሁሉንም እየተሻገርነው ነው።
-FDRE PM DR. Abiy Ahmed
#Puagume1
#PMDRAbiyAhmed
@AbiyAhmedAliofficial
@python_pioneers
🥴1
Python Pioneers: A Beginner's Guide 🇪🇹
እዚህ የደረስነው ብዙ ነገሮችን ተሻግረን ነው። ያልተመዘዘ ሰይፍ፣ ያልተሰበቀ ጦር፣ ያልተተከለ ወጥመድ፣ ያልተሤረ ሤራ፣ ያልተቆፈረ ገደል አልነበረም። በፈጣሪ ርዳታ ሁሉንም እየተሻገርነው ነው። -FDRE PM DR. Abiy Ahmed #Puagume1 #PMDRAbiyAhmed @AbiyAhmedAliofficial @python_pioneers
😁አይ አም ኖት ፓለቲከኛ ግን አልዋሻችሁም አይ አም ቢግ ፋን ኦፍ ዚስ ፐርሰን
🥴4😁2
Python Pioneers: A Beginner's Guide 🇪🇹
😁አይ አም ኖት ፓለቲከኛ ግን አልዋሻችሁም አይ አም ቢግ ፋን ኦፍ ዚስ ፐርሰን
አሁን እሺ ቀልዱን ትተን፣ ፓይተንን እንማር ሶ ዛት... ፣ አይሻልም?☺️
👍3👨💻2👌1
Dictionary in Python
በPython programming language dictionary የሚባለው በkey-value ጥንድ ሆነው የሚቀመጡ elements ስብስብ ነው። Key የምንጠቀመው የያዘውን corresponding value acess ማድረግ ስንፈልግ ነው።
Dictionaries ከዚህ በፊት ስለlists ስንማር እንዳየነው mutable ናቸው፣ ይህም ማለት listኡ ከተፈጠረ በኋላ elementኦቹን modify ማረግ እንችላለን።
በpython dictionary ለመፍጠር curly braces '{}' ነው የምንጠቀመው ከዛም key-value pair በ colon ':' እንለያለን።
ለምሳሌ፡
my_dict = {'key1': 'value1', 'key2': 'value2'}You can access values in a dictionary by referencing the key in square brackets ([]).
ለምሳሌ :
print(my_dict['key1']) # Output: value1
ሌላው ደግሞ የቱለያዩ methods እና functions በመጠቀም የdictionary አዲስ elements መጨመር ፣ ያሉትን modify ማረግ፣ delete ማረግ እንችላለን
Dictionaries are commonly used in Python for storing data that needs to be looked up quickly using a unique key.
Dictionaries በPython ውስጥ key በመጠቀም በፍጥነት መፈለግ ያለባቸውን መረጃዎች ለማከማቸት በብዛት ጥቅም ላይ ይውላሉ።
#Dictionary
#DataTypes
@python_pioneers
⚡2👍1🔥1
Forwarded from TIKVAH-ETHIOPIA
#MoE
የ12ኛ ክፍል ብሔራዊ ፈተና ውጤት ሰኞ ይፋ ይደረጋል።
ትምህርት ሚኒስቴር የ12ኛ ክፍል ሀገር አቀፍ ፈተና ውጤት ሰኞ ጳጉሜን 4 ቀን 2016 ዓ/ም እንደሚገለጽ አሳውቋል።
የዘንድሮው ብሔራዊ ፈተና በቅይጥ ማለትም በወረቀት እና በኦንላይን መሰጠቱ ይታወሳል።
@tikvahethiopia
የ12ኛ ክፍል ብሔራዊ ፈተና ውጤት ሰኞ ይፋ ይደረጋል።
ትምህርት ሚኒስቴር የ12ኛ ክፍል ሀገር አቀፍ ፈተና ውጤት ሰኞ ጳጉሜን 4 ቀን 2016 ዓ/ም እንደሚገለጽ አሳውቋል።
የዘንድሮው ብሔራዊ ፈተና በቅይጥ ማለትም በወረቀት እና በኦንላይን መሰጠቱ ይታወሳል።
@tikvahethiopia
💔3😭3🥰1
Python Pioneers: A Beginner's Guide 🇪🇹
Dictionary in Python በPython programming language dictionary የሚባለው በkey-value ጥንድ ሆነው የሚቀመጡ elements ስብስብ ነው። Key የምንጠቀመው የያዘውን corresponding value acess ማድረግ ስንፈልግ ነው። Dictionaries ከዚህ በፊት ስለlists ስንማር እንዳየነው mutable ናቸው፣ ይህም ማለት listኡ ከተፈጠረ በኋላ elementኦቹን…
Example of Creating and Using a Dictionary:
#Dictionary
#DataTypes
@python_pioneers
# Creating a dictionary
student_info = {
"name": "John Doe",
"age": 17,
"grade": "11th",
"subjects": ["Math", "Science", "English"]
}
# Accessing dictionary values by key
print(student_info["name"]) # Output: John Doe
# Adding a new key-value pair
student_info["hobby"] = "Reading"
print(student_info) # Adds 'hobby': 'Reading' to the dictionary
# Modifying an existing key's value
student_info["grade"] = "12th"
print(student_info["grade"]) # Output: 12th
# Removing a key-value pair using 'pop'
student_info.pop("age")
print(student_info) # Removes 'age' from the dictionary
# Looping through keys and values
for key, value in student_info.items():
print(key, value)
# Checking if a key exists in the dictionary
if "name" in student_info:
print("Key 'name' exists!")
#Dictionary
#DataTypes
@python_pioneers
👍2
🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻
🌼🌼🌼🌼🌼🌼🌼🌼🌼🌼
ቤተሰቦች እንኳን ለአዲሱ አመት 2017 ዓ.ም በሰላም አደረሳችሁ፣ ይህ አመት የስኬት እንዲሆንላችሁ ምኞታችን 🙏 ነው።
@python_pioneers
@python_pioneers
🌼🌼🌼🌼🌼🌼🌼🌼🌼🌼
ቤተሰቦች እንኳን ለአዲሱ አመት 2017 ዓ.ም በሰላም አደረሳችሁ፣ ይህ አመት የስኬት እንዲሆንላችሁ ምኞታችን 🙏 ነው።
@python_pioneers
@python_pioneers
❤3🕊2⚡1
Speak these 5️⃣ lines to yourself every morning :
✅ I'm the best.
✅ I can do it.
✅ God is always with me.
✅ I'm a winner.
✅ Today is my day.
@python_pioneers
✅ I'm the best.
✅ I can do it.
✅ God is always with me.
✅ I'm a winner.
✅ Today is my day.
@python_pioneers
💻The person you will be in 10 years depends on the:
🔻skills you learn
🔹 books you read
🔺 habits you create
🔻 network you build
🔹mindset you develop
🔹Start investing in yourself today.Your future is written in the present.
@python_pioneers
@python_pioneers
🔻skills you learn
🔹 books you read
🔺 habits you create
🔻 network you build
🔹mindset you develop
🔹Start investing in yourself today.Your future is written in the present.
@python_pioneers
@python_pioneers
👍5