Control servo with a button in a Raspbeery Pi 3

Look at the examples in the Python Library and extrapolate from there…

And I fixed your required formatting when pasting code here…

Blynk - FTFC