Thanks guys however I'm trying to create a clean print though. This print job repeats, and with a little help at stackexcange along with my modification we got it to work. However, checkout the print feature. Can anyone help me with a single quality print here. Here is the code I have. Run it and see what it prints.
Also:
While I print using this python37 code it repeats till the end and its slow. I really need it to print super fast. Also I would like to divide the first number it finds before the colon and output the number that it is associated with after the colon.
For instance the program finds this ratio pair ( 8978:1445580) in the set after going through an amount of numbers and I decided to divide it like this 8978/8978 then the output should print (1445580). Or maybe it just matches 8978 and prints (1445580) as the output.
Is this possible? It does seem programmable, but my skills are a little weak in this area and I could use some help.
Thanks very much for any help! :)
Here is the code I'm working with:
Also:
While I print using this python37 code it repeats till the end and its slow. I really need it to print super fast. Also I would like to divide the first number it finds before the colon and output the number that it is associated with after the colon.
For instance the program finds this ratio pair ( 8978:1445580) in the set after going through an amount of numbers and I decided to divide it like this 8978/8978 then the output should print (1445580). Or maybe it just matches 8978 and prints (1445580) as the output.
Is this possible? It does seem programmable, but my skills are a little weak in this area and I could use some help.
Thanks very much for any help! :)
Here is the code I'm working with:
while True: list_numbers={} a = int(input(' Enter 1st number for ratio calculation: ')) b = int(input(' Enter 2nd number for ratio calculation: ')) y = int(input(' Enter y start range: ')) n = int(input(' Enter n end range: ')) for x in range(y,n): list_numbers.update({a*x: b*x}) print(list_numbers)