the hardest part was a syntax thing i forgot. i knew arrays were implemented with pointers so some pointer syntax is redundant, but you do actually need the & in scanf("%c", &array);
the only other hard part was remembering the stupid style rules
By the powers vested in me by the state of disapproval, I now pronounce @ಠ_ಠ and @Sock undefined gender and wife*. (*but not really because I don't really know. :D)
Gender is the range of characteristics pertaining to, and differentiating between, masculinity and femininity. Depending on the context, these characteristics may include biological sex (i.e. the state of being male, female or intersex), sex-based social structures (including gender roles and other social roles), or gender identity.
Sexologist John Money introduced the terminological distinction between biological sex and gender as a role in 1955. Before his work, it was uncommon to use the word gender to refer to anything but grammatical categories. However, Money's meaning of the word did not...
It would be better to be more generic IMO. Give a problem that could use Euler's as a solution, but don't say it must use that. People may find golfier ways to do it.
hey guys totally random but I got a request to make e manuscript to compile generic information on the formation of programming languages and data compression (e.g. code golfing), with respect to a leisurely activity of such. I need to name it and make a subtitle for it. Any suggestions?
Introduction
One of the first things I learned in chemistry, was giving the formula for the combustion of alkanes. The most basic example was: 2CH4 + 4O2 > 4H2O + 2CO2. Note that the equation could have been simplified by dividing every coefficient by 2, we would get CH4 + 2O2 > 2H2O + CO2. To m...
@TanMath ohh i was looking at the wrong line for the error, i see where the problem is now. i thought it was failing on O=3*int(i[1])+1 but it's failing on return "2"+i+" + "+str(O)+"O2"+" > "+int(i[2])+"H2O"+ " + "+CO2+"CO2" because int(i[2]) is "H"
In Python you're supposed to use isinstance() if you have to check types (though, you're not supposed to check types at all if you don't absolutely have to). If you're okay with bad practices, type(a) == type(b) works.