#voice-chat-text-0

1 messages · Page 991 of 1

cunning lake
slim basin
#

and i cant speak @vast fog @somber heath

vast fog
#

type !voice-verify

#

in the voice verification channel

slim basin
#

• Have joined the community over 3 days ago.
• 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.

#

.

cunning lake
#

🤷‍♂️

slim basin
#

-_-

#

okk

#

understandable

#

:]

quick vortex
#

🫂

slim basin
#

what does this mean "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."

#

?

#

what is "3 ten-minute blocks"

#

?

#

ooo

#

alright

#

i get it

#

thank you

#

@woeful salmon

warm silo
#

I cant hear anyone for some reason

quasi wadi
#

hello ?

#

well thats

#

boring so bye

woeful salmon
#

@terse needle

terse needle
#
use raylib::prelude::*;

fn main() {
    let (mut rl, thread) = raylib::init()
        .size(640, 480)
        .title("Hello, World")
        .build();

    while !rl.window_should_close() {
        let mut d = rl.begin_drawing(&thread);

        d.clear_background(Color::WHITE);
        d.draw_text("Hello, world!", 12, 12, 20, Color::BLACK);
    }
}
#

gtg for a bit

pallid hazel
#

problem with a setting in the lib then.. on/off .. not on/standby/off

terse needle
sour imp
neon sleet
#

Is noone speaking or am I deaf

woeful salmon
#
for i in 1..10 {
    println!("{}", i);
}
#
for i in 1..=10 {
    println!("{}", i);
}
wind raptor
woeful salmon
sour imp
lyric pawn
#

yo chris

#

@molten pewter that sounds illegal🤣

#

thats crazy cheap

#

you got a link?

#

@sour imp 🤣

#

im asking furyo

#

512gb micro sd

#

@molten pewter how did you get that for 20bucks? was it a friend?

warm silo
#

why does it keep disconnecting rtc when i am in vc in this server? like when i tried for other servers it worked but i keep disconnecting here, anyone knows?

rugged tundra
lyric pawn
#

@rugged tundra if you woke up in the night and only had limited time because it spread, would you grab for your pc😆 or what first?

#

what would you take?

#

so you have no sentimental items?

#

You sound like a robot coffee

#

i like you

#

you;re a minimalist

#

@somber heath 'considerably....terrible....'🤣

rugged tundra
lyric pawn
#

a kangaroo 🤣

terse needle
lyric pawn
#

@terse needle cant you restore them to a previous state?

#

or get a usb and try to recover the deleted files?

molten pewter
#

