I have this
bc = 'off'
if c.page == 'blog':
bc = 'on'
print(bc)
Is there a more pythonic (and/or shorter) way of writing this in Python?
I have this
bc = 'off'
if c.page == 'blog':
bc = 'on'
print(bc)
Is there a more pythonic (and/or shorter) way of writing this in Python?