Pope Leo XIV has made his first public appearance after undergoing lung cancer surgery.