#voice-chat-text-0
1 messages · Page 791 of 1
oh rip 😦
🧐
src/ ---
|-> my_class.py
main.py
import stdio
import stdarray
class Darray:
def __init__(self,array = None):
if array == None:
array = self.makearray()
self._array = array
self._length = 0
else:
self._length = len(array)
self._array = array[:]
import random
import sys
import os
import stdio
import math
from instream import InStream
from darray import DArray
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
hello_world.py
print('Hello world!')
''' py darray '''
takeback 😔
@uncut meteor ?
two at once 😔
geegee
do i look like i'm made of money
just wanted atleast one victory today

@honest pier if you beat me in chess, i'll get you nitro
buy*
🤔
🤠

wtf

ќемаил
веру наис
Јез
лол
ur not my dad
'cuz I have school tomorrow
but do I care
well
is your profile photo a scp? or am I crazy
God damn it.. i got no comeback for that
one fo the best ones if you ask me jeje, probably done via python v 4.8
!rule 4
4. This is an English-speaking server, so please speak English to the best of your ability.
yeah. sorry
да
so there are 5 macedonians in the voice chat
the hell is that
@honest pier ^
yo mom
lmfao
No u
lamo
radial blur on hayan
oof
mhm
qwik mafs
PYPL popularity of programming language
Welp ima exit the voice chat. Probs gonna be up till like. 2am watching youtube n stuff.
cya
And also
@gentle flint G o t o a s l e e p
mhm
how qt
B o i
good night
Good night
lol jake i said early when they’re not busy!
get Hawaiian for me pls
but now is better than never
hmmmm so tmr?
....
cause who tf gets pizza on sunday
me if I can
ok tmrw is fine too. i recommend morning or whenever they open
it's not sunday ya nerd
Okie thx 🙂
it's friday today 🤔
o right in jakes time zone
'tis here
you're not in a real place
smh
if it turns out for some reason they don’t have it, offer to drop by and resubmit
your ancestors came from here
you do it directly if that’s the case
:--------------------------------------------------------------------------------------------------------------------------------------------------------------
they left for a reason ¯_(ツ)_/¯
yeah, they weren't good enough to stay
yes griff
:--:





how qt








careful not to get muted





I am a trained professional I have been charming python bot for years now
@uncut meteor why it no work
lol this flag
Python bot serves me now
cause hes not in c# discord server
thats where I get mine from
it's a Postgres Docker Container
lol











