👍1
CODE TECH™ (channel)
Next »» 📌 Logical Operators
📌 Logical Operators
በ python 3 አይነት Logical operator 'ኦች ሲኖሩ እነሱም:-
🔹 not
🔹 or እና
🔹 and
...ናቸዉ : :
🔑 Logical operator'ኦች boolean data type'ኦችን operate ለማረግ ነዉ የምንጠቀምባቸዉ : :
🤔 ግን Boolean data type ምንድነዉ ?
እስካሁን እንዳየናቸዉ የ python data type'ኦች ማለትም እንደ integer, string, tuple, list, dictionary, set ሁሉ boolean 'ም የ python የ data አይነት ሲሆኑ እነሱም True እና False ናቸዉ : : ለምሳሌ Comparison Operators ተጠቅመን ሁለት ቁጥሮችን operate ስናረግ የምናገኘዉ boolean data type ያላቸዉን ዉጤቶችን ነዉ ማለትም True ወይም False 'ን...
1⃣ The Logical Operator "and"
'and' ከ ሶስቱ Logical Operator'ኦች አንዱ ነዉ : : 'and' ተጠቅመን ሁለት boolean 'ኦችን ወደ አንድ boolean መቀየር እንችላለን : : ሁለቱ boolean 'ኦች ወደ አንድ ሲቀየሩ True ሊሰጡ የሚችሉት ሁለቱም True ከሆኑ ብቻ ነዉ : :
ምሳሌዎች:-
print(True and False)
#👆ውጤት 👇:
False
---------------------------------------------
print(False and True)
#👆ዉጤት👇:
False
---------------------------------------------
print(False and False)
#👆ውጤት 👇:
False
---------------------------------------------
print(True and True)
#👆ውጤት 👇:
True
ይቀጥላል.....
✍ @h_programming ✍
Share button was made by: @auto_share_robot
በ python 3 አይነት Logical operator 'ኦች ሲኖሩ እነሱም:-
🔹 not
🔹 or እና
🔹 and
...ናቸዉ : :
🔑 Logical operator'ኦች boolean data type'ኦችን operate ለማረግ ነዉ የምንጠቀምባቸዉ : :
🤔 ግን Boolean data type ምንድነዉ ?
እስካሁን እንዳየናቸዉ የ python data type'ኦች ማለትም እንደ integer, string, tuple, list, dictionary, set ሁሉ boolean 'ም የ python የ data አይነት ሲሆኑ እነሱም True እና False ናቸዉ : : ለምሳሌ Comparison Operators ተጠቅመን ሁለት ቁጥሮችን operate ስናረግ የምናገኘዉ boolean data type ያላቸዉን ዉጤቶችን ነዉ ማለትም True ወይም False 'ን...
1⃣ The Logical Operator "and"
'and' ከ ሶስቱ Logical Operator'ኦች አንዱ ነዉ : : 'and' ተጠቅመን ሁለት boolean 'ኦችን ወደ አንድ boolean መቀየር እንችላለን : : ሁለቱ boolean 'ኦች ወደ አንድ ሲቀየሩ True ሊሰጡ የሚችሉት ሁለቱም True ከሆኑ ብቻ ነዉ : :
ምሳሌዎች:-
print(True and False)
#👆ውጤት 👇:
False
---------------------------------------------
print(False and True)
#👆ዉጤት👇:
False
---------------------------------------------
print(False and False)
#👆ውጤት 👇:
False
---------------------------------------------
print(True and True)
#👆ውጤት 👇:
True
ይቀጥላል.....
✍ @h_programming ✍
Share button was made by: @auto_share_robot
print(1 > 2 and 1 < 2)
Anonymous Quiz
10%
1 > 2 and 1 < 2
4%
1 > 2 1 < 2
12%
True
56%
False
12%
Error
6%
None
CODE TECH™ (channel)
print(1 > 2 and 1 < 2)
This media is not supported in your browser
VIEW IN TELEGRAM
1 > 2 and 1 < 2
👆 ይህ ማለት 👇
False and True ...ነዉ : :
👆 ይህ ማለት ደሞ 👇
False ...ነው : :
ስለዚህ መልሱ False ነዉ : :
Share button was made by: @auto_share_robot
👆 ይህ ማለት 👇
False and True ...ነዉ : :
👆 ይህ ማለት ደሞ 👇
False ...ነው : :
ስለዚህ መልሱ False ነዉ : :
Share button was made by: @auto_share_robot
CODE TECH™ (channel)
print("a" > "A")
❓ እንዴት "a" ከ "A" ሊበልጥ ቻለ 🤔
💡 string data type'ኦችን በ “Comparison Operators” ተጠቅመን ስናወዳድር python የሚያወዳድረዉ ፊደሎቹን ሳይሆን የተወከሉበትን “ASCII” code ነዉ : :
❔ ግን “ASCII” code ምንድነዉ ? 🤔
🌀 ASCII(American Standard Code for Information Interexchange) - ማለት በ computer ውስጥ የተለያዩ letters, numbers, characters, and symbols የሚወክል ቁጥር ነዉ : : እያንዳንዱ ፊደል(character) የተወከለበት የተለያየ ASCII code አለዉ : : ለምሳሌ የ "C" ASCII code 67 ነዉ : :
🌀 በ python የ letters, numbers, characters, and symbols 'ን ASCII code ማወቅ ከፈለግን ord() function 'ን እንጠቀማለን --- ord("C") --- ይህም የ "C" ን ASCII CODE ይሰጠኛል : :
ውጤት :-
🌀 ASCII CODE 'ኡን መልሰን ወደ character ለመቀየር ከፈለግን ደሞ --- chr() 'ን እንጠቀማለን :-
character = chr(67)
print(character)
ውጤት :-
C
🌀 ወደ ጥያቄዉ ስመለስ "a" ከ "A" የበለጠበት ምክንያት የ "a" ASCII code ከ "A" ስለሚበልጥ ነዉ : : እስኪ ord() function 'ን ተጠቅመን ምን ያህል እንደሚበላለጡ እንይ....
ascii_a = ord("a")
ascii_A = ord("A")
print("የ 'a' ASCII code:", ascii_a)
print("የ 'A' ASCII code:", ascii_A)
ውጤቱ:-
የ 'a' ASCII code: 97
የ 'A' ASCII code: 65
You see?! 🙄😉
Thanks for reading!
✍ @h_programming
Share button was made by: @auto_share_robot
💡 string data type'ኦችን በ “Comparison Operators” ተጠቅመን ስናወዳድር python የሚያወዳድረዉ ፊደሎቹን ሳይሆን የተወከሉበትን “ASCII” code ነዉ : :
❔ ግን “ASCII” code ምንድነዉ ? 🤔
🌀 ASCII(American Standard Code for Information Interexchange) - ማለት በ computer ውስጥ የተለያዩ letters, numbers, characters, and symbols የሚወክል ቁጥር ነዉ : : እያንዳንዱ ፊደል(character) የተወከለበት የተለያየ ASCII code አለዉ : : ለምሳሌ የ "C" ASCII code 67 ነዉ : :
🌀 በ python የ letters, numbers, characters, and symbols 'ን ASCII code ማወቅ ከፈለግን ord() function 'ን እንጠቀማለን --- ord("C") --- ይህም የ "C" ን ASCII CODE ይሰጠኛል : :
ascii = ord("C")
print(ascii)ውጤት :-
67🌀 ASCII CODE 'ኡን መልሰን ወደ character ለመቀየር ከፈለግን ደሞ --- chr() 'ን እንጠቀማለን :-
character = chr(67)
print(character)
ውጤት :-
C
🌀 ወደ ጥያቄዉ ስመለስ "a" ከ "A" የበለጠበት ምክንያት የ "a" ASCII code ከ "A" ስለሚበልጥ ነዉ : : እስኪ ord() function 'ን ተጠቅመን ምን ያህል እንደሚበላለጡ እንይ....
ascii_a = ord("a")
ascii_A = ord("A")
print("የ 'a' ASCII code:", ascii_a)
print("የ 'A' ASCII code:", ascii_A)
ውጤቱ:-
የ 'a' ASCII code: 97
የ 'A' ASCII code: 65
You see?! 🙄😉
Thanks for reading!
✍ @h_programming
Share button was made by: @auto_share_robot
👍2
Posting anything bout coding that helps us go forward into our near future And we will do from the beginning to the end
-- make a website
-- make a bot by coding
-- make an AI like siri and more
👉 https://t.me/StillCoding
-- make a website
-- make a bot by coding
-- make an AI like siri and more
👉 https://t.me/StillCoding
Telegram
Let's Program💯
Posting anything bout coding that helps us go forward into our near future And we will do from the beginning to the end
-- make a website
-- make a bot by coding
-- make an AI like siri and more
-- make a website
-- make a bot by coding
-- make an AI like siri and more
CODE TECH™ (channel)
📌 Logical Operators በ python 3 አይነት Logical operator 'ኦች ሲኖሩ እነሱም:- 🔹 not 🔹 or እና 🔹 and ...ናቸዉ : : 🔑 Logical operator'ኦች boolean data type'ኦችን operate ለማረግ ነዉ የምንጠቀምባቸዉ : : 🤔 ግን Boolean data type ምንድነዉ ? እስካሁን እንዳየናቸዉ የ python data type'ኦች…
2⃣ The logical operator "or"
"or" ሌላኛዉ የ logical operator ምሳሌ ሲሆን ሁለት logical statement'ኦችን ለማያያዝ እንጠቀምበታለን : : አገልግሎቱም Math ትምህርት ላይ ከተማርነዉ ጋር አንድ አይነት ነዉ : : በ "or" አማካኝነት ከተያያዙት ሁለቱ statement'ኦች ቢያንስ አንደኛዉ True ከሆነ ሙሉ statement'ኡ True ይሆናል : :
✨ ለምሳሌ:-
print(True or False)
ውጤት:-
True
print(False or True)
ውጤት:-
True
print(True or True)
ውጤት :-
True
print(False or False)
ውጤት:-
False
🔜 Next » The logical operator "not"
💁♂ በራሳችሁ እየፃፋችሁ run በማረግ መማር, ዉጤቱን አይታችሁ የፃፋችሁት code ምን እንደሚሰራ መገመት, ከተማራችሁት ነገር ተነስታችሁ የራሳችሁን ፈጠራ መጨመር(መፈላሰፍ)... ማድረግ ያሉብን ነገሮች ናቸው programming language ስንማር...
~~~~~~~~~
✍ @h_programming
👥 @h_programmers_grouo
📥 @h_grambot
"or" ሌላኛዉ የ logical operator ምሳሌ ሲሆን ሁለት logical statement'ኦችን ለማያያዝ እንጠቀምበታለን : : አገልግሎቱም Math ትምህርት ላይ ከተማርነዉ ጋር አንድ አይነት ነዉ : : በ "or" አማካኝነት ከተያያዙት ሁለቱ statement'ኦች ቢያንስ አንደኛዉ True ከሆነ ሙሉ statement'ኡ True ይሆናል : :
✨ ለምሳሌ:-
print(True or False)
ውጤት:-
True
print(False or True)
ውጤት:-
True
print(True or True)
ውጤት :-
True
print(False or False)
ውጤት:-
False
🔜 Next » The logical operator "not"
💁♂ በራሳችሁ እየፃፋችሁ run በማረግ መማር, ዉጤቱን አይታችሁ የፃፋችሁት code ምን እንደሚሰራ መገመት, ከተማራችሁት ነገር ተነስታችሁ የራሳችሁን ፈጠራ መጨመር(መፈላሰፍ)... ማድረግ ያሉብን ነገሮች ናቸው programming language ስንማር...
~~~~~~~~~
✍ @h_programming
👥 @h_programmers_grouo
📥 @h_grambot
❤1
3⃣ The logical operator "not"
ይህ የ logical operator አይነት የአንድን logical statement Truth value ለመቀየር የምንጠቀምበት ነዉ : : ያህም ማለት False የነበረውን ወደ True...True የነበረውን ወደ False ይቀይራል : :
❔ በነገራችን ላይ Logical statement ማለት True ወይም False ልንለው የምንችለዉ statement ማለት ነው : :
ለምሳሌ:
1 > 3
2 < 3
5 == 5
7 >= 6
21 <= 13
42 != 21
.
.
.
Logical statement'ኦች ናቸዉ : :
💡 logical statement'ኦች በ programming ዉስጥ boolean expressions ተብለዉ ይጠራሉ : :
🎯 ስለዚ ከላይ እንዳልነዉ logical operator "not" 'ን በመጠቀም የአንድን boolean expression Truth value ወደ ተቃራኒዉ መቀየር እንችላለን : :
✨ ምሳሌ :-
ውጤት : -
ውጤት : -
~~~~~
✍ @h_programming
👥 @h_programmers_group
📥 @h_grambot
ይህ የ logical operator አይነት የአንድን logical statement Truth value ለመቀየር የምንጠቀምበት ነዉ : : ያህም ማለት False የነበረውን ወደ True...True የነበረውን ወደ False ይቀይራል : :
❔ በነገራችን ላይ Logical statement ማለት True ወይም False ልንለው የምንችለዉ statement ማለት ነው : :
ለምሳሌ:
1 > 3
2 < 3
5 == 5
7 >= 6
21 <= 13
42 != 21
.
.
.
Logical statement'ኦች ናቸዉ : :
💡 logical statement'ኦች በ programming ዉስጥ boolean expressions ተብለዉ ይጠራሉ : :
🎯 ስለዚ ከላይ እንዳልነዉ logical operator "not" 'ን በመጠቀም የአንድን boolean expression Truth value ወደ ተቃራኒዉ መቀየር እንችላለን : :
✨ ምሳሌ :-
print(not True)ውጤት : -
Falseprint(not False)ውጤት : -
True✍ @h_programming
👥 @h_programmers_group
📥 @h_grambot
👍2❤1
👍1
https://www.codingsummerschool.com/
Apply here if any of you are interested
👇
https://podio.com/webforms/27453267/2124202
Apply here if any of you are interested
👇
https://podio.com/webforms/27453267/2124202
❤1👍1
A channel where different ideas of computer science and related topics flourish. Everything posted will be posted like any other research paper but dumbed down( hopefully ) and guess who will be posting the documents. YOU
https://t.me/CodersMemEthiopia
https://t.me/CodersMemEthiopia
Telegram
Coders Mem(מ) Ethiopia
A channel where different ideas of computer science and related topics flourish. Everything posted will be posted like any other research paper but dumbed down( hopefully ) and guess who will be posting the documents. YOU
👍1
The AddisCoder 2023 application portal is now live! Prospective students and teaching assistants, apply at https://addiscoder.com/#apply.
AddisCoder is a 4-week summer program in Addis Ababa, Ethiopia that teaches algorithms and programming to high school students (100% free, including room and board). No prior programming experience required or expected from the high school participants.
TA deadline: Dec 31, 2022
Student deadline: Jan 25, 2023
AddisCoder is a 4-week summer program in Addis Ababa, Ethiopia that teaches algorithms and programming to high school students (100% free, including room and board). No prior programming experience required or expected from the high school participants.
TA deadline: Dec 31, 2022
Student deadline: Jan 25, 2023