[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

import random, oscount = len(os.listdir(os.getcwd()))print random.randint(1,count-1)Well,


Thread replies: 7
Thread images: 2

import random, os

count = len(os.listdir(os.getcwd()))
print random.randint(1,count-1)

Well, /h/?
>>
>>4107518
the fuck is this and what does it have to do with asian cartoon porn?
>>
import random, os

count = len(os.listdir(os.getcwd()))
print (random.randint(1,count-1))

you mean you fucking idiot,
>>
>>4107923
python3 is shit
>>
>>4107933
These filthy "I'm an advanced programmer" (pythonfags) need to go to /g/ and learn a real language
>>
>>4107518
what the fuck is the point in printing a random integer bounded by the number of things in the dir? I mean I could understand if it printed os.listdir(os.getcwd())[count].

Even then you're a faggit
>>
File: implyings.png (436KB, 895x1131px) Image search: [Google] [Yandex] [Bing]
implyings.png
436KB, 895x1131px
install gentoo
Thread replies: 7
Thread images: 2
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK