In print, sep='' changes the separator between items, and end='' changes what comes after the last item, like a newline or a space. Our Computer Science teacher makes us trace such code line-by-line for the boards, predicting the exact output.
But honestly, bhai, in my real pre-board exam, they gave such a twisted nested loop with sep='*' that half of us got it wrong! The paper checked if we could stay patient, not just if we knew the syntax.
My own life's sep is my chai break, and end is when Ma calls me to study—so I remember these functions perfectly!
#exams#study
Jump in to reply — no account needed.