How to type with two languages on iPhone
Add both keyboards in Settings → General → Keyboard → Keyboards, then hold the globe key to choose the one you want.
Add and identify both layouts
Tap Add New Keyboard, choose a language, and repeat for the other. Open a note and use the globe menu. Check the letter layout and suggestion language by typing a complete phrase in each.
Switching and multilingual prediction
Switching changes the active layout explicitly. Some keyboards also support suggestions in multiple languages without a manual switch. That support depends on the app and languages you choose.
Keycap95 offers English · QWERTY and French · AZERTY as explicit choices in Layout. Select the layout that matches the phrase you're about to write. See Apple's keyboard instructions and the AZERTY walkthrough.