#voice-chat-text-0

1 messages · Page 791 of 1

honest pier
#

nah, mate in 1

dense ibex
honest pier
#

🧐

uncut meteor
#
src/ ---
      |-> my_class.py
main.py
whole bear
#

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

flat sentinel
uncut meteor
#

!code

wise cargoBOT
#

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.

uncut meteor
#

hello_world.py

print('Hello world!')
whole bear
#

!code darray

#

!code

gentle flint
whole bear
#

''' py darray '''

honest pier
#

takeback 😔

flat sentinel
honest pier
#

@uncut meteor ?

uncut meteor
#

missclick

#

i also kinda lost

#

so gg

honest pier
#

two at once 😔

uncut meteor
#

geegee

honest pier
uncut meteor
#

why not just use it as an emoji?

#

@honest pier @honest pier @honest pier

honest pier
#

do i look like i'm made of money

uncut meteor
#

just wanted atleast one victory today

#

@honest pier if you beat me in chess, i'll get you nitro

#

buy*

honest pier
uncut meteor
#

from that point onwards

honest pier
#

🤔

uncut meteor
#

PepeScared pepeSus Gunleft 🤠 Gunright rooFat rooDab

honest pier
#

wtf

uncut meteor
flat sentinel
#

ќемаил

gentle flint
#

веру наис

jaunty pendant
#

Јез

gentle flint
#

лол

jaunty pendant
#

Кек

#

Will you be up untill 3am again? @gentle flint

gentle flint
#

perhaps

#

lol

jaunty pendant
#

Wow

#

Ok

#

i might too

gentle flint
#

no don't

#

I probably won't

jaunty pendant
#

ur not my dad

gentle flint
#

'cuz I have school tomorrow

jaunty pendant
#

oh

#

Right

gentle flint
jaunty pendant
#

well

cobalt dune
#

is your profile photo a scp? or am I crazy

jaunty pendant
jaunty pendant
#

Scp 079

cobalt dune
#

one fo the best ones if you ask me jeje, probably done via python v 4.8

jaunty pendant
#

Perhaps

#

...

#

bro

#

no

#

YES

honest pier
#

!rule 4

wise cargoBOT
#

4. This is an English-speaking server, so please speak English to the best of your ability.

jaunty pendant
#

AND

#

Bruh

gentle flint
#

yeah. sorry

jaunty pendant
#

R i p

#

Yes

#

1+1=5

flat sentinel
#

да

jaunty pendant
#

so there are 5 macedonians in the voice chat

uncut meteor
gentle flint
#

the hell is that

jaunty pendant
#

What

#

Is

#

That

#

thing

uncut meteor
#

@honest pier ^

gentle flint
jaunty pendant
#

Why does.

#

Bruh

honest pier
#

lmfao

jaunty pendant
flat sentinel
honest pier
#

radial blur on hayan

gentle flint
#

oof

jaunty pendant
#

Welp

#

Now there is 1+0 macedonians in the voice chat

gentle flint
#

mhm

jaunty pendant
#

1+0= 10

#

yes

#

math

#

B r è

gentle flint
#

qwik mafs

jaunty pendant
#

Yæz

#

What if.

#

Thats how maths worked

#

1 + 0 = 10

#

Hmmmmm

vestal mason
jaunty pendant
#

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

gentle flint
vivid palm
#

how qt

jaunty pendant
gentle flint
#

good night

jaunty pendant
#

Good night

dense ibex
#

@vivid palm alright should I call them?

#

the pizza ppl

vivid palm
#

lol jake i said early when they’re not busy!

uncut meteor
#

get Hawaiian for me pls

vivid palm
#

but now is better than never

dense ibex
#

hmmmm so tmr?

vivid palm
#

....

dense ibex
#

cause who tf gets pizza on sunday

gentle flint
#

me if I can

vivid palm
#

ok tmrw is fine too. i recommend morning or whenever they open

honest pier
#

it's not sunday ya nerd

honest pier
#

it's friday today 🤔

dense ibex
#

no its nto

#

sotp

vivid palm
#

o right in jakes time zone

gentle flint
honest pier
#

you're not in a real place

dense ibex
#

smh

vivid palm
#

if it turns out for some reason they don’t have it, offer to drop by and resubmit

dense ibex
#

