#voice-chat-text-1

1 messages · Page 117 of 1

twilit leaf
#

We don't have proof that it works

#

that's why.... it might be wrong

#

algorithm will never halt

#

if there is some number for which collatz is not true

#

@cold trellis

#

I was joking!!!

#

It's funny!! watch it

#

what can I do to@fierce summit🙃

pseudo arch
#

@true valley can you do an all nighter in the library with me?

twilit leaf
#

what can I do to help you slay? @fierce summit !! and what are we slaying!

wet panther
#

can someone tell me whats wrong with this code please?

true valley
#
  File "c:\Users\furio\Documents\Code\Python\automate.py", line 18, in <module>
    user_input(user)
  File "c:\Users\furio\Documents\Code\Python\automate.py", line 12, in user_input
    collatz(input)
  File "c:\Users\furio\Documents\Code\Python\automate.py", line 2, in collatz
    if number % 2 == 0:
TypeError: unsupported operand type(s) for %: 'builtin_function_or_method' and 'int'
PS C:\Users\furio\Documents\Code\Python> 
twilit leaf
#

what's the error? @wet panther

wet panther
#

thats the error

twilit leaf
#

what's the input you are giving?

wet panther
#

but i already define that

wet panther
twilit leaf
#

show me that...

wet panther
#

random_number = random.randint(int(user_min_input), int(user_max_input))

twilit leaf
#

input!!

wet panther
#

user_min_input = input()
user_max_input = input()

twilit leaf
#

what are you giving?

#

value of that input

wet panther
#

oh

#

the max number and the min number for the range

#

the need to answer this

#

and then i switch the string to integer

twilit leaf
#

@true valley number = int(input())

wet panther
twilit leaf
#

😂 I was telling that to furyo

#

@fierce summit ctrl + c to halt the program 😂 😂 ... it's an infinite process

fierce summit
#

thanks ;>

twilit leaf
#

@true valley that's not how it works

#

@true valley it reaches infinity ... it's never infinity

misty sinew
#

SORRY TO INTERRUPT

wet panther
misty sinew
#

Division by zero makes NO SENSE at all Mathematically

twilit leaf
#

@true valley infinity is not a number!!

pseudo arch
#

@true valley nothing is forever pretty boy

misty sinew
#

What makes sense is taking (limits)
So when we say 1/0 is ♾️
What me mean is

wet panther
#

can someone can discard my mute?

twilit leaf
wet panther
#

im on mute

#

i dont know why

twilit leaf
#

you are in afk channel

#

you should join vc0 or vc1

#

and you need voice permissions

wet panther
#

steel on mute

twilit leaf
#

!voiceverfiy

coarse hearthBOT
#

Voice verification

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

pseudo arch
#

@true valley eastern time?

fierce summit
pseudo arch
#

@cold trellis she must make good chapatis

#

fuck programmer

twilit leaf
#

@cold trellis you are adding constraints... the subset is getting smaller

pseudo arch
#

@cold trellis so people who are asexual dont like food?

#

you dont value subji?

#

alo gobi

#

man reaper dosent eat indian food

#

only noodles

#

You said youre trying to pick a wife

#

and you said programmer...

#

🤣

#

😆

misty sinew
#

Actually @cold trellis , you sound more Afrikan like

pseudo arch
#

reaper you dont like food enough

#

youre crazy

#

i would eat punjabi food everyday if i could

#

nah

#

im just saying

#

some stuff must be valued

#

nah reaper i suck

#

i cant cook

#

nah takeout is terrible for your health

#

id rather die

#

noodle

#

i like to go to the sikh temple

#

to get langar

#

i will never deprive myself

#

thats not in my genes

#

but its not buffet food

#

its reallllll food

#

cooked in big ass pots

#

reaper youre crazy

#

i better not see your ass in amritsar

#

indian ladies are good cooks

#

they have that cook game on lock

twilit leaf
#

@true valley how do you define asia?

pseudo arch
#

😆

#

im hungry

#

im going to go make some food

#

well not make

#

but im going to grab something

twilit leaf
#

Russia is too big to be one culture

cold trellis
#

Eurasia () is the largest continental area on Earth, comprising all of Europe and Asia. Primarily in the Northern and Eastern Hemispheres, it spans from the British Isles and the Iberian Peninsula in the west to the Japanese archipelago in the east. The continental landmass is bordered by the Atlantic Ocean and Africa to the west, the Pacific Oc...

pseudo arch
#

@fierce summit if i ate pastries would you look down on me?

#

its unhealthy man😆

#

because man

#

im fucking my body up

fierce summit
#

more to love bb

twilit leaf
#

while true; do clear; python3 '~/Desktop/test/lambda.py'; done @crystal aurora taught me this!! @cold trellis

#

yeah

#

got you..

pseudo arch
#

@cold trellis can you make me an audiobook?

twilit leaf
#

but what don't you use bash... @cold trellis ... easier to switch around with devices

#

yeah.. bash scripting suck...

#

I usually just use python, instead of bash for scripting

#

@cold trellis

#

okay

#

try bat @cold trellis it looks nice

#

cat alternative

pseudo arch
#

@fierce summit dramatic man

#

@cold trellis youre a good teacher

coarse hearthBOT
#

@nimble axle :white_check_mark: Your eval job has completed with return code 0.

You need magic powers
pseudo arch
#

are you serious

twilit leaf
#

@fierce summit statement is declaration

#

yeah

#

+= is addition to itself @fierce summit

#

concat is adding any two strings

#

concat is an operation that takes two string and gives new string @fierce summit

#

because we use numbers for integers literals @fierce summit

pseudo arch
#

its not me @fierce summit

#

its @twilit leaf

#

🤣

twilit leaf
#

@cold trellis JAVA!!!!!! isn't it a strongly typed lang

#

GOD

#

Another reason... why I don't like java @cold trellis

#

!e

print(True + True)
coarse hearthBOT
#

@twilit leaf :white_check_mark: Your eval job has completed with return code 0.

2
twilit leaf
#

@cold trellis

#

Bool is a wrapper around int

#

yeah

#

!e

print( 9000 == True)
coarse hearthBOT
#

@twilit leaf :white_check_mark: Your eval job has completed with return code 0.

False
twilit leaf
#

@cold trellis

#

@cold trellis I don't know why... decimals are very slow... I tried

#

math.isclose

#

@cold trellis we can write a rational numbers class

#

I always wanted to write that... I'll tommorow

#

sure

#

@fierce summit operators means ... it takes two bool and gives bool

#

Bye guys... Gotta Sleep

fierce summit
#

night bb

random minnow
#

JuanAcademy

fierce summit
#

ty noodle

cold trellis
#

its basically a version of the function where some argument is already given

halcyon notch
runic knoll
#

sorry can, I interupt you guys for a bit?

raw wren
charred creek
true valley
#

80–90% vaccine efficacy

pine jewel
#

is nobody talking? lol

azure geyser
#

Hi how are you ?

