Skip to content

Commit b7aa37f

Browse files
Merge pull request geekcomputers#471 from Mosrod/patch-18
Added .py extension, fixed indentation, and removed useless code
2 parents f6aff3f + 641eee9 commit b7aa37f

16 files changed

+6
-8
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

PONG_GAME renamed to PONG_GAME.py

File renamed without changes.

Polyline renamed to Polyline.py

File renamed without changes.

SimpleCalculator.json renamed to SimpleCalculator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ def divide(a,b);
1313
print("3.Multiply")
1414
print("4.Divide")
1515

16-
choice=input("Enter Choice(1/2/3/4):")
16+
choice = input("Enter Choice(1/2/3/4):")
1717
num1 = int(input("Enter first number: "))
1818
num2 = int(input("Enbter Second number:"))
1919

2020
if choice == '1':
21-
print(num1,"+",num2,"=", add(num1,num2))
21+
print(num1,"+",num2,"=", add(num1,num2))
2222

2323
elif choice == '2':
24-
print(num1,"-",num2,"=", subtract(num1,num2))
24+
print(num1,"-",num2,"=", subtract(num1,num2))
2525

2626
elif choice == '3':
27-
print(num1,"*",num2,"=", multiply(num1,num2))
27+
print(num1,"*",num2,"=", multiply(num1,num2))
2828

2929
elif choice == '4':
30-
print(num1,"/",num2,"=", divide(num1,num2))
30+
print(num1,"/",num2,"=", divide(num1,num2))
3131
else:
32-
print("Invalid input")
32+
print("Invalid input")

0 commit comments

Comments
 (0)