I was online at this amazing site for equivalent ratios. I would love to mimic or do the same as an output in python, but its a bit over my skills.
Can you help me put it in this format, here is what the first 3 pairs would look like in the output in python, if you can help me please?
1 : 5618 2 : 11236 3 : 16854
Here is the site that does what I want:
https://goodcalculators.com/ratio-calculator/
Here is my code so far but I hope someone can help me so it prints out in a nice fancy format or just maybe a cool list of numbers in equivalent ratio format:
It is throwing an error and I don't know why, and this is the error:
ValueError: invalid literal for int() with base 10: ' Enter 1st number for ratio calculation: '
Can you help me put it in this format, here is what the first 3 pairs would look like in the output in python, if you can help me please?
1 : 5618 2 : 11236 3 : 16854
Here is the site that does what I want:
https://goodcalculators.com/ratio-calculator/
Here is my code so far but I hope someone can help me so it prints out in a nice fancy format or just maybe a cool list of numbers in equivalent ratio format:
It is throwing an error and I don't know why, and this is the error:
ValueError: invalid literal for int() with base 10: ' Enter 1st number for ratio calculation: '
while True: a = input(int(' Enter 1st number for ratio calculation: ')) b = input(int(' Enter 2nd number for ratio calculation: ')) r = ( a/b and b/b) print(r)