😛

#

:p

gentle flint
vivid palm
#

you do it directly if that’s the case

dense ibex
#

:--------------------------------------------------------------------------------------------------------------------------------------------------------------

honest pier
gentle flint
#

yeah, they weren't good enough to stay

vivid palm
#

yes griff

dense ibex
#

:--:

uncut meteor
dense ibex
#

:Gunright:

#

rip

vivid palm
dense ibex
uncut meteor
vivid palm
dense ibex
vivid palm
#

how qt

uncut meteor
dense ibex
uncut meteor
#

careful not to get muted

dense ibex
#

ik lol

#

but thanks

uncut meteor
dense ibex
#

I am a trained professional I have been charming python bot for years now

honest pier
#

@uncut meteor why it no work

vivid palm
#

lol this flag

dense ibex
#

Python bot serves me now

#

cause hes not in c# discord server

#

thats where I get mine from

uncut meteor
dense ibex
#

lol

uncut meteor
dense ibex
uncut meteor
#

A Docker Docker container

dense ibex
#

lemon container

uncut meteor
#

^ me irl

leaden comet
vivid palm
leaden comet
vivid palm
#

i like 3

leaden comet
honest pier
#
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.
vivid palm
#

whats the difference btwn 3 and 4?

#

ok

honest pier
#
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")
leaden comet
honest pier
#

fuck it, i'm just gonna brute force it

vivid palm
#

@olive hedge hi & bye fisher

honest pier
#

it's probably fast enough

#

oh

#

;-;

pulsar rover
#

dang

#

it i need 50 mesasges to talk

#

!messages

#

.messages

#

f

#

(╯°□°)╯︵ ┻━┻

honest pier
#

don't spam tho

whole bear
#

Griff !!!!

#

Heloooo

#

It's Mr poopybutthole

#

Unfortunately I'm banned from the vc @uncut meteor

#

I can't talk

honest pier
#

🧐

whole bear
#

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?!

brave spear
#

what is that advent of code?

dense ibex
whole bear
#

Jake paul!!!!

#

Sup homie

dense ibex
#

im not gonna respond to that name

whole bear
#

What name?

dense ibex
#

you know what name lol

whole bear
#

Bruh you can't fool me I know you're jake paul

#

You're talkin about me guys!!!!

#

Don't ban me

#

Thank god

brave spear
#

how difficult is advent of code? beginner/average/pro?

honest pier
#

average

willow thorn
#

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

tidal salmon
brave spear
#

how much do you pay for pycharm professional?

tidal salmon
brave spear
#

how do they know im a student?

tidal salmon
#

you use your student email if you have one

brave spear
#

no i dont

tidal salmon
#

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

brave spear
#

what adventages does proffesional give u though

tidal salmon
#

it has features that are useful if you're a web developer, or if you're developing remotely for some other reason.

brave spear
#

like pytorch and stuff?

tidal salmon
#

yeah, if you're developing a model on a remote machine, pycharm can basically give you the experience of developing that thing locally

brave spear
#

nah i dont need that yet

calm lion
#

hey

brave spear
#

hey

calm lion
#

i need help in python exam :p

honest pier
#

!rule 5

wise cargoBOT
#

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.

calm lion
#

!rule 1

wise cargoBOT
hollow haven
#

~ GLITTERILY ~

brave spear
#

whats ur yt lemon

hollow haven
honest pier
#

poggers!

brave spear
#

need to go now

#

in my contry its 2 am

hollow haven
#

good night~

dense ibex
#

Cya 🙂

whole bear
#

I love my name I'm not ashamed of it

gentle flint
#

so I was confused why my readthedocs webhook wasn't triggering

#

turns out I was committing but not pushing

#

🤦

#

right, time for bed

hollow haven
whole bear
#

Ohh shit stockoverflow is toxic af

#

Python is good

#

But anaconda is better

#

And cobra is even better

hollow haven
dense ibex
whole bear
#

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

zealous wave
# dense ibex

I had one for like a year and a half then it broke

dense ibex
#

Yeah I need to glue it and I need some certain type of glue

whole bear
#

You can get it you're rich bruh

tidal salmon
#

what

#

why is this to that a thing?

elfin fulcrum
#

!voiceverify

hollow haven
dense ibex
#

