[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Code, Python, r8 thread

This is a red board which means that it's strictly for adults (Not Safe For Work content only). If you see any illegal content, please report it.

Thread replies: 13
Thread images: 2

File: FullSizeRender.jpg (75KB, 629x629px) Image search: [Google]
FullSizeRender.jpg
75KB, 629x629px
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.
>>
File: 1476302476253.png (109KB, 445x515px) Image search: [Google]
1476302476253.png
109KB, 445x515px
>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.
Thread posts: 13
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.