CC0 is the one CC licence you can safely use for code, as per the official recommendations. For all other CC licences, it is (strongly) discouraged.
CC0 is the one CC licence you can safely use for code, as per the official recommendations. For all other CC licences, it is (strongly) discouraged.
RE: Copyleft
The idea of copyleft is that you give anyone the freedom to do anything with your work, with one essential restriction: they do the same for their changes, derivative works etc. Technically attribution doesn’t have to be part of a copyleft licence, but all copyleft licences I know have a requirement to preserve copyright info.
And yes, it is popular in software (GPL, MPL, EPL), but for other types of works there is CC BY-SA 4.0 (Creative Commons Attribution-ShareAlike). If you want to copyleft books, images, videos, other forms of text… this is the way to go, IMO.
Some additional remarks, just to clarify:
Weird/confusing name, questionable legality and the website went down a while back (while mentioned explicitly in the licence…)
Use CC0 1.0 or Zero Clause BSD instead. They are more reputable, and all decent “public domain equivalent” licences are… well, equivalent in effect, anyway.