its so helpful thanks kat 🙂

elfin fulcrum
#

bruh

#

how do i get in to this

#

i just wanna chat with the bois

hollow haven
amber raptor
#

I mean, my lab server has 384GB

elfin fulcrum
#

bruuuuuuuuuuuuuh

#

aight well i dont have the braincells for this

#

peace and love

amber raptor
#

2x E5-2690

elfin fulcrum
#

take care bruddas

amber raptor
dense ibex
#

Wait rabbit each of those cpus are $2000 each

#

thats crazy

tidal salmon
hollow haven
short gate
#

Hello.

uncut meteor
#

I cosplay as a human

short gate
#

Hey guys. :3

elfin fulcrum
#

cant even find the previous channel

#

mfw im dumb as s***

short gate
#

Wanna check out my newest project?

elfin fulcrum
#

imagine spending four years getting a msc

#

just to get muted on the discord for python

#

big sadge

#

masters degree uk

#

uni warwick

#

saaaaadge

uncut meteor
elfin fulcrum
#

feel like im stalking you guys bruh

#

exactly

#

im too bored and unemployed

#

so

uncut meteor
#

isn't it bedtime?

elfin fulcrum
#

am i in the queue then

#

bruh allow me

uncut meteor
#

nah

#

im tired tbf

elfin fulcrum
#

manchester

#

went to warwick in coventry

#

close to brum

#

but yea big midlands vibes

honest pier
#

chewsdaya

elfin fulcrum
#

mfw i feel like an outcast

#

you work in ldn?

uncut meteor
#

nah

#

i'm from The Red Rose

elfin fulcrum
#

oosh

#

yugioh duelist of the roses

uncut meteor
#

du du du duel

elfin fulcrum
#

❤️

#

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

dense ibex
uncut meteor
leaden comet
#

magic mike

elfin fulcrum
#

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

olive hedge
elfin fulcrum
#

bruh

olive hedge
elfin fulcrum
#

i mean im no programmer but i did spend 4 years getting a maths degree

#

big sadge

dense ibex
dusky elm
#

can't talk right now because I am new but what you guys working on?

#

oh leet code?

honest pier
dire oriole
#

@spice marten it's a linked list problem 👀

spice marten
#

@dire oriole unfortunately I’m on my iPad

honest pier
#

go on your computer then 🤔

spice marten
#

No I refuse to leave my bed

#

it’s too comfy

honest pier
#

😔

spice marten
#

Oh boy I’m learning trees tomorrow

#

Is it harder than linked lists

#

going to find out soon ig

unkempt panther
#

hey

spice marten
#

What even is your pfp

#

god knows

honest pier
#

trees are harder than linked lists, yeah

spice marten
#

@honest pier oh boy

#

At least I have you to help me

honest pier
#

i won't be around forever

spice marten
#

Did I say forever

honest pier
#

it was implied

spice marten
#

Ehhhh

unkempt panther
pulsar rover
#

Huh

clear shadow
#
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

abstract ravine
#

dude i dont think u can ask help for ur assignments in here

buoyant topaz
#

any one tried this?

runic forum
#

where's everyone

#

i swear whenever someone streams more ppl join in

runic forum
#

hello?

ancient remnant
#

Hi!

#

Bye.

runic forum
#

so silent

#

nobody talking

#

@pastel linden hello

#

i wont talk with voice

pastel linden
#

ok

turbid crescent
#

@last ivy expected to find dream LOL

last ivy
#

lol

#

with my network

pine ledge
#

Can't speak :/

runic forum
#

why?

pine ledge
#

Rejoined the server

lunar pendant
#

right

pine ledge
#

I can speak after three days

lunar pendant
#

maybe you should contact MR.Hemlock

pine ledge
#

It's not urgent I can manage three days without speaking :)

lunar pendant
humble geyser
#

Hello 👋

lunar pendant
#

hey

humble geyser
#

No body streaming

lunar pendant
humble geyser
#

Anything

#

In a rut today

pine ledge
#

I guess less people are here on weekend

lunar pendant
humble geyser
#

Maybe they are asleep

lunar pendant
#

did you guys participated in today google kickstart round A?

pine ledge
#

Is it for school children

lunar pendant
#

it's for all

#

there is no limitations

#

are you in school?

pine ledge
#