misty sinew
random minnow
#

@high scarab can you get @misty sinew streaming perms

high scarab
#

!stream 95175136319115264

coarse hearthBOT
#

✅ @misty sinew can now stream until <t:1648676659:f>.

high scarab
pale pivot
high scarab
#

I might be back later, but gotta take care of the dogs

pale pivot
#

float func(int a, int b, int c)

#
int f1(int a, int b) { ... }
int f2(int a) { ... }


int some_func(callable f) {
  return f(5);
}

int main() {
  if (some_user_input == 1) {
    return some_func(f1);
  } else {
    return some_func(f2);
  }
}
#

!paste

coarse hearthBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

pale pivot
steep fiber
#

If you're wondering, "Βέστερ" is "Vester" written with Greek letters

pale pivot
#

os.system("say nom")

pale pivot
sly rivet
#

my friend said he needed help

stuck bluff
#

!voice @molten niche

coarse hearthBOT
#

Voice verification

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

hearty heath
#

Ooh, is this Co-Pilot?

high scarab
#

.color rgb 255 255 255

ocean orbitBOT
#
White

Color information for RGB (255, 255, 255).

RGB

(255, 255, 255)

HSV

(0, 0, 100)

HSL

(0, 0, 100)

CMYK

(0, 0, 0, 0)

Hex

#FFFFFF

Name

White

hearty heath
#

An AI that makes AIs 👀

#

Start typing def min_value 🤔

#

And it might auto-complete with minimax search.

high scarab
#

class Copilot()

#

Just had power blip

hearty heath
#

If you nudge copilot in the right direction, it works pretty well.

steep fiber
hearty heath
#

That was a quick 'this' 👀

#

It is quite late

#

Mhm

pale pivot
hearty heath
#

Ooh yeah send it 👍

#

Oh cool!

clever cedar
#

@pale pivot it says I have to be in the server for 3 days

pale pivot
#

i dont control that

#

im not an admin

clever cedar
#

can I priv vc you?

pale pivot
#

no, please don't call me privately

clever cedar
#

ok

pale pivot
#

until you get voice permissions you can use the text channels

clever cedar
#

ok!

hearty heath
#

Dock, Vester 😄

high scarab
#

Powers gone, gn all

hearty heath
#

It's "artisan"

hearty heath
#

That is very cool.

brittle kraken
#

no we are here

hearty heath
#

Erm, I'm heading off too, cya 👋

brittle kraken
#

you want to teleport the snake to the opposite side when moving through wall right

#

okay

#

cool

analog cypress
#

hi

misty sinew
#

Hi

hidden cliff
umbral rose
#

!e

my_list = [3, 2, 6, 9, 54, 7, 1, 8, 0, 11, 4, 5, 10]
odd_index_list, odd_list = [], []

for i, num in enumerate(my_list):
    if num % 2 == 0:
        continue
    odd_index_list.append(i)
    odd_list.append(num)

odd_list.sort()

for num in odd_index_list:
    my_list[num] = odd_list.pop(0)

print(my_list)
coarse hearthBOT
#

@umbral rose :white_check_mark: Your eval job has completed with return code 0.

[1, 2, 6, 3, 54, 5, 7, 8, 0, 9, 4, 11, 10]
lime badger
#

Hey Chris!!

umbral rose
#

Hey

lime badger
#

Good, how about you?

trim oar
#
    odd_n = sorted([i for i in n if int(i)%2==1])
    n2=[]
    x=0
    for i in n:
        if i == 0 :
            n2.append(i)
        elif i%2==0:
            n2.append(i)
        elif i%2==1:
            n2.append(odd_n[x])
            x += 1
    return n2

u_input = [1,9,8,6,5,4,7,3,1,2,6,0]
print(sort_array(u_input))
lime badger
#

Wanna teachme some stuff?

#

Can you help me and teach me nested loops?

#

yea if you dont mind?

#

Okie....

#

How long do you know?

#

Ok... i will do my project rn ig...

#

np

lime badger
#

oh im back

#

hello?

#

hey whats up

#

Im good

#

ohrip

#

are u a dad?

#

Or what is it

#

Oh really

#

omg

#

how old are they

#

must be great

#

omg

#

I want kids so badly

#

😭

#

Do you work from home?

#

Where u wokr if u dont mind me asking?

#

oh you do?

#

Oh thats great....

#

Really?

#

Like what programs?

#

Ohh ok...

#

Whats it called?

#

I might check it out?

#

Whats that

#

i have no clue

#

😂

#

lol

#

okok

#

Oh...

#

Makes sense

#

How much does it cost?

#

hmm makes u quite a bit?

#

thats good

#

passive doing nothing

#

yea thats good

#

and u made it for free

#

so all 100% profits?

#

thats good.

#

what does it do?

#

Ohhh

#

Thats sick

#

Do you work for any programming company?

#

Thats cool from the game it self?

#

thats nice

#

Do you work for any programming companies at the moment or want to get any?

#

like where?

#

Anywhere?

#

Whats stopping you though?

#

jw

#

really?

#

then

#

what do i do

#

;-;

#

I am trying to major in computer science

#

one of my fears is not getting ajob

#

Hey opal!

#

So did you wanna teach me nested loops Chris?

#

Thanks, let me know when you are free im listening

#

just teaching it

#

idk

#

;-;

winter furnace
#

hey

lime badger
#

can u test me i feel like imma fail it lol.

#

are u gonna share ur screen jw?

umbral rose
#
my_list = ["Hello!", "This", "is", "a", "test"]
winter furnace
lime badger
#

So just print them out?

#

Without the brackets?

#

and stuff?

#

Ok, in a line or seperate?

#

oh okok

#

yea one second

#

nah

#

ill doe each

#

one seocnd

#

leme install vs code first

#

lol

#

I kinda deleted it by mistake lol.

#

give me a secnod

#

idk so i got a new laptop and im switching laptops constantly cause my laptop broke

#

:-;

#

so now im getting myt laptop

#

so now i have to do it 3 more times

#

its all over the place

#

almost done

#

what are the best extension for vscode for python?

winter furnace
#

windows key, cmd, enter, "python", ... 😉

lime badger
#

wyat it do?

winter furnace
#

yeah pycharm is the way

#

hey I'm just wondering how do you guys deal with threading and async in python?

#

and generally performance

lime badger
#

chris

#

i got a question

#

its kinda dumb...

winter furnace
#

go ahead

lime badger
#

nvm i think i got it

#

lol

#

Ok im done chris

#

where do i put it

#

jhere?

#

This is for each list new line
!e

print(*my_list, sep='\n')```
#

!e

print(*my_list, sep='\n')```
coarse hearthBOT
#

@lime badger :white_check_mark: Your eval job has completed with return code 0.

001 | Hello!
002 | This
003 | is
004 | a
005 | test
winter furnace
#

also I tried to use something like pygame and it looks like it can't run on an secondary thread because it's not thread safe...

lime badger
#

This is for one line

