Topics: howto

Tuple + Tuple?

An interesting trivial task is to concatenate two tuples in python. Let’s say we try this out: a = (‘dd’) b = (‘aa’,’bb’) print a+b Unfortunately likely we will get the following error: Traceback (most recent call last): File "", line 20, in <module> print a+b TypeError: cannot concatenate ‘str’ and ‘tuple’ objects

HOWTO: Change Nuffnang Ads Positioning

Not sure any of you face this issue or not, but after I created a new template/design for my blog. I wish to set my nuffnang ads’ alignment to left instead of being centered by default. The best way of course is to use CSS text-align, but can’t do it as there’s no place for […]