i like 3
It contains a pair of any two letters that appears at least twice in the string without overlapping, like xyxy (xy) or aabcdefgaa (aa), but not like aaa (aa, but it overlaps).
It contains at least one letter which repeats with exactly one letter between them, like xyx, abcdefeghi (efe), or even aaa.
def part_two():
c = 0
bet = re.compile(r"(.).\1")
for s in data:
p = False
v = {}
a = bet.search(s)
if not a:
print(f"no match: {s}")
continue
else:
print(f"match at {a.start()}: {s}")
# for i, (a, b) in enumerate(zip(s, s[1:])):
# t = a + b
# if t in v:
# if v[t] < i - 1:
# c += 1
# p = True
# print(f"found a repeat at {v[t]} and {i}")
# break
# v[t] = i
# if p:
# print(s, end="\n\n")
return c
# data = "qjhvhtzxzqqjkmpb"
# data = "uurcxstgmygtbstg"
# data = "ieodomkazucvgmuy"
# data = "xxyxx"
def parse(raw):
return raw.split("\n")
In this video, we take a closer look at all the best projects that were entered into the Python Discord Summer Code Jam 2020!
If you'd like to play with some of these projects, you can find all the code in https://github.com/python-discord/summer-code-jam-2020.
Special thanks to our sponsors at Django Software Foundation, Linode, and JetBrain...
fuck it, i'm just gonna brute force it
@olive hedge hi & bye fisher
don't spam tho
Griff !!!!
Heloooo
It's Mr poopybutthole
Unfortunately I'm banned from the vc @uncut meteor
I can't talk
🧐
This fuckin mr hemlock or some shit banned me
Cuz I said my name !!!!
That's just outrageous
I demand justice
@uncut meteor griff can you help me?!
what is that advent of code?
Sigh
im not gonna respond to that name
What name?
you know what name lol
Bruh you can't fool me I know you're jake paul
You're talkin about me guys!!!!
Don't ban me
Thank god
how difficult is advent of code? beginner/average/pro?
average
hi
I want to make a desktop application. I have to start coding from which application.
if u can type gonna be better cuz my first language not english
Right, so you should stop saying it, or you might lose your speaking privileges permanently.
how much do you pay for pycharm professional?
if you're a student, check to see if you can get it for free
how do they know im a student?
you use your student email if you have one
no i dont
I would try to sign up for the student version (if you are a student) anyway and see if they approve you for it
if they don't, the free edition is still very nice
what adventages does proffesional give u though
it has features that are useful if you're a web developer, or if you're developing remotely for some other reason.
like pytorch and stuff?
yeah, if you're developing a model on a remote machine, pycharm can basically give you the experience of developing that thing locally
nah i dont need that yet
hey
hey
i need help in python exam :p
!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 1
1. Follow the Discord Community Guidelines and Terms Of Service.
~ GLITTERILY ~
whats ur yt lemon
https://www.youtube.com/watch?v=g9cnp4W0P54 CHECK IT OUT
In this video, we take a closer look at all the best projects that were entered into the Python Discord Summer Code Jam 2020!
If you'd like to play with some of these projects, you can find all the code in https://github.com/python-discord/summer-code-jam-2020.
Special thanks to our sponsors at Django Software Foundation, Linode, and JetBrain...
poggers!
good night~
Cya 🙂
What do you want me to do it's my goddamn name !!!
I love my name I'm not ashamed of it
so I was confused why my readthedocs webhook wasn't triggering
turns out I was committing but not pushing
🤦
right, time for bed
Ohh shit stockoverflow is toxic af
Python is good
But anaconda is better
And cobra is even better
Ayyy that's my boy jake paul flexing with these expensive things proud of ya son
Jake I believe in ya
You're gonna beat ben!!!
Good night fellas
I had one for like a year and a half then it broke
Yeah I need to glue it and I need some certain type of glue
You can get it you're rich bruh
!voiceverify
cosplayers~
its so helpful thanks kat 🙂
check out #voice-verification You'll need to wait 3 days and get 50 messages in that time span, but you can also listen and chat via text here
I mean, my lab server has 384GB
2x E5-2690
take care bruddas
Intel® Xeon® Processor E5-2690 (20M Cache, 2.90 GHz, 8.00 GT/s Intel® QPI) quick reference guide including specifications, features, pricing, compatibility, design documentation, ordering codes, spec codes and more.
Are you a cosplayer?
I was previously, not so anymore
Hello.
I cosplay as a human
Hey guys. :3
Wanna check out my newest project?
imagine spending four years getting a msc
just to get muted on the discord for python
big sadge
masters degree uk
uni warwick
saaaaadge

isn't it bedtime?
manchester
went to warwick in coventry
close to brum
but yea big midlands vibes
chewsdaya
❤️
how long i gotta wai
t
3 days?
big sadge
if so im in there sooooooooon
but also, theres some stuff to deal tith
with**
bruh idek why im in this channel but also i wanna chill with the peopleee

