How to open another app

Hi dears,

I have to take verification code from gmail when i run tests.

  1. Open my apk and click to take verification code to my gmail
  2. Go to gmail and find the verification code which i sent from my apk and take the otp code
  3. Go back to my own apk and input the OTP code which i taken from the gmail

Is it possible in python(appium)?