#
print(*my_list, sep=" ")```
#

oohh

#

rip

#

;-;

#

oh yea

#

lol

#

uhhh

#

hwo do i do that

#

I dont know that...

winter furnace
#

yeah

lime badger
#

!e

print(*my_list, sep=" ")```
coarse hearthBOT
#

@lime badger :white_check_mark: Your eval job has completed with return code 0.

Hello! This is a test
lime badger
#

Bam

#

can u just showme loops and teach me loops first

#

then we will come back to the same question?

#

its unpacking variable

#

the astrix

#

Yea ort that

#

!e

print(*my_list, sep=", ")```
coarse hearthBOT
#

@lime badger :white_check_mark: Your eval job has completed with return code 0.

Hello!, This, is, a, test
winter furnace
#

ight it was nice hopping on gtg

lime badger
#

I found about this like in the morning when i was doing research lol

#

So i know that it unpacks the vairable and prints it

#

🙂

stuck bluff
#

!e py print("a", "b", "c") print(*"abc")

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your eval job has completed with return code 0.

001 | a b c
002 | a b c
lime badger
#

also, chris can u show me and teach loops to me first then talk about the question?

#

If you dont mind?

#

no worriesd im learning too

#

we can join another call

#

if ytou wnat?

#

uhhh

#

for loop?

#

cause it came to my mind first

#

so like its used for lists

#

would you use
for i in range() stuff right

#

but idk about a list?

#

whos talking

#

im so lost ;-;

#

meaning?

#

wdym

#

how would you do it to an list then?

umbral rose
#

!e

for character in "This is sparta!":
    print(character)
coarse hearthBOT
lime badger
#

ohhh

stuck bluff
#

!e py for v in 9001: #Nope!: ...

coarse hearthBOT
#

@stuck bluff :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | TypeError: 'int' object is not iterable
lime badger
#

so like how would you make a list into a thing that outputs to each line?

#

its kinda confusing me

#

iterable meaing?

#

Oh i think i got

stuck bluff
#
for letter in "I am the iterable":
    ...```
lime badger
#

it

#

one second

#

wait

#

Chris i got the question u said for each line but im not sure how to do it in one line

stuck bluff
#

Sets, lists, strings, dictionaries, tuples, ranges and a number of other things are iterable.

lime badger
#

!e


for word in my_list:
    print (word)```
coarse hearthBOT
#

@lime badger :white_check_mark: Your eval job has completed with return code 0.

001 | Hello!
002 | This
003 | is
004 | a
005 | test
lime badger
#

Cause you said?

#

lol

#

hoiw would you do it in one line tho

#

ya u did

#

lol

#

yea but how would you?

#

for this?

#

for a loop how do you make the thing print once

#

only

#

not like 1000 times

#

yea im doing it but how do i make it not repeat 1000 times

#

wdym

#

what

#

yea?

#

Ya, im asking

#

That, how do i make it in one line cause a for loop keeps going

#

so itsnot stpooing

#

!e


for word in my_list:
    print (*my_list, sep=', ')
coarse hearthBOT
#

@lime badger :white_check_mark: Your eval job has completed with return code 0.

001 | Hello!, This, is, a, test
002 | Hello!, This, is, a, test
003 | Hello!, This, is, a, test
004 | Hello!, This, is, a, test
005 | Hello!, This, is, a, test
lime badger
#

Look it works

#

but then....

#

ykykkyk

#

that

#

i think its wrong

#

oh.

#

ummm

stuck bluff
#

!d print

coarse hearthBOT
#

print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)```
Print *objects* to the text stream *file*, separated by *sep* and followed by *end*. *sep*, *end*, *file*, and *flush*, if present, must be given as keyword arguments.