magic mike
magic mike
its actually wigging me out
that i can hear everybody
but i cant contribute
deez bots aint loyal
genuinely idek how i found this channel
i just feel weird finding this one while also being dumb
bruh
@olive hedge https://linksharing.samsungcloud.com/syP9lKqutl59
https://binarysearch.com/room/Rabin-Karp-GV4Y0ZFXkt @dire oriole
Learn algorithms together on binarysearch. Create a room, invite your friends, and race to finish the problem.
@spice marten it's a linked list problem 👀
@dire oriole unfortunately I’m on my iPad
go on your computer then 🤔
😔
Oh boy I’m learning trees tomorrow
Is it harder than linked lists
going to find out soon ig
hey
trees are harder than linked lists, yeah
i won't be around forever
Did I say forever
it was implied
Ehhhh
its me
Huh
Problem
Charles defines the goodness score of a string as the number of indices i such that Si≠SN−i+1 where 1≤i≤N/2 (1-indexed). For example, the string CABABC has a goodness score of 2 since S2≠S5 and S3≠S4.
Charles gave Ada a string S of length N, consisting of uppercase letters and asked her to convert it into a string with a goodness score of K. In one operation, Ada can change any character in the string to any uppercase letter. Could you help Ada find the minimum number of operations required to transform the given string into a string with goodness score equal to K?
Input
The first line of the input gives the number of test cases, T. T test cases follow.
The first line of each test case contains two integers N and K. The second line of each test case contains a string S of length N, consisting of uppercase letters.
Output
For each test case, output one line containing Case #x: y, where x is the test case number (starting from 1) and y is the minimum number of operations required to transform the given string S into a string with goodness score equal to K.
Limits
Memory limit: 1 GB.
1≤T≤100.
0≤K≤N/2.
Test Set 1
Time limit: 20 seconds.
1≤N≤100.
Test Set 2
Time limit: 40 seconds.
1≤N≤2×105 for at most 10 test cases.
For the remaining cases, 1≤N≤100.
Sample
Sample Input
save_alt
content_copy
2
5 1
ABCAA
4 2
ABAA
Sample Output
save_alt
content_copy
Case #1: 0
Case #2: 1
In Sample Case #1, the given string already has a goodness score of 1. Therefore the minimum number of operations required is 0.
In Sample Case #2, one option is to change the character at index 1 to B in order to have a goodness score of 2. Therefore, the minimum number of operations required is 1.
@lunar pendant
dude i dont think u can ask help for ur assignments in here
hello?
ok
@last ivy expected to find dream LOL
Can't speak :/
why?
Rejoined the server
I can speak after three days
maybe you should contact MR.Hemlock
It's not urgent I can manage three days without speaking :)
that's great
Hello 👋
hey
No body streaming
what do you want to see?
I guess less people are here on weekend
wait for 8pm
Maybe they are asleep
did you guys participated in today google kickstart round A?
Is it for school children
No
clg?
No
No :/
what is wrong with you?
No thing
Finished college and looking for a job ig
@lunar pendant
hi how are u guys you all learn py?
Hey opalmist
python, import, multi-file module structures
hey
it is
can someone help me with tuples?
I am trying ti multiply a tuplle with another tuple
multi-file module structures still something hard for me to grasp
for the record, im still new to python
pythong*
It's not something I do. I could probably figure it out without the docs if I needed to. I looked into it ages ago.
I started a project that used them
Sup guys
Im learning django rn, so could you give me any advice to tell me the best way to learn django(and maybe other cool technologies that might pop in the future)
@rugged root thank you
that's one thirsty dog
drinks the whole bowl in less than a sec
jackbox sounds great
Jack In The Box
pullin out the coupe at the lot
@whole bear use push to talk
@rugged root you streaming whole scene(scream) or window? sound works only with window
its not working for me unfortunatlt
How do you play the game
ggs!
how do you play?
what's the code?
me
can anyone share?
can i play
The one who are playing can anyone of you share the code?
anyone got dc'd?
One sec
kk
*elevator music

noooooooooooooooooooooooooooooooooooooooooooo
ima shark
can I play
hello Pure
G'evening
I don't know what the game is
answer is...
Joe Mama
@pine ledge jackbox
No something else
Yes I need help with django
yes but my help is more important
loved how everyone answered so quicly
Yes. What's the problem
ill dm you
Ok
Hi
lol
ty guys for playin
gg 🙂
gg wp
see ya
Hey mina how are you?

