TechEthiopia.py®


Гео и язык канала: Эфиопия, Амхарский
Категория: Технологии


Skill+Info is the power🔱 not knowledge⚠️
Get helped on your way to #TechMasterness
For bot development >> @techEth_bot
Explore the world of 1s & 0s in #Ethiopia!
Apps+📱, ITCourses(A+, Network+, Linux+)💻 Robotics+ 🤖, Gaming+🎮...

Связанные каналы

Гео и язык канала
Эфиопия, Амхарский
Категория
Технологии
Статистика
Фильтр публикаций


If you guys know one of these students.please send me their number or tell them to contact me(.@userh43/0908888373).
📌IT IS URGENT.📌

1.YONAS ZELALEM YITAYEW
2.LEUL SHAWEL ABAYNEH
3.KIDUS TESFAMARIAM SEYOUM
4.GUDINA ASEFA ABEBE
5.FELMETA DEREJE DURESA
6.AMANUEL DEMEKE SILESHI


Which symbol is user to comment (single line) in pythom?
Опрос
  •   //
  •   #
  •   /* */
  •   None
204 голосов


This is the best all in one python guide picture.

U can use this whenever you get confused in the middle of your projects.

@aauPython


number = int(input("Enter a number: "))
number1 = number
temp = number
result = 0
digits = 0
while number != 0:
number = number//10
digits += 1

while number1 != 0:
number = number1%10
result = result + number ** digits
number1 = number1 // 10
if result == temp:
print("Armstrong")
else:
print("Not armstrong")


bizefen yele
bizemer yele
weyne😂😂

tegelete yhe wereket
wedefit wedefit kezas wedehuala wedehuala😂

@aauPython


Some of the answers of today's exam


row = 6
string = "PYTHON"

for i in range(row, 0, -1):
j = 0
for k in string:
if i == j:
break
print(j, end= k)
j = j + 1
print("")

def outputX(i):
i+=1
print(i)
i = 19

for i in range(10):
outputX(i)

i += 5


outputX(i)

def is_palindrome(string):
reverse = ""
for letter in string[ : :-1]:
reverse += letter

if reverse == string:
return True
return False

print(is_palindrome("noon"))


Which of the ff is correct??
Опрос
  •   if x == 0:
  •   else x == 0:
  •   elif:
162 голосов


Sorry. All the code is written horizontally. The print statement is out of the function ok.


What is the output of this code: def square(number): square = number ** 2 print(square(4))
Опрос
  •   A: 4
  •   B: 8
  •   C: 16
  •   D: None
172 голосов


Which one of following is used to help in making repititive code excution easy?
Опрос
  •   A: Loops
  •   B: Functions
  •   C: Both
400 голосов


Видео недоступно для предпросмотра
Смотреть в Telegram
#sec_11

#Question number 7 tinsh des emil new ena serawt. Yemitserut code bezi video lay yalewn aynet output mamtat alebet


#AAIT_sec_11
#lab_6 partB Iteration (for and while)


#Server_Rooms

Be alem lay tawaki ena tillk ye #server kifloch

#Amazon
#Google
#Apple
#Microsoft

👇👇👇👇👇👇👇
👉@aauPython👈
👉@aauPython👈
👆👆👆👆👆👆👆


import time, threading, random, os


tree = [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 'R', '\n', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 'Y', 'Y', 'Y', '\n', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '/', '_', '\\', '\n', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '/', '_', 'R', '_', '\\', '\n', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '/', '_', '/', '_', '/', '_', '\\', '\n', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '/', '_', '\\', 'G', '\\', '_', '\\', '\n', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '/', '_', 'R', '_', '/', '_', 'B', '_', '\\', '\n', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '/', '_', '\\', '_', 'B', '_', '\\', '_', '\\', '\n', ' ', ' ', ' ', ' ', ' ', ' ', '/', '_', '/', 'G', '/', '_', '/', 'R', '/', '_', '\\', '\n', ' ', ' ', ' ', ' ', ' ', ' ', '/', '_', '\\', '_', '\\', '_', 'B', '_', '\\', '_', '\\', '\n', ' ', ' ', ' ', ' ', ' ', '/', '_', 'G', '_', '/', '_', '/', '_', '/', '_', '/', '_', '\\', '\n', ' ', ' ', ' ', ' ', ' ', '/', '_', '\\', 'R', '\\', '_', '\\', '_', 'B', '_', 'G', '_', '\\', '\n', ' ', ' ', ' ', ' ', '/', '_', '/', '_', '/', '_', '/', '_', '/', '_', '/', '_', '/', '_', '\\', '\n', ' ', ' ', ' ', ' ', '/', '_', '\\', '_', '\\', '_', '\\', 'R', '\\', '_', '\\', '_', '\\', '_', '\\', '\n', ' ', ' ', ' ', '/', '_', '/', 'R', '/', '_', '/', '_', '/', '_', '/', '_', '/', 'R', '/', '_', '\\', '\n', ' ', ' ', ' ', '/', '_', '\\', '_', 'G', '_', '\\', '_', '\\', '_', 'B', '_', '\\', '_', '\\', '_', '\\', '\n', ' ', ' ', '/', '_', '/', '_', '/', '_', '/', '_', 'B', '_', '/', '_', '/', '_', 'G', '_', '/', '_', '\\', '\n', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '[', '_', '_', '_', ']', '"', '"', '"']