All non-keyword arguments are converted to strings like [`str()`](https://docs.python.org/3/library/stdtypes.html#str "str") does and written to the stream, separated by *sep* and followed by *end*. Both *sep* and *end* must be strings; they can also be `None`, which means to use the default values. If no *objects* are given, [`print()`](https://docs.python.org/3/library/functions.html#print "print") will just write *end*.

The *file* argument must be an object with a `write(string)` method; if it is not present or `None`, [`sys.stdout`](https://docs.python.org/3/library/sys.html#sys.stdout "sys.stdout") will be used. Since printed arguments are converted to text strings, [`print()`](https://docs.python.org/3/library/functions.html#print "print") cannot be used with binary mode file objects. For these, use `file.write(...)` instead.
lime badger
#

so use end?

#

oik ill see

#

nope didnt work for some reason

#

ohhh

#

oopd

#

forgot

#

mbmbmbm

#

wait

#

wdym

#

i am unpacking it

stuck bluff
#

!e py print("Hello", end=" ") print("World")

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your eval job has completed with return code 0.

Hello World
lime badger
#

wat

#

oh...

#

then how

#

what

#

word?

#

my brain

#

for word in my_list:
    print (my_list, sep=', ', end='')
#

this is brutally wrong

#

look

#

yea iknoiw

#

;-;

#

😭

#

idk

#

it works

#

it repeats

#

hmmmm

#

what does end= meann

#

like i dont get that

#

so for this case do I add another line of print?

stuck bluff
#

!e py print("Hello", end="*") print("World")

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your eval job has completed with return code 0.

Hello*World
river hedge
stuck bluff
#

!e py print("Hello", end="\n") #Default behavior print("World")

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your eval job has completed with return code 0.

001 | Hello
002 | World
lime badger
#

!e


for word in my_list:
    print (word, end=' ')```
coarse hearthBOT
#

@lime badger :white_check_mark: Your eval job has completed with return code 0.

Hello! This is a test 
lime badger
#

tat?

#

BAM,

#

YAAYAY

trim oar
lime badger
#

Wait so u dont use sep=?

#

u using toomany complex words

#

;-;

stuck bluff
#

!e py print("a", "b", "c", sep="*")

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your eval job has completed with return code 0.

a*b*c
lime badger
#

16 but i understand it but idk

#

i just need elaboration

#

but it looks like end= does the same tho

#

!e

print("a", "b", "c", end="*")```
coarse hearthBOT
#

@lime badger :white_check_mark: Your eval job has completed with return code 0.

a b c*
lime badger
#

ohhh

#

so it puts it at the end?

stuck bluff
#
"a*b*c\n"```
lime badger
#

oh okok

#

chris u got anytrhing else

#

for practice to try ouit?

#

ty opal 🙂

#

oh no

umbral rose
#
*
**
***
****
lime badger
#

o9h no

#

me and hard codingf?

#

u crazy?

#

lol

#

can i use prints lol.

stuck bluff
#
func(positional_argument, positional_argument, positional_argument, keyword_parameter=keyword_argument, keyword_parameter=keyword_argument)```
lime badger
#

ok ill try

#

uhh

umbral rose
#

!e

print("hello " * 5)
coarse hearthBOT
#

@umbral rose :white_check_mark: Your eval job has completed with return code 0.

hello hello hello hello hello 
lime badger
#

hmmm

#

ill try

#

uhh

#

so for i in rnage

#

if i do that

#

what does the i mena?

#

like if i have for i in range()

#

what is i

#

the i

#

yea

#

its range

#

🙂

#

0, 11

#

I think

#

wat>

#

why?

#

oh yea

#

nvm

#

yeaaa i remember

#

like it always starts from 0 forpython

#

0, 9

stuck bluff
#

!e py print(*range(10)) #Ten values, starting from 0. So 0-9.

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your eval job has completed with return code 0.

0 1 2 3 4 5 6 7 8 9
lime badger
#

so 9?

#

Like opal showed

stuck bluff
#
range(stop)
range(start, stop)
range(start, stop, step)```
lime badger
#

wait what does start do again sorry

stuck bluff
#

!e py print(*range(5, 11))

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your eval job has completed with return code 0.

5 6 7 8 9 10
lime badger
#

why do u put *range?

#

to unpack the vairables?

stuck bluff
#

Yes.

lime badger
#

ok ty

#

and the i?

#

what does the i do

#

so for this question

#

I will do for i in range

#

I am gogin to ask user for an input

#

oh....

#

so immma make 2 for i in range

stuck bluff
#

!e py for letter in "abc": print(letter)

#Equivalent to
letter = "a"
print(letter)
letter = "b"
print(letter)
letter = "c"
print(letter)```
coarse hearthBOT
#

@stuck bluff :white_check_mark: Your eval job has completed with return code 0.

001 | a
002 | b
003 | c
004 | a
005 | b
006 | c
stuck bluff
#

A for loop is a repeated assignment operation to a variable.

lime badger
#

I will be back in 5 minutes...

stuck bluff
#

It takes each thing in "abc" and assigns it per iteration to letter.

umbral rose
#

!voice

coarse hearthBOT
#

Voice verification

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

umbral rose
#

@shadow flume

#

!e

from random import shuffle

def best_sort(lst):
    def is_sorted(lst):
        for i in range(len(lst) - 1):
            if lst[i] > lst[i + 1]:
                return False
        return True

    while not is_sorted(lst):
        shuffle(lst)
    return lst

print(best_sort([2, 3, 4, 5, 6, 1, 2, 1, 2, 7]))
coarse hearthBOT
#

@umbral rose :white_check_mark: Your eval job has completed with return code 0.

[1, 1, 2, 2, 2, 3, 4, 5, 6, 7]
lime badger
#

I have to guys but i will be back in a hour or two if you guys will still be here?

#

wat

#

😭

#

noooo not chrisyy

#

Ok.... I will be back

#

lol.

lime badger
#

hey chris?

#

You therre?

#

@umbral rose

umbral rose
#

Yes

#

What's up?

#

@lime badger

lime badger
#

nothingf

#

Just wanted to let you know im going to go sleep

umbral rose
#

Nice

lime badger
#

Because, I got school tomorrow and I am busy

#

Sorry about that

umbral rose
#

I'm getting there soon

lime badger
#

I was gonnajoin

umbral rose
#

Cheers

#

Work on that problem

lime badger
#

But now my parents saing to sleep

#

Thanks, I will talk to you and OpalMist Soon, see ya guys!

umbral rose
#

Cheers

sly rivet
#

i need help please

#

i made this rock paper scissors game, and i dont understand why it shows my for loop first

misty sinew
#

from random import shuffle

def best_sort(lst):
def is_sorted(lst):
for i in range(len(lst) - 1):
if lst[i] > lst[i + 1]:
return False
return True

while not is_sorted(lst):
    shuffle(lst)
return lst

print(best_sort([2, 3, 4, 5, 6, 1, 2, 1, 2, 7]))

#

ie

#

from random import shuffle

def best_sort(lst):
def is_sorted(lst):
for i in range(len(lst) - 1):
if lst[i] > lst[i + 1]:
return False
return True

while not is_sorted(lst):
    shuffle(lst)
return lst

print(best_sort([2, 3, 4, 5, 6, 1, 2, 1, 2, 7]))

lime badger
#

@umbral rose

number_of_rows = int(input("Enter A Number of Rows You Want To Insert: "))

for i in range(0, number_of_rows):
    for j in range(0, i + 1):
        
        print("*", end="")
    print()```
#

I did some research and came up with this for The pytimad question....

#

I just need a little clarification on some parts of this code and it should all be good...

#

Like why the end="" was used. and what the for j in range(0, i + 1) actually did

misty sinew
#

hello how are u doing

spare patrol
#

hello

#

@misty sinew

#

why did you go

misty sinew
#

???????

neon folio
#

hey, anyone here speak leet

hardy trail
#

@rotund token

sleek blaze
#

!e
'''from random import shuffle

def best_sort(lst):
def is_sorted(lst):
for i in range(len(lst) - 1):
if lst[i] > lst[i + 1]:
return False
return True

while not is_sorted(lst):
    shuffle(lst)
return lst

print(best_sort([2, 3, 4, 5, 6, 1, 2, 1, 2, 7]))'''

coarse hearthBOT
#

@sleek blaze :warning: Your eval job has completed with return code 0.

[No output]
sleek blaze
#

!e

from random import shuffle

def best_sort(lst):
    def is_sorted(lst):
        for i in range(len(lst) - 1):
            if lst[i] > lst[i + 1]:
                return False
        return True

    while not is_sorted(lst):
        shuffle(lst)
    return lst

print(best_sort([2, 3, 4, 5, 6, 1, 2, 1, 2, 7]))```
coarse hearthBOT
#

@sleek blaze :white_check_mark: Your eval job has completed with return code 0.

[1, 1, 2, 2, 2, 3, 4, 5, 6, 7]
sleek blaze
#

!e print("hello world!") nice = input("enter name")

coarse hearthBOT
#

@sleek blaze :x: Your eval job has completed with return code 1.

001 | hello world!
002 | enter nameTraceback (most recent call last):
003 |   File "<string>", line 2, in <module>
004 | EOFError: EOF when reading a line
supple quarry
#

Hey guys Can anyone help me identify the number of operands in a source code by hand?
public class Deneme {
public int x;
public int y;

public Deneme(int x, int y) {
    this.x = x;
    this.y = y;
}

public int x2y2() {
    return x * x + y * y;
}

public double Squareroot() {
    return Math.sqrt((double) x2y2());
}

public double log2() {
    ++y;
    return Math.log(((double) x) / y);
}

@Override
public boolean equals(Object obj) {
    if (obj != null && obj instanceof Deneme) {
        return ((Deneme) obj).x == this.x && ((Deneme) obj).y == this.y;
    }
    return false;
}

}

open scarab
#

could anyone with django and htmx experience please help
voice chat!!

coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied mute to @dusty juniper until <t:1648981499:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

misty sinew
#

I'm going to start a new project on a trading Binance bot, anyone wanna work together?

ruby owl
#

@cold trellis

#

Yes

#

I'm trying to find the channel

#

I can't speak btw

#

Says I ain't got perms

cold trellis
#

!voice

coarse hearthBOT
#

Voice verification

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

ruby owl
#

My help channel

#

I claimed one with my question

#

Oh ok

gaunt wraith
#

yo

#

can anyone watch my stream rq and see why my while loop isnt closing bruh

random minnow
rain lance
#

import xlsxwriter

#

import pandas

#

for row in sheet.iter_rows(max_row=6):
for cell in row:
print(cell.value, end=" ")
print()

#

'my_excel.xlsx'

#

pip install .............

unique raptor
#

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

rain lance
#

what a heart breaker right there

raven orbit
#

A sextant is a doubly reflecting navigation instrument that measures the angular distance between two visible objects. The primary use of a sextant is to measure the angle between an astronomical object and the horizon for the purposes of celestial navigation.
The estimation of this angle, the altitude, is known as sighting or shooting the obje...

rain lance
#

fluke

raven orbit
unique raptor
rigid oyster
#

@pale pivot do u have a min

pale pivot
#

whats up?

rigid oyster
#

im pretty new to python coding and I had a question if you're down to help
(if not its alr i kinda sort of can figure it out)

pale pivot
#

did you make a help channel?

rigid oyster
#

yeah

pale pivot
#

let me look

hearty heath
#

Hello 👋

pale pivot
peak frigate
#

hallo

pale pivot
#

see ya

frank yarrow
#

see you ^^

pale pivot
#

@rain lance

pale pivot
#

pypy

misty sinew
pale pivot
#

hello

misty sinew
#

Do you know python

halcyon notch
#

We know spanish?

#

What is this python?

misty sinew
#

A snake

#

That can help you run you machine on you finger tips almost

brittle abyss
#

!d dict.values

coarse hearthBOT
#

values()```
Return a new view of the dictionary’s values. See the [documentation of view objects](https://docs.python.org/3/library/stdtypes.html#dict-views).

An equality comparison between one `dict.values()` view and another will always return `False`. This also applies when comparing `dict.values()` to itself:

```py
>>> d = {'a': 1}
>>> d.values() == d.values()
False
halcyon notch
#

crashed my computer LOL

brittle abyss
twilit leaf
#

@halcyon notch That guy/gal who implemented it wanted it

misty wolf
#

!pastebin

coarse hearthBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

misty wolf
#

#1
        out_path = OUT_IMAGE_DIR / "test" / "raw-image" / f"{i}.png"
        print(f"Saving raw-image: {out_path}")
        os.makedirs(Path(out_path).parent, exist_ok=True)
        torchvision.io.write_png(filename=str(out_path), input=pixel_array[0, :, :, 1024:4000].to(torch.uint8), compression_level=7)

        #2
        y_pred_raw = image_logit_overlay_alpha(logits=y_pred, images=None, cols=keypoint_cols)
        y_pred_raw = y_pred_raw.mul_(255).type(torch.uint8).cpu()

        out_path = OUT_IMAGE_DIR / "test" / "raw" / f"{i}.png"
        print(f"Saving raw: {out_path}")
        os.makedirs(Path(out_path).parent, exist_ok=True)
        torchvision.io.write_png(filename=str(out_path), input=y_pred_raw[0, ...], compression_level=7)

        del y_pred_raw

torpid shale
#

biriyani

worthy stump
#

@torpid shale Yo

torpid shale
#

sup, indian ?

worthy stump
#

Yup

torpid shale
#

hyderabadi ?

worthy stump
#

yes

torpid shale
#

bye teluguvadu

worthy stump
#

avunu

torpid shale
#

how old are you vaadu ?

worthy stump
#

guess it

torpid shale
#

25

worthy stump
#
from PIL import Image

with Image.open("hopper.jpg") as im:

    # The crop method from the Image module takes four coordinates as input.
    # The right can also be represented as (left+width)
    # and lower can be represented as (upper+height).
    (left, upper, right, lower) = (20, 20, 100, 100)

    # Here the image "im" is cropped and assigned to new variable im_crop
    im_crop = im.crop((left, upper, right, lower))
torpid shale
#

yh new here

#

need to send 50 i guess

#

telugu nahi matladu

#

😂

mild flume
#

Well the days here is what's going to be holding you back

#

(just taking a glance)

torpid shale
#

yh

#

im here to get help from people 😅

mild flume
#

For sure in the right place then

worthy stump
#

@mild flume i got this dude

#
import cv2
vidcap = cv2.VideoCapture('big_buck_bunny_720p_5mb.mp4')
success,image = vidcap.read()
count = 0
while success:
  cv2.imwrite("frame%d.jpg" % count, image)     # save frame as JPEG file      
  success,image = vidcap.read()
  print('Read a new frame: ', success)
  count += 1
torpid shale
#

bye gtg vaadu

worthy stump
#

ok

torpid shale
#

f-req

worthy stump
#

done

torpid shale
#

🤟

misty wolf
#
temp = image_t.numpy()
    temp = temp[0, 0, ...]
    plt.imshow(temp)
    plt.plot(xs, ys, "r-")
mild flume
#

!stream 906320410382061599

coarse hearthBOT
#

✅ @misty wolf can now stream until <t:1649274484:f>.

mild flume
#

They're fun

#

!paste

coarse hearthBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

misty wolf
#

pastebin!

#

!pastebin

coarse hearthBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

misty wolf
golden marsh
#

!resources

coarse hearthBOT
#
Resources

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

golden marsh
#

@misty wolf

misty wolf
#

oh hey

halcyon notch
drowsy juniper
#

Suggestion me some good areas of studying in IT... besides AL, ML, cybersecurity, web/mobile development

halcyon notch
#

Wdym areas of studying?

drowsy juniper
#

certain domain

halcyon notch
#

If you're going to college do compsci if you're self studying just do whatever is interesting to you

drowsy juniper
#

not for college

halcyon notch
#

so just do what's interesting to you

drowsy juniper
#

Honestly.. I am totally tired from web/mobile development.
AL ML I am pretty bad at math and netowrking.
So no cyber security too..
I wanna what are theres like these.. so I gonna research those areas and focus on something else

pale pivot
#

You can do operating systems, compilers, graphics, networking, devops

halcyon notch
#

^

#

Make an emulator

#

;^)

drowsy juniper
#

emulator .. ***

pale pivot
#
"explorer.compactFolders": true
violet venture
#

Ah

#

So like GitHub

#

@tight cipher

#

@tight cipher deployments list

#

Damn

mild flume
halcyon notch
mild flume
pale pivot
#

@cold trellis dm me if griff joins, I'm gonna go watch Billions

quasi widget
#

Ipso
Buzz
Ruby
In order

violet venture
#

The bird is 38?

#

How long to birds live?

#

wat

#

70 years?

raven orbit
#

sure

wary fable
#

TSA Pre-Check Let's goooooooo

violet venture
#

Damn
That thing is going to outlive me

mild flume
raven orbit
wary fable
#

I use this

cold trellis
#

my glasses are the same and i've been wearing these for 10 years

#

never noticed o- o

mild flume
mild flume
#

@elder wraith Do you remember the conversation we were having about the Excel issues some of our folks were having here? Do you remember what processor or feature you said Windows didn't support?

elder wraith
mild flume
#

Right right, thanks

elder wraith
#

if you run the processor through intel ARK and see this:

#

you need Windows 11

mild flume
#

Be right back

olive echo
#
OpenAI

We’re introducing Jukebox, a neural net that generates music, including rudimentary singing, as raw audio in a variety of genres and artist styles. We’re releasing the model weights and code, along with a tool to explore the generated samples.

mild flume
#

Rawdio

uneven rock
#

so.. isnt there already a cpu algorithm that tries to predict what your going to do.. to align instruction sets.. where if you dont take that fork, it dumps and recompiles it..

elder wraith
uneven rock
#

im gonna loose my shit at this job..

elder wraith
tulip geyser
#

Guys if you are into leetcoding for interview what should i do if i get stuck on a problem for 2 days , ? see the answer on youtube ??? @misty sinew @random minnow

random minnow
#

Sure, look up how to solve it

pale pivot
#

func<(int,int)->int>

#

std::function::create_from::args::int::int::to_return::int

#

std?!function?!create_from?!args?!int?!int?!to_return?!int

pale pivot
#
method Vector::push(item: void*) {
    if (self.size == self.capacity) {
        let new_capacity = self.capacity * 2;
        let new_data = malloc(new_capacity * sizeof(void*));
        memcpy(new_data, self.data, self.capacity * sizeof(void*));
        self.data = new_data;
        self.capacity = new_capacity;
    }
    self.data[self.size] = item;
    self.size = self.size + 1;
}
tired wyvern
#

Hi all, I'm new to python and I hope someone can help me install pip

tired wyvern
#

I'll be back tomorrow for if I hadn't figured it out

#

looks like everyone is busy, thanks anyway

pale pivot
#

int* a, b

#
int *a, **b
#
x = *a
pale pivot
pale pivot
lime badger
#

Chris!!

#

😄

umbral rose
lime badger
#

Hows it going.

umbral rose
#

Good

#

How about yourself?

lime badger
#

I dont know if you came back or something when you were making lunch but I had 2 tests so my bad....

#

I am good thanks for asking 🙂

raw wren
lime badger
#

lol okay 😂

umbral rose
#

Was playing with the kiddos

lime badger
#

Awww ☺️

umbral rose
#

So what were you interested in learning?

#

@lime badger

lime badger
#

I was wanting to learn number systems

#

And functions basics

umbral rose
#

Nice

lime badger
#

We are learning number stsyrems but I don’t really get it

#

And Functionsi want to learn cause I see it everywhere

umbral rose
lime badger
#

But don’t know what it is

lime badger
#

I am doing an essay

#

So idk :-;

umbral rose
#

No worries

lime badger
#

Sorry

#

Maybe 1-3 hours will you be gone by then?

umbral rose
#

Let me know

#

¯_(ツ)_/¯

lime badger
#

Ok ok

#

Thanks lol

umbral rose
#

No problem

oblique carbon
#

Hi

#

Can anyone help with a python3 question?

#

I have a program that is too slow

#

I want to use a stream rather than a file path in an api called speechbrain.

#

Does anyone here have experience with stream objects?

umbral rose
glad vault
#

hi

quasi widget
#

how goes it?

umbral rose
quasi widget
pliant turret
#
const App = () => {
  const [newSearch, setSearch] = useState('')
  const [Data, setData] = useState([])
  const handleSearchChange = (event) => {
    setSearch(event.target.value)
    {/*console.log("event.target.value=",event.target.value)
    console.log("newSearch=",newSearch)*/}
    const partial_url = 'http://localhost:3001/'
    axios
      .get(partial_url + newSearch)
      .then(response => {
          {/*console.log('HSpromise ful')
        console.log(response.data)
          console.log(">>",response.data.capital[0],"<<")*/}
        setData(response.data)})
  }
  
  return (
    <div>
      <form>
        <input

          onChange={handleSearchChange}
        />
      </form>
      <button onClick={myFunction()}>Click me</button>
    </div>
  )
}

export default App```
drowsy juniper
#
 const App = () => {
  const [newSearch, setSearch] = useState('')
  const [Data, setData] = useState([])
  const handleSearchChange = (event) async => {
    setSearch(event.target.value)
    {/*console.log("event.target.value=",event.target.value)
    console.log("newSearch=",newSearch)*/}
    const partial_url = 'http://localhost:3001/'
   const response = await  axios.get(partial_url + newSearch);
   setData(response.data);
  }
  
  return (

    <div>
      <form>
        <input

          onChange={handleSearchChange}
        />
      </form>
      <button onClick={myFunction()}>Click me</button>
    </div>
  )
}

export default App```
#

async*

#

SInce we are using asynchrnous call.. which means it take some time to get data from server...
which is in axios.get

#

we are awaiting the value

#

by using await axios

#

in to use await the function must be async

#

so ... async on handleSearchChange

quasi widget
drowsy juniper
quasi widget
#

@knotty warren

proven mountain
#

anyone here to play chess

tired wyvern
#

sure I'll go for a few rounds

kindred rapids
#
void selectionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
    size_t locationOfMax;
    void *a, *b;
    for (size_t i = 1; i < nitems; i++)
    {
        locationOfMax = 0;
        for (size_t j = 0; j <= nitems - i; j++)
        {
            a = base + (j * siz);
            b = base + (locationOfMax * siz);
            if ((*cmp)(a, b))
            {
                locationOfMax = j;
            }
        }
        if (locationOfMax != nitems - i)
        {
            a = base + (i * siz);
            b = a + siz;
            swapVal(a, b, siz);
        }
    }
}
orchid geyser
#