The Lithuanian litas (ISO currency code LTL, symbolized as Lt; plural litai (nominative) or litų (genitive) was the currency of Lithuania, until 1 January 2015, when it was replaced by the euro. It was divided into 100 centų (genitive case; singular centas, nominative plural centai). The litas was first introduced on 2 October 1922 after World W...

lyric pawn
molten pewter
#

The pound sterling (symbol: £; ISO code: GBP), known in some contexts as the British pound, the pound, or sterling, is the official currency of the United Kingdom, Jersey, Guernsey, the Isle of Man, Gibraltar, South Georgia and the South Sandwich Islands, the British Antarctic Territory, and Tristan da Cunha. It is subdivided into 100 pence (si...

somber heath
#

UUUUU <- U row.

quasi condor
#

Hello

#

@zenith radish listening to leet code on mobile isn't the best experience and I don't want to interrupt then to talk over them

amber raptor
#

!e python import math a = (1,2,3) b = (5,6,7) print(math.dist(a,b))

wise cargoBOT
#

@amber raptor :white_check_mark: Your eval job has completed with return code 0.

6.928203230275509
amber raptor
#

!e ```python
import math
a = (1,2,3)
b = (5,6,7)
c= math.dist(a,b)
print(c * 300)

wise cargoBOT
#

@amber raptor :white_check_mark: Your eval job has completed with return code 0.

2078.460969082653
uncut meteor
lyric pawn
#

@trail mural im finna send that 10k to you now...

trail mural
#

ty 🙂

#

had to refresh discord to see you

unkempt magnet
trail mural
#

jmac

#

the sussy

unkempt magnet
lyric pawn
#

im about to start reading some literature man

#

lmao

#

come on slay

#

academic stuff

#

dont act smart

#

😆

#

lmao

#

yea college stuff

#

trying to connect literature

#

not really learning man

#

trying

unkempt magnet
#

BRB

lyric pawn
#

@trail mural what you working on?

trail mural
#

learning some salesforce stuff .-.

lyric pawn
#

@shy elk whats up?

shy elk
lyric pawn
#

you working on anything?

#

cant really hear you dude

#

hey katie

#

😆

primal yacht
#

@opaque violet over here

#

!voice -- read the bot message

wise cargoBOT
#

Voice verification

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

primal yacht
#

@worldly veldt you over here too

#

brb rebooting lapto[

#

I forgot I had it powered on for a while

#

it tends to act funky if left on too long … Win10 -.-'

lyric pawn
#

yea, ot was fine before

#

but a little better yes

primal yacht
#

are you in VC?

#

Watered down beer in another cup ... that makes it last longer and makes you less prone to getting drunk as quickly.

honest pier
#

it also is uh

#

watered down

tidal shard
tidal shard
primal yacht
#

but the correct amount of water will make it easier for your gut to process it ... remember that it is why you get heartburn after drinking

#

or whatever it is called for that issue

honest pier
#

it also makes it watered down lol

#

just drink water separately

tidal shard
#

^

primal yacht
#

But when you're drunk, you won't know when to stop drinking ... and you can easily say or do stuff you'd regret when not drunk.

honest pier
#

that doesn't change whether you've gotten drunk from watered down beer or from beer

#

if you're worried about that, don't drink lol

tidal shard
unkempt magnet
#

@shy elk if ure talking i cant hear u

lyric pawn
#

@unkempt magnet whats up?

unkempt magnet
lyric pawn
unkempt magnet
lyric pawn
#

I dont know what to tell you

unkempt magnet
#

!voice verification @lyric pawn

wise cargoBOT
#

Voice verification

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

lyric pawn
unkempt magnet
#

u have more than 3700 sent msg and not verifind

lyric pawn
#

ill be in VC soon

#

🤣

#

im a busy man

unkempt magnet
lyric pawn
#

Bye guys ive gotta go 😢

unkempt magnet
primal yacht
#

My hair is drying still from the shower so I don't want to hop into VC just yet

tidal shard
#

lol

#

i do not recommend building an ITX rig lmao

#

I'm dying here

trail mural
signal sand
#

For io bound works... Any lang should be fine... for raw computation you should worry about a lang...

#

@rugged tundra

#

@midnight agate my objection would be it's JAVA 😂 😂..

rugged tundra
gentle flint
#

anthropomorphic cats?

signal sand
#

yeo

#

yep

brave steppe
gentle flint
brave steppe
#

Oooh, yeah.

gentle flint
lucid blade
#

anyone speaking in voice?

#

i cant hear anything ?

dark sable
#

Hey

#

I have been i the server since 3 days

#

i don;t know why i am not voice verified still

#

i think i am near the 50 barrier

#

Well apart from that i have a doubt

#

i am making a tic tac toe game

#

and am stuck at one part

#

Is there any way you know i can share a link to the jupyter notebook

somber heath
#

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

dark sable
#

one min

#

ill try \

#
board = ["-", "-", "-",
         "-", "-", "-",
         "-", "-", "-"]



def display_board(board):
  print("\n")
  print(board[0] + " | " + board[1] + " | " + board[2] + "     1 | 2 | 3")
  print(board[3] + " | " + board[4] + " | " + board[5] + "     4 | 5 | 6")
  print(board[6] + " | " + board[7] + " | " + board[8] + "     7 | 8 | 9")
  print("\n")

def user1_input():

#inputs of position 
    player_1_input = "FAIS"
    acceptable_range = range(0,9)
    within_range = False




    while player_1_input.isdigit() == False or within_range == False :
        player_1_input = input('Enter a index where you want to place X between (0-8): ')
    
        if player_1_input.isdigit() == False:
            print("Sorry that's not a digit")
        
        if player_1_input.isdigit() == True:
            if int(player_1_input) in acceptable_range:
                within_range = True
            else:
                print('Sorry you are not is the acceptable range of (0-8)')
                within_range = False
                
       ```
#

is this fine

#

Yes so basically i want to use the player_1_input to update the board

#

but then if i make a new fuction and try to use tht variable , since its not in the global scope i think that it shows variable name not defined

#

inside the while loop

#

Imagine the next fucntion is :
update1board():

#

board[int(player_1_input)] = "X"

somber heath
#

try / except

#

ValueError for input/str to int.

#

continue

#

break

dark sable
#

I am a bit confused , is there a problem in the function accepting the input

#

Yeah so i am just taking the input , so then for it to add the X at the index position entered i would have to reuse the variable

#

Yeah so its been less than 3 days

#

i checked

#

Is it possible to enter the line of code by editing the message

#

i havent reached that level yet in my course

#

What if i enter the return out of the function

#

will that work

#

yes

#

is there any other way

#

yeah thats fine

#

im sorry can you type that out

somber heath
#

If you're doing this without writing a class, you may as well just assign to a subscript of board from within the function.

woven spear
#

how do I learn how to code?

somber heath
#

Also, check out these handy learning resources.

dark sable
#

Try Jose portilla's course on usemy

somber heath
#

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

dark sable
#

udemy

dark sable
#

so like :
board[0]="X"

#

so what about if i do :
board[int(player_1_input)] = "X"

woven spear
dark sable
#

my only main hurdle hear then would be to get out of the defining the player_1_input as a global scope \

#

because its in the function , so if i am making another fucntion to update then that would be a problem

#

So what if i add the code in the same function

#

no i mean for player 1 but in the usr input function , i can update it too , yet then when compiling the entire program would it be a problem ??

#

no but if i create another function it shows an error

#

that my variable isnt defined

#

yeah sure

#

yes , i am running the file again

#
Enter a index where you want to place X between (0-8): 8
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-3-3b5b1610ece7> in <module>
      1 user1_input()
----> 2 update_board()

<ipython-input-1-e4a996e6e3ab> in update_board()
     36 
     37 def update_board():
---> 38     board[int(player_1_input)] = "X"
     39 
     40 

NameError: name 'player_1_input' is not defined
#

okay

loud karma
#

n0rd vpn

#

hm

summer ocean
#

Ellow😊

#

I have a Macbook M1 😕 Can't use for Gaming

#

It's usually the hdd's that die in the old laptops @cunning lake

#

Just tell him the name 😂 @somber heath

#

I have a old one and it's all covered in dust 😕

cunning lake
#

what ?

#

you gust lived 🤷‍♂️

#

just *

#

🤷‍♂️

#

ok @somber heath see you

summer ocean
#

@somber heath Hellow

#

Guys as a University student is it bad to play games 😕

#

I totally agree

#

But the thing is was a hardcore gamer then i left gaming for 2 years and im scared if i start gaming again will it affect my studies

#

im Comp Sci major

#

Naah im talking about games like valorant and csgo

#

I mean it's not me who get's addicted when i start playing my friends usually call me and then i have to break the timetable i made and play whenever they're free

#

Maybe find new friends 🥲

#

Or play with strangers

#

Ok 🌟 Let's try that

#

Let's say my friends are never too busy to play 😂 So ...

#

So do you guys do gymming / Exercise ?

#

ok guys Byi Byi you are good people to talk cya later 😊

tidal shard
#

sup guys

#

good evening

frosty star
#

Haaaay

dark sable
#

Hey my voice got verified but i cant unmute

frosty star
#

🤔

#

Is ur mic connected

#

Hello

#

Aygaur

#

Me too actually haha

quiet compass
#

i am not voice verified

somber heath
#

@dark sable Still having issues?

quiet compass
#

sorry about earlier

#

@frosty star how do i get voice verified?

somber heath
#

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

woeful salmon
gentle flint
gloomy vigil
#

my pc is not recognising my mic

#

wait

gentle flint
#

k

summer ocean
#

@somber heath 🖐️ hi

tiny socket
gloomy vigil
#

its working now

somber heath
#

Netpbm (formerly Pbmplus) is an open-source package of graphics programs and a programming library. It is used mainly in the Unix world, where one can find it included in all major open-source operating system distributions, but also works on Microsoft Windows, macOS, and other operating systems.

#

Forque.

#

It's like fork, but fancy.

gentle flint
gentle flint
tiny socket
#

Üplemyst

somber heath
#

I refer people to Corey Schafer, Youtuber.

#

He has a playlist. Python for Absolute Beginers or somesuch.

#

!resources Also check this page out.

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.

gentle flint
#

16 grams is 30*7 bills

#

each bill weight 16/210 grams

tiny socket
#

!e print(16 / 210)

wise cargoBOT
#

@tiny socket :white_check_mark: Your eval job has completed with return code 0.

0.0761904761904762
gentle flint
#

@dire folio can we pin that issue here

#

read it before you decide

#

EBLM J0555-57 is a triple star system approximately 600 light-years from Earth. EBLM J0555-57Ab, the smallest star in the system, orbits its primary star with a period of 7.8 days, and at the time of discovery, was the smallest known star with a mass sufficient to enable the fusion of hydrogen in its core.

coral tusk
#

Hi

#

Bye

gentle flint
willow ruin
#

hi

#

@soft dawn are you indian

pallid hazel
#

your no lady

soft dawn
willow ruin
soft dawn
pallid hazel
#

sir, i am not from india. thank you.. please come again.

woeful salmon
pallid hazel
#

nice mouth mullet

#

i heard it on a movie last night

somber heath
soft dawn
#

@somber heath

violet bay
pallid hazel
#

yea

stuck comet
woeful salmon
quasi wraith
#

Sorry cant talk, haven't been here for 3 days it says :/

#

reasonable

#

I joined to ask if someone has used libusb or some other methods to read usb devices and raise keyboard presses based on the input

#

I would not have time for low level C++ stuff.....

#

Well I will post a question on a channel if someone knows, thanks

#

There might be existing apps but I would like to do something myself : )

#

See you

woeful salmon
cedar lintel
#

yo hello guys

#

i have a quick question

#

does Variables hold a maximum of 8 bytes of data?

#

okay thank you brother

#

bye guys

signal sand
#

In math

#

Not in java

#

@trail mural

#

what?

trail mural
lyric pawn
# woeful salmon

davinder is my cousin...He just dosent follow sikhism like me, thats my main beef with him

trail mural
signal sand
#

I'm going for dinner... I will join back..

frosty star
#

Sooo many people on a Sunday 😳

#

Can I play

signal sand
#

Sure

signal sand
frosty star
#

Yey

signal sand
#

Finally........................

loud karma
#

late for game night :<

primal yacht
#

10 till 9 am now

loud karma
#

e.e

primal yacht
loud karma
primal yacht
#

err 23:55 I meant

loud karma
#

gotcha

primal yacht
#

Don't forget time zones … and that the world is not flat ^w^;

cunning lake
#

the is flat dont tell me it is not !

#

world*

signal sand
#

@opal mulch important things are your core subjects like "data structures, algorithms, general programming" and all for internships and all...

signal sand
gentle flint
#

@shy elk if you can't speak loudly maybe it's easier for you to type here

gentle flint
zenith radish
gentle flint
woeful salmon
#

do you happen to know a fix?

signal sand
#

@zenith radish math.ceil(year /100)

#

@trail mural

trail mural
signal sand
#

Why would add it up to 100...

if year % 100 == 0: return year / 100
else: year / 100 + 1

#

@zenith radish

pallid hazel
quasi condor
zenith radish
gentle flint
#

Eudaimonia (Greek: εὐδαιμονία [eu̯dai̯moníaː]; sometimes anglicized as eudaemonia or eudemonia, ) is a Greek word literally translating to the state or condition of 'good spirit', and which is commonly translated as 'happiness' or 'welfare'.
In the works of Aristotle, eudaimonia was the term for the highest human good in older Greek tradition. ...

#

вербуфский

cosmic lark
gleaming folio
#

Why

subtle nacelle
#

Yeah

#

i know

floral solar
#

oh

#

cool

#

hi

#

@somber heath

#

I actually havent made anything with python before

#

i know c++ and javascript

#

I was looking to see if someone knew something about organizing data into a spreadsheet

#

I downloaded my google data and i want to visualize it

somber heath
#

Pandas

#

csv

#

matplotlib

floral solar
#

okay

#

Its kind of weird how google gave me my data

#

theyre in an html file

#

for instance all of my youtube comments are there

#

dating back to 2013

#

and its just one big unordered list

somber heath
#

Selenium

loud karma
#

morning

#

my speaker is weird

#

e.e

#

hmm

tidal shard
#

happy Pi day

slender ibex
#

Hey there

#

I just joined the discord

#

Pretty cool

#

How do I use it the best?

#

This discord

#

Just ask all my questions related to Python ?

#

Ok

#

Cool

#

Awesome. I'm super excited to learn

#

What do you do with it?

#

ah super cool

#

Well I appreciate it

#

I'm gonna look around a bit

maiden hound
#

Very cool. Hello!!

#

I am in San Diego.

#

What part of Italy?

#

looks beautiful

#

I have a soft spot for fishing villages.

#

It is cool there though.

#

Weather wise.

somber heath
#

@midnight agate You're breaking up.

#

@midnight agate Ask.

maiden hound
#

I feel like I am interrupting. I am going to give you some privacy. Nice Meeting you!!

somber heath
signal sand
#

@somber heath Hi

#

@midnight agate listening

#

I don't know

#

yeah

#

You are applying to alot of jobs... But you should also try for some referals

#

@midnight agate

signal sand
#

Linkedin is trying save everyone.... now it's saving no one... @formal meteor @midnight agate

#

@midnight agate your network is bad...

whole bear
#

heyy

#

gotta go classes

whole bear
#

Hi everyone

#

I need to send data between Arduino and Raspberry pi using SPI communication how do I do that ?

severe iron
#

where can i get help for coding?

tidal shard
#

can you hear me @limber osprey?

#

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

limber osprey
#

!voice

#

okay

#

yeah my dad gave me a project

#

no he is a mechanical engineer that does some stuff in excel to modify solidworks files

#

he wanted me to create him a code that can modify the excel sheet in a neat GUI

#

currently trying to import a library

#

so how long have you been using python?

tidal shard
limber osprey
#

post it in this channel @tidal shard

#

oh noice

#

where is the GPU

#

F

tidal shard
limber osprey
#

microcenter sells graphics cards near MSRP but you gotta win a lottery

#

oh rip

#

my microcenter requires a lottery

#

basically every time they restock (ussually once a week) they leave the lottery open till noon

#

and then they text you if you won

#

so you guys use pycharm?

#

what type of editor do you recommend?

#

well tbh the extent of my scripting is probably ROV controller stuff and doing odd jobs for my dad

tidal shard
#

Cooler Master NR200P
Ryzen 5 5600G
T-Force Dark Za 16GBx2 3600Mhz
WD SN570 1TB SSD
Cooler Master 650W SFX Gold
B550I Aorus Pro AX

limber osprey
#

he wants me to eventually design him a program that can directly work with solidworks API

#

and remove excel from the equation entirely

tidal shard
limber osprey
#

yeah

tidal shard
limber osprey
#

all he wants from me rn is to take an excel spread sheet with about 10 variables, to be able to adjust the variables through the program and create a GUI for it

#

I really highly recommend you try and get a 30 series card

#

the performance increase is quite significant

#

yes 3050 beats 2060

#

wait i was mistaken

#

laptop?

#

are you currently using a laptop? because HQ processors are mobile chips

tidal shard
limber osprey
#

so openpyxl allows me to edit excel files

#

but I cant get the package to work

woeful salmon
#

@tidal shard ln -s source_file symbolic_link

#

export PATH="<Path-to-bw>:$PATH"

tidal shard
woeful salmon
# tidal shard

The Bash export command helps us to export environment variables so that they are available in all child processes, shells, and commands.

tidal shard
#

@dark sable

somber heath
#

!e py text = "thing" result = text.upper() print(result)

wise cargoBOT
#

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

THING
drifting crystal
#

anyone know what yield from does? I found it in an old piece of code I wrote and I can't understand what it does.

somber heath
#

!e print(dir(str))

wise cargoBOT
#

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

['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'removeprefix', 'removesuffix', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
somber heath
#

!e py text = "text" print(type(text)) print(type(str)) print(type(type))

wise cargoBOT
#

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

001 | <class 'str'>
002 | <class 'type'>
003 | <class 'type'>
somber heath
#

!e py result = "*".join("MASH") print(result)

wise cargoBOT
#

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

M*A*S*H
tidal shard
#

!e
print('type\'s type is type'.capitalize())

wise cargoBOT
#

@tidal shard :white_check_mark: Your eval job has completed with return code 0.

Type's type is type
dark sable
#

class Dog:
def init(self,breed):
self.breed = breed

sam = Dog(breed='Lab')
frank = Dog(breed='Huskie')

wise cargoBOT
#

@somber heath :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 6, in <module>
003 | TypeError: 'MyClass' object is not callable
somber heath
#

!e ```py
class MyClass:
def my_method(self):
return self

my_class_instance = MyClass()
a = my_class_instance.my_method()
print(a is my_class_instance) #a / self points to the same object that my_class_instance points to ```

wise cargoBOT
#

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

True
somber heath
#

!e py a = [] b = [] c = a print(a == b) #True. The object a points to is equal to the object (list instance) b points to print(a is b) #False. They do not point to the same object print(a is c) #True. a points to the same object c points to.Equality vs identity.

wise cargoBOT
#

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

001 | True
002 | False
003 | True
somber heath
#

!e ```py
class MyClass:
def add(self, v):
return ("Blah")

a = MyClass()
print(a + 5)```

wise cargoBOT
#

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

Blah
tidal shard
#

!e

    def __add__(self, v):
        return ("Blah"*v)

a = MyClass()
print(a + 5)```
wise cargoBOT
#

@tidal shard :white_check_mark: Your eval job has completed with return code 0.

BlahBlahBlahBlahBlah
somber heath
#
a.__add__(5)```
#

!e py class MyClass: def __eq__(self, _): return True a = MyClass() print(a == 5) print(a == 9001)

wise cargoBOT
#

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

001 | True
002 | True
tidal shard
#

!e

class MyClass:
    def __eq__(self, _):
        return 'hello' + str(_)
a = MyClass()
print(a == 5)
print(a == 9001)
wise cargoBOT
#

@tidal shard :white_check_mark: Your eval job has completed with return code 0.

001 | hello5
002 | hello9001
somber heath
#

!e ```py
class MyClass:
def getitem(self, key):
print(f"Getting {key} of {self}, but really just give {key} back")
return key
def setitem(self, key, value):
print(f"Setting {key} of {self} to {value}")

mci = MyClass()
mci["a"] = 9
mci[0] = "apple"
a = mci["so"]
print(a)```

wise cargoBOT
#

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

001 | Setting a of <__main__.MyClass object at 0x7fcbcdd42c80> to 9
002 | Setting 0 of <__main__.MyClass object at 0x7fcbcdd42c80> to apple
003 | Getting so of <__main__.MyClass object at 0x7fcbcdd42c80>, but really just give so back
004 | so
frosty star
#

Multithreading is hard ;-;

dense ibex
#

that's why I use async as much as possiblekek

tidal shard
#

brb

somber heath
urban summit
#

Ugh i just wanna talk

#

been in here a while

#

swear I've had over 50 messages

#

Are you able to just give me permissions

#

or nah

#

ok

#

swear man I've definitely met the criteria

#

Just don't know what criteria I'm missing

#

what's the command

somber heath
#

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

deep prism
#

Byeee

pallid hazel
#

lol who choose the new icon.. looks like poop on a picknit blanket

spark cradle
#

Lool

#

Noice pic

dire stump
#

finally gonna program after a few days of exams :)

rugged tundra
#

We have technology

summer ocean
#

Hey @somber heath

pallid hazel
#

so your saying no snipe hunts? :(

#

i like, lemu

#

or le`mu

#

is that a true falsey

#

yea nah

midnight finch
#

https://stackoverflow.com/questions/5953373/how-to-split-image-into-multiple-pieces-in-python i found this link which has multiple ways of splitting image. not sure which would work for me - can you suggest one code to try. i want to split image into 100 vertical sections and save each section

rugged root
primal yacht
#

Freedom Writers is a 2007 American drama film written and directed by Richard LaGravenese and starring Hilary Swank, Scott Glenn, Imelda Staunton, Patrick Dempsey and Mario.
It is based on the 1999 book The Freedom Writers Diary by teacher Erin Gruwell and students who compiled the book out of real diary entries about their lives that they wrot...

primal yacht
#

my phone's camera & flash positions

somber heath
#

🐴 Stabilise?

midnight finch
#

anyone help me with code?

primal yacht
#

you're in AFK?

dreamy oasis
rugged root
midnight finch
primal yacht
#

Are you somehow in VC1 by accident?

primal yacht
midnight finch
#

would you be able to recommend what code to write for that

#

im not that good at coding

primal yacht
#

We're in voice chat 0 ...

#

my visual shows you in voice chat 1

midnight finch
#

oh im not even sure - im new to this

primal yacht
#

one voice chat channel higher

midnight finch
#

says im too new to do voiceverify

#

does that mean i cant talk

primal yacht
#

You don't need to speak to listen

midnight finch
#

oh i see, how to i leave voice chat 1 and join 0

primal yacht
#

mobile or desktop / web?

midnight finch
#

desk

#

top

primal yacht
#

click on "Voice Chat 0" ?

midnight finch
#

im typing on vc 0 though?

#

i am in thanks

primal yacht
#

yes.

#

There is text channels and voice channels.

midnight finch
#

anyone could help me now?

primal yacht
#

They can be named the same (even multiple text / multiple voice with the same name) as they are identified by a numeric, unique ID

midnight finch
#

but my saved imaged is the full size at the end

#

it is just a image of a doppler

#

like medical image

#

and i am just trying to split it into 100 sections vertically

#

but i cant seem to do

somber heath
#

@midnight finch I'd look at numpy.linspace or maybe numpy.arange.

midnight finch
#

png

#

it is .png i quite sure

#

i checked on details image

midnight finch
primal yacht
dreamy oasis
#

I am a two week programmer

midnight finch
#

feel free to edit if easier

#

i tried something called image_slicer but that didnt let me split image only vertically

woeful salmon
#

ducky_devil another sacrifice to fall into the void that is javascript frameworks (or just react frameworks at this point)

trail mural
#

👋

somber heath
#

!e py import numpy as np width = 49 divisions = 7 indices = np.linspace(0, width, divisions).astype(int) print(indices)

wise cargoBOT
#

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

[ 0  8 16 24 32 40 49]
somber heath
#

A method of the array class

midnight finch
midnight finch
primal yacht
#

Great for Cyber Security / Knowing why Server-Side Anti-Cheat is required, @proper jacinth. Maybe show to your teacher / school?
https://www.pwnadventure.com/
A YouTube playlist as a partial guide if they need something to help them in persuading:
https://www.youtube.com/playlist?list=PLhixgUqwRTjzzBeFSHXrw9DnQtssdAwgG

rugged tundra
#

!voice @sacred sinew

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
#

@midnight finch Don't really know. I'm on my phone, so looking at pastebin stuff is a pain. Look at numpy.array.array_split

midnight finch
#

oh i see. i will read about that. so you think i should stick to numpy array split method - it should work to split image right?

primal yacht
somber heath
#

It ought to. Otherwise you can use the indexing example to get the indexes you'd need to slice the array at the points you need.

primal yacht
#

Since when does numpy work on images?

#

I thought numpy was for number crunching, not image processing.

somber heath
#

Pillow and Numpy go hand in glove with image processing.

rugged tundra
#

@sacred sinew if you send messages within server, then you can get voice

sacred sinew
#

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

somber heath
#

There's even cross compatibility written into each for the other.

#

Pillow's Image has a method to convert to Numpy's array. Numpy's array casts to Pillow's Image.

dreamy oasis
#

I am a mechanical engineer😅

#

I feel weird being in this vc

somber heath
#

"This is Billy. He pushes buttons in a particular order. We don't pay Billy very much. This is Peter. He pushes buttons in a different particular order. Peter pushes fewer buttons than Billy, but we pay Peter a lot more."

trail mural
#

Your goals/values didn’t align with your last company

primal yacht
dreamy oasis
#

what about the googles language ?

primal yacht
#

@amber raptor WebView ?

somber heath
#

"That unwashed scraggly looking fellow beating an employee with a hammer is Bob. Bob has anger management issues, but management feels that an adrenaline fueled employee is a hard-working employee, so he's kept on the payroll to keep everyone on their toes."

woeful salmon
#

i'm pretty sure react native transpiles to native java / swift for android / ios @zenith radish

#

-> don't think there's any browser in there

#

unless you add a web view

#

yes that's why you can't use css in react native and can't use html tags

primal yacht
#

Android has a WebView for apps to not need to reimplement a web browser in each one.
Some browsers even provide their own WebView (like Google Chrome)

woeful salmon
#

Q burn it is

#

that's what i heard o-o

primal yacht
#

If Google fully stops supporting their NDK, many will leave Android because their favorite games (Minecraft and / or others using C / C++) won't get updated.

woeful salmon
amber raptor
somber heath
woeful salmon
#

its like 10% slower than an actual native app

amber raptor
primal yacht
gentle flint
amber raptor
gentle flint
primal yacht
#

Well, ask Google why they rejected Termux's update.

midnight finch
amber raptor
primal yacht
amber raptor
#

Google shutting down Termux makes sense from Security point of view

primal yacht
#

They didn't shut down the old version ... they just won't allow it to be updateed

dreamy oasis
#

what is that OS @gentle flint ?

gentle flint
dreamy oasis
#

looks nice

gentle flint
#

what you're seeing is a desktop environment called KDE

dreamy oasis
#

nice

#

Some Random guy entering the VC
hearing people talks about tuna
Then he go to check the server name

gentle flint
#

would a python eat tuna?

trail mural
#

yes

#

100%

midnight finch
#

!pastebin

wise cargoBOT
#

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.

midnight finch
#

please help getting error

sweet lodge
#

@rugged root - Is there any way to stop Windows update when it's already on "restart to finish installing"? The computer is NOT AD joined unfortunately

rugged root
#

Uhhhhhhh

#

@amber raptor?

urban summit
rugged root
#

I feel like sometimes there's an option that says like "Restart" as well as "Restart and Update"

#

But I'm not sure

sweet lodge
#

Every time I've hit that, it's updated anyways

amber raptor
amber raptor
#

you want me to Desktop Support? Brave man

rugged root
#

Just wondering if you knew off the top of your head

pallid hazel
#

ur boned, best you can do is uninstall the update after reboot if you so require

midnight finch
#

anyone help me

rugged root
#

Jon, are you meaning to use Python 2?

sweet lodge
# midnight finch anyone help me

Vendor's software won't run under W11.
I can update, rollback, and then block the update
Was hoping it was possible to avoid that

#

Crap wrong ping

pallid hazel
#

why no run under w11, have you tried running in compatabilty mode?

rugged root
#

Is that the vendor saying it or has this been tested

sweet lodge
pallid hazel
#

vendor probably says "not supported"

sweet lodge
#

I will test it before I rollback, but I've got some other fires to work on, and I was hoping to avoid it entirely for the time being

pallid hazel
#

my dealer has gone legit, so thats good.

#

theres suvs with truck chasis and some with car chasis

#

i wont but the car chasis..

sweet lodge
# sweet lodge I will test it before I rollback, but I've got some other fires to work on, and ...

A different client has now sent us three different label printers. Each time they send us a new printer, they send us a dedicated computer connected to their AD and VPN, with only the software for that particular printer installed.
They are now asking to confirm our AD usernames in THEIR AD before they send us a FOURTH printer and dedicated computer.
I now have a table with a row of computers and printers just for that client

rugged root
#

SUVs with car chaises are vans

pallid hazel
#

no no.. the small suvs, ie crossovers. to midsized are basically cars with 4wd

#

what kind of printers require so much preperitary access?

#

nope, only if you never registered ur btc account with an exchange

#

i miss 4 waysli

sweet lodge
# sweet lodge A different client has now sent us three different label printers. Each time the...

And -
They're all Zebra printers except for one.
The one that's not a Zebra - I spent three days on the phone with their desktop support, who only had half a page of notes from their application support team.
Turns out, you had to set the printer to Zebra-compatibility mode and the printer driver to text-only mode so that it could process Zebra's scripting language correctly.
Oh, and their web app only runs in IE5. Not IE 11. So even in Internet Explorer, you have to enable compatibility mode.

pallid hazel
#

what kind of dedicated pcs are they sending? 386?

sweet lodge
#

Dell OptiPlex 7060 and Dell Latitude 5420

#

They're normal computers, just preconfigured with their AD and SSO to their VPN, and the label software preinstalled and connected to their database(s).

worthy jackal
#

guys I need a small help with Javascript can someone help? (second day) Question: how can I get the promise result from a promise in Javascript and make an other array with it?

primal yacht
#
from typing import overload
# for hints
@overload
def x(a: int, b: int) -> int:
    return 0

@overload
def x(a: int, b: float) -> float:
    return 0.0

@overload
def x(a: float, b: int | float) -> float:
    return 0.0

# actual definition
def x(a: int | float, b: int | float) -> int | float:
    return a + b
empty jolt
#

hello people

gentle flint
#

my aunt arrived

empty jolt
#

I've got a question

gentle flint
#

I'll be back in a bit

primal yacht
#
y = range(10)
print(y[x(2, 3)])
empty jolt
#

how can I create a python code where I write a few keywords and it writes me each possibility?

primal yacht
#
>>> print(type(range(10)))
<class 'range'>
>>> print(range(10)[5])
5
woeful salmon
#

!e

import itertools

for comb in itertools.combinations("ABC", 2):
    print(comb)
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

001 | ('A', 'B')
002 | ('A', 'C')
003 | ('B', 'C')
primal yacht
#

AB BA

#
itertools.permutations
woeful salmon
#

!e

import itertools

for comb in itertools.permutations("ABC", 2):
    print(comb)
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

001 | ('A', 'B')
002 | ('A', 'C')
003 | ('B', 'A')
004 | ('B', 'C')
005 | ('C', 'A')
006 | ('C', 'B')
woeful salmon
#

!e

import itertools

for comb in itertools.permutations("ABC", 3):
    print(comb)
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

001 | ('A', 'B', 'C')
002 | ('A', 'C', 'B')
003 | ('B', 'A', 'C')
004 | ('B', 'C', 'A')
005 | ('C', 'A', 'B')
006 | ('C', 'B', 'A')
primal yacht
#

!d collections.abc.Sequence

wise cargoBOT
#

class collections.abc.Sequence``````py

class collections.abc.MutableSequence``````py

class collections.abc.ByteString```
ABCs for read-only and mutable [sequences](https://docs.python.org/3/glossary.html#term-sequence).

Implementation note: Some of the mixin methods, such as `__iter__()`, `__reversed__()` and `index()`, make repeated calls to the underlying `__getitem__()` method. Consequently, if `__getitem__()` is implemented with constant access speed, the mixin methods will have linear performance; however, if the underlying method is linear (as it would be with a linked list), the mixins will have quadratic performance and will likely need to be overridden.

Changed in version 3.5: The index() method added support for *stop* and *start* arguments.
primal yacht
#

iiiiiiiiiiiiiiiiiiiiiiiiiiii

iiiiiiiiiiiiiiiiiiiiiiiiiiii
#

what function again, @empty jolt

#
!d itertools.permutations
#

For non-globals, it must be prefiexed properly with module name

empty jolt
#

I wanted that in the script with the possible combinations like (ABC) in the results can happen also ... (A,A,A)...(B,B,B)...(C,C,C)...

primal yacht
empty jolt
#

so I found in the site the product command

#

it was like product("ABC", repeated=2)

primal yacht
#

so did you want with AAA or not?

#

or did you not want that?

empty jolt
#

done

#

I just had to change from intertool.permutation to intertool.product

wise cargoBOT
#

Hey @rough trench!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

rough trench
primal yacht
#

@rough trench are you in this VC?

#

Also, don't rely on floating point values (floats) for the price.
Use an int and just convert it dynamically ... using @property stuff will help (typing example now).

rough trench
#

could someone try to help me cause Im trynna make a str magic method that when i run the code it prints the the title, author, and cost

primal yacht
#
class Book:
    def __init__(self, /, title, author, price):
        self._title = title
        self._author = author
        self.price = price
    @property
    def title(self, /):
        return self._title
    @property
    def author(self, /):
        return self._author
    @property
    def price(self, /):
        return self._price / 100
    @price.setter # not a typo
    def price(self, value, /): # not a typo either
        if type(price) in (int, float):
            self._price = int(price * 100)
        else: # assumimg proper format
            self._price = price[0] * 100 + price[1]
    # ...
    def __lt__(self, other, /):
        if not isinstance(other, Book):
            raise TypeError(f'Cannot compare Book to {type(other).__name__}')
        return self._price < other._price
    # ...
primal yacht
#

But besides that, it provides getters for all three and a setter only for price, as an example btw

#

That price setter, the else assumes a 2-item sequence of ints.
If the currency is, say, USD (U. S. Dollars), then it would be [dollars, cents] so-to-speak

#

for the output of the price ... using a format string will help:

f"{self.title} by {self.author}, {self.price:.2f}"
#

Although I'd still recommend a better way for the currency if you can do so.

#

^ and @rough trench ... if this was for homework, I recommend you look up what everything does and understand how it works.

primal yacht
scenic wind
#

X_{n+1} = (a X_n + b), \textrm{mod}, m

scenic wind
sand forge
#

how do I copy every word that is the same like if I wanna change all the solo's to duo's really quick?

tidal shard
#

https://store.steampowered.com/app/1366840/Moon_Farming/Go back in time over 2,000 years and follow the same path as Jesus Christ, from his baptism to the resurrection. Inspired by the New Testament stories, ‘I Am Jesus Christ’ is a simulation like no other.Are you prepared to fight with Satan in the desert, cure the sick and help the needy? Per...

Release Date

2022

▶ Play video
sand forge
#

@tidal shard do you know how to do that?

#

how to copy every word that is the same and be able to change it all at once

tidal shard
scenic wind
rugged tundra
mortal crystal
sand forge
#

no, it is python (pycharm) and lets say there is this super long text and you want to delete every "hello" in the text, do you know a quick way to be able to copy every word that is the same

tidal shard
sand forge
#

❤️ thanks

#

couldn't find it xd

mortal crystal
#

hey vincent come say hi

#

@tidal shard

tidal shard
somber heath
#

"My area of expertise is the heights of human folly."

tidal shard
#

Opal, do you like Yellow Tail wine?

somber heath
#

Never had it.

rugged root
#

@scenic wind Do I want to know?

sweet lodge
#

👋

#

👋

#

It's a label printer with a DisplayPort output

#

Who needs a high resolution screen for a label printer?

rugged root
#

Wait

#

Output or input

sweet lodge
#

Output I assume

#

I don't even have all the pieces yet

#

I was super frustrated about having to setup a FOURTH different model printer for the same client

#

And then I get this thing that talks to you and apparently supports color printing through thermal transfer

#

I'm now excited to see this

#

Call Ukraine for free through your Microsoft Calling Plan
MC342067 Published Mar 12, 2022

Message Summary
You are receiving this message because your organization has a Microsoft Calling Plan.

How this affects your organization:
In support of the people of Ukraine and their families and friends around the world, we’ve made it free to call Ukraine from any Microsoft Calling Plan. Until further notice, calls made to phone numbers within Ukraine from an active Microsoft Calling Plan will not count towards minutes bundled in the calling plan.

pallid hazel
#
sand forge
#

hello! If i wanted to just delete that in the picture, what would I have to change all the w to? I tried to change all the w to "Canvas(Radda_gubbe,width=1000,height=1000)" but then it just said error.. any help pls. Python tkinter

inland grail
#

hey

sand forge
#

hi

inland grail
#

whats up

sand forge
#

got a problem

#

wrote it right before your message

#

hello! If i wanted to just delete that in the picture, what would I have to change all the w to? I tried to change all the w to "Canvas(Radda_gubbe,width=1000,height=1000)" but then it just wouldn't work.. any help pls. Python tkinter

rugged root
#

That just means it's wanting you to have a space after the comma

inland grail
#

i have a question

rugged root
#

What's the question?

inland grail
#

how can i unmute myself haha

rugged root
#

That'll tell you what you need to know about our voice gate

inland grail
#

ah ok i also want to talk about the homeoffice thing xD

#

i am coding a speech recognition asisstent

#

xD

rugged root
#

Niiiice

sweet lodge
#

Where in the world is Carmen Sandiego?

#

That's my childhood right there

rugged root
#

!stream 928250196889075762

wise cargoBOT
#

✅ @vast fog can now stream until <t:1647283472:f>.

mild quartz
sand forge
#

@rugged root I tried it and that was not the solution

signal sand
#

@rugged tundra buffet is a long term guy... simons is a short term guy..

limber osprey
#

hullo

mild quartz
#

sry im afk for a min

signal sand
#

"award winning" 😂 😂 , @mild quartz , @rugged tundra

rugged tundra
signal sand
#

Sure

signal sand
#

@shut goblet what do you want help with?

#

No...

#

I guess

#

let's switch to code-help voice

sour imp
#

👋

terse needle
#

xrandr -q

mortal crystal
#

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 120.04*+ 60.01
1680x1050 120.04
1280x1024 120.04
1440x900 120.04
1280x800 120.04
1280x720 120.04
1024x768 120.04
800x600 120.04
640x480 120.04
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 connected (normal left inverted right x axis y axis)
1920x1080 60.00 + 59.94 50.00
1680x1050 59.95
1440x900 59.89
1440x576 50.00
1440x480 59.94
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93

#

xrandr -- output "HDMI-1-0"

terse needle
mortal crystal
#

X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 11 (RRQueryOutputProperty)
Serial number of failed request: 47
Current serial number in output stream: 47

terse needle
#
#include <iostream>

int main(void){
  int n;
  std::cout << "Enter n: "; // no flush needed
  std::cin >> n;
  std::cout << "\nn: " << n;
  return 0;
} 
amber raptor
#

!e python import math a = (1,2,3) b = (10, 20, 30) print(math.dist(a,b))

wise cargoBOT
#

@amber raptor :white_check_mark: Your eval job has completed with return code 0.

33.67491648096547
signal sand
#

I would l ike to

#

@midnight agate

#

yeah\

#

yeah

#

Why is it printing hello first

#

I mean First Hello ... then message...

#

instead of message ... "HELLO"

#

Cool

signal sand
signal sand
#

No

#

Why is it printing first hello

then the message we sent

#

I meant Why is it executing grep
then print message

#

ah, got it...

#

@midnight agate

#

you have s there

#

I didn't see that...

#

yeah

#

Cool

#

No one is selling grep

#

does bufferreader means any data?

#

buffer for any data

#

yeah

#

I'm lost...

#

Yeah, I didn't have perquisites

#

prerequisites

frosty junco
#

Yes hshs

#

Yes I am

signal sand
#

yeah

#

explain

#

Ah, got it

#

It's cool

#

you can only collect valid ones...

#

@midnight agate is that it?

#

yeah... simple

#

and clean

frosty junco
#

I'm from Belo Horizonte, Minas Gerais. Your accent reminds me a little Portuguese-Portugal

signal sand
#

yeah

#

I didn't understand what is openoptions

#

@midnight agate

#

Ah, it gives all the options @midnight agate

#

I like it too...

#

pipe operator

#

@midnight agate

#

yes

#

what does seek does?

#

okay its like cursor

#

replace it

#

@midnight agate doesn't it do it in memory... why do we care about speed of ssd if just read once.

#

yeah, it makes sense... you already said you are refreshing it every 1/10 of a sec...

#

so it is in hard disk

#

10000

#

yeah... I thought... for performance... we read file to memory and lock it or something...

#

haha, no

#

I wonder, if we can write code rust in rust using vim... in rust

#

No ... with that command

#

rust inside rust

#

@midnight agate bye, gotta go

unborn cedar
#

mmmmmmmmmm yes]

#

import : bitches

#

gets bitches

meager pebble
#

good idea

unborn cedar
#

then you can loop it until a stack overflow, because big frog has no bitches

#

jk

meager pebble
#

says the guy with a mouse more expensive than ur computer

tough abyss
#

I cant see the stream

unborn cedar
#

mountain man username

somber heath
#

!e ```py
vs = (3,1), (2,2), (1,3)
alpha = sorted(vs, key=lambda a: a[0])
beta = sorted(vs, key=lambda a:a[1])
print(alpha)
print(beta)

#sorted(vs, key=lambda a: a[0]) being roughly equivalent to
def func(a):
return a[0]
sorted(vs, key=func)```

wise cargoBOT
#

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

001 | [(1, 3), (2, 2), (3, 1)]
002 | [(3, 1), (2, 2), (1, 3)]
somber heath
#

!e py k = iter([1, "a"]) vs = 1, 2 sorted(vs, key=lambda a: next(k))

wise cargoBOT
#

@somber heath :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | TypeError: '<' not supported between instances of 'str' and 'int'
somber heath
#

!e py k = iter([2, 1]) vs = "ab" print(sorted(vs, key=lambda a: next(k))) 

wise cargoBOT
#

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

['b', 'a']
somber heath
#

!e py text = "applecakes" print(sorted(text))

wise cargoBOT
#

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

['a', 'a', 'c', 'e', 'e', 'k', 'l', 'p', 'p', 's']
somber heath
#

!e py text = "applecakes" print(*sorted(text), sep="") result = "".join(sorted(text)) print(result)

wise cargoBOT
#

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

001 | aaceeklpps
002 | aaceeklpps
ruby lantern
#

!e

vowels_iter = iter(vowels)
for _ in range(10):
    print(next(vowels_iter))```
wise cargoBOT
#

@ruby lantern :x: Your eval job has completed with return code 1.

001 | a
002 | e
003 | i
004 | o
005 | u
006 | Traceback (most recent call last):
007 |   File "<string>", line 4, in <module>
008 | StopIteration
somber heath
#

!e py import itertools vs = itertools.cycle("abc") for _ in range(9): print(next(vs))

wise cargoBOT
#

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

001 | a
002 | b
003 | c
004 | a
005 | b
006 | c
007 | a
008 | b
009 | c
somber heath
#

!e ```py
def my_generator():
a = ""
while True:
yield a
a += "*"

g = my_generator()
print(next(g))
print(next(g))
print(next(g))
print(next(g))```

wise cargoBOT
#

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

001 | 
002 | *
003 | **
004 | ***
willow lynx
#

why we add , at the end in some list

ruby lantern
#

@willow lynx What do you mean?

willow lynx
#

in django some lists are like ['a','b','c',]

#

there is comma at the end

somber heath
#

It won't be a native list.

willow lynx
#

urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('int:pk/', views.DetailView.as_view(), name='detail'),
path('int:pk/results/', views.ResultsView.as_view(), name='results'),
path('int:question_id/vote/', views.vote, name='vote'),
]

#

there is comma at the end

somber heath
#
>>>var
[1, 2, 3,]
>>>type(var)```
#
???```
willow lynx
#

I am trying to learn django

somber heath
#

!e py text = "apple" result = type(text) print(result)

wise cargoBOT
#

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

<class 'str'>
somber heath
#

!e py a = [1, 2, 3,] print(a)

wise cargoBOT
#

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

[1, 2, 3]
somber heath
#

!e ```py
class MyList(list):
def str(self):
a = super().str()
return f"{a[:-1]},]"

m = MyList("apple")
print(m)
print(type(m)) ```

wise cargoBOT
#

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

001 | ['a', 'p', 'p', 'l', 'e',]
002 | <class '__main__.MyList'>
somber heath
#

!e py a = list("apple") print(a.__str__())

wise cargoBOT
#

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

['a', 'p', 'p', 'l', 'e']
somber heath
#
a = "['a', 'p', 'p', 'l', 'e']"```
#

!e print(repr([1, 2, 2]))

wise cargoBOT
#

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

[1, 2, 2]
willow lynx
#

!e a='apple' print(f'{a[:-1}')

#

why haave you used f string

somber heath
#

!e py a = "apple" print(a[:-1])

ruby lantern
#

!e

class MyList(list):
    def __str__(self):
        for _ in self.__class__.__bases__:
            print(_.__name__)
        a = super().__str__()
        return f"{a[:-1]},]"
m = MyList("apple")
wise cargoBOT
#

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

appl
somber heath
#

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

ruby lantern
#

!e

class MyList(list):
    def __str__(self):
        for _ in self.__class__.__bases__:
            print(_.__name__)
        a = super().__str__()
        return f"{a[:-1]},]"
m = MyList("apple")
print(m)
wise cargoBOT
#

@ruby lantern :warning: Your eval job has completed with return code 0.

[No output]
ruby lantern
#

!e

class MyList(list):
    def __str__(self):
        for _ in self.__class__.__bases__:
            print(_.__name__)
        a = super().__str__()
        return f"{a[:-1]},]"
m = MyList("apple")
print(m)
wise cargoBOT
#

@ruby lantern :white_check_mark: Your eval job has completed with return code 0.

001 | list
002 | ['a', 'p', 'p', 'l', 'e',]
deep wave
tough abyss
#

like bootstrap

#

what does vscode intellicode do?

deep wave
#
// ES5
const fs = require('fs');

// ES6+
import fs from 'fs';
tough abyss
#

both

deep wave
tough abyss
#

react has stopped support for IE

#

18

#

How long have you been leet coding?

#

How do you approach a problem in leetcode? Do you always go for the efficient solution first or brute force?

#

say: you see a problem and it's obvious to do the brute force way. Do you still brute force or go for the efficient?

deep wave
tough abyss
#

😄

deep wave
tough abyss
#

true

#

web developer?

#

Full stack :D?

#

I do js mostly. but use python for data analysis

deep wave
tough abyss
#

@ruby lantern , you sound somewhat like the content creator of codedamn

#

youtube channel

#

See ya

#

type

#

25

#

Where are you from brian?

deep wave
#

Arizona, United States

tough abyss
#

How long have you been working as web dev?

deep wave
#

4 years

tough abyss
#

you are in what position? senior??

deep wave
#

in mean, if i leave and get another job i could get senior

#

i'm just a normal engineer

tough abyss
#

what tech stacks do you and your company use?

#

😄

#

:F