locker = threading.Lock()
grn=[]
red=[]
blu=[]
ylw=[]

def color_dot(color):
if color == "ylw":
return f'\033[93mY\033[0m'
elif color == "red":
return f'\033[91mR\033[0m'
elif color == "grn":
return f'\033[92mG\033[0m'
elif color == "blu":
return f'\033[94mB\033[0m'


def light(color, index):
off = True
if color == "ylw":
letter = "Y"
t = 0.5
elif color == "red":
letter = "R"
t = 0.25
elif color == "grn":
letter = "G"
t = 1
elif color == "blu":
letter = "B"
t = 2
while True:
for idx in index:
tree[idx] = color_dot(color) if off else letter

locker.acquire()
os.system("clear")
print(''.join(tree))
locker.release()

off = not off
time.sleep(random.uniform(.5,1.5))

for i,c in enumerate(tree):
if c == "Y":
ylw.append(i)
elif c == "B":
blu.append(i)
elif c == "R":
red.append(i)
elif c == "G":
grn.append(i)

def ch(tr):
while True:
time.sleep(0.3)
for i, branch in enumerate(tr):
if branch=="/":
tr[i] = "\\"
elif branch == "\\":
tr[i] = "/"

ty = threading.Thread(target=light, args=["ylw",ylw])
tg = threading.Thread(target=light, args=["grn",grn])
tb = threading.Thread(target=light, args=["blu",blu])
tr = threading.Thread(target=light, args=["red",red])
tc = threading.Thread(target=ch, args=[tree])


for t in [tr,tg,tb,ty,tc]:
t.start()
for t in [tr,tg,tb,ty]:
t.join()


🎄 #MERRY_CHRISTMASS 🎄

#Copy_paste argachu mokeruat esti👇


#Keyboard

The #faster you type, The sooner you finish #Projects

#Productivity and #Speed are directly proportional💪💪

👇👇👇👇👇👇👇
👉@aauPython👈
👉@aauPython👈
👆👆👆👆👆👆👆


#Skill_is_Important

yebela ena yetemare wediko ayiwedkm sibal ewnet new eshi sewech.
emenugn gn hemnimarew neger #matter yaregal zm blo tera #Velocity ena #Quadratic #function memar enjera ayihonm. wede #Money or #Injera likeyer yemichil #Skill memar wesagn ye #life_decision new.

#Not only #Python mangnawm ayinet #SMART #Skill memar wesagn new.

#Recomended_skills

#Web_Dev #Programming_Lang #Game_Dev #SocialMedia_Market ....

👇👇👇👇👇👇👇
👉@aauPython👈
👉@aauPython👈
👆👆👆👆👆👆👆


import os
from threading import Thread,Lock

mutex = Lock()
wins = [0,0]
os.system("clear")

board= ["|"," ","A"," ","|"," ","B"," ","|"," ","C"," ","|","|","_","_","_","|","_","_","_","|","_","_","_", "|","|"," ","D"," ","|"," ","E"," ","|"," ","F"," ","|","|","_","_","_","|","_","_","_","|","_","_","_", "|","|"," ","G"," ","|"," ","H"," ","|"," ","I"," ","|","|","_","_","_","|","_","_","_","|","_","_","_", "|"]

spots = {"A":2, "B":6, "C":10, "D":28, "E":32, "F":36, "G":54, "H":58, "I":62}
finishes = ["abc","def","ghi","adg","beh","cfi","aei","ceg"]

cont = True

def reset_board():
for letter in spots.keys():
board[spots[letter]] = letter

def starter(cont):
builder()
cont = True
pl1_turn = True

while cont:
print(f"\nWins\nP1: {wins[0]}\nP2: {wins[1]}")
if pl1_turn:
place = input("\n\nPlayer 1: ").upper()
p = pl1
pl1_turn = not pl1_turn
else:
place = input("\n\nPlayer 2: ").upper()
p = pl2
pl1_turn = True

os.system("clear")
builder(place, p)


def winer(p1, p2,cont):
while cont:
for comb in finishes:
a,b,c = list(comb.upper())
A,B,C = board[spots[a]], board[spots[b]],board[spots[c]]
if A==B and B==C:
mutex.acquire()
if A == p1:
print("Player1 Won")
wins[0] = wins[0]+1
else:
print("Player2 Won")
wins[1] = wins[1]+1
print("\ngame over")
reset_board()
mutex.release()


def sign_chooser():
player1 = input("\n\nPlayer1 X or O? ").upper()
if player1 == "X":
player2 = "O"
elif player1 == "O":
player2 = "X"
else:
os.system("clear")
builder()
print("\nPlease X or O only")

return sign_chooser()
return player1, player2


def builder(cell=None, player=None):
if cell== "RS":
reset_board()
try:
if cell and board[spots[cell]] != "X" and board[spots[cell]] != "O":
board[spots[cell]] = player
except KeyError:
print("Enter a valid letter place")
os.system("clear")

count = 0
for i, x in enumerate(board):
if count%13 == 0:
print("\n")
print(x, end="")
count+=1

pl1, pl2 = sign_chooser()

t1 = Thread(target=winer, args=[pl1, pl2, cont])
t2 = Thread(target=starter, args=[cont])
t =[t1,t2]

for th in t:
th.start()


#Games

#Copy_paste argachu #XO #game techawetu👇👇👇👇

Показано 20 последних публикаций.

177

подписчиков
Статистика канала