CODE TECH™ (channel)
226 subscribers
42 photos
1 video
8 files
21 links
“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” – Martin Fowler

Channel ➻ @h_programming
Group ➻ @h_programmers_group
Bot ➻ @h_gramBot
Download Telegram
print("a" > "A")
Anonymous Quiz
46%
True
30%
False
24%
error
👍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
1 > 2 and 1 < 2

👆 ይህ ማለት 👇

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 = 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
print("b" < "B")
Anonymous Quiz
50%
True
50%
False
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
We will come back soon...
This media is not supported in your browser
VIEW IN TELEGRAM
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
❤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 ወደ ተቃራኒዉ መቀየር እንችላለን : :

✨ ምሳሌ :-
print(not True)

ውጤት : -
False


print(not False)

ውጤት : -
True



~~~~~
✍ @h_programming
👥 @h_programmers_group
📥 @h_grambot
👍2❤1
print(not(True or False))
Anonymous Quiz
36%
A/ True
64%
B/ False
print(not False or True)
Anonymous Quiz
31%
False
69%
True
print(not(False or True))
Anonymous Quiz
62%
False
38%
True
👍1
🔜 Next »» control flow statements in Python
Channel name was changed to «🌻 CODE TECH™ (channel) 🌻»
👍1
❤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
👍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