Can you write these prints in single statement using ? operator