hi all!

kindred rapids
#
void bubbleSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
    void *a, *b;
    for (size_t i = 1; i < nitems; i++)
    {
        for (size_t j = 0; j < nitems - i; j++)
        {
            a = base + (j * siz);   // for pointer addition of void* you have to add the size of original data type
            b = a + siz;
            if ((*cmp)(a, b))
            {
                swapVal(a, b, siz);
            }
        }
    }
}
orchid geyser
kindred rapids
#
    public static void selectionSort(int[] array) {
        int temp, locationOfMax;
        for (int i = 1; i <= array.length - 1; i++) {
            locationOfMax = 0;
            for (int j = 0; j <= array.length - i; j++) {
                if (array[j] > array[locationOfMax]) {
                    locationOfMax = j;
                }
            }
            if (locationOfMax != array.length - i) {
                temp = array[array.length - i];
                array[array.length - i] = array[locationOfMax];
                array[locationOfMax] = temp;
            }
        }
    }
#
#include <stdio.h>
#include <stdlib.h>
#include "Sorter.h"

/**
 * Sorting Algorithms in C
 * (algorithms are found in Sorter.h)
 */

int cmpfunc (const void * a, const void * b) {
   return  (*(int*)a) > (*(int*)b);     // '-' doesn't work cuz both -ve and +ve nums are true in c
}

