So, recently I've been learning Python (I've never coded before in my life), and I'm really proud of my latest code.
def slimey_cock(gay):
if gay == True:
return "up my arse please"
elif gay == False:
return "no thanks"
else:
return "must be a girl"
print slimey_cock(True)
print slimey_cock(False)
print slimey_cock("Female")
Does 4chan have a dedicated board for coding? I haven't moved out of /pol/, /soc/, and /b/ for the last 10 years.
>claims to be on 4chan for 10 years
>doesn't know the boards
>>39257634
No but I here there's a gore board here filled with elite hackers who might help. I think it's called /hr/ or something
>>39257675
i was around in the days of operation apocalypse beta
>>39257634
>== True:
>== False:
Never fucking do this.
>>39257634
>he doesn't know what /g/ is, go to /dpt/, ignore the people yelling at you to learn C, also your code is shit
>>39257634
void IsAFaggot(User) {
if (User == "OP") {
print ("OP is a faggot");
}
}
IsAFaggot ("OP");
Don't fall for the python meme. Learn C.
>>39257870
it's pretty much the same
>>39257870
In this case it actually works the way it's intended to since it expects object of any type
>hasn't left /pol/, /soc/, or /b/ for a decade
You must be THE worst piece of shit. Can you even talk to people in the real world anymore without spewing memes?
>>39259374
Yeah, but it reeks. He should be using defined constants for what he's doing DESU.
(More seriously he's using print as a statement instead of a function which is just a crap habit overall and not forwards compatible.)
>>39257870
Why not? I'm not OP and don't know Python, by the way.