No

lunar pendant
#

clg?

pine ledge
#

No

lunar pendant
#

wtf!!!!!

#

oh your doing job

#

I get it

pine ledge
#

No :/

lunar pendant
#

what is wrong with you?

pine ledge
#

No thing

lunar pendant
#

then tell me?

#

what do you do?

humble geyser
#

Finished college and looking for a job ig

lunar pendant
#

thanks

calm lion
#

@lunar pendant

lilac hinge
#

hi how are u guys you all learn py?

somber heath
#

@lilac hinge Learn, teach, revel in.

#

Argue with.

pine ledge
#

Hey opalmist

somber heath
#

python, import, multi-file module structures

runic forum
#

hey

rich cloud
#

dude i play on ps4 external hdd. its fine lol

#

its fine

lilac hinge
#

it is

#

can someone help me with tuples?

#

I am trying ti multiply a tuplle with another tuple

rich cloud
#

for the record, im still new to python

#

pythong*

somber heath
#

I started a project that used them

mossy panther
#

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

runic forum
#

drinks the whole bowl in less than a sec

mossy panther
#

jackbox sounds great

uncut meteor
#

JackBox

runic forum
#

Jack In The Box

mossy panther
#

pullin out the coupe at the lot

uncut meteor
#

PUNH

#

^ code

runic forum
#

@whole bear use push to talk

mossy panther
#

@rugged root you streaming whole scene(scream) or window? sound works only with window

whole bear
#

its not working for me unfortunatlt

rich cloud
#

LMAOOO

#

lol

#

...

pine ledge
#

How do you play the game

mossy panther
#

ggs!

wild geode
#

how do you play?

undone idol
#

what's the code?

wild geode
#

me

undone idol
#

can anyone share?

wild geode
#

can i play

undone idol
#

The one who are playing can anyone of you share the code?

mossy panther
#

anyone got dc'd?

wild geode
#

yh

#

code

rugged root
#

One sec

wild geode
#

kk

uncut meteor
#

audio is coming through

#

btw

#

sounds good too

rich cloud
#

*elevator music

uncut meteor
mossy panther
#

noooooooooooooooooooooooooooooooooooooooooooo

quasi mesa
#

whats this game

#

nvm

mossy panther
#

ima shark

rich cloud
#

anyone filling up?

#

cs ill join

quasi mesa
#

can I play

uncut meteor
#

ZCMG

dense ibex
#

hello Pure

swift valley
#

G'evening

humble geyser
#

I don't know what the game is

mossy panther
#

answer is...
Joe Mama

pine ledge
#

HM

#

What's streaming

mossy panther
#

@pine ledge jackbox

pine ledge
#

No something else

runic forum
#

i need help

#

with my homework assignment

pine ledge
#

Yes I need help with django

runic forum
#

yes but my help is more important

wild geode
#

loved how everyone answered so quicly

pine ledge
runic forum
#

ill dm you

pine ledge
#

Ok

stoic ore
#

Hi

humble geyser
#

I am the only one alive

#

There's jake too

vivid palm
#

lol

mossy panther
#

ty guys for playin

dense ibex
#

gg 🙂

humble geyser
#

gg wp

mossy panther
#

see ya

dense ibex
#

Hey mina how are you?

vivid palm
honest pier
stuck furnace
#

I should probably learn a bit about Arcade too lemon_grimace

uncut meteor
stuck furnace
#

Erm yep 😄

#

For self-botting

#

@dense ibex

dense ibex
#

Rip lol please tell me they were just a helper

stuck furnace
#

Yeah 😄

dense ibex
#

oh ok haha but still that's funny

stuck furnace
#

Depressing fact hour

#

I too am bored

uncut meteor
#

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
swift breach
stuck furnace
#

One monitor is a pretty big improvement from zero monitors 😄

olive hedge
#

Coding is usually quite fun for me.

Although, I have the luxury to just not do it when I am not feeling it.

stuck furnace
#

Hello

#

👀

#

Does it work with Vim?

honest pier
#

¯_(ツ)_/¯

uncut meteor
flat sentinel
#

this is what my teacher did to my name

stuck furnace
#

Griff, what is "some milk thing"? 😄

#

Cya Jake

whole bear
#

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?!?!!

hollow haven
honest pier
whole bear
#

