Skip to content
New issue

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

Wrong Test, Part 1, Section 5, Programming Exercise 5 #88

Closed
iodoubo opened this issue Oct 16, 2022 · 0 comments
Closed

Wrong Test, Part 1, Section 5, Programming Exercise 5 #88

iodoubo opened this issue Oct 16, 2022 · 0 comments

Comments

@iodoubo
Copy link

iodoubo commented Oct 16, 2022

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!

@iodoubo iodoubo closed this as completed Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant