kartoffel is rite ,start very simple
like

first try to create a box controlled with physics
then go one step up and try to maby pick it up
then go one etep up and try to add a hinge
then try to push it with code

the only real way to learn is to do it step by step
for every step you could ask help or search the forum
that way it will be simpler pieces of code people can help with easily

in the end combine all what you have learned or got as exaples


Compulsive compiler