We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6441403 commit 4a5a924Copy full SHA for 4a5a924
1 file changed
code/version-2.py
@@ -17,7 +17,7 @@
17
else:
18
# Newline
19
print()
20
- # For Commad Lines 1 and 2
+ # For Command Lines 1 and 2
21
if cmd in [1, 2]:
22
length = float(input("Enter length of sides of Square: "))
23
# For Command 1
@@ -59,10 +59,10 @@
59
side3 = float(input("Enter third side of triangle: "))
60
print(side + side2 + side3)
61
# For Command 10,11
62
- elif cmd in [10,11]:
+ elif cmd in [10, 11]:
63
a = float(input("Enter base of trapezium: "))
64
b = float(input("Enter top length of trapezium: "))
65
- height = float(input("Enter height of trapezim: "))]
+ height = float(input("Enter height of trapezim: "))
66
# For Command 10
67
if cmd == 10:
68
print(0.5 * (a + b) * height)
0 commit comments