I just had a thought and I said it

#

Didn't mean to be rude

hollow haven
vivid palm
#

LOL

stuck furnace
#

Nice rectangle @uncut meteor 👍

uncut meteor
#

my brain rectongle

stuck furnace
#

Nah, looks kind of nice tbh

uncut meteor
#

ty 4 no bully

honest pier
#

👀

stuck furnace
#

Yo @hollow marsh That sounds like a good application for regex.

honest pier
#

re.findall(r"\d{5}-\d{5}-\d{5}", string)

#

!d re.finditer

wise cargoBOT
#
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.
stuck furnace
#

Yeah, finditer is the same but returns an iterator.

#

reeegex

uncut meteor
#

Reegeoffs

honest pier
#

😔

terse needle
#

!e

import re

string = '43242-89543-54353'

print(re.findall(r"\d{5}-\d{5}-\d{5}", string))
wise cargoBOT
#

@terse needle :white_check_mark: Your eval job has completed with return code 0.

['43242-89543-54353']
uncut meteor
#

!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))
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

['43242-89543-54353', '09345-43242-89543']
uncut meteor
#

👍

stuck furnace
#

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

honest pier
#

yeah, i think that's right

hollow marsh
#

would it then be something like r"[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}"

stuck furnace
#

Yep 👍

hollow marsh
#

this would find letters and numbers?

stuck furnace
#

Lower and uppercase letters, and digits.

hollow marsh
#

ok POG

#

thanks man

stuck furnace
#

No prob 🙂

hollow marsh
#

i was about to start writing if statements lmao

stuck furnace
#

I'm going to pretend I know what "pog" means 😄

stuck furnace
hollow marsh
#

Play Of the Game

stuck furnace
#

urban dictionary...

honest pier
#

no.

dense ibex
#

Hey

stuck furnace
#

Ah, I see. This is a twitch thing?

hollow marsh
#

basically yea

rich cloud
#

sus

stuck furnace
#

Inspector Griff

uncut meteor
#

🕵️

#

on the case

honest pier
#

🧐

uncut meteor
#

🕵️‍♀️

stuck furnace
uncut meteor
dense ibex
vivid palm
rich cloud
#

i dont like capitalism

uncut meteor
#

fair play

hoary violet
#

whats up

whole bear
#

sky

uncut meteor
#

Aostralia

runic forum
#

Sussy

stuck furnace
#

So, er, what's everyone up to? 😄

dire oriole
#

is psvm just holding down ptt 🤔

honest pier
#

🤔

#

no?

dire oriole
#

huh, you had the green circle thing for like 30 seconds

stuck furnace
#

7pm

#

Eastern Europe?

terse needle
#

isnt all of europe except the UK and West Russia on gmt+1

#

is russia in europe or asia?

#

hmm

honest pier
#

europe

terse needle
#

77% of its landmass is in asia

honest pier
#

capital is in europe

dire oriole
#

why can't it be in both :(

honest pier
#

because then classification isn't useful

terse needle
#

the world likes things being black and white

stuck furnace
#

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 😅

flat sentinel
#

and here we go

#

hello

#

and welcome

#

most people are mute because they are new

#

well sleep

whole bear
#

can u unmute me

#

can u unmute me

#

fg

#

g

thick barn
#

no

wise cargoBOT
#

: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).

flat sentinel
hushed elm
#

oh nooo

flat sentinel
fickle summit
#

what the hell did i join in on

flat sentinel
#

i just want to state that i was not apart of the convo

hushed elm
#

stroke

flat sentinel
#

!rules

wise cargoBOT
#

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 Macro 😄 How's it going?

#

Yeah, me three

hushed elm
#

@stuck furnace hey alex i'm playing chess

stuck furnace
#

Yeah, I barely know the rules

hushed elm
#

ey don't worry about

#

just know i'm smashing his ass

#

oh no that came out wrong

stuck furnace
#

So the castles move diagonally, right?

hushed elm
#

they move - and |

#

horizontally

stuck furnace
#

jk lemon_pensive

hushed elm
#

as one who is not drunk would say

#

aaah ok

#

gg @gentle flint

gentle flint
#

u2

stuck furnace
#

You have 36 GitHub repos 👀

#

Fred

#

12 must be private 😄

