Writing first test case

Hello! I am new in Appium.I am trying to write first test case in python. Now I have difficulties with connecting appum server+android studio+appium inspector.(I use MacOS).How can I write desired capabilities in a right way. Can you suggest me how to fix this issue?

IMHO best idea is to follow a tutorial. Here is a pretty good one:

https://www.appsierra.com/blog/using-python-appium-framework