PCAP • Practice Test 9
Free PCAP practice test — 10 questions with explanations. Set 9. No signup required.
A developer is working on a logging system where dynamic values are inserted into a template string. The template is 'User %s logged in at %s'. The developer has the username and timestamp as separate variables. Which approach is most Pythonic (PEP 498) and recommended for new code?
Choose an answer to begin — your selection is scored in the full session.
10 questions · instant feedback and full explanations after every question.