I should probably learn a bit about Arcade too 
Rip lol please tell me they were just a helper
Yeah 😄
oh ok haha but still that's funny
class ParallaxBackground(arcade.Sprite):
def __init__(self, speed: float, y_offset: int, *args, **kwargs):
super().__init__(*args, **kwargs)
# self.center_x = self.width // 3
self.center_y = y_offset
self.change_x = speed
def update(self):
self.center_x += self.change_x
if self.center_x >= self.width / 2:
self.center_x = 0
Isn't coding supposed to be boring?
One monitor is a pretty big improvement from zero monitors 😄
Coding is usually quite fun for me.
Although, I have the luxury to just not do it when I am not feeling it.
¯_(ツ)_/¯
this is what my teacher did to my name
Jake paul in the house
Yo jakyy ssup
Griffffgg
Do you remember me griff?!
I do hear you bruh
Laundmo
Why do you look like jeffrey dahmer?!?!!
? Let's not be rude maybe?
https://www.youtube.com/watch?v=ADqLBc1vFwI @uncut meteor
Try our completely object oriented couch multiplayer game Tails at: https://rymdkraftverk.itch.io/tails
Let's be more thoughtful towards others with our words
LOL
Nice rectangle @uncut meteor 👍
Nah, looks kind of nice tbh
ty 4 no bully
👀
Yo @hollow marsh That sounds like a good application for regex.
re.finditer(pattern, string, flags=0)```
Return an [iterator](../glossary.html#term-iterator) yielding [match objects](#match-objects) over all non-overlapping matches for the RE *pattern* in *string*. The *string* is scanned left-to-right, and matches are returned in the order found. Empty matches are included in the result.
Changed in version 3.7: Non-empty matches can now start just after a previous empty match.
Reegeoffs
😔
!e
import re
string = '43242-89543-54353'
print(re.findall(r"\d{5}-\d{5}-\d{5}", string))
@terse needle :white_check_mark: Your eval job has completed with return code 0.
['43242-89543-54353']
!e
import re
string = 'apple43242-89543-54353bonunu123123-2342-41-2-irgherhgj23-423-641048451325kgljadthgoi34uq509345-43242-89543'
print(re.findall(r"\d{5}-\d{5}-\d{5}", string))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
['43242-89543-54353', '09345-43242-89543']
👍
@uncut meteor I'm just learning about Arcade. You could do what they do here for your paralax thingy: https://arcade.academy/examples/platform_tutorial/step_05.html
Like, only scroll if the character gets close to the edge of the window.
Change \d to [a-zA-Z0-9]
@hollow marsh
You can add other characters to the [].
When you specify a range (like a-z) I think it's a range of unicode points.
Not 100% on that last part
yeah, i think that's right
would it then be something like r"[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}"
Yep 👍
this would find letters and numbers?
Lower and uppercase letters, and digits.
No prob 🙂
i was about to start writing if statements lmao
I'm going to pretend I know what "pog" means 😄
Nah regex is the way to go for this kind of thing.
pog
Play Of the Game
urban dictionary...
no.
Hey
Ah, I see. This is a twitch thing?
basically yea
sus
Inspector Griff
🧐
🕵️♀️




i dont like capitalism
fair play
whats up
sky
Aostralia
Sussy
So, er, what's everyone up to? 😄
is psvm just holding down ptt 🤔
huh, you had the green circle thing for like 30 seconds
isnt all of europe except the UK and West Russia on gmt+1
is russia in europe or asia?
hmm
europe
77% of its landmass is in asia
capital is in europe
why can't it be in both :(
because then classification isn't useful
the world likes things being black and white
Sorry, wasn't really listening 😄
Yeah, that would be a good project to show to employers @thick barn
But actually coming up with something which is original and useful is hard 😄
A what now?
Ah, didn't know the UK census is today 👀
Gtg for a bit 😅
a british study on why people are afraid of technology
and here we go
hello
and welcome
most people are mute because they are new
well sleep
no
:incoming_envelope: :ok_hand: applied mute to @whole bear until 2021-03-21 19:56 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
oh nooo
what the hell did i join in on
i just want to state that i was not apart of the convo
!rules
The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.
@stuck furnace hey alex i'm playing chess
Yeah, I barely know the rules
So the castles move diagonally, right?
jk 
u2
Hmm, I spend a lot of time looking at google maps 🤔
Greetings
He's called fur? 😄
Ə
@jaunty pendant dobro vecher
you'll get slapped by the admins
Smakk
smakk
smacc ur mom
OEJFOCIEKDOCO
God damn
It
Literaly everywhere i go i will find a "ur mom" joke
yes
Macron 😄
it is your destiny
no u lmao
If that
Btw @flat sentinel is your name actualy Ќемал?
hi @gentle flint
da
hi
sadly i can't join you all 😦
what ?
yes
im trying to get my kd up
@whole bear you taking part in pyweek?
#rekt
exit()
forgets to call a function and complains of the code not working.
big brain
cough cough
@gentle flint bruh... my sister just asked me how to go into full screen...
No
how old is you sis
wtf are you talking about
cya for a bit
24
damm
...
hahahaha
too much rakii
@flat sentinel heard that LOL
bruh
Lmao
LOL WTF
Sure @flat sentinel
Does it work on mobile?
cause
Oķ
Yeah...
Heard about that on the news too... jesus. @flat sentinel
about the woman
Wait
Guest-kmibr22r has invited you to his game.
rip
WENT
OUT
GOD DAMN IT
RIP
Yes
In spring
Like
B r u h
I have
2gb
Mobile data
Left
And i gtg
Igh
rip
yes
no longer socialist country, oh no
yes
Print on demand (POD) is a printing technology and business process in which book copies (or other documents) are not printed until the company receives an order, allowing prints of single or small quantities. While other industries established the build to order business model, "print on demand" could only develop after the beginning of digital...
You can treat lists of a list (nested list) as matrix in Python. However, there is a better way of working Python matrices using NumPy package. NumPy is a package for scientific computing which has support for a powerful N-dimensional array object.
how to fix a problem with a python project
A - search on Google
B - search on Stack overflow
C - try and open a help ticket
D - Go to #code-help-voice-text text chat
E - Go to a vc and ask
F - Give up and Steal code
bruh
Welp
Looks like there are a few planned outages for tommorow
But there is nothing about it for today
severna makedonija
Ah ok
check out #bot-commands
!ban @gentle flint 10y Yes
@gentle flint @spiral monolith @flat sentinel
Bruh
crinģ
11 | 22 | 33
44 | 55 | 66 => 4+4+5+5+6+6
77 | 88 | 99
``` @gentle flint @spiral monolith
not
4+4+5+5+6+6?
What
ah
that makes more sense
You can treat lists of a list (nested list) as matrix in Python. However, there is a better way of working Python matrices using NumPy package. NumPy is a package for scientific computing which has support for a powerful N-dimensional array object.
programe reusulta = 1+1+4+4+7+7
@gentle flint @spiral monolith
def Matrix():
L = int(input("Donner Ligne de Matrix : "))
c = int(input("Donner colonnes de Matrix : "))
while not (2<L<=10) and (2<c<=10):
L = int(input("Donner Ligne de Matrix : "))
c = int(input("Donner colonnes de Matrix : "))
M = [0]*L
for i in range(L):
M[i] = [0]*c
for i in range (L):
for j in range(c):
M[i][j] = int(input(f"Donner Taile de Matrixe M[{i}],[{j}] : "))
print(M)
Matrix()
@gentle flint @spiral monolith
hey lp
for row n
make list of the nth element in each row of the matrix
convert each number in that list to a list of all the digits that number comprises, so that you have a list of lists of numbers
flatten the list of lists to a single list with itertools.chain(*listname)
sum the list with sum()
with row 1, that would be
POWER CAME BACK
[617, 107, 33, 41]
[[6, 1, 7], [1, 0, 7], [3, 3], [4, 1]]
[6, 1, 7, 1, 0, 7, 3, 3, 4, 1]
FUCK
come fetch it
Power
Came
Back
Bro
Wtf
Its gonna go out
Bet
IT WENT OUT
AGAIN
BRO
LOL
WTH
I'm off for bed
gl with your power
if it gets too bad light an oil lamp
like these
Brù
any smarter logic for this?
this is kinda slow
we just check in the list of extensions
and then raise bad argument error
class Extension(commands.Converter):
"""
Fully qualify the name of an extension and ensure it exists.
The * and ** values bypass this when used with the reload command.
"""
async def convert(self, ctx: Context, argument: str) -> str:
"""Fully qualify the name of an extension and ensure it exists."""
# Special values to reload all extensions
if argument == "*" or argument == "**":
return argument
argument = argument.lower()
if argument in EXTENSIONS:
return argument
elif (qualified_arg := f"{exts.__name__}.{argument}") in EXTENSIONS:
return qualified_arg
matches = []
for ext in EXTENSIONS:
if argument == unqualify(ext):
matches.append(ext)
if len(matches) > 1:
matches.sort()
names = "\n".join(matches)
raise commands.BadArgument(
f":x: `{argument}` is an ambiguous extension name. "
f"Please use one of the following fully-qualified names.`\n{names}`"
)
elif matches:
return matches[0]
else:
raise commands.BadArgument(f":x: Could not find the extension `{argument}`.")
@dense ibex
EXTENSIONS is frozenset()
that's how we do it on pydis
and then pass Extension as the annotation
discord.py will automatically convert it
you can use pkgutil, to walk extensions and then do a frozenset on that @dense ibex
def walk_extensions() -> Iterator[str]:
"""Yield extension names from the bot.exts subpackage."""
def on_error(name: str) -> NoReturn:
raise ImportError(name=name) # pragma: no cover
for module in pkgutil.walk_packages(exts.__path__, f"{exts.__name__}.", onerror=on_error):
if unqualify(module.name).startswith("_"):
# Ignore module/package names starting with an underscore.
continue
if module.ispkg:
imported = importlib.import_module(module.name)
if not inspect.isfunction(getattr(imported, "setup", None)):
# If it lacks a setup function, it's not an extension.
continue
yield module.name
EXTENSIONS = frozenset(walk_extensions())
another easier way can be something like this:
EXTENSIONS = []
for file in listdir(path.join(path.dirname(__file__), 'cogs/')):
filename, ext = path.splitext(file)
if '.py' in ext: EXTENSIONS.append(f'cogs.{filename}')
the one time I'm actully using python chat is empty lol
I do 1 nut per second
!voiceverify
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I am deeply concerned
@tiny socket you're using Linux, I guess, with gurkeeeeep's description of your screenshare?
yep lol
i forgot that setting one screen shows them all anyway
that makes sense then
Lol yeah
I found that out too when I got a second screen
kinda annoying bug
actors
no u