int main(void)
{
    int toSort[] = {1,2,3,4,9,8,7,6,5};
    puts("Before sorting:");
    for (int i = 0; i < 9; i++)
    {
        printf("%d ", toSort[i]);
    }
    //bubbleSort(toSort, 9, sizeof(int), cmpfunc);
    selectionSort(toSort, 9, sizeof(int), cmpfunc);
    //qsort(toSort, 9, sizeof(int), cmpfunc);
    puts("After sorting:");
    for (int i = 0; i < 9; i++)
    {
        printf("%d ", toSort[i]);
    }

    return 0;
}
#
Before sorting:
1 2 3 4 9 8 7 6 5
Process returned -1073741819 (0xC0000005)   execution time : 2.319 s
Press any key to continue.
pale pivot
#
a = base + (locationOfMax * siz);
b = base + ((nitems-i) * siz);
kindred rapids
#
void selectionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
    size_t locationOfMax;
    void *a, *b;
    for (size_t i = 1; i < nitems; i++)
    {
        locationOfMax = 0;
        for (size_t j = 0; j <= nitems - i; j++)
        {
            a = base + (j * siz);
            b = base + (locationOfMax * siz);
            if ((*cmp)(a, b))
            {
                locationOfMax = j;
            }
        }
        if (locationOfMax != nitems - i)
        {
            a = base + ((nitems - i) * siz);
            b = base + (locationOfMax * siz);
            swapVal(a, b, siz);
        }
    }
}
#
    public static void insertionSort(int[] array) {
        int temp, compareWith;
        for (int i = 1; i <= array.length - 1; i++) {
            temp = array[i];
            compareWith = i - 1;
            while (compareWith >= 0 && array[compareWith] > temp) {
                array[compareWith + 1] = array[compareWith];
                compareWith--;
            }
            array[compareWith + 1] = temp;
        }
    }
