Python Command Line Calendar


#1

I’d like to know what is the difference between “del calendar[date]” and “del(calendar[date])”, since in the note below it is stated not clear enough for me. Please, describe the difference in detail. Thank you!


#2

Hi @amalegend,

These both do the same thing …

del calendar[date]
del(calendar[date])

The parentheses in the second example have no effect, since the expression, (calendar[date]) evaluates to calendar[date].


#3

Oh, I thought the second one does something more, ok, thank you!


#4