Thank you very much for your response I am going to try and incorporate your suggestions into my code. I am trying to learn Python. I am finding these modern programming languages very difficult to learn. I took Fortran in college 56 years ago and did not use it during my working career.
I did some investigation on the internet and came up with the following code for a list of values I will accept for the denominator for fractions limited to 1/16 of an inch precision. I will add this to my existing code.
I would like to be able to make my response look as professional looking as your response.
I am going to try and use the BBCode in my response hopefully I am successful. It is like trying to learn Python.
I did some investigation on the internet and came up with the following code for a list of values I will accept for the denominator for fractions limited to 1/16 of an inch precision. I will add this to my existing code.
I would like to be able to make my response look as professional looking as your response.
I am going to try and use the BBCode in my response hopefully I am successful. It is like trying to learn Python.
[/print ("Denominator must be one of four numbers as shown below: ") print (" ") pow2=[2**x for x in range (5) if x>0] print (pow2)python] [python]
Output:Denominator must be one of four numbers as shown below:
[2, 4, 8, 16]
Again thanks for your response.