#tashkhis mosalas ghaemozavieh
a=int(input("please enter a:"))
b=int(input("please enter b:"))
c=int(input("please enter c:"))
if a**2==b**2+c**2 or b**2==c**2+a**2 or c**2==a**2+b**2:
print("Right Triangle")
else:
print("Not Right Triangle")
a=int(input("please enter a:"))
b=int(input("please enter b:"))
c=int(input("please enter c:"))
if a**2==b**2+c**2 or b**2==c**2+a**2 or c**2==a**2+b**2:
print("Right Triangle")
else:
print("Not Right Triangle")
👍1
import turtle
colors=['yellow','blue','red','purple','green','orange']
t=turtle.Pen()
turtle.bgcolor('black')
for x in range(360):
t.pencolor(colors[x%6])
t.width(x/100+1)
t.forward(x)
t.left(59)
colors=['yellow','blue','red','purple','green','orange']
t=turtle.Pen()
turtle.bgcolor('black')
for x in range(360):
t.pencolor(colors[x%6])
t.width(x/100+1)
t.forward(x)
t.left(59)
👍2
#tashkhis rooz hafteh
x=int(input("please enter a number:"))
if x==1:
print("Sat")
elif x==2:
print("Sun")
elif x==3:
print("Mon")
elif x==4:
print("Tue")
elif x==5:
print("Wed")
elif x==6:
print("Thu")
elif x==7:
print("Fri")
else:
print("please enter number between 1 and 7")
x=int(input("please enter a number:"))
if x==1:
print("Sat")
elif x==2:
print("Sun")
elif x==3:
print("Mon")
elif x==4:
print("Tue")
elif x==5:
print("Wed")
elif x==6:
print("Thu")
elif x==7:
print("Fri")
else:
print("please enter number between 1 and 7")
👍1
#tashkhis adad mosbat manfi sefr
a=float(input("please enter a number:"))
if a>0:
print("Positive")
elif a==0:
print("Zero")
else:
print("Negative")
a=float(input("please enter a number:"))
if a>0:
print("Positive")
elif a==0:
print("Zero")
else:
print("Negative")
👍1
#tashkhis roozhaye mah
y=int(input("please enter a number:"))
if 1<=y<=6:
print("31 Days")
elif 7<=y<=11:
print("30 Days")
elif y==12:
print("29 Days")
else:
print("please enter number between 1 and 12")
y=int(input("please enter a number:"))
if 1<=y<=6:
print("31 Days")
elif 7<=y<=11:
print("30 Days")
elif y==12:
print("29 Days")
else:
print("please enter number between 1 and 12")
👍1
x=float(input("please enter a number:"))
if 17<=x<=20:
print("Kheyli khoob")
elif 15<=x<17:
print("khob")
elif 12<=x<15:
print("ghabel ghabool")
elif 0<=x<12:
print("Niaz be talash bishtar")
else:
print("LotfaN ADADi beyn 0 ta 20 vared konid:")
if 17<=x<=20:
print("Kheyli khoob")
elif 15<=x<17:
print("khob")
elif 12<=x<15:
print("ghabel ghabool")
elif 0<=x<12:
print("Niaz be talash bishtar")
else:
print("LotfaN ADADi beyn 0 ta 20 vared konid:")
👍1
#morab az ma4rkaz
import turtle
t=turtle.Pen()
turtle.bgcolor('black')
dist=0.35
for i in range(2):
t.pencolor("white")
t.forward(dist)
t.rt(90)
dist=dist+0.5
import turtle
t=turtle.Pen()
turtle.bgcolor('black')
dist=0.35
for i in range(2):
t.pencolor("white")
t.forward(dist)
t.rt(90)
dist=dist+0.5
👍1