#voice-chat-text-0

1 messages · Page 15 of 1

somber cosmos
rugged root
#

See you Tech

somber cosmos
#

:(((

rugged root
#

Am I right?

somber cosmos
#

yes but still..

rugged root
#

No buts

#

!rule 5.

somber cosmos
#

oof ok

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.

rugged root
#

Stupid . at the end of that...

somber cosmos
#

ye i see

rugged root
#

It'd be violating their ToS for sure

somber cosmos
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

somber heath
#

🐐

somber cosmos
#

ye i see

#

!rule 32

wise cargoBOT
#

:x: Invalid rule indices: 32

somber cosmos
#

KEKW

#

!rule 34

wise cargoBOT
#

:x: Invalid rule indices: 34

somber cosmos
#

sed

rugged root
#

I mean

#

It's our server rules, not the other one

#

Not really on brand for us

somber cosmos
#

ye i know

somber heath
#

@midnight agate Are you in a glass hallway at a shopping center?

rugged root
#

I mean honestly, this still seems better suited to be something like a poll system. Each client/ip gets their votes done once

gentle flint
#

does krisp work

#

@zenith radish let me know when you return

tepid elm
#

my ted talk LOL

tidal salmon
#

Can it be green

sweet lodge
#

You've never heard of "multicloud"?

indigo loom
#

Anokhi, a indian name ig?

zenith radish
#

Yea he's indian

#

On a work visa in the us 😒

#

So lucky

#

@mild quartz how did you get so lucky with your visa?

indigo loom
#

Ohh, glad to hear this, not like me struggling in 3 tier college doing btech

#

btw I'm also from India

dusky mortar
#

17 of 25 8 to go

indigo loom
#

for what?

dusky mortar
#

vc max limit

mild quartz
#

LP is not trustworthy

quasi condor
mild quartz
#

i am sick fuck

quasi condor
#

you're a sick fuck?

#

what makes you so?

indigo loom
#

lol

dusky mortar
#

what was the discussion sponsorship isn't money?

amber raptor
dusky mortar
#

RIP Cent OS 😢

amber raptor
#

Only way to do it well is run everything as primitive and that sucks

sweet lodge
indigo loom
#

I landed on this server a month ago, since then i heard not a single term i already know about.

amber raptor
tepid elm
#

lmao

zenith radish
mild quartz
#

that is a lot of work

rugged root
#

Oh, @molten pewter and @quasi condor, one other thing. So you can draw multiple cards from the discard (from latest discard to whatever), but you have to make something of it if it's not a single card

#

So for example

#

It drew for me

#

God

#

Damn

#

It

#

Figured it out

#

You have to click up to the card you want to draw in discard

#

Oh one last thing. The cards you still have in your hand after the person goes out counts against your score

swift olive
#

hi

#

im reading automate the boring stuff with python what is everyone else doing

rugged root
#

Couple of us are playing Rummy 500

zenith radish
#

Arch is removing python2 from its repos

#

Looking at ppl being mad about it

rugged root
#

'bout time

sweet lodge
#

They already did

#

Oh - they stopped installing it, but now they're actually removing the option to reinstall it?

swift olive
amber raptor
#

Why does people care?

#

If you are using Arch, you expect modern.

zenith radish
#

it breaks stuff that runs on ppls machines

#

most people use arch because it's the best combo of ease of use and customizability

swift olive
#

program editor?

zenith radish
#

If you google the message you'll find the answers

#

@midnight agate

sweet lodge
#

Even my servers are using Arch Linux BTW, BTW, and they didn't care, because they're running up to date shit

swift olive
#

i wish

quasi condor
#

I love it - I'm so convinced that HTMX or something like it is the future of web development

swift olive
#

I don't know what htmx is

quasi condor
#

there is a website which is pretty good for finding out that sort of thing

swift olive
#

and that is...

#

1 day

#

@midnight agate are you a main character

rugged root
#

It's frustrating

#

But this is why I use push to talk

#

But there are so many people who bitch about it, yet it's a good solution

quaint oyster
#

I use the mute button on my sound card

rugged root
#

Also a good option

quasi condor
quaint oyster
#

BRO

#

@south bone

terse needle
quasi condor
#

probably

quaint oyster
#

I don't think it was actually

quasi condor
#

it's not the same user id

#

but it could just be ab alt

quaint oyster
#

Ah

#

possibly

quasi condor
zenith radish
swift olive
#

yup

#

basically what i heard you say sounded like a main character

rugged root
#

@silent sequoia Granted the 3 week probationary period

terse needle
#

this is a fire car

rugged root
#

They're amazing

zenith radish
rugged root
#

@quasi condor Interested in Rummy or are you carded out

quasi condor
#

let me go wash up this plate

#

then yes

swift olive
#

so how are you

rugged root
#

Jittery

#

But all I've had today to drink is coffee

#

So it's my own doing

swift olive
#

hmm

quasi condor
rugged root
#

One moment, work thing

quasi condor
#

no hurry

zenith radish
quasi condor
#

@rugged root lp wants you

zenith radish
#

@rugged root I had no part in this

quasi condor
#

@rugged root he instigated the whole thing

zenith radish
#

@woeful salmon I miss you

rugged root
swift olive
#

it kinda does

#

im taller

worn holly
#

hey

swift olive
#

hi

#

90% chance to be a man but still hi

rugged root
#

@quasi condor You're a bastard

quasi condor
#

ye

#

s

#

I loved it

whole bear
#

Sup bois

#

Good morning

#

What even is going on someone fill me up o_O

#

Ahh

#

Noice 😎

#

👍

#

Nope

#

Nahhh 💀

#

🙄

#

Cool man

#

Good night amn

short plank
#

@whole bear

wise cargoBOT
#

@wintry pier :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | url
002 | same text
#

@wintry pier :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ValueError: dictionary update sequence element #0 has length 1; 2 is required
#

@wintry pier :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | {'name': 'namevar', 'extension': 'extvar'}
002 | <class 'dict'>
wise cargoBOT
#

@wintry pier :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | {"name": "bob", "extension": "billy", "number": 0}
002 | <class 'str'>
nova prawn
ember fog
#

whats going on in here?

lethal thunder
#

@kindred timber talk here

#

@kindred timber chat here

kindred timber
#

I can't talk

#

I am surpressed

#

anyway

lethal thunder
#

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

kindred timber
#

hmmm

#

I see

#

welp

#

I have to send those messages somehow

#

are you coding something rn?

#

Haha the wonders of programming.

#

probably it's becuase they didn't test it on every machine

#

or it's just a strange bug

#

oh I don't know

#

what is it

#

yes

#

yeah

#

Oh you mean extension

#

hmmm

#

I use UltraBlock.

#

as an adblock

#

that's really weird.

#

Aren't those files hidden?

lethal thunder
#

C:/Users/<username>/AppData/Local/Google/Chrome/User Data/Default/Extensions

kindred timber
#

lemme just go there

lethal thunder
#

chrome://extensions/

kindred timber
#

Mine extensions are working just fine.

#

Have you tried reinstalling those extensions?

#

So you're on windows? Do you still have the Internet Explorer installed?

#

I heard that Microsoft made an announcement that IE is really unsafe...

#

Okay guys, I have to go. Later

somber heath
#

Hoy hi.

#

Well, there's a lot going on in the world, isn't there?

#

So I'm feeling that...

#

Scrub.

#

The multitudinous plethora of happenings.

surreal wyvern
#

Namste opalmist 🙏

somber heath
#

!voice @gusty bramble

wise cargoBOT
#

Voice verification

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

somber heath
#

Yeah, but it's going to get stupidly crowded if that happens.

#

That might be fine for managed events and things.

#

Where only a handful of people can talk while other people listen.

surreal wyvern
#

i dont have a good mic.

somber heath
#

I keep thinking of Mr Blue Sky.

#

"Hey, there, Mr Blue. I'm so glad to be with you..."

warped raft
#

hello everyone

somber heath
#

Hoy.

surreal wyvern
somber heath
#

Ha. Go figure.

somber heath
#

What is breakfast?

languid locust
#

hello opalmist

#

omg

languid locust
#

damnn gamingbuddist

#

woahh

#

the og's are still here

wind raptor
languid locust
#

hello chrisssssssssss

wind raptor
#

Hey @languid locust

somber heath
#

I may need reminding.

somber heath
#

Rings a bell.

wind raptor
#

I remember Op

languid locust
languid locust
wind raptor
#

Welcome back!

languid locust
#

for alt account even tho that was my first ever account on discord

languid locust
wind raptor
#

Well I'm glad it's all worked out now

#

How's the programming going?

languid locust
languid locust
#

wby?

wind raptor
# languid locust wby?

Really good. Just going to school now to get the piece of paper everyone wants so badly

somber heath
#

The United States Declaration of Independence?

languid locust
languid locust
wind raptor
somber heath
#

👋

whole bear
#

heyy

somber heath
#

Yahoy.

#

Be boring.

whole bear
#

which is effortless from you

somber heath
#

Well, I mean, if you're doing it properly, yeah.

whole bear
#

{

somber heath
#

{} curly braces
[] square brackets
() parentheses

whole bear
#

if ()
{
// code
}

if () {
// code
}

sour willow
#

beatiful

#

this is the reason why python syntax sucks

sour willow
#

although i would interprate the first one with c++ background

#

really couldn't care less

whole bear
sour willow
#

thats the stupidest thing i have ever heard

#

also they have "made" the standards

#

so really can't go against the all mighty gods

wind raptor
#

That's the style that C# uses

sour willow
wind raptor
#

Yeah

sour willow
#

vscode never formats it like that for me

#

let me checkk

#

oh ye

#

but like i don't really care

#

c# is the best language ngl (in language terms)

whole bear
#

then you need to see sharp

#

you are blind

round cedar
#

C hashtag

#

:V

sour willow
#

c# is just magnificent

sturdy panther
#

I saw this at work at some point

if (true)
    {
    exit()
    }
somber heath
#

HTML is a markup language which is distinct from a programming language.

sour willow
#

damn

#

i literally took the L soo hard

whole bear
#
  if (true)
{
}
``` thats how i do it
sour willow
#

its a skeloton language

sour willow
somber heath
#

It'd be like saying that Discord's markdown stuff is a programming language.

sour willow
#

discord is an text editor

#

however

whole bear
languid locust
#

lmao

sour willow
#

your the one saying random stuff ngl.....

#

and disagreeing with everyone..

#

its not a matter of sex, its a matter of saying bs and having the audacity to argue

#

@round cedar what langs do know?

#

ah nice

somber heath
#

So the youngest boomers would be ~58.

round cedar
#

damn

sour willow
#

starting C

#

or like

#

you know

round cedar
#

i know c

sour willow
#

scss >>>>

sour willow
#

i wanna learn C++ i only use platformio

#

so like not that advanced

nova prawn
#

@wind raptor and what about lass

sour willow
#

less

nova prawn
#

and tailwind

sour willow
#

less is a whole other thing

#

less is like scss

#

tailwind is like bootstrap

sleek otter
#

I need some help in python with some kind of questions I don't know how to do.

sour willow
#

PostCss is best NGL

#

i know facebook uses it

#

they are all transpilers @whole bear

#

not languages.

#

postcss

somber heath
sour willow
#

Postcss is transpiled css

#

...

#

PostCSS is a tool for transforming styles with JS plugins. These plugins can lint your CSS, support variables and mixins, transpile future CSS syntax, inline images, and more.

#

same as typescript

nova prawn
#

what about type scripts then

sour willow
sleek otter
sour willow
#

transpiled is like compile to another language

#

compile is like compile to machine code

languid locust
#

or maybe claim one of the help channels

round cedar
#

nah u made me enranged

#

:V

#

after u said that

#

no cap

sour willow
#

No

sour willow
#

It's factsss

#

I'll argue later

#

I have work

#

30-45 mins

whole bear
#

yeh you quite right but i used to think php is good too until i learnt bout lolcode

sour willow
#

I prob have more experience

#

Than all of u

whole bear
#

trust me its wayy better

sour willow
#

So ye

#

Don't argue

whole bear
#

you sound like 12 at most

round cedar
#

:V no cap

sour willow
#

I'm way more dominant

sour willow
#

Shut

#

I'm 14

round cedar
#

sounded like i could bully u tho

#

: )

sour willow
#

Shut

#

I'm way more dominant

round cedar
#

dominant in crying hehe :V

whole bear
#

bullying you shouldnt even count as disrespectful but whatever

round cedar
#

damnnnn

somber heath
#

@sleek otterDo you intend to show the questions to us in the next three minutes?

sour willow
#

Man

#

I'll argue later

whole bear
#

thats a good excuse for running short on words, lmk when you come up with something

sleek otter
wind raptor
#

Ok, take it down a notch all

nova prawn
#

@somber heath help in this question

#

plz

sour willow
#

I have piano practice

#

Shut up

#

I could see you lackin

#

Boii

somber heath
#

Is this asking for help without showing what you want help with and ask OpalMist about it day?

nova prawn
#

Given an array of integers nums, sort the array in ascending order and return it.

You must solve the problem without using any built-in functions in O(nlog(n)) time complexity and with the smallest space complexity possible.

#

exmp 1:

#

Input: nums = [5,2,3,1]
Output: [1,2,3,5]
Explanation: After sorting the array, the positions of some numbers are not changed (for example, 2 and 3), while the positions of other numbers are changed (for example, 1 and 5)

sour willow
#

eh

#

out of a turn of events

#

im back....

nova prawn
#

yeh

sour willow
#

sort it ...

#

wdym yeh

somber heath
#

!d list.sort

wise cargoBOT
#

sort(*, key=None, reverse=False)```
This method sorts the list in place, using only `<` comparisons between items. Exceptions are not suppressed - if any comparison operations fail, the entire sort operation will fail (and the list will likely be left in a partially modified state).

[`sort()`](https://docs.python.org/3/library/stdtypes.html#list.sort "list.sort") accepts two arguments that can only be passed by keyword ([keyword-only arguments](https://docs.python.org/3/glossary.html#keyword-only-parameter)):

*key* specifies a function of one argument that is used to extract a comparison key from each list element (for example, `key=str.lower`). The key corresponding to each item in the list is calculated once and then used for the entire sorting process. The default value of `None` means that list items are sorted directly without calculating a separate key value.
sour willow
#

just do a

#

python magic

#

sorted(arr)

somber heath
#

That violates the question specification.

#

Indeed, I'm not sure that list.sort is compliant, either.

nova prawn
#

@somber heath i want to do selection sort

somber heath
#

Depends on Python's implementation of Timsort and its time and space complexity.

sour willow
#

aha

#

i know what you mean

#

but like are we supposed to help

#

or give u the code

somber heath
#

I suppose the idea is that you use list.pop and list.insert and maybe list.append.

somber heath
#

I'm sure you can.

sour willow
#

without any bultin functions

#

but like i suck at explaining so let me grab some explanation online

#

and i'll send it for ya

somber heath
#

If the idea is to learn the algorithm, fine. Otherwise, I'm happy to be lazy and just use list.sort and be done.

sour willow
#

lazy >>>

#

also ends up being the best code

somber heath
#

C programmers.

nova prawn
#

c++ also

somber heath
#

Which is fine. So long as they don't do it in prod in Python unless there's a specific need for a custom sort algorithm for a given use case.

sour willow
#
selectionSort(array, size)
  repeat (size - 1) times
  set the first unsorted element as the minimum
  for each of the unsorted elements
    if element < currentMinimum
      set element as new minimum
  swap minimum with first unsorted position
end selectionSort
#

i tried to read this

#

but i didnt understand anything

#

SO ENJOY!

#

although i think it should be (size + 1)

#

the rest should be self explanitory

zenith radish
sour willow
nova prawn
#

O is it

#

@zenith radish i don't now about that

sour willow
#

eh how about this

#

i give u the c code

zenith radish
sour willow
#

na stupid idea

sour willow
#

the amount of syntax errors

#

you literally broke the compiler

sleek otter
#

I?

sour willow
sleek otter
sour willow
sleek otter
#

I missed my all classes bc I was sick so she told me to give it till 26th

sour willow
#

print(type(3102) 🤣 🤣

sleek otter
#

idk how to solve I need help

sour willow
#

and i don't know who wrote that

#

but thats completely wrong

somber heath
#

@zenith radishSorry, under what circumstances do we call you out?

sleek otter
sour willow
#

it took you 5 minutes to write that?....

sleek otter
#

ok

sour willow
#

did your "mam" write that?

#

if yes, i'll teach you

whole bear
#

okay now theres just one person in this vc who can covince us that php is the best language

wind raptor
sour willow
#

im helping people out

round cedar
#

:V

sour willow
#

sue me

wind raptor
somber heath
#

@sleek otterWhat I usually do for beginners is direct them to Corey Schafer's YouTube playlist for Python beginners.

#

Also check out this site.

#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

sour willow
#

idk how thats bullying

#

but OK

somber heath
#

@sleek otterI'd do a walkthrough, but I'm taking a break.

sour willow
#

maybe fix them

#

and then send them to a course

#

so atleast they know the basics?

somber heath
sour willow
#

i'd much prefer

#

to teach them that (() is not ok

#

and then tell them to see a course

#

since they will just copy and paste code

somber heath
#

I'm sorry. I want to go and eat.

#

If you would like to enlighten, by all means, the floor is yours.

sour willow
#

just saying copy and paste wont help ¯_(ツ)_/¯

#

@sleek ottermhm

#

back to that assignment

#

you know like basic python syntax and priting right?

sleek otter
#

I never did python.

sour willow
#

ah

#

that explain it

#

OK

sleek otter
#

I told u I was badly sick so I wasn't able to attend any class...

sour willow
#

just wanted to check if you have prior experience

sleek otter
#

nothing experienced 😭

sour willow
#

ok so you really have two options

#

Opal had included a few great courses right

#

but i feel like w3schools is way more interactive

#

and repetition is key for you

#

soo..

#
#

so your teacher does a lot of "printing"

#

and also does some type checking

#
#

@sleek otter so just check out these three links

#

i highly doubt from the thing you showed

#

your teacher has taught beyond these

#

if you have any questions just ping me or smth

knotty marlin
#

explain how does the sort thing work

sour willow
#

!d list.sort

wise cargoBOT
#

sort(*, key=None, reverse=False)```
This method sorts the list in place, using only `<` comparisons between items. Exceptions are not suppressed - if any comparison operations fail, the entire sort operation will fail (and the list will likely be left in a partially modified state).

[`sort()`](https://docs.python.org/3/library/stdtypes.html#list.sort "list.sort") accepts two arguments that can only be passed by keyword ([keyword-only arguments](https://docs.python.org/3/glossary.html#keyword-only-parameter)):

*key* specifies a function of one argument that is used to extract a comparison key from each list element (for example, `key=str.lower`). The key corresponding to each item in the list is calculated once and then used for the entire sorting process. The default value of `None` means that list items are sorted directly without calculating a separate key value.
knotty marlin
#

no no with the key=grade

sour willow
#

read

#
key specifies a function of one argument that is used to extract a comparison key from each list element (for example, key=str.lower). The key corresponding to each item in the list is calculated once and then used for the entire sorting process. The default value of None means that list items are sorted directly without calculating a separate key value.
knotty marlin
#

or more like just read the code and give me what you understand

#

without key it's noraml it sorts it alphabetically based on the first column of the tuple

sour willow
#

@fiery bone wasm

knotty marlin
#

but in order to sort it based on the 2nd one

#

he used this lambda function in this way which is what confused me

sour willow
#

do you even know what lamda does @knotty marlin

#

i think you are confusing

#

sveltekit is way better than react....

nova prawn
#

sveltekit is cheap copy version react

sour willow
nova prawn
#

i will never use it

knotty marlin
sour willow
nova prawn
sour willow
# knotty marlin Yes I know how a lambda works and it's not the problem here, the problem is how ...
nova prawn
#

react and next js is way way better than

#

sveltekit

sour willow
knotty marlin
#

Ryan you are not helping me, I can't read all of this, I just wished someone would explain how it worked, I miss Hemlock 😢

zenith radish
#

Hemlock is offline on weekends

#

Family man

knotty marlin
#

Yeah gotta take care of the fam

#

I kinda kept asking questions a lot and he's been super helpful

knotty marlin
#

tf

sour willow
#

i'll explain

#

this shows the differnece

knotty marlin
#

I give up I am just gonna rack my brain

#

I know how tuples work, and I know how lambda works ryan don't worry, or I think I do

sour willow
#

how big of a rush are u in though

#

that article explained it

candid parrot
#

nextjs is good for easy tasks

#

also got simpler routing

sour willow
# sour willow https://blog.finxter.com/wp-content/uploads/2020/03/key-scaled.jpg

You can see that in the first two examples, the list is sorted according to the first tuple value first. In the third example, the list is sorted according to the second tuple value first. You achieve this by defining a key function key=lambda x: x[1] that takes one list element x (a tuple) as an argument and transforms it into a comparable value x[1] (the second tuple value).

#

this is like the simplest term

#

if you mind read that

#

its just how they are sorted.

candid parrot
#

reactjs is nice

sour willow
#

so like in the third example if lambda x: x[1] was lambda x: x[0] it would be like the first example

#

because its sorting from the first tuple value

#

but lambda x: x[1] does it from the second

whole bear
#

i m so confused

sour willow
#

lambda x: x[3] does it from the third

knotty marlin
sour willow
knotty marlin
#

it's fine

sour willow
#

so like

#

does that help

knotty marlin
#

also do I really have to have key ?

#

couldn't I just put in the name of the lambda fct

sour willow
#

i think

#

so like instead of the names

#

you are sorting by the "F", "A", etc...

sour willow
#

so in theory

knotty marlin
#

oh I get it

#

it won't work

sour willow
#

"A" should be first , "F" being the last

#

and then if you want

#

you can reverse it

knotty marlin
#

Yeah

#

reverse=True

sour willow
#

yup

#

sorry took some time

#

😅

knotty marlin
#

Yeah it's fine, sorry for bothering you

sour willow
#

yes

#

and then

#

lambda x: x[2] will do the score

knotty marlin
#

yup

sour willow
#

i think that was it is

sour willow
#

im soo bad at explaining

#

🤣

#

and like

#

if u want

#

i literally copied everything

#

from this

knotty marlin
#

oh yeah Ryan one last question

sour willow
#

go on

knotty arch
#

I think most browsers use chromium

sour willow
#

and geckho

#

firefox

whole bear
#

@zenith radish

knotty marlin
#

when I use Students.sort(key=grade) how does the lambda function know that I am using Students list, does the sort function when given a function as key argument automatically give the lists being sorted to the key argument ?

sour willow
#

thats how it knows...

#

loll

knotty marlin
#

no the thing is , I am talking about the lambda

#

you see

sour willow
#

you actually have a really good point

#

i have no idea

#

Wtf

knotty marlin
#

the lambda is a function that needs input but who gives it that input, does it receive automatically

sour willow
#

i have never paid attention to that

#

so wait

#

what happens if you do

knotty marlin
#

hmmm if you don't know then I guess I m just gonna assume it gives the lists being sorted as argument inside the key function

knotty marlin
sour willow
#

i was like

#

if you do grade:grade... what happens, forget i said that

#

it was very stupid

knotty marlin
#

I mean it doesn't do anything right ?

#

different

#

since it's just a name

#

my question is what kind of functions can I put in the key

sour willow
#

ok lets like compile this our selfs

knotty marlin
#

to test what lambda or any fct receives

sour willow
#
#eh
def grade_function(grades):
    return grades[grades]

#Lambda function
lambda grades: grades[i]
#

so like

#

it just loops i assume

#

idk im actually like very confused

knotty marlin
#

they do the same thing

#

oh wait what

sour willow
#

and then

#

like

knotty marlin
#

wait what does the i do

sour willow
#

ok

#

i think i have an idea

sour willow
knotty marlin
#

@hardy cloud Cremation

knotty marlin
sour willow
#

ok man

#

i have no clue

#

lolll

knotty marlin
#

Crepe

sour willow
#
# Selection sort in Python


def selectionSort(array, size):
   
    for step in range(size):
        min_idx = step

        for i in range(step + 1, size):
         
            # to sort in descending order, change > to < in this line
            # select the minimum element in each loop
            if array[i] < array[min_idx]:
                min_idx = i
         
        # put min at the correct position
        (array[step], array[min_idx]) = (array[min_idx], array[step])


data = [-2, 45, 0, 11, -9]
size = len(data)
selectionSort(data, size)
print('Sorted Array in Ascending Order:')
print(data)
#

so like

#

what does the lamda do

knotty marlin
#

omg

#

oh the lambda

#

?

sour willow
#

i have no idea 👍

knotty marlin
#

no the problem wasn't with the lambda, the problem was with lambda receiving input somehow from list.sort()

#

lambda is simple really, for what I know it does what function does, if you can write it in one line, and it's good for something used for a short time and then thrown away

sour willow
#

i know

#

i know what it does

#

but i dont know what its doing

knotty marlin
#

yeah then whats confusing you

sour willow
#

how it gets the input

knotty marlin
#

oh

#

you see the : after it what it returns, and before is how many arguments you want to receive

sour willow
#

yes

#

but hot does it know

#

the students tuple is there

knotty marlin
#

well that is something the sort thing does

#

is what confused me

sour willow
#

same here

zenith radish
#
logger.log(code, "something went wrong") # 
######
# {
#    "timestamp": "6712347",
#    "message": "something went wrong",
#    code: 123,
# }
sour willow
#

thats the most worst way to log

knotty marlin
# sour willow same here

you know Ryan we need to put assume that the sort function gives any key argument that happens to be a function the list as an argument and we can just wait until someone who can give us the answer appears

#

I am gonna continue doing what I was doing

somber heath
zenith radish
#

if you want to later sort through the data using loki and grafana

#

or elk

sour willow
#

this

sour willow
zenith radish
#

uhuh and then when ingesting the logs you have to spend time parsing that out

#

and when you want to extend your logging schema you have to manipulate the ingestion parser as well

#

useless

sour willow
#

no

#

thats log4j

#

im pretty sure

#

they know what they are doing

zenith radish
#

that's used by ancient old people places that don't know what log visualization or querying is

#

like that's fine for tracebacks or monolithic applications

#

but when you have a microservice based architecture this falls apart

sour willow
#

haha

zenith radish
#

my project has 4 different programming languages that I want to have a single log format for that I can later query from something like grafana

sour willow
#

@zenith radish im not you know what limitations are

knotty marlin
#

@sour willow I have to fix my statement, the lambda takes not the student list but the tuples inside of the list??

sour willow
#

instead of living in your imaginary world

#

maybe think about corsts

zenith radish
#

corsts??

sour willow
zenith radish
#

there are no costs in a personal project

#

also if you choose to work at a java shop that's your choice

sour willow
#

who logs when making a personal project....

#

🤣

#

also eh one thing

worn flax
#

LP How much level of data structures is needed for landing on a decent jobs?

sour willow
#

log4j is a standard

#

really cant argue

#

agaisnt it

zenith radish
zenith radish
#

lmao

worn flax
#

Also what would please guide on how to prctice it

zenith radish
#

It's an ancient standard

#

No modern tech stack is based on that logging format

knotty marlin
#

hello Strk your name is like mine

worn flax
#

Microsoft is decent for sure and other FAANG

zenith radish
#

It's all json that gets queried from elasticsearch

zenith radish
#

MANGA companies are mainly looking for people that are interested in coding

#

Or can elsehow stand out from the crowd

worn flax
#

Any good resources on how to learn the basic concepts?

knotty arch
worn flax
#

And eventually moving on to problem solving.

zenith radish
#

None that I can suggest, try the resources channel

#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

worn flax
#

I guess that is the ultimate goal to solve a problem/

zenith radish
knotty arch
sweet lodge
zenith radish
#

And sure, I got asked a leetcode question

worn flax
#

@zenith radish How many years has it been in the industry? And also describe a time that sparked an interest in the programming.

zenith radish
worn flax
#

Awesome 🙂 👏

#

How's work in Microsoft? What are the daily tasks?

zenith radish
#

it's really nice, quite relaxed
daily tasks are like anywhere else I'd say 😄

#

It's just a programming job

somber heath
#

With swank.

worn flax
#

How was the interview process was it diffcult? Like what questions was it based on apart from DSA ofc.

zenith radish
#

One day of interviews, behavioural, oop, dsa and one more that I can't remember lol

#

then a call with my hiring manager

#

It was normal? Average difficulty I guess

knotty arch
worn flax
#

Discord

#

I guess lol

zenith radish
worn flax
#

Is it wfh currently?

zenith radish
#

Kinda

#

It's wfh but I have to live in estonia

worn flax
#

How to remember things while learning a programming language : syntaxes and libraries like sometime it feels like it's a finding a gem in the desert to optimize something and make it look perfect.

glad sandal
#

Hey @somber heath

#

How are you?

#

Im FatyCaty xd

#

Ye xd

sour willow
#

arduino server?

glad sandal
#

What are you up to?

#

ok

#

ye

#

Im Learning graphics programming

#

rn

#

ye

#

its really fun

#

but like also a bit hard

#

opengl

#

pyopengl

#

ye

#

vulkan also seems appealing but I think opengl is a good starting point

#

at least for what I am trying to achieve with graphics programming

zenith radish
#

message.sessionID = fsdfhifjsjdflf

glad sandal
#

/potato

somber heath
#

Flavour packet loss.

#

Cries in ramen.

glad sandal
#

Im on linux now

knotty arch
#

C++ will make any programmer feel dumb

glad sandal
#

nah

#

c++ is cool

#

but

#

a lot of stuff are simplified in other languages

knotty arch
glad sandal
#

cool = good

#

xd

knotty arch
#

I didn't say its bad😆

glad sandal
#

xd

#

ye

#

ik

knotty arch
#

I said its hard

glad sandal
#

yes

knotty arch
sour willow
glad sandal
#

Im having some issues rn

#

with audio

sour willow
#

what distro

#

arch?

glad sandal
#

nah

#

pop os

#

debian

#

oops

#

Ima go

#

homework and stuff to do

kindred timber
#

XD

zenith radish
sour willow
#

logging with json

sweet lodge
#

y

#

Lots of things use JSON logs

gentle flint
#

@zenith radish I'll join in 5 minutes

sweet lodge
#

Microsoft uses JSON for chunks of things across their entire stack
Various tools use JSON logs to parse data from so they don't have to try to deal with parsing structured text

sour willow
zenith radish
#

@sour willow

#

This is what I work on

#

every file is extended with .cc

#

Tf are you on about

gentle flint
#

TP-Link TL-WDR4900

zenith radish
#
{
  "time": "17/May/2015:08:05:24 +0000",
  "remote_ip": "31.22.86.126",
  "remote_user": "-",
  "request": "GET /downloads/product_1 HTTP/1.1",
  "response": 304,
  "bytes": 0,
  "referrer": "-",
  "agent": "Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.16)"
}```
#
    log.Debug()
        .Str("Scale", "833 cents")
        .Float64("Interval", 833.09)
        .Msg("Fibonacci is everywhere")```
#
 {"level":"debug","Scale":"833 cents","Interval":833.09,"time":1562212768,"message":"Fibonacci is everywhere"}```
zenith radish
#

also these are going to be loki labels anyway

sour willow
#

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

sour willow
#

@proud gull

sour willow
#

@woeful wyvern The SIM cards operating system (OS) is similarly written in Java Card. The OS is the first and most important SIM Applet. After compiling the code, you will end up with a . cap output file that can be loaded onto the SIM or carrier profile using commands detailed in the Global Platform Card specification.Tir 6, 1398 AP

#

@zenith radish log4j supports json formating btw

#

But the default format

#

Is far more superior

zenith radish
#

@sour willow you're just wrong

sour willow
#

I will agree

zenith radish
#

for elasticsearch it sure is

sour willow
#

Ah

#

In that case

#

Yes

#

In completely wrong

quasi condor
#

PimpedUpMonk#2832

wintry pier
#

!e

print(f"{2:06d}")
print(f"{2:6d}")
wise cargoBOT
#

@wintry pier :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 000002
002 |      2
indigo loom
#

??

warped raft
#

hello every body

#

how are you doing

#

why

#

yes

#

we can hear you

#

mission completed

#

communication

#

unclear

nova prawn
#

gin goinc

soft siren
#

alright thanks @somber heath

#

i'm trying to get help with ubuntu

#

are you any familiar with it?

#

alright, may I test my luck whether you can help or not? (would you agree to help in the first place?)

#

thanks, here is the problem : I just installed xubuntu on a vm, I've choosed the french AZERTY keyboard layout, usually on windows, when caps are locked, I can type numbers instead of &é"'(-è_, but I can't and I have to press shift instead

#

I hope my problem is well explained

#

Tried to, didn't work, actually, the cap lock in windows mimics shift lock, which is non existent in ubuntu, I didn't figure out how to do the same thing in ubuntu

#

Tried to as well, they posted a .patch file, I didn't know how to apply the patch file x)

#

and how do I do that?

#

Thanks for trying to help, I don't want to be a vampire question and drain you, i'll try to solve the problem on my own, thanks though!

#

I will do that, thanks OpalMist!

tepid elm
#

hey! @midnight agate

#

In the library rn so I cant speak

#

oh wait was it opal that said hey?

#

hey @somber heath !

#

I was listening to you speak about computer stuff the other day and it was super interesting @midnight agate

#

guys do any of you know what is wrong with this?

#

ahh okay

lavish rover
#

ls does not work on Windows

#

On Command Prompt, at least

#

Try dir

tepid elm
#

ohhhh okay thnks

#

that worked thnks!

amber raptor
#

Or use Powershell

tepid elm
#

im very new but im trying to specifically learn python

#

ill look into powershell thnks! @amber raptor

#

personally im starting from python

#

but I need to learn it for personal reasons

#

how long have you all been learning this stuff for? @amber raptor and everyone

molten pewter
#

🌞

#

SOLIET, SUN, Re

#

Kashar

#

👀 💕 🍣

#

我愛sushi

#

#

#

我愛日

#

👀 💕 🌞

#

👁️ ❤️ 🌞

#

wo ai re

#

HelloChinese, DuoLingo

molten pewter
solar fog
#

@molten pewter Your opinion is King

#

@whole bear youre reminding me of kim jong un with your advice on this😂

#

i mean guys i think kids have to figure it out for themselves

#

i had no real guidance

#

i turned out ok

#

@molten pewter the soul is Unique

#

you cant mold that

#

lmaoooooooooo

#

restriction dosent work, people do what they want to do

#

my parenting style is let them hit rock bottom, then they can only go up

#

@whole bear i didnt really have a parent like that, pretty much after 12 i wasnt really learning anymore or was getting any useable advice

whole bear
#

how long did it take people in here to learn python?

knotty marlin
#

can someone help, why is it only giving me 2 values

#

instead of one Adam and 3 not adams

somber heath
knotty marlin
#

the intent is for it to display all the names in the list which are not Adam as not adam

somber heath
#

It's not a list.

knotty marlin
#

I mean dictionary

somber heath
#

!e py print({"apple":1, "apple": 2})

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

{'apple': 2}
somber heath
#

Dictionary keys are unique as keys of that dictionary.

knotty marlin
#

okay but do you know what causes my problem

somber heath
#

I'm attempting to explain the mechanic of what seems to be the problem.

knotty marlin
#

well I am learning list comprehension and I didn't get the problem when I messed with values but when I did the same with the key it displayed only 2 (keys:values) instead all of them with those which are not adam as not adam

somber heath
#

The issue is that you're not working with a list.

#

You're working with a dictionary.

#

So if you have items that share keys, you lose all but one of those items.

knotty marlin
#

{'Adam':18 , 'not Adam':13 , 'not Adam':20 , 'not Adam':16}

#

this is what the output should've been

somber heath
#

Yes, you can't have that.

#

Not as a dictionary.

knotty marlin
#

so it can't call it if they all have the same key is that what you mean ?

somber heath
#

!e py print({'Adam':18, 'not Adam':13, 'not Adam':20, 'not Adam':16})

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

{'Adam': 18, 'not Adam': 16}
somber heath
#

Howdy, Ghost.

knotty marlin
#

well thank you Mist

somber heath
#

You could have it as a list of tuples...

#
[('Adam', 18), ('not Adam', 13), ('not Adam', 20), ('not Adam', 16)]```But eh.
#

Depending on what you're doing, that may not be all that useful.

#

You could get it to print out or have a string as if it were a dictionary, but it wouldn't be a proper dictionary.

knotty marlin
#

I see I see, i am just learning so thank you

warped raft
#

hello @somber heath

#

hello @distant violet

distant violet
#

Hi

#

so i can get help here?

somber heath
#

Much is possible.

warped raft
#

probably

somber heath
#

There's not a lot going on right now, so it's not the worst time to ask.

distant violet
somber heath
#

Perhaps your question is one nobody knows how to answer.

distant violet
#

shall I share my screen?

warped raft
#

you cannot

somber heath
#

Describe the problem you're having and we'll see if it's something we might be able to help with.

distant violet
#

k

#

import time
from tqdm import tqdm

import random

AMOUNT = 3000

uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
lowercase = uppercase.lower()
digits = "0123456789"

upper , lower, num = True, True, True

all = ""

if upper:
all += uppercase
if lower:
all += lowercase
if num:
all += digits

lenght = 8
lenght2 = 6

valid = True
id_number = ""

for i in range(AMOUNT):
valid = True
id_number = input("Enter ID Number: ")
email = id_number + "@scholastica.online"
password = "".join(random.sample(all, lenght))

authentication_code = "".join(random.sample(all, lenght2))
print("Authentication Code: ", authentication_code)
enter = input("Enter your authentication code to view email and password: ")
if enter != authentication_code:
    for w in tqdm(range(100),
        desc = "ACCESS DENIED",
        ascii = False,ncols=75):
        time.sleep(0.01)

elif enter == authentication_code:
    for y in tqdm(range(100),
        desc = "Loading...",
        ascii = False,ncols=75):
        time.sleep(0.01)

    print("Email: ", email)
    print("Password: ", password)
somber heath
#

Also, sometimes it's a good idea to try the help channels at different times of the day.

warped raft
#

hello @rugged root

distant violet
#

So i need help with the objectives

distant violet
#

i am newbie so yea

somber heath
#

What, among these, are you currently focused on?

distant violet
#

1,2,6

#

those

#

btw thats the output

#

mainly 6 no.

#

basically the question says is that

#

instead of 2011010151, if there was 2011000151

#

then it would be ommited as it is a srm student

#

"00"

somber heath
#

!e py v = "2011000151" a = v[:4] b = v[4:] print(a) print(b) print("00" in b)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 2011
002 | 000151
003 | True
distant violet
#

huh

somber heath
#

not in would also work.

#

!d slice

wise cargoBOT
#

class slice(stop)``````py

class slice(start, stop[, step])```
Return a [slice](https://docs.python.org/3/glossary.html#term-slice) object representing the set of indices specified by `range(start, stop, step)`. The *start* and *step* arguments default to `None`. Slice objects have read-only data attributes `start`, `stop`, and `step` which merely return the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. Slice objects are also generated when extended indexing syntax is used. For example: `a[start:stop:step]` or `a[start:stop, i]`. See [`itertools.islice()`](https://docs.python.org/3/library/itertools.html#itertools.islice "itertools.islice") for an alternate version that returns an iterator.
somber heath
#

!d in

wise cargoBOT
#
in

6.10.2. Membership test operations

The operators in and not in test for membership. x in s evaluates to True if x is a member of s, and False otherwise. x not in s returns the negation of x in s. All built-in sequences and set types support this as well as dictionary, for which in tests whether the dictionary has a given key. For container types such as list, tuple, set, frozenset, dict, or collections.deque, the expression x in y is equivalent to any(x is e or x == e for e in y).

For the string and bytes types, x in y is True if and only if x is a substring of y. An equivalent test is y.find(x) != -1. Empty strings are always considered to be a substring of any other string, so "" in "abc" will return True.

mild quartz
#

mmmmmm