[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]

>Modern /g/ doesn't know how to run this code var =

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 14
Thread images: 1

File: 1447042353743.png (2MB, 2000x1932px) Image search: [Google]
1447042353743.png
2MB, 2000x1932px
>Modern /g/ doesn't know how to run this code

var = [21760, 29184, 25856, 8192, 24832, 8192, 26112, 24832, 26368, 25856, 29696]
dat = [chr(i >> 8) for i in var]
print(*dat)


LMAO
>>
I'm so confused, what is this?
>>
Something something "faggot".
>>
U r e   a   f a g e t

LOL
>>
>>59141144
>python cancer
>>
>>59141144
>*dat
Is that pointer deref? I thought Python didn't have pointers.
>>
>>59141144
writing code cryptically for show is bad practice. I hope you dont have colleagues and think you should off yourself
>>
>>59143767
OP is passing a list (array) of items to print(), by using * these list entries are separated into distinct arguments

list = [123, 456, 789]
print(*list)
# or
print(123, 456, 789)
>>
>>59141375
__this__
>>
>>59145111
what, this isn't cryptic at all, only retards don't understand this.
>>
>>59143767
when a function expects varargs you can pass and "explode" a list
also works in list assignment i think like [1, 2, *otherlist]
>>
>>59145654
yup, list unpacking can be used in assignment pattern matching, for example
a, *b, c = (1,2,3,4,)
a = 1
b = [2,3]
c = 4

you can use it to merge two lists although
list1 += list2
is more readabe
>>
>>59141144
I'll just pay my personal pajeet to run this.
>>
>>59141144
VIRUS DO NOT CLICK
Thread posts: 14
Thread images: 1


[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.