'How to prompt the user for a filename of the first and second files

I have tried to use the following script, however, this only prompts one input.

from pathlib import Path
out_path = input('Filename A')
path = Path(out_path)

from pathlib import Path
out_path = input('Filename B')
path = Path(out_path)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source