Skip to content

Commit 1b90a21

Browse files
Publishing Errors (#33)
1 parent b58440e commit 1b90a21

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

code/version-3.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
Enter 8 for Area of Triangle
1212
Enter 9 for Perimeter of Triangle
1313
Enter 10 for Area of Trapezium
14-
Enter 11 for Addition of Two 2x2 Matrixes
14+
Enter 11 for Addition of Two 2x2 Matrix
1515
Enter 12 for Usual Addition Calculations
16-
Enter 13 for Usual Subtration Calculations
16+
Enter 13 for Usual Subtraction Calculations
1717
Enter 14 for Usual Multiplication Calculations
18-
Enter 15 for Usual Division Calculcations
18+
Enter 15 for Usual Division Calculations
1919
>>> """))
2020
except ValueError:
2121
print("You have entered an invalid input. Please try again.")
@@ -67,7 +67,7 @@
6767
elif cmd == 10:
6868
a = float(input("Enter base of trapezium: "))
6969
b = float(input("Enter top length of trapezium: "))
70-
height = float(input("Enter height of trapezim: "))
70+
height = float(input("Enter height of trapezium: "))
7171
if cmd == 10:
7272
print(0.5 * (a + b) * height)
7373
else:
@@ -85,10 +85,10 @@
8585
m21 = float(input("Enter the element of 1st column and 2nd row of 2nd matrix :"))
8686
m22 = float(input("Enter the element of 2nd column and 2nd row of 2nd matrix :"))
8787

88-
X = [[n11,n12],[n21,n22]]
89-
Y = [[m11,m12],[m21,m22]]
90-
result = [[0, 0],[0,0]]
91-
# Iterate Through Rows
88+
X = [[n11, n12], [n21, n22]]
89+
Y = [[m11, m12], [m21, m22]]
90+
result = [[0, 0],[0, 0]]
91+
# Iterate Through Rows
9292
for i in range(len(X)):
9393
# iterate through columns
9494
for j in range(len(X[0])):

0 commit comments

Comments
 (0)