#

Just PEP8 their code 😄

gentle flint
#

I do that too

#

lol

hushed elm
stuck furnace
#

Hmm, I spend a lot of time looking at google maps 🤔

hushed elm
#

i've got a friend like that

#

he's called Fur in my native language

#

really funny

jaunty pendant
#

Greetings

stuck furnace
#

He's called fur? 😄

hushed elm
#

Blanita

#

@jaunty pendant greetings

jaunty pendant
#

Ə

gentle flint
#

@jaunty pendant dobro vecher

jaunty pendant
#

Ýə§

#

Boi @gentle flint

#

Can you

#

Stop

#

Searching

#

For

#

That

hushed elm
#

please don't span

#

boyyyy

jaunty pendant
#

O k

#

Sorry

hushed elm
#

you'll get slapped by the admins

jaunty pendant
#

Smakk

hushed elm
#

smakk

jaunty pendant
#

Le smacc

#

Smacc a snacc

gentle flint
#

smacc ur mom

jaunty pendant
#

OEJFOCIEKDOCO

#

God damn

#

It

#

Literaly everywhere i go i will find a "ur mom" joke

gentle flint
#

yes

stuck furnace
#

Macron 😄

gentle flint
#

it is your destiny

jaunty pendant
#

Brè

#

Lmao

hushed elm
#

no u lmao

stuck furnace
#

If that

jaunty pendant
#

Btw @flat sentinel is your name actualy Ќемал?

unborn storm
#

hi @gentle flint

flat sentinel
#

da

jaunty pendant
#

Ah

#

Noic

gentle flint
unborn storm
#

sadly i can't join you all 😦

gentle flint
#

alas

#

I weep tears of mourning

unborn storm
#

what ?

jaunty pendant
unborn storm
#

ohhh i translated it

#

😭

jaunty pendant
#

LOL @gentle flint

#

Spoil ur mom

flat sentinel
#

im trying to get my kd up

stuck furnace
#

@whole bear you taking part in pyweek?

jaunty pendant
#

#rekt

hushed elm
#

exit()

jaunty pendant
#

forgets to call a function and complains of the code not working.

gentle flint
#

big brain

jaunty pendant
#

cough cough

hushed elm
#

discord.exit()

#

universe.exit()

#

universe.kill()

jaunty pendant
#

@gentle flint bruh... my sister just asked me how to go into full screen...

gentle flint
#

F11

#

lol

jaunty pendant
#

No

flat sentinel
#

how old is you sis

jaunty pendant
#

Like

#

A video player

#

I mean

#

Like youtube

hushed elm
#

wtf are you talking about

stuck furnace
#

cya for a bit

jaunty pendant
flat sentinel
#

damm

jaunty pendant
#

Y e s

#

I KNOW RIGHT?

hushed elm
#

P A R T A K E

#

i'm 28

jaunty pendant
#

...

hushed elm
#

wanna date?

#

;);)

jaunty pendant
#

What

#

The

#

Fuck

hushed elm
#

hahahaha

gentle flint
#

he's drunk

#

ignore him

jaunty pendant
#

He drank too muck raki

#

LOL

hushed elm
#

too much rakii

jaunty pendant
#

@flat sentinel heard that LOL

hushed elm
#

ok pls no

#

pls not that much fun

jaunty pendant
#

bruh

#

Lmao

#

LOL WTF

#

Sure @flat sentinel

#

Does it work on mobile?

#

cause

#

#

Yeah...

#

Heard about that on the news too... jesus. @flat sentinel

#

about the woman

#

Wait

flat sentinel
jaunty pendant
#

Ah

#

Nvm

#

FUCK

#

POWER

gentle flint
#

rip

jaunty pendant
#

WENT

#

OUT

#

GOD DAMN IT

#

RIP

#

Yes

#

In spring

#

Like

#

B r u h

#

I have

#

2gb

#

Mobile data

#

Left

#

And i gtg

#

Igh

gentle flint
#

rip

jaunty pendant
#

Cya

#

Yeah ik

#

Bye

flat sentinel
gentle flint
whole bear
#

hciejb

#

chicken

#

noodle

#

soup lemon_happy

flat sentinel
gentle flint
whole bear
gentle flint
#

'til 1991

#

1991-2009

#

