Skip to content

Commit 5af1658

Browse files
committed
mznvjsv
1 parent 9d37ffa commit 5af1658

File tree

5 files changed

+51
-3
lines changed

5 files changed

+51
-3
lines changed

bool.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
a=True
2-
print(a)
3-
type(a)
1+
42
# >>> x=3+5i
53
# File "<stdin>", line 1
64
# x=3+5i

section_4operators/area_traingle.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
lenghth=int(input("Enter the length of the triangle: "))
2+
breadth=int(input("Enter the breadth of the triangle: "))
3+
area=lenghth*breadth
4+
print("The area of the triangle is: ",area)
5+

section_4operators/area_tranglec.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
breadth=int(input("Enter the breadth of the triangle: "))
2+
height=int(input("Enter the height of the triangle: "))
3+
Area=0.5*breadth*height
4+
print("The area of the triangle is: ",Area)

section_4operators/operater.py

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
a=15
2+
b=4
3+
c=a**b
4+
print(c)
5+
6+
a=15
7+
b=4
8+
c=a+b
9+
print(c)
10+
11+
a=15
12+
b=4
13+
c=a*b
14+
print(c)
15+
16+
a=15
17+
b=4
18+
c=a-b
19+
print(c)
20+
21+
a=15
22+
b=4
23+
c=a/b
24+
print(c)
25+
26+
a=15
27+
b=4
28+
c=a//b
29+
print(c)
30+
31+
a=15
32+
b=4
33+
c=a%b
34+
print(c)

section_4operators/rombous.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# rhombo area=.5(a+b)h
2+
3+
a=int(input('enter the valute of a '))
4+
b=int(input('enter the valute of b '))
5+
height=int(input('enter the valute of height '))
6+
area=(a+b)/.5*height
7+
print('the area of the rhombus is: ',area)

0 commit comments

Comments
 (0)