Skip to content

Instantly share code, notes, and snippets.

@AnisahTiaraPratiwi
Created March 20, 2021 10:09
Show Gist options
  • Save AnisahTiaraPratiwi/1e780c5ef5efd02daf0fb280641f7aa9 to your computer and use it in GitHub Desktop.
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.
numerator = 10
denominator = 10
result = numerator / denominator
print(result)
@asm-dev
Copy link

asm-dev commented Oct 7, 2022

numerator = 10
denominator = 10
result = numerator / denominator
print(int(result))

@anupamaGupta28
Copy link

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