#mohasebeh masahat va mohit moraba
side=float(input("please enter a side of square:"))
masahat=side*side
mohit=side*4
print("masahat Moraba=",masahat)
print("mohit Moraba=",mohit)
side=float(input("please enter a side of square:"))
masahat=side*side
mohit=side*4
print("masahat Moraba=",masahat)
print("mohit Moraba=",mohit)
👍1
#ghotr , mohit , masahat dayereh
R=float(input("Lotfan shoae dayereh ra vared konid:"))
gh=2*R
print("ghotr dayereh=",gh)
S=R*R*3.14
print("masahat Dayereh=",S)
M=2*3.14*R
print("Mohit Dayereh=",M)
R=float(input("Lotfan shoae dayereh ra vared konid:"))
gh=2*R
print("ghotr dayereh=",gh)
S=R*R*3.14
print("masahat Dayereh=",S)
M=2*3.14*R
print("Mohit Dayereh=",M)
👍1
#ghotr masahat mohit
import math
R=float(input("Lotfan shoae dayereh ra vared konid:"))
gh=2*R
print("ghotr dayereh=",gh)
S=math.pi*R*R
print("masahat Dayereh=",S)
M=math.pi*2*R
print("Mohit Dayereh=",M)
import math
R=float(input("Lotfan shoae dayereh ra vared konid:"))
gh=2*R
print("ghotr dayereh=",gh)
S=math.pi*R*R
print("masahat Dayereh=",S)
M=math.pi*2*R
print("Mohit Dayereh=",M)
👍1
#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