Created
March 20, 2021 10:09
-
-
Save AnisahTiaraPratiwi/1e780c5ef5efd02daf0fb280641f7aa9 to your computer and use it in GitHub Desktop.
This code is supposed to take two numbers, divide one by another so that the result is equal to 1, and display the result on the screen. Unfortunately, there is an error in the code. Find the error and fix it, so that the output is correct.
This file contains hidden or 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
numerator = 10 | |
denominator = 10 | |
result = numerator / denominator | |
print(result) |
numerator = 10
denominator = 10
result = numerator / denominator
print(result)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
numerator = 10
denominator = 10
result = numerator / denominator
print(int(result))