#voice-chat-text-0
1 messages Β· Page 756 of 1
the jokes write themselves
Irish Wristwatch
IRIST
@whole bear #community-meta message
uh no the police is here
!server
that is a lot of numbers
This is so cool
i would like to join
Back in a bit
ok thank you
hemlock how could you leave us
yes we need the big daniel bro
why do u have pronouns in ur name
By standing up and moving away from the keyboard.
nooooooo
Okay, can you stop using my first name?
It's really starting to bother me
Hemlock
oh ok sorry mr hemlock
Thank you
we are on a first name basese
Mr hemlock did you create python?
@somber heath you've made any interesting art lately?
I dont now
i did @hollow ridge
so I dont have to have the awkward conversation explaining what my pronouns are
There is a saying. "Familiarity breeds contempt."
are you transgender not to be rude
Hummm duvido
uhh i mean i dont understand why I need to answer this
i knew it
Does that mean I should go?
lol
Does that mean I should go? @flat sentinel
yes
you are ciber
What did you know?
Cuber?
truck
I dont understand
She coded you into existance
so i'm better than you
https://cdn.discordapp.com/attachments/412357430186344448/807714994791776297/0out.png An old one from ages ago.
Fells bad
I stay here only for learn python
guys check out my amazing new program! You can download it at https://not-malware.com
@whole bear where did you go?
https://imgur.com/VP95yHR More recent.
wtf???
it doesn't work
interesting
could you animate this one?
in some way?
it's a joeyck
JeffBezos is my father
you'd wish
im not a malware im a dolphin click me
i don't think he digs Romanian Chicks
no, you are a chimpmanzee!
Clearly a dolphin
free pings here
no, hes a knock off monkey
I don't see why not.
i did say excuse me.
actually true good idea
WHAT????
32!!!
?
ahem chili is not a guy ok?
i mean yeah but why did you say that randomly? Im just wondering lol
lmaojmdoaw
@zealous wave I can join you on typeracer
Im a bird
cuz she said guys please
na i deleting it for a reason
why?
guys is commonly used to refer to a group of people, its not a problem
@zealous wave https://www.youtube.com/watch?v=dWhcKWZezzg
what's the problem? @zealous wave
hi i'm from brazil and i would like to know if someone can give me some tips in python is my first language. and i would also like to improve my english
it was actually a JOKE
hahaHAHA
a little black humour from portugal: https://www.youtube.com/watch?v=r61LUZ9au8o
Just a help for all English people around there.
Please give a like it took me too long :v
what a weird movie
yea
k
pls ignore
pls ignore her
L-system, Lindenmayer system.
Greetings, fellow humans
IFS, Iterated Function System
yo can someone help me out with a python problem
i am robot pls
Im not a human, im a cucumber!
Ah, same
Omgggg, only 32? πππ
hi i'm from brazil and i would like to know if someone can give me some tips in python is my first language. and i would also like to improve my english
hola @olive hedge
howdy
howdy
Hola, seΓ±or
morning mr gurkan
did hemlock call for reinforcements?
Evening
ngl I read this as your first speaking language is python
LOL, yeah, who are we fighting? jkjk
would be funny
Covid is who we're fighting
this whole chat when hemlock deafens
oh no it's the fun police jk
haha
Fun keeper*
.randomcase what could go wrong
wHAT COUlD GO wroNG
yikes
Information can be harm reduction. It needn't always be considered as enabling.
Lol wait foreal ^any
.randomcase didnt know this was a command
DIDNt kNow tHiS was a CoMManD
(that was just because i don't have nitro; thanks for the emoji mr fish)
Mypy is an optional static type checker for Python.
no-nitro plebs
sending discord money plebs
im a little against things like this, but it does exist
y u against this?
im using python for the programming zen, the duck typing and all the valuable things that python has in the favor of fast development
yes i agree, it's awesome, but why are you actually against optional static typing
if im going to use static typing and waste time in that i would go for a static typed language, since i would be sacrificing the things i use python for
duck it
and no, i did not mean fuck
hahaha
if i'd want to use python and django, but i also want to use static types. would using mypy be bad?
Consistenkey
how so?
how so?
!e print(int(bool(None)))
i don't wanna be annoying, i'm just curious i wanna understand your reasoning
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
0
static typing involves wasting time and some functions stop having the reusability they have which is more time spent programming and more lines for more cases
@hushed elm Typically you'd want something that just overviews your code and checks it for holes rather than something that actively watch it
!e
print(None is 0)
print(None == 0)
@olive hedge :white_check_mark: Your eval job has completed with return code 0.
001 | <string>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
002 | False
003 | False
static typing implies spending time to write them, i get that. some functions stop having reusability, i don't fully agree, i think you can write a reusable function that's also type written. and i think it'd be more useful since you know exactly what the arguments are and what it's returning
I typically write as if things are typed. I don't reuse variable names, I do my best to typehint and know what the type of something will be at a given time, and adjusting as needed. I think starting with Java got me in those good habits
pick your pickle π
Just pickling python.
joke.
hhhh
I had recently an error with pickle not being able to pickle some cookies.
gurk your gurkan π
Just gurking python.
joke.
nice.
Dongle Goblin
What on earth is that?
that's whats python type hint is for! but it shouldn't be strict
It was something that came up during one of the meetings (lead meetings I think?) and I just friggin lost it. It was something about all the extra plugin devices we have
I think
I don't remember
The only thing that stuck with me was dongle goblin
For obvious reasons
Likely me giggling like a moron
HAhahah yess
ok, i understand your opinion
Dongle Goblins are great. I have many at home
I've got far too many
What is this new thing on my dock?
A skynet attack
Adobe ish
some disgusting adobe app
Hahah
Okay, these masks actually look really awesome https://www.amazon.com/Disposable-Face-Masks-Pack-Mask-Black/dp/B08GQZYSWK/
Linode
I just got an Adobe licence
pog
are those fiberglass?
sorry for your loss
Why the crap would they be fiberglass?
Eh?
they look fiberglass
was just trying to make a joke but failed
Hahah
uff ouch my cancer
Now you know how I feel
:((
It's fine, I'm an Aquarius.
haha i got it
She'll be right.
Same
hihihih
what the fuck is going on here
I have. No idea
what the fuck is with that fucking language?
No clue
watch your fucking language
Let's talk in vc 3 instead
no u
there is not one
Chill the fuck out, you guys
We're typing text. Watching it is kind of something that happens, there.
True
fucking ok
don't fucking copy me
I will fucking copy you all the fucking time
Exactly
wahtevah
Illustrator !
Beeware
peepeepoopoo
haha
that's like owl eyes
Chun-Li pom poms.
YES!
Chun-Bee!
Yeah. Just pay them enough.
@uncut meteor pay me 5 dollars (ps, here you go with 3 dollars)

Hedge fund story from 4$ to 400$ shorting and back to 5$
?
.hemjoke
wow what was that
pls kick them
jk
π
guys i'm starting a web dev shop, send me some name recommendations
!e print(random.choice(["funny", "not funny"]))
!e import random; print(random.choice(["funny", "not funny"]))
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
funny
Nintendo Switch, best way to get through meetings
nice
theres some cooode in this shop, theres some cooode in this shop
I bet you play Animal Crossing
and if you don't i'm just gonna pretend you do
Nope, itβs my wife save file
fair fair
You share a single account?
Iβm replaying Super Mario Odssey
No but Animal Ccrossing doesnβt support multiple users because reasons
Yes it does
You just share one town
Or I guess campsite in this case
Island?
Island
That one
Which means I would interfere with the wife
Dude sniff hellium π
My condolences
She plays with a bunch of girlfriends
Animal crossing
It's in the name!
It really should be one or the other. Like join the village or start a new one
It's always been weird that it HAS to be the same one
Not as if timestamps are that hard to check or verify
I'm sure Nintendo can juggle two separate sets of numbers.
I hope
Right, back in a sec
docker exec -it <docker container id> /bin/sh
ok random question but when do I use async def instead of def? do I use async def if its an asynchronous function or something?
with compose: docker-compose exec <container name> /bin/bash
hello everyone
hey
hhhelloo
so how's the weather
windy and snowy really sucky
no it's not
make a snowman
so how's the weather
Making snowmen in blizzards has precious little to be recommended for it.
yes
ip π
ping me broo
Wait
You just doxed my ip
i'm tell @rapid crown
not the local
:(

I get it, but I don't think it really works.
@rugged root ohhhh <33333
A broadcast address is a network address used to transmit to all devices connected to a multiple-access communications network. A message sent to a broadcast address may be received by all network-attached hosts.
In contrast, a multicast address is used to address a specific group of devices, and a unicast address is used to address a single dev...
https://serverfault.com/questions/219764/255-255-255-255-vs-192-168-1-255#:~:text=so on...-,255.255.,address%20meaning%20%22local%20host%22.
oh so its a actual address?
i was thinking it was a netmask cos of 255.255.255.0
oops
that specific address send broadcast to each network you are connected to so not only one.
SELECT id FROM table
WHERE table.user_id = u.id AND something IS NOT NULL
ORDER BY .created DESC
LIMIT 1
)```
I'm sure I heard someone talking about having a sauna here once before...
A game of exploring and racing through Wikipedia articles! Fun and surprise await as you go down the "Wikipedia rabbit hole" and find the "degrees of separation" of sometimes wildly different topics in this addictive and educational game.
Different Background pls
Loll
Alright
There is a rabbit to Hitler
Wiki game
Cant remember how many hours we wasted in school doing rabbit hole
Link ?
I don't think I can play it on phone
New round?
Yeah, some people do that because we have an English only rule.
I mean it's 1 am here can't use the mic rht now
Wikigame, new round?
Not me
It is what it is
+1
I be taking one side LoL
Illegal?
Wdym ?
@rugged root what did you mean about can't install thing ?
?
!warn 549621244731850754 Consider this a follow up of the verbal warning I just gave you. If you continue to interrupt people, attempt to derail the conversation with nonsense and general trolly behavior, I will revoke your voice chat permissions.
:ok_hand: applied warning to @whole bear.
I dlled books for java, to now work with it. So I mean, it works π
Just asking
Was there a topic set for VC ?
Not that I am aware of
Go to clown school @uncut meteor

A = 2
print ( A )
!e ```py
from future import braces
@faint ermine :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | SyntaxError: not a chance
-[ Skip forward if character is 0
>>++++[>++++++++<-] Set up divisor (32) for division loop
(MEMORY LAYOUT: dividend copy remainder divisor quotient zero zero)
<+<-[ Set up dividend (x minus 1) and enter division loop
>+>+>-[>>>] Increase copy and remainder / reduce divisor / Normal case: skip forward
<[[>+<-]>>+>] Special case: move remainder back to divisor and increase quotient
<<<<<- Decrement dividend
] End division loop
]>>>[-]+ End skip loop; zero former divisor and reuse space for a flag
>--[-[<->+++[-]]]<[ Zero that flag unless quotient was 2 or 3; zero quotient; check flag
++++++++++++<[ If flag then set up divisor (13) for second division loop
(MEMORY LAYOUT: zero copy dividend divisor remainder quotient zero zero)
>-[>+>>] Reduce divisor; Normal case: increase remainder
>[+[<+>-]>+>>] Special case: increase remainder / move it back to divisor / increase quotient
<<<<<- Decrease dividend
] End division loop
>>[<+>-] Add remainder back to divisor to get a useful 13
>[ Skip forward if quotient was 0
-[ Decrement quotient and skip forward if quotient was 1
-<<[-]>> Zero quotient and divisor if quotient was 2
]<<[<<->>-]>> Zero divisor and subtract 13 from copy if quotient was 1
[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+
There are a lot of then
[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!++[])[+[]]]+[])[+!+[]+[!+[]+!+[]+!+[]]]+[+!+[]]+([+[]]+![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[!+[]+!+[]+[+[]]])
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
Noice
so many people
Thank you.
Here's one of my first versions of the logo. Made this one yearsssss ago
@faint ermine change ur status to /ΛlΙΛnΛdΜͺmoΚΙ(r)/
me sad
https://open.spotify.com/track/4hkUY13PYkmfDyLasQZ18a?si=DSgU6VMCQH2tCvRkDJpexg this is a great song
Feel like I'm regressing in this chat
yeh, I have that effect on people
is there any science python channel? π
Does #data-science-and-ml count?
No worries π
what is the question?
@whole bear You have to actually ask the question in order for people to understand or help
The boxes that block the questions?
So are you wanting help with Question 4 down there or figuring out why 3 5 and 6 are messed up?
theres no 5 and 6
its just question 3 and 4
idk what question 3 is
i thought the prompt is telling you about a JavaScript provided function that can determine if a variable is a number or not and how to use it
If it's for a class I'd contact your professor and explain the situation
i dont like him
That's unfortunate, but it happens
how about question 4
And no, the question is about making your own function using an if statement
It does mention using isNAN() to make sure that you're filtering out things that aren't numbers, but for the rest it's something you have to write
Hey trying to extract tar gz with python
Happy to help
Is there a way to automatically make dirs based on path
so how do i write the function
That's the part you have to do. It's your homework
Rip
Mr hemlock brazilians are not welcome here?
There is no country restriction outside any Discord may impose. However English is required for Moderation reasons. Any concerns about the rules can be taken up with @rapid crown
@knotty spoke that only works in #voice-verification
50 messages ;-;
:x: According to my records, this user already has a mute infraction. See infraction #28080.
:incoming_envelope: :ok_hand: applied mute to @knotty spoke until 2021-02-12 00:09 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
:incoming_envelope: :ok_hand: pardoned infraction mute for @knotty spoke.
!tempmute 766712205952942110 1d Spamming isn't productive
:incoming_envelope: :ok_hand: applied mute to @knotty spoke until 2021-02-12 23:59 (23 hours and 59 minutes).
!tvban 766712205952942110 "2 weeks" Spamming messages to up your message count is not the way to get voice verified. You can still join voice channels without being verified; you just have to get some legitimate server activity in order to get verified.
:incoming_envelope: :ok_hand: applied voice ban to @knotty spoke until 2021-02-26 00:00 (13 days and 23 hours).

!e
from future import braces
@whole bear :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | SyntaxError: not a chance
!e
print("hello")
@tender coral :white_check_mark: Your eval job has completed with return code 0.
hello
!e
import turtle, random
turtles = [turtle.Turtle() for i in range(10)]
[t.setheading(random.randrange(360)) for t in turtles]
[t.forward(100) for t in turtles]
@tender coral :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | File "/usr/local/lib/python3.9/turtle.py", line 107, in <module>
004 | import tkinter as TK
005 | File "/usr/local/lib/python3.9/tkinter/__init__.py", line 37, in <module>
006 | import _tkinter # If this fails your Python may not be configured for Tk
007 | ImportError: libtk8.6.so: cannot open shared object file: No such file or directory
hello chili
it's ok, what are you up to?
that's cool what does the discord bot do?
I'm just showing my friend discord, how to use it here
oh nice
that's cool
hey
!e ```py
import typing
def foo(bar : typing.Union[str, int]):
print(bar)
foo(10)
foo('10')
foo({10:'10'})
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
001 | 10
002 | 10
003 | {10: '10'}
i had to fix a super annoying issue today, my organization was still using SHA1 hashes on our internal CA, and I couldn't connect with LDAPS. It took me 8 months to figure that out.
How is everyone doing?
sha1? wow
the actual certs themselves were fine, they were just signed with sha1
CA was created in 2014 with an OS from 2012, so what can you expect?
at least it wasnt md5
also I'm a bit behind, did they actually break sha-1? I thought they only broke it in theory or on cases that didn't matter
well in my country they breached through sha-1 hashed passwords from the government
someone*
oh wait nevermind, confirmed in early 2020 that they really broke it
yeah
well, our domain controllers for active directory are no longer using it anymore, so that's good! over the next year, all of our SHA1 certs should die out on their own
nice! common practice is using sha-2 as a minimum
yup, that's what we're using now
fixed the issue I was having with ldaps connections from the ldap3 library almost immediately
Yes
which stateπ
Mumbai, Maharashtra
oh niceπ
am i the only one who doesn't have permission to open the micπ
you'll able to, once you finish the voice verification
hey @normal hinge
Hey bro
yea yeaπ
yeahhπ
Where are u from?
Opal i have noticed that you sing really well π
from India
Oh
What does canary means
oh its a kind of bird..and also a female DC character BLACK CANARY you might have heardπ
Often in enclosures far smaller than is humane.
oh ohkay my net is not working properly π
Short term for transport and such, the smaller ones are fine.
Oh
Longer term you really want a decently sized setup.
1. Follow the Discord Community Guidelines and Terms Of Service.
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.
!rule 7
!rule 6
6. No spamming or unapproved advertising, including requests for paid work. Open-source projects can be shared with others in #python-general and code reviews can be asked for in a help channel.
hii
hiii
TOKEN = Secrets[str("Token")] explain
damn(){
console.log("DAMN")
}
>++++++++[<+++++++++>-]<.>++++[<+++++++>-]<+.+++++++..+++.>>++++++[<+++++++>-]<+
+.------------.>++++++[<+++++++++>-]<+.<.+++.------.--------.>>>++++[<++++++++>-
]<+.
++++++++ [>++++++++++++>+++++++++++++<<-] >++++. -. >+++++++. <+. +.
[][][][]
c1 = random.choice(suits)
c2 = random.choice(suits)
c3 = random.choice(suits)
c4 = random.choice(suits)
c5 = random.choice(suits)
c6 = random.choice(suits)
c7 = random.choice(suits)
c8 = random.choice(suits)
c9 = random.choice(suits)
c0 = random.choice(suits)
user1_hand = []
user2_hand = []
user1_hand.append(c1)
user1_hand.append(c2)
user1_hand.append(c3)
user1_hand.append(c4)
user1_hand.append(c5)
user2_hand.append(c6)
user2_hand.append(c7)
user2_hand.append(c8)
user2_hand.append(c9)
user2_hand.append(c0)
v_user1_hand = ""
v_user2_hand = ""
v_user1_hand += f"{c1} "
v_user1_hand += f"{c2} "
v_user1_hand += f"{c3} "
v_user1_hand += f"{c4} "
v_user1_hand += f"{c5} "
v_user2_hand += f"{c6} "
v_user2_hand += f"{c7} "
v_user2_hand += f"{c8} "
v_user2_hand += f"{c9} "
v_user2_hand += f"{c0} "
except:
pass
c = [random.choice(suits) for i in range(10)]
01001101 01001111 01000101 01001001 01001110
!e
alpha = [i for i in range(10)]
print(alpha)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Anyone worked with Kafka?
!e python alpha = [(x,y) for x in range(4) for y in range(4)] print(alpha)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 1), (1, 2), (1, 3), (2, 0), (2, 1), (2, 2), (2, 3), (3, 0), (3, 1), (3, 2), (3, 3)]
c = [random.choice(suits) for i in range(10)]
user1_hand = [c[i] for i in range(5)]
user2_hand = [c[i+5] for i in range(5)]
v_user1_hand = ' '.join([f'{c[i]}' for i in range(5)])
v_user2_hand = ' '.join([f'{c[i+5]}' for i in range(5)])
!e print('*'.join('APPLE'))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
A*P*P*L*E
!e
import random
suits = [":hearts:", ":clubs:", ":diamonds:", ":spades:"]
c = [random.choice(suits) for i in range(10)]
user1_hand = [c[i] for i in range(5)]
user2_hand = [c[i+5] for i in range(5)]
v_user1_hand = ' '.join([f'{c[i]}' for i in range(5)])
v_user2_hand = ' '.join([f'{c[i+5]}' for i in range(5)])
print(c, user1_hand, user2_hand, v_user1_hand, v_user2_hand)
@terse needle :white_check_mark: Your eval job has completed with return code 0.
[':hearts:', ':spades:', ':spades:', ':spades:', ':clubs:', ':clubs:', ':hearts:', ':clubs:', ':hearts:', ':hearts:'] [':hearts:', ':spades:', ':spades:', ':spades:', ':clubs:'] [':clubs:', ':hearts:', ':clubs:', ':hearts:', ':hearts:'] :hearts: :spades: :spades: :spades: :clubs: :clubs: :hearts: :clubs: :hearts: :hearts:
trying to get every "overall" column, along with the date in the column level above
can somone teach me how to use python?
This Python 3 tutorial course aims to teach everyone the basics of programming computers using Python. The course has no pre-requisites and avoids all but the simplest mathematics.
π Sample Code Zip: https://www.py4e.com/code3.zip
π Lecture Slides and Handouts: https://www.py4e.com/lectures3/
π Free Textbook: https://www.py4e.com/book.php
π Co...
have fun
@candid plinth Youtubers Corey Schafer and sentdex are also great to look up.
Also
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
ok thanks man
@candid plinth If you need any clarifications on a specific point, feel free to ask about it on this server. π
ok
!e ```py
from future import braces
@zealous wave :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | SyntaxError: not a chance
!e ```py
import antigravity
import hello
import this
"""from future import braces"""
look at this ish
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
001 | Hello world!
002 | The Zen of Python, by Tim Peters
003 |
004 | Beautiful is better than ugly.
005 | Explicit is better than implicit.
006 | Simple is better than complex.
007 | Complex is better than complicated.
008 | Flat is better than nested.
009 | Sparse is better than dense.
010 | Readability counts.
011 | Special cases aren't special enough to break the rules.
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/foqomurisi.txt
255.255.255.255
192.168.0.1
@pure anchor are u french?
- you give me europe vibes, 2) the name of your song was in french just now
I'm European, same country as vestergurkan
Exactly^_ ^
192.172 - error isp network
I worked with networking before this and security is lax af.
Lword shane. Just sayin
yes don't worry
goodnight
is there a lounge for foreign languages?
any matplotlib.pyplot experts here? π
Very very sub expert.
hello opalmist
I ride the docs when I use it at all.
Opal for the rescue. Im just trying to find out:
Is there way to present a graph and let the program keep running?
atm, I can either get one graph and only once I close it will the program calculate the next graph.
Or I will get all of the graphs at the end of the program.
There would be a few ways. There ought to be a proper way of doing it, but I don't know it if it exists. There might be a nonblocking plt.show or something. You might get away with threading your show invocations. I'd look around.
There's an animated plotting thing.
Which you might be able to update as you go.
I used it once a long time ago, but I can't remember enough to say if it would suit what you're trying to do.
do you mean it will change the plot as it goes?
Yeah. That's a thing that you can do. You can clear it out and start again, too, probably.
!d os.chdir
os.chdir(path)```
Change the current working directory to *path*.
This function can support [specifying a file descriptor](#path-fd). The descriptor must refer to an opened directory, not an open file.
This function can raise [`OSError`](exceptions.html#OSError "OSError") and subclasses such as [`FileNotFoundError`](exceptions.html#FileNotFoundError "FileNotFoundError"), [`PermissionError`](exceptions.html#PermissionError "PermissionError"), and [`NotADirectoryError`](exceptions.html#NotADirectoryError "NotADirectoryError").
Raises an [auditing event](sys.html#auditing) `os.chdir` with argument `path`.
New in version 3.3: Added support for specifying *path* as a file descriptor on some platforms.
Changed in version 3.6: Accepts a [path-like object](../glossary.html#term-path-like-object).
@dense ibex if u are still getting that issue with the json file check this out
interesting, idk how to make it happen though π but I do need each graph to be different than the other one
.
I see im not alone π
def read_json(filename):
with open(f"./{filename}.json", "r") as f:
data = json.load(f)
return data
did he say not to use with open
Nah brow
We are every where
import random
print(hex(random.randint(0,16777215))[2:].zfill(6))```
Hey @sick dew!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
import discord
from discord.ext import commands
class FooBar(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def foo(self, ctx):
await ctx.send("bar")
@commands.Cog.listener()
async def on_message(self, message):
await message.channel.send("foo")
await self.bot.process_commands(message)
def setup(bot):
bot.add_cog(FooBar(bot))
import discord
from discord.ext import commands
import json
def read_json(filename):
with open(f"./Data/{filename}.json", "r") as f:
data = json.load(f)
return data
def write_json(filename, data):
with open(f"./Data/{filename}.json", "w") as f:
json.dump(data, f)
return data
class Template(commands.Cog):
def __init__(self, BOT):
self.BOT = BOT
"""
@commands.command(name="", description="", usage="")
async def
"""
"""
@commands.Cog.listener()
async def
"""
def setup(BOT):
BOT.add_cog(Template(BOT))
import random
choice = ''.join([random.choice('abcdef0123456789') for i in range(6)])
print(choice)``` A little nicer, probably.
!d random.choices
random.choices(population, weights=None, *, cum_weights=None, k=1)```
Return a *k* sized list of elements chosen from the *population* with replacement. If the *population* is empty, raises [`IndexError`](exceptions.html#IndexError "IndexError").
If a *weights* sequence is specified, selections are made according to the relative weights. Alternatively, if a *cum\_weights* sequence is given, the selections are made according to the cumulative weights (perhaps computed using [`itertools.accumulate()`](itertools.html#itertools.accumulate "itertools.accumulate")). For example, the relative weights `[10, 5, 30, 5]` are equivalent to the cumulative weights `[10, 15, 45, 50]`. Internally, the relative weights are converted to cumulative weights before making selections, so supplying the cumulative weights saves work.... [read more](https://docs.python.org/3/library/random.html#random.choices)
using plt.show(block = False) makes them all appear on the same one
@somber heath it doesn't work
!e
import random
choice = ''.join([random.choice('abcdef0123456789') for i in range(6)])
print(choice)
@honest pier :white_check_mark: Your eval job has completed with return code 0.
759cb7
?
oh
This?
Yes.
ight
why not use randint lol
I lurk
You can clear a plot.
!e
from random import randint
print(hex(randint(0, 16777216)))
@honest pier :white_check_mark: Your eval job has completed with return code 0.
0x494810
π€
yea, when I do that I get the last graph, cause I cleared all the other ones. for some reason it will only open one graph window π
0x000000 -> 0xFFFFFF
π
Sorry. I wish I knew more off the top of my head.
ty π
although that actually doesn't work lol
It just calls stow for me
where's your init.vim
But fancier
I'd add it, but I don't have much use for it
macs gang
smh
yaa there are many types of license
@terse needle A window manager is basically what renders your applications while desktop environments are bundles of software that may or may not invoke your window manager as well as manage a few startup resources
A desktop environment is a collection of similarly-looking GUI applications
hmmm
so i've been thinking of switching to dwm on arch, all I want is Atom, Chrome, Discord and a terminal. I can get all of that on a window manager like dwm. right?
Yes, window managers are agnostic of the programs themselves
nice
Extension for Visual Studio Code - Some code snippets for the discord.py package in python
Neovim has an API for Python-based plugins 
Although it prefers Lua
Regex is very good at doing what it does. It's powerful and highly adaptable. It looks like garbled sorcery, but once you go through it, it starts to make a lot of sense and then it's not as intimidating.
for some people yeah
i cant hear anyone. are you guys talking?
yes
okay
what is better vim or neovim?
I just have the book https://www.amazon.com/Practical-Vim-Edit-Speed-Thought/dp/1680501275/
Practical Vim: Edit Text at the Speed of Thought [Neil, Drew] on Amazon.com. FREE shipping on qualifying offers. Practical Vim: Edit Text at the Speed of Thought
oooh noooo
ima stay out of this bc i use pycharm :sadge:
lel
vscode bestcode
It's a weird ox
Lies. It's a cow with a canoe on his head
!source
HAhah
Back later, delivery run time. Will likely be back in like.... an hourish?
Sounds good
just use a relative path
with open('banned_words.json') ...
yeap
{"banned words": ["Hello", "Hi"]}
does anyone know about a web based editor which edits python according to pep8?
{"banned words": ["Hello", "Hi"]}
flake8 π
flake8 π
black
gray 8D
with open("./cogs/*filename*.json", "r") as f:
data = json.load(f)
banned_words = data["banned words"]
for word in banned_words:
if word in message.content:
#Do whatever here
...
banned_words = json.load(f)
...
data structure π
will it work if the json is set up like that?
use sqlite
no
Not to sound cocky but that is why I but the statement like it is
?
you tried to correct the code didn't you?
fair
it's just doing something that makes no sense
o
lol
@commands.command(aliases=['h'])
async def help(self, ctx, command : commandtypehint = None):
async def help(self, ctx, thing):
searched_command = self.BOT.get_command(thing.lower())
if not searched_command:
await ctx.send(f"Invalid argument: '{thing}'. Please choose a page number from 1-{total_pages} or specify the category.")
return
!e ```py
import datetime
print(datetime.datetime.now())
nice
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
2021-02-12 16:56:42.541120
hmm idk why it works for me
presumably because you did from datetime import datetime
!e ```py
from datetime import datetime
print(datetime.now())
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
2021-02-12 16:57:45.887086
i bet you did from datetime import datetime
i mean its possible bc i am blind
ΠΠ΄Π΅ Ρ
import discord
from discord.ext import commands
# discord imports
import json
import datetime
class Antiswear(commands.Cog):
# creating the cog class
def __init__(self, bot):
self.bot = bot
# initializing the class and defining bot
@commands.Cog.listener()
async def on_message(self, message):
if message.author.bot:
return
# checks if the message author is a bot, and if they are the bot ignores them
else:
with open("./cogs/bannedwords.json", "r") as f:
data = json.load(f)
for word in data:
if word in message.content():
await message.delete()
# checks if any word in our banned word list is in the message
embed = discord.Embed(
colour=discord.Colour.default(),
timestamp=datetime.datetime.now()
)
# creating and setting the color of an embed object
embed.add_field(name="Deleted Message", value=f"Deleted message from {message.author}")
# setting the embed value
embed.set_footer(text=message.author, icon_url=message.author.avatar_url)
# adding a timestamp to the embed
await message.channel.send(embed=embed)
# sending the embed
await self.bot.process_commands(message)
# if the message is a command, let the command be processed
def setup(bot):
bot.add_cog(Antiswear(bot))
# registering the cog
if word.lower() in message.content.lower():
await message.delete()
cuddlybunny
await message.channel.send(embed=embed, delete_after=10)
ngl, just telling him exactly what to write is not very productive or helpful
damn still that
@sick dew ^
oh sorry
is there a way in python to make functions and save them and use them when writing other pieces of code
with open("./cogs/bannedwords.json", "rw") as f:
data = json.load(f)
#Code Here
with open("./cogs/bannedwords.json", "rw") as f:
json.dump(data, f)
[prefix][command name] [args]
that would not work
after exiting the context manager, the file is closed
@dense ibex show code
My first Discord.py project. Contribute to Slushs/Bountful-Discordpy development by creating an account on GitHub.
everything
<< >> ::
How does importing work in Rust. Is it text-based like C? π
wdym tetx based
Like how when you include in C it's literally like copying and pasting the source code
huh, idk
At least, as far as I remember...
@commands.command()
async def addword(self, ctx, *, word):
with open('./cogs/bannedwords.json', 'w') as f:
data = json.load(f)
data.append(word)
with open('/cogs/bannedwords.json', 'w') as f:
json.dump(data, f)
@commands.command()
async def addword(self, ctx, *, word):
with open('./cogs/bannedwords.json', 'r') as f:
data = json.load(f)
print('Data Loaded')
data.append(word)
with open('./cogs/bannedwords.json', 'w') as f:
json.dump(data, f)
print('Data Dumped')
Data Loaded
Data Dumped
Data Loaded
Data Dumped
fuuck !
!source
.
.xkcd
yay
!e ```py
import typing
def foo(bar : typing.Union[str, int]):
print(bar)
foo(1)
foo('1')
foo(10.0)
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 1
003 | 10.0
!e
x: str = 10
print(x)
Let's run that through mypy...
@honest pier :white_check_mark: Your eval job has completed with return code 0.
10
!e
x: "lmfao, you can literally put any python expression here" = 10
print(x)
@honest pier :white_check_mark: Your eval job has completed with return code 0.
10
> mypy test.py
test.py:8: error: Argument 1 to "foo" has incompatible type "float"; expected "Union[str, int]"
Found 1 error in 1 file (checked 1 source file)
π
Would be cool if we had a .mypy command actually π€
!e ```py
import typing
def foo(bar : typing.Optional[str]):
print(bar)
def bar(foo = None):
print(foo)
@zealous wave :warning: Your eval job has completed with return code 0.
[No output]
def bar(foo : str = None):
print(foo)
``` wouldn't pass static type checking.
As None isn't a str.
Optional[str] == Union[str, None]
Hello π
You asking me? π
I think in swift they use ?
swift has an actual optional type
Actually, I just tested it and it passed 
Weird. This fails: py def foo(x: str): ... foo(None) but this is fine: ```py
def foo(x: str = None):
...
foo()
@rugged root Bottle of whine.
Did some language lawyering...
A past version of this PEP allowed type checkers to assume an optional type when the default value is None, as in this code:
def handle_employee(e: Employee = None): ...This would have been treated as equivalent to:
def handle_employee(e: Optional[Employee] = None) -> None: ...This is no longer the recommended behavior. Type checkers should move towards requiring the optional type to be made explicit.
PEP 484
There's a lot of employee handling going on, there. Are we sure HR doesn't need to get involved?
wikipedia pages !
folding funnel π³ @honest pier
i-
Daaaaaaaaaaaaaaawwwwwwwwwwwwwww
They're so cute π
Their pouches point backwards
lol XD
Brain like a sieve 
Drank to forget the memory of it
Baby wombats are adorable.
It's a kind of useful word
wut in tarnation
I really want to use it, but I'd sound like a twat saying it π
Its night for me Technically Sat now XD
Dammn Cool
I'm a Visual Effects Artist
I want to make a platform where people can buy and sell mailiing list, leads ?
How is the idea?
"Personality: Fire Ox people are hot tempered, and they are easily influenced by others' words and actions."
Part of NCSSM CORE collection: This video shows the physical properties of Ca metal and its reaction with water. http://www.dlt.ncssm.edu
Please attribute this work as being created by the North Carolina School of Science and Mathematics. This work is licensed under Creative Commons CC-BY http://creativecommons.org/licenses/by/3.0
Help us capt...
All I remember from chemistry is if you mix things on the left side, with things on the right side, it goes bang.
balancing equations ey?
π
sounds fun
redox reactions π
In preparation for the 2012 Christmas Lectures Dr Peter Wothers heads off to the University of Leicester to conduct an extraordinary experiment - reacting the most reactive metal in the periodic table (Caesium) with the most reactive non-metal (Fluorine).
Due to the extreme reactivity of the two elements, Fluorine expert Professor Eric Hope is ...
That's because everything is optional once you reach A-levels @uncut meteor
I literally just did maths, physics, and further maths.
"further maths"
Ah right π
"far maths"
46225
100619

