# leading coefficient polynomial

Hello everybody,

I'm new to sagemath and python in general, and one of my course in Uni uses it... I have a vague and unclear tutorial the prof gave us and for now I know only the most basic commands.

I have to write a function that takes a polynomial of any degree and tells me the coefficient of the highest degree member (for example , 2x^4+3x^3 would be 2, 7x^3+2x^4+2 would be 7...).

I think the function would have to use "expand", "degree", and of course "coefficient". But i barely have any idea as how to write it.

If anyone could help me it would be great, I am kinda lost here...

Sorry for sloppy english and thanks in advance.