#
void insertionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
    void *temp, *a;
    size_t compareWith;
    for (size_t i = 1; i < nitems; i++)
    {
        temp = base + (i * siz);
        compareWith = i - 1;
        a = base + (compareWith * siz);
        while (compareWith >= 0 && (*cmp)(a, temp))
        {
            base[compareWith + 1] = base[compareWith];
            compareWith--;
        }
        base[compareWith + 1] = *temp;
    }
}
#
void insertionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
    void *temp, *a, *b;
    size_t compareWith;
    for (size_t i = 1; i < nitems; i++)
    {
        temp = base + (i * siz);
        compareWith = i - 1;
        a = base + (compareWith * siz);

        while (compareWith >= 0 && (*cmp)(a, temp))
        {
            // base[compareWith + 1] = base[compareWith];
            b = base + ((compareWith + 1) * siz);
            memcpy(b, a, siz);
            compareWith--;
        }
        //base[compareWith + 1] = *temp;
        memcpy(b, temp, siz);
    }
}
pale pivot
#
for i in range(1, N):
  j = i-1
  while j >= 0 and arr[j] > arr[j+1]:
    swap arr[j] and arr[j+1]
    j -= 1
kindred rapids
#
#include <stdio.h>
#include <stdlib.h>
#include "Sorter.h"

/**
 * Sorting Algorithms in C
 * (algorithms are found in Sorter.h)
 */

int cmpfunc (const void * a, const void * b)
{
   return  (*(int*)a) > (*(int*)b);
}

// Use this to sort doubles
int dcmpfunc (const void * a, const void * b)
{
   return  (*(double*)a) > (*(double*)b);
}

int main(void)
{
    int toSort[] = {1,3,2,4,9,8,7,6,5};
    puts("Before sorting:");
    for (int i = 0; i < 9; i++)
    {
        printf("%d ", toSort[i]);
    }
    //bubbleSort(toSort, 9, sizeof(int), cmpfunc);
    insertionSort(toSort, 9, sizeof(int), cmpfunc);
    //qsort(toSort, 9, sizeof(int), cmpfunc);
    puts("After sorting:");
    for (int i = 0; i < 9; i++)
    {
        printf("%d ", toSort[i]);
    }

    return 0;
}

#
void insertionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
    void *a, *b;
    size_t j;
    for (size_t i = 1; i < nitems; i++)
    {
        j = i - 1;
        a = base + (j * siz);
        b = base + ((j + 1) * siz);
        while (j >= 0 && (*cmp)(a, b))
        {
            swapVal(a, b, siz);
            j--;
        }
    }
}
pale pivot
#
void insertionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
    void *a, *b;
    size_t j;
    for (size_t i = 1; i < nitems; i++)
    {
        j = i - 1;
        a = base + (j * siz);
        b = base + ((j + 1) * siz);
        while (j >= 0 && (*cmp)(a, b))
        {
            swapVal(a, b, siz);
            j--;
            a = base + (j * siz);
            b = base + ((j + 1) * siz);
        }
    }
}
kindred rapids
#
// Quick sort LOL
#define quickSort(base, nitems, siz, cmp) qsort(base, nitems, siz, cmp)
pale pivot
#
#define quickSort qsort
kindred rapids
#
int main(void)
{
    int toSort[10];

    puts("Enter 10 space-separated integers to sort, and press ENTER:");

    for (int i = 0; i < 10; i++)
    {
        scanf("%d", &toSort[i]);
    }

    int algorithmChoice = 0;
    chooseAlgorithm:
    puts("Select a sorting algorithm (enter number and press ENTER):\n"
         "1. Bubble sort\n"
         "2. Selection sort\n"
         "3. Insertion sort\n"
         "4. Quicksort"
         );
    scanf("%d", &algorithmChoice);

    switch (algorithmChoice)
    {
    case 1:
        bubbleSort(toSort, 10, sizeof(int), cmpfunc);
        break;
    case 2:
        selectionSort(toSort, 10, sizeof(int), cmpfunc);
        break;
    case 3:
        insertionSort(toSort, 10, sizeof(int), cmpfunc);
        break;
    case 4:
        quickSort(toSort, 10, sizeof(int), cmpfunc);
        break;
    default:
        puts("Invalid choice! Try again.");
        goto chooseAlgorithm;
    }

    puts("After sorting:");
    for (int i = 0; i < 10; i++)
    {
        printf("%d ", toSort[i]);
    }

    return 0;
}
charred creek
#

@random minnow come here, so I can ask Qs

random minnow
charred creek
#
with open("dump.hex", "r") as r:
    with open("out.bmp", "wb") as w:
        for byte in r.read().split():
            w.write(bytes.fromhex(byte))

#
with open("dump.hex", "r") as in_file, open("out.bmp", "wb") as out_file:
    for hex_byte in in_file.read().split():
        out_file.write(bytes.fromhex(hex_byte))
