We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello! I wrote the code below:
number1 = int(input("Number 1: ")) number2 = int(input("Number 2: ")) operation = str(input("Operation: ")) if operation == "add": print(f"{number1} + {number2} = {number1 + number2}") if operation == "multiply": print(f"{number1} * {number2} = {number1 * number2}") if operation == "subtruct": print(f"{number1} - {number2} = {number1 - number2}")
When i run the programm above with the inputs : 2,1, subtruct. It gives me this :
Number 1: 2 Number 2: 1 Operation: subtruct 2 - 1 = 1
And the answer i get when i play the button Test is this:
FAIL: PythonEditorTest: test_subtract1 Your program does not print out anything with inputs 2, 1, subtract
Please fix it! Thank you!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello!
I wrote the code below:
number1 = int(input("Number 1: "))
number2 = int(input("Number 2: "))
operation = str(input("Operation: "))
if operation == "add":
print(f"{number1} + {number2} = {number1 + number2}")
if operation == "multiply":
print(f"{number1} * {number2} = {number1 * number2}")
if operation == "subtruct":
print(f"{number1} - {number2} = {number1 - number2}")
When i run the programm above with the inputs : 2,1, subtruct. It gives me this :
Number 1: 2
Number 2: 1
Operation: subtruct
2 - 1 = 1
And the answer i get when i play the button Test is this:
FAIL: PythonEditorTest: test_subtract1
Your program does not print out anything with inputs 2, 1, subtract
Please fix it! Thank you!
The text was updated successfully, but these errors were encountered: