-
-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Move patchcheck.py, reindent.py and untabify.py scripts to a new Tools/patchcheck/ directory.
- Loading branch information
Showing
7 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit 0895c2a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print("Please select the operation.")
print("a. Add")
print("b. Subtract")
print("c. Multiply")
print("d. Divide")
choice = input("Please enter choice (a/ b/ c/ d): ")
num_1 = int(input("Please enter the first number: "))
num_2 = int(input("Please enter the second number: "))
if choice == 'a':
print(num_1, " + ", num_2, " = ", add(num_1, num_2))
elif choice == 'b':
print(num_1, " - ", num_2, " = ", subtract(num_1, num_2))
elif choice == 'c':
print(num1, " * ", num2, " = ", multiply(num1, num2))
elif choice == 'd':
print(num_1, " / ", num_2, " = ", divide(num_1, num_2))
else:
print("This is an invalid input")
l