2009-present

#

big changes

flat sentinel
#

yes

gentle flint
#

no longer socialist country, oh no

flat sentinel
gentle flint
flat sentinel
#

yes

gentle flint
flat sentinel
#

wait that look

#

like

gentle flint
#

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

flat sentinel
#

library

#
  • yes
#

[[ [x,x,x]
[ [x,x,x]
]]

gentle flint
flat sentinel
#

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

jaunty pendant
#

There

#

Is

#

Still

#

No

#

Power

flat sentinel
#

bruh

jaunty pendant
#

Y e s

#

EVN be like:

flat sentinel
#

EVN sucks

#

@plain ferry

jaunty pendant
#

Welp

#

Looks like there are a few planned outages for tommorow

#

But there is nothing about it for today

flat sentinel
#

@plain ferry accéder à un canal d'aide

#

""go to a help channel""

jaunty pendant
#

also that nickname

#

Lol

gentle flint
#

severna makedonija

jaunty pendant
#

...

#

what is the prefix of the python bot again?

gentle flint
#

!

#

I think

jaunty pendant
#

Ah ok

gentle flint
#

check out #bot-commands

jaunty pendant
#

!ban @gentle flint 10y Yes

gentle flint
#

run stuff there

#

@jaunty pendant ban ur mom

jaunty pendant
#

Ffs

#

Hopefuly

#

Power will be back soon

#

Hopefuly

plain ferry
#

@gentle flint @spiral monolith @flat sentinel

jaunty pendant
#

Bruh

jaunty pendant
#

crinģ

plain ferry
#
11 | 22 | 33
44 | 55 | 66 => 4+4+5+5+6+6 
77 | 88 | 99


``` @gentle flint  @spiral monolith
gentle flint
#

not
4+4+5+5+6+6?

jaunty pendant
#

What

gentle flint
#

ah

#

that makes more sense

jaunty pendant
#

Ah yes

#

Wait

#

Nvm

gentle flint
#

mymatrix = [[11, 22, 33], [44, 55, 66], [77, 88, 99]]

#

print(sum(mymatrix[1]))

plain ferry
#

@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

dense ibex
#

hey lp

gentle flint
#

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

jaunty pendant
#

POWER CAME BACK

gentle flint
#

[617, 107, 33, 41]

#

[[6, 1, 7], [1, 0, 7], [3, 3], [4, 1]]

#

[6, 1, 7, 1, 0, 7, 3, 3, 4, 1]

jaunty pendant
#

FUCK

gentle flint
#

with sum() you can sum that list
6 + 1 + 7 + 1 + 0 + 7 + 3 + 3 + 4 + 1

#

30

jaunty pendant
#

POWER WENT OUT

#

@gentle flint send some power in some acumulators

gentle flint
#

come fetch it

jaunty pendant
#

Power

#

Came

#

Back

#

Bro

#

Wtf

#

Its gonna go out

#

Bet

#

IT WENT OUT

#

AGAIN

#

BRO

#

LOL

#

WTH

gentle flint
#

I'm off for bed

#

gl with your power

#

if it gets too bad light an oil lamp

#

like these

jaunty pendant
#

Brù

cerulean moth
#

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

#

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}')
whole bear
#

Jakeyyyyy

#

What's up my friend

#

@dense ibex what are you doing

solid wolf
#

hello peeps

#

hi grifff

terse vigil
#

the one time I'm actully using python chat is empty lol

cloud root
#

I do 1 nut per second

young fractal
#

@tiny socket i cant see anything

#

4 screens merged into one

#

wide

lunar garden
#

!voiceverify

flat sentinel
#

not here

#

!voice

wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

flat sentinel
#

here

#

you can do it there

gentle flint
#

@tiny socket you're using Linux, I guess, with gurkeeeeep's description of your screenshare?

tiny socket
#

i forgot that setting one screen shows them all anyway

gentle flint
#

that makes sense then

#

Lol yeah

#

I found that out too when I got a second screen

#

kinda annoying bug

tiny socket
#

yeah

#

there's a way to fix it i just dont know what it is kek

gentle flint
#

fake webcam coupled to a streaming program

#

that's the solution generally used

runic forum
#

actors

gentle flint
#

no u

runic forum
#

You

#

what should i tell?

#

its not my code