Skip to content

Commit 4a5a924

Browse files
Publishing Errors (#15)
1 parent 6441403 commit 4a5a924

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

code/version-2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
else:
1818
# Newline
1919
print()
20-
# For Commad Lines 1 and 2
20+
# For Command Lines 1 and 2
2121
if cmd in [1, 2]:
2222
length = float(input("Enter length of sides of Square: "))
2323
# For Command 1
@@ -59,10 +59,10 @@
5959
side3 = float(input("Enter third side of triangle: "))
6060
print(side + side2 + side3)
6161
# For Command 10,11
62-
elif cmd in [10,11]:
62+
elif cmd in [10, 11]:
6363
a = float(input("Enter base of trapezium: "))
6464
b = float(input("Enter top length of trapezium: "))
65-
height = float(input("Enter height of trapezim: "))]
65+
height = float(input("Enter height of trapezim: "))
6666
# For Command 10
6767
if cmd == 10:
6868
print(0.5 * (a + b) * height)

0 commit comments

Comments
 (0)