#
42 4d 76 02 00 00 00 00  00 00 76 00 00 00 28 00
00 00 20 00 00 00 20 00  00 00 01 00 04 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 80 00 00 80
00 00 00 80 80 00 80 00  00 00 80 00 80 00 80 80
00 00 80 80 80 00 c0 c0  c0 00 00 00 ff 00 00 ff
00 00 00 ff ff 00 ff 00  00 00 ff 00 ff 00 ff ff
00 00 ff ff ff 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 09 00
00 00 00 00 00 00 11 11  01 19 11 01 10 10 09 09
01 09 11 11 01 90 11 01  19 09 09 91 11 10 09 11
09 11 19 10 90 11 19 01  19 19 10 10 11 10 09 01
91 10 91 09 10 10 90 99  11 11 11 11 19 00 09 01
91 01 01 19 00 99 11 10  11 91 99 11 09 90 09 91
01 11 11 11 91 10 09 19  01 00 11 90 91 10 09 01
11 99 10 01 11 11 91 11  11 19 10 11 99 10 09 10
01 11 11 11 19 10 11 09  09 10 19 10 10 10 09 01
11 19 00 01 10 19 10 11  11 01 99 01 11 90 09 19
11 91 11 91 01 11 19 10  99 00 01 19 09 10 09 19
10 91 11 01 11 11 91 01  91 19 11 00 99 90 09 01
01 99 19 01 91 10 19 91  91 09 11 99 11 10 09 91
11 10 11 91 99 10 90 11  01 11 11 19 11 90 09 11
00 19 10 11 01 11 99 99  99 99 99 99 99 99 09 99
99 99 99 99 99 99 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 90 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 99 11  11 11 19 10 19 19 11 09
10 90 91 90 91 00 91 19  19 09 01 10 09 01 11 11
91 11 11 11 10 00 91 11  01 19 10 11 10 01 01 11
90 11 11 11 91 00 99 09  19 10 11 90 09 90 91 01
19 09 91 11 01 00 90 10  19 11 00 11 11 00 10 11
01 10 11 19 11 00 90 19  10 91 01 90 19 99 00 11
91 01 11 01 91 00 99 09  09 01 10 11 91 01 10 91
99 11 10 90 91 00 91 11  00 10 11 01 10 19 19 09
10 00 99 01 01 00 91 01  19 91 19 91 11 09 10 11
00 91 00 10 90 00 99 01  11 10 09 10 10 19 09 01
91 90 11 09 11 00 90 99  11 11 11 90 19 01 19 01
91 01 01 19 09 00 91 10  11 91 99 09 09 90 11 91
01 19 11 11 91 00 91 19  01 00 11 00 91 10 11 01
11 11 10 01 11 00 99 99  99 99 99 99 99 99 99 99
99 99 99 99 99 90
random minnow
charred creek
random minnow
random minnow
rose solar
#

The Wowgo Mini 2 is a new affordable electric shortboard that has a nice-looking design and a premium polish to go along with it. It should probably be the first consideration for anyone looking to buy an electric shortboard, and here's why.

Wowgo Mini 2 (use link below and code: "ESKATEHQ" to get 5% off)
https://www.electricskateboardhq.com/wo...

▶ Play video
stuck bluff
#

"I accidentally a whole sharwma."

#

Never had it, myself.

rose solar
#

love me some shawarma

wary schooner
#

shawarma great actually I like it more than a burger

rose solar
#

but recently i found out carbs and gluten screws with my brain

#

so i can't have any now

#

yeah shawarma is banger

#

i've also heard of celiac disease, which is like a really severe reaction of the body when you eat gluten

#

and some people don't know they have it, they feel awful all the time

#

because bread is everywhere

stuck bluff
#

Right, but that's more an intestinal tract thing than a brain thing, as I understand it.

#

I've a friend who has it super bad.

rose solar
#

from what i've understood the whole body gets affected with inflammation, as well as the brain

#

but i might be wrong

rose solar
stuck bluff
#

Mm. The smallest amount and it knocks her down for 6 months.

rose solar
#

yeah, i get that too but i get fuked up for 3-4 days

#

i ate some pasta at my grandpa's house and i felt horrible 3 days after that dinner

stuck bluff
#

Stupid diseases.

#

Being all stupid.

#

Where's the snake?

rose solar
#

stoopid

random minnow
#

@charred creek I'll try and get a pr for this at some point to you, I am going to head for now

stuck bluff
#

People do stupid things. News at 11.

rose solar
#

i'm stoopid

stuck bluff
#

Intermittent short term is fine.

thick gate
#

i can't talk

#

;-;

pale pivot
#

!voice

coarse hearthBOT
#

Voice verification

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

thick gate
#

can i spam 50 msgs jus to talk

#

?

stuck bluff
thick gate
#

nono lol

#

i won't

#

but i need someone to talk to

stuck bluff
#

That is the correct answer.

thick gate
#

can't go talking alone

#

like

#

hi am a wandering wand

stuck bluff
#

Are you, though?

thick gate
#

oh hi wand

#

am also a wandering wand

thick gate
stuck bluff
#

What does that entail?

thick gate
#

nothin

#

am jus a wandering wand

stuck bluff
#

So you said.

thick gate
stuck bluff
#

What's your schtick with Python?

thick gate
#

tbh nothin for now

pale pivot
#

Unrelated, but I've always liked using "schtick"

#

I don't know why, I guess I just heard it once and it's schtuck

thick gate
#

lol

#

i can't even stream

#

am sheeps now

#

ou i see

#

i see now

#

ye i understand

#

so we can't fun stream

#

ye

#

ig it should be 50 msgs by now

#

ou ic

#

mb mb

#

lollol

#

nooo stoppit

#

lol

#

it may come under spamming

#

i have a question

#

does it really matter when companies ask bout why you took a gap year or pause

#

sadge

#

ye

#

tbqh i jus finished my hs last month

#

ou i see

#

ye it makes sense

#

i was thinking bout learning blender

#

how bout it

#

can't really hear you mustafa

#

yes

#

not really

#

jus for fun

#

ye

#

so can i ask what you guys are doin, if yall don't mind sharing

#

lollol

#

ok cool

#

xD

#

ice cream

#

gib!

umbral rose
thick gate
#

no

#

!voice

coarse hearthBOT
#

Voice verification

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

languid oracle
#

If I wanted to use a class from a different file and I guess import it into another class? How would I do so. I have tried the import function but it is not responding as I thought it would\

thick gate
#

• Have been active for over 3 ten-minute blocks. This means you need to have sent your messages over a span of at least 30 minutes.

#

this one

#

:((

#

ou i remember i needed help with somethin

stuck bluff
thick gate
#

how do you share audio with screen share on disc stream

languid oracle
#

it says it just unuses the import functions that I am trying to do

stuck bluff
languid oracle
#

I believe I am doing something wrong, I had looked up calling the class as a parameter but then it gave me a typeerror

thick gate
#

when i use disc appl

#

but its fine on web

#

but i cant stream in 1080 60 fps in browser