Oct-18-2019, 10:33 AM
Could not finish editing the post (there was a time limit)
So I continue:
Something like:
The lenght of AB is 27 cm
So I continue:
Something like:
def name(Whatever)#this is the function I'm looking for. Gives me the name of the variable. In this case - Whatever ??? def lenght(x,y) ...some calculations... print('The lenght of', name(x), name(y), 'is', ..the result of the calculations...)And then to call lenght with A and B:
lenght(A,B)The result should be:
The lenght of AB is 27 cm