#voice-chat-text-0

1 messages ยท Page 667 of 1

stiff granite
somber heath
#

zip, enumerate, subscription/indicies, dict.

languid storm
#

can u guys help me

#

i got to get the square root of a number

#

and i dont know how

somber heath
#

math

#

math.sqrt

languid storm
#

**it has to be a negative number

stiff granite
#

your going to have to import math

languid storm
#

import math
math.sqrt(-16)

#

idk what a complex number is

#

9th

#

algebra 1

#

this is for cs

#

yea

stiff granite
#

sqrt(16) = 4

#

but sqrt(-16) = 4i

#

i = sqrt(-1)

#

a+bi

#

a+bj

languid storm
#

so how would i do

somber heath
#

complex

languid storm
#

where u have to enter a number and it goes "Enter a number: -16"
and then u get 4.0

stiff granite
#

in your code put this at the top

import math as math
import complex as complex
#

that will import the 2 classes for u

somber heath
#
>>>complex(1,2)
(1+2j)```
#

It's a builtin.

languid storm
#

it says that this line is wrong
math.sqrt(-16)import math as math

stiff granite
#

then to do any function u could do

complex.XXX = ************
math.XXX = ***************
languid storm
#

ive been looking for a while

#

this is more of a last resort

stiff granite
#
import complex as complex

complex.sqrt(-16)

or something like that

languid storm
#

i just need to find the square root of -16

#

or have a way to type in a number

#

and get the square root

#

yea it would help

frozen oasis
languid storm
#

yea i can do normal square roots

#

but i cant do it in code

#

ok so whats the difference again about complex math and math

somber heath
#

...it's definitely more complex.

languid storm
#

lmaoo

#

alright so what i have to do

stiff granite
#

then do

import complex as complex

cmplx_num = input("what number would you like to find the sqrt of")

print(complex.sqrt(cmplx_num))
languid storm
#

is write the code to input a number of my choice

#

then use the absolute value function to make sure that if i use a negative number it doesnt crash

somber heath
#

complex is a builtin

#

You don't need to import it.

languid storm
#

ok so how would i use absolute value in a negative number

somber heath
#

It's like the str class.

#

Or the int class. list.

languid storm
#

and then get the square root

somber heath
#

abs is a function.

#
>>>abs(1)
1
>>>abs(-1)
1```
fleet kettle
#

hi

stiff granite
#

hi

fleet kettle
#

why can't we talk?

fiery hearth
#

youre new to this channel

fleet kettle
#

sure

#

I'm not new

fiery hearth
#

you need to have 50 msg n be memmber for 3 days

fleet kettle
#

well anyways

#

I was wondering if you could help me

stiff granite
#

sure what do u need

fleet kettle
#

because I took up coding again and I'm following this tutorial about while loops

#

and idk what did I do wrong

stiff granite
#

maybe im wont be the best help and opal might be better but ill do my best

#

ok can u share ur code

fleet kettle
#

which was the command

#

''python

stiff granite
#

3 `

#

its 3 back ticks

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.

fleet kettle
#
while True:
    mission = input("-").lower()
    if mission == "shoot" :
        print("Nice shot! You saved the president")
    elif mission == "leave":
        print("Wise choice!")
    elif mission == "quit":
        break
    else:   
        print("GG")
#

it's not printing anything

#

it just asks for another input

#

let me see I'll close VSC and try again

stiff granite
fleet kettle
#

it's a really straight-forward exercise

#

idk why it wasn't working

#

it was working now

#

it is**

#

I guess it was an editor's problem

#

thanks

#

hope I get verified soon haha

#

alright

#

thanks

stiff granite
#

thats the code

pure path
#

sup people

buoyant topaz
#

sup

hallow warren
#

@fiery hearth thank you!

fiery hearth
#

looks good mate @hallow warren

#

Who would be the lucky person to bring in Elon?

scarlet drift
#

@fiery hearth

#

Ever worked with the debugger of dev tools?

fiery hearth
#

yes mate

#

nope

scarlet drift
#

ah

#

aight

scarlet drift
#

Hey wssup @somber heath

somber heath
#

o/

pale dew
#

    name = "roxy"
    height = "50cm"
    color = "Grey"
    race = "german shepherd"

    def dog_info(self):
        return f"this dogs name is {name} his race is {race} he is a {color} dog's height is{race}"
    pass

dog1 = Animal
print(dog1.name)
print(dog1.height)
print(dog1.color)
print(dog1.race)
print(dog1.dog_info)

it gives an error of <function Animal.dog_info at 0x0000028B3A3C9D30>

scarlet drift
#

wait why'd you write python class?

#

oh nvm lol

pale dew
#

its a mistake i wanted it to look like python lol

somber heath
#

You want to call the method. You're missing parentheses.

pale dew
#

im pretty new

scarlet drift
#

add paranthesis

#

even when creating an object

somber heath
#

Right now, you're only printing references to the methods

#
print(dog1.dog_info)
#vs
print(dog1.dog_info())```
#

pass is not needed there, either.

scarlet drift
#

because if you have an __init__ method then it won't get executed if you don't have parenthesis on the class, right @somber heath ?

somber heath
#

Parentheses on class declarations are only needed if you're inheriting from another class.

scarlet drift
#

No I meant if he's creating an object

pale dew
#

wait it still doesn't work

scarlet drift
#

obj = someclass()

somber heath
#

When you're instantiating a class, then yes, parentheses are required.

pale dew
somber heath
#
class MyList(list): #<-- This is inheritance.
    pass
my_list = MyList()
my_list.append('Hello')

class MyBlank:
    pass
my_blank = MyBlank()```
pale dew
#

it says im missing self

scarlet drift
#

return f"this dogs name is {name} his race is {race} he is a {color} dog's height is{race}" add self with the variables

somber heath
#

You only need the paretheses for the dog_info call.

scarlet drift
#

because you're using class attributes

somber heath
#

You've defined the other things as strings, not methods to be called

scarlet drift
#

here

pale dew
#

i added self

scarlet drift
#

return f"this dogs name is {self.name} his race is {self.race} he is a {self.color} dog's height is{self.race}"

pale dew
#

i did that look

scarlet drift
#

hmmmm

#

wait

#

dog1 = Animal()

pale dew
#

THANKS IT WORKS

scarlet drift
#

hahahah no worries

#

happy to contribute

whole bear
#

lol

scarlet drift
#

man I'm still not used to VSCode

whole bear
#

i am man and its great

somber heath
#

Now, if you wanted, you could put @property above your dog_info def. That way you could drop the parentheses in the print.

#

Not print's.

scarlet drift
#

@somber heath what does property do tho?

#

exactly

somber heath
#

!e

    def __init__(self):
        self._value = 'Hello, world.'
    @property
    def value(self):
        return self._value

my_class = MyClass()
print(my_class.value)```
pale dew
#

what's intit_ do

wise cargoBOT
#

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

Hello, world.
scarlet drift
#

what's intit_ do
@pale dew it's a constructor

somber heath
#

It runs when you instantiate a class.

scarlet drift
#

Basically when you instantiate a class, the __init__ executes immediately

#

setting up obj variables and stuff

#

that you pass in

#

or not

#

Basically anything that you do in the __init__ get's executed as soon as the class is instantiated

#

you could call in methods here, set variables, etc

somber heath
#

Methods, functions within a class, which have double underscores in that fashion are called "magic methods", or "dunder methods". Double underscore methods.

#

But the __init__ dunder/magic method is, as mentioned, refered to as the constructor of a class.

scarlet drift
#

@pale dew ^

somber heath
#

Understanding magic methods is a large part of understanding what goes on behind the scenes in Python syntax.

#

A lot of what you do is actually, sneakily, calling these methods without telling you.

#
>>>num = 1
>>>num + 1
2
>>>num.__add__(1)
2```
scarlet drift
#
>>>num = 1
>>>num + 1
2
>>>num.__add__(1)
2```

@somber heath everything is primarily an object in python so lol

pale dew
#
class Animal():

    name = "roxy"
    height = "50cm"
    color = "Grey"
    race = "german shepherd"
    dog_bark = "Burk"

    def dog_info(self):
        return f"this dogs name is {self.name} his race is {self.race} he is a {self.color} dog, his height is{self.race}"
    def voice(self):
        return f"this dogs bark sounds like this {self.dog_bark} So cute "

    """This class has data of name,height,color,dog_bark,race of a dog
        it contains a function that returns all information about the dog 
        and a function that lets the user hear the dogs bark """

dog1 = Animal()
dog2 = Animal()
print(dog1.dog_info())
print(dog1.voice())
dog2.name = "var"
dog2.height="25"
dog2.color = "white"
dog2.race = "Bichon"
dog2.dog_bark = "BARK"
print(dog2.dog_info())
print(dog2.voice())```
#

Create a class "animal".
Fill it with data and methods of your choice.
Write docking strings with method description in class methods

#

This was my task do you think its okay

somber heath
#
class MyInt(int):
    def __add__(self, v):
        return self * v
num = MyInt(5)
num == 5
(num + 1) == 5
(num + 2) == 10```
scarlet drift
#

This was my task do you think its okay
@pale dew wait, were you asking help on your homework? lol

pale dew
#

yes

#

lol

scarlet drift
#

dude

pale dew
#

but i mostly did it by myself

scarlet drift
#

it's against rule number 5

#

lol

pale dew
#

wait for real?

scarlet drift
#

If it's an assignment, we can only guide you in the right direction

#

but not do the actual coding part lol

somber heath
#

General assistance is acceptable. Doing the work for you is not. We can teach you the python you need to be able to apply concepts to your work.

scarlet drift
#

General assistance is acceptable. Doing the work for you is not. We can teach you the python you need to be able to them apply concepts to your work.
@somber heath yeah

pale dew
#

well you only told me about ()

scarlet drift
#

hahahahahah yeah it's fine

pale dew
#

well is it good?

scarlet drift
#

what is good?

#

your code?

pale dew
#

yeah rate my home task

#

Create a class "animal".
Fill it with data and methods of your choice.
Write docking strings with method description in class methods

scarlet drift
#

the docstring should be on the upper end of the method

#

def voice(self): """This class has data of name,height,color,dog_bark,race of a dog it contains a function that returns all information about the dog and a function that lets the user hear the dogs bark """ return f"this dogs bark sounds like this {self.dog_bark} So cute "

vestal halo
#

hi pythons

scarlet drift
#

actually sorry

somber heath
#

Pythonistas.

vestal halo
#

career criteria

scarlet drift
#

if you're describing what your class does then it should be below class Animal:

vestal halo
#

return to monke

scarlet drift
#

Pythonistas.
@vestal halo

vestal halo
#

ok bro understood

pale dew
scarlet drift
#

like this @scarlet drift
@pale dew yes

pale dew
#

is it good?

scarlet drift
#

And when referring to class functions, use the word methods instead

#

the docstring that describes the method should be below def function_name()

#

docstrings should be in the scope of things that you defining

pale dew
#

like this?

scarlet drift
#
def dog_info(self):
    """Your doc string"""
    <your code here>
pale dew
#

oh okay

scarlet drift
#

yes

#

and try to have gaps lol

#

like

#
def dog_info(self):

    """Your doc string"""

    <your code here>
#

that's how I like it anyways

#

it looks clean and doesn't get mixed up with your code

#

@pale dew

pale dew
#

i didn't put a gap right after

#

so that the text would look a bit smaller

#

and shorter

#

okay im handing it in

scarlet drift
#

Yeah this looks fine too

pale dew
#

okay thanks for help

scarlet drift
#

okay thanks for help
@pale dew anytime man

vestal halo
#

@hallow warren not fulfilled the criteria to talk on voice channel

#

thats why mic server muted

scarlet drift
#

By the way, for future references, if you click on the user, in the roles section, you can see who is voice verified

#

@hallow warren

hallow warren
#

@vestal halo what must I do to obtain permission to speak?

scarlet drift
#

@hallow warren The criteria for voice verification is to have sent 50 messages without deletion and be in the channel for at least 3 days

vestal halo
#

@vestal halo what must I do to obtain permission to speak?
@hallow warren check #voice-verification and fulfill the requirements

foggy sluice
#

for event in pygame.event.get():
pygame.error: video system not initialized

#

Anyone familiar with this error?

scarlet drift
#

@foggy sluice Check the pygame channel

#

or open up a help channel

#

Someone with pygame expertise will help you there

foggy sluice
#

Thanks, I just did it!

#

Btw where is the pygame channel?

scarlet drift
#

sorry my bad there is no pygame channel, but there is a game-dev channel @foggy sluice

foggy sluice
#

I will check that one out

whole bear
#

for event in pygame.event.get():
pygame.error: video system not initialized
@foggy sluice did yu do pygame.init()

#

and did you make a display

foggy sluice
#

I have got it work now!

gentle flint
#

argh, discord died

pure path
#

ye

stuck furnace
#

Oh so voice channels are working

#

Hey ๐Ÿ˜„

pure path
#

bruh how are your messages sending?

gentle flint
#

only every so often

rugged root
#

Test test?

stuck furnace
#

The answer is, most of them weren't ๐Ÿ˜„

pure path
#

it's not working for me

#

well I have to do it like 50 times

pliant atlas
#

Yep it's back to normal

#

I think

pure path
#

is it now?

gentle flint
#

mostly

#

spoke too soon

stuck furnace
#

not a chance Rabbit

swift valley
#

Evening

frigid panther
#

gevening

gentle flint
#

also in many channels messages won't load

stuck furnace
#

Wow it took a long time to send that reply

pure path
#

discord broken

dusky arch
#

hey is discord glitching for anyone? Message failed to load Try Again?

frigid panther
#

yep

pure path
#

imagine somebody spams now

#

well I think it's fixed

dusky arch
#

have to retry like 5 times to send a msg xD

stuck furnace
#

Want some help with that PR Hem?

pure path
#

nope it's not

dusky arch
#

yes it is lol

hollow haven
#

Discord is on the struggle bus this morning

swift valley
#

Hmm, not to sure about what to work on next on my project

pure path
#

@swift valley u finshed the module?

swift valley
#

Fair enough, just making myself drowsy really

#

Even clicking on the message box takes forever

frigid panther
#

I'm too lazy to program today, I guess I will spend time watching youtube tonight

pure path
#

watch anime

frigid panther
#

I spent too much time already programming today, lol

swift valley
#

I spend half my morning watching streams lol

frigid panther
#

game streams?

swift valley
#

Streamer-viewer interactions on <1k streams are surreal

#

Yikes

dusky arch
#

bot cmds not working?

swift valley
#

Seems like it's getting better? Not too sure though

pliant atlas
#

hello?

hallow warren
#

haha

pure path
#

back?

dusky arch
#

@pure path it is for all lol

pure path
#

ik

swift valley
#

@lusty marsh The Kivy maintainers have a project related to compiling Python to Android

#

Something something buildozer

pure path
#

ohh images do load

rugged root
#

Slowly stabilizing

pure path
#

that's good

rugged root
pure path
#

??

#

!ping

stuck furnace
#

Erm, is it just me, or has the "available help channels" category disappeared?

hollow haven
#

It has, bot is hiccuping

dusky arch
#

yea it is not there

pure path
#

๐Ÿ˜„

swift valley
#

I'm facepalming to eternity

hallow warren
rugged root
stuck furnace
#

Oh, I remember having those on vacation in America

pure path
#

ohh I want to eat those

stuck furnace
#

Also, you look thinner by comparison

#

if you fatten everyone else up ๐Ÿ˜„

hollow haven
#

haha, very true!

gentle flint
pure path
lethal ingot
#

๐Ÿ‘Œ

pure path
#

@rugged root why would u need to store the message id?
why not store the message object instead?

#

oh, idk whatever redis

#

is

#

@rugged root May I ask why do u guys use redis and what is redis?

#

ohh

lethal ingot
#

Hey guys, just a general question, how can I clone my laptop hard disk into a usb and then put the disk image into a new ssd ?

#

I purchased 265Gb usb

hollow haven
#

~ this?

stuck furnace
#

I think it flips the bits of an integer?

#

But it's essentially equivalent to -x - 1?

lusty marsh
#

!e

print(~1)
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

-2
lusty marsh
#

!e

print(~2)
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

-3
lusty marsh
#

!e

print(~0)
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

-1
stuck furnace
#

You have to imagine an infinite sequence of 0s extending leftwards from a positive integer.

#

And 1s for a negative integer.

slender bison
#

!e

print(bin(2))
print(bin(~2))```
wise cargoBOT
#

@slender bison :white_check_mark: Your eval job has completed with return code 0.

001 | 0b10
002 | -0b11
austere linden
#

Hello @stuck furnace @rugged root
I hope y'all are sound?

rugged root
#

More or less. 'bout yourself?

stuck furnace
#

Hey ๐Ÿ˜„

slender bison
#

!e

print(bin(21))
print(bin(~21))```
wise cargoBOT
#

@slender bison :white_check_mark: Your eval job has completed with return code 0.

001 | 0b10101
002 | -0b10110
pure path
lusty marsh
#

!e

print(~bin(8))
wise cargoBOT
#

@lusty marsh :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: bad operand type for unary ~: 'str'
dusky arch
pure path
#

hmm?

lusty marsh
#

!e

print(bin(~8))
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

-0b1001
stuck furnace
#

Oh, I think someone needs help in the code/help channel.

gentle flint
#

trying to pop smth not in the list @pure path

stuck furnace
#

Yep, it's 2s complement.

gentle flint
#

like if you have a list of len 3 and try to pop element 8 you will get that

#

iirc

pure path
#

ohh

dusky arch
#

Username: Krish#4140 btw if you wondering

lusty marsh
#

!e

print(1-5)
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

-4
stuck furnace
#

So 3 is ...00000011 and -4 is ...111111100

gentle flint
#

!e

mylist = ["h", "i", "j"]
mylist.pop(1)
print(mylist)
mylist.pop(8)
wise cargoBOT
#

@gentle flint :x: Your eval job has completed with return code 1.

001 | ['h', 'j']
002 | Traceback (most recent call last):
003 |   File "<string>", line 4, in <module>
004 | IndexError: pop index out of range
stuck furnace
#

I've never used ~ except for code golf ๐Ÿ˜„

#

But it might be useful for overloading.

lusty marsh
#
!A
cin
stuck furnace
#

There are these really nice posters on integer representations, from Berkeley...

austere linden
#

Nice to hear from you guys @rugged root @stuck furnace
I am in class now, learning bits and parts of AI... mainly to do with Data Science.

stuck furnace
#

Oh nice

lusty marsh
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.

swift valley
#

.uwu 775387274414129172

viscid lagoonBOT
#

5. Do not pwovide ow wequest hewp on pwojects dat may bweak waws, bweach tewms of sewvices, be considewed mawicious ow inappwopwiate. Do not hewp wid ongoing exams. Do not pwovide ow wequest sowutions fow gwaded assignments, awfough genewaw guidance is okay.

dusky arch
#

oof

lusty marsh
#

.uwu hello world

viscid lagoonBOT
#

hewwo wowwd

lusty marsh
#

.uwu uwu

viscid lagoonBOT
#

uwu

slender bison
#

.uwu We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defense, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America.

viscid lagoonBOT
#

We de Peopwe of de United States, in Owdew to fowm a mowe pewfect Union, estabwish Justice, insuwe domestic Twanquiwity, pwovide fow de common defense, pwomote de genewaw Wewfawe, and secuwe de Bwessings of Wibewty to ouwsewves and ouw Postewity, do owdain and estabwish dis Constitution fow de United States of Amewica.

lusty marsh
#

.uwu ```py
if offset >= 10 and ndot or isfirst:
globs = np.append(globs, (x, y))
else:
pass

viscid lagoonBOT
#
 if offset >= 10 and ndot ow isfwiwst:
        gwobs = np.append(gwobs, (x, y))
    ewse:
        pass
pure path
#

yikes

swift valley
#

Don't make me uwu GNU/Linux

dusky arch
#

It works with eveything

lusty marsh
#

.uwu ```py
import pail.cv as cv
import PIL.Image

globbed = cv.ObjectDetection("pail\test.jpg", showmatches=True, globlike=True).run()
globbed = cv.groupings(globbed[0], globbed[1])
PIL.Image.fromarray(globbed).save("edit.png")

viscid lagoonBOT
#

impowt paiw.cv as cv
impowt PIW.Image

gwobbed = cv.ObjectDetection("paiw\test.jpg", showmatches=Twue, gwobwike=Twue).wun()
gwobbed = cv.gwoupings(gwobbed[0], gwobbed[1])
PIW.Image.fwomawway(gwobbed).save("edit.png")

lusty marsh
#

.uwu IndexError: invalid index to scalar variable.

viscid lagoonBOT
#

IndexEwwow: invawid index to scawaw vawiabwe.

languid storm
#

hey can u guys help me

lusty marsh
#

sure

swift valley
lusty marsh
#

about what?

languid storm
#

ok so i need to fix some code

#

i made this

#

if ( word == not "Ada Lovelace"):
print("Not Correct")

lusty marsh
#

if word != "Ada Lovelace"

languid storm
#

alr

#

wait so ! makes it not equal

#

ohhh

lusty marsh
#
==
!= 
languid storm
#

it says its wrong

lusty marsh
#

how

#

can you run the code?

hollow haven
#

=[

languid storm
#

no its wrong on that line

hollow haven
#

=3c <-- still my fave smug smiley face

lusty marsh
#

!e

print(True is True)
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

True
languid storm
#

so i put !e before if word != "Ada Lovelace"

swift valley
languid storm
#

wait so i would put !e before all of my code?

rugged root
#

!e

word = "spam"
if word != "Ada Lovelace":
  print("Not correct")
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

Not correct
rugged root
#
        if message_id := await self.redis_cache.get(ctx.author.id, NO_MSG):
            log.trace(f"Removing voice gate reminder message for user: {ctx.author.id}")
            with suppress(discord.NotFound):
                await self.bot.http.delete_message(Channels.voice_gate, message_id)
            await self.redis_cache.set(ctx.author.id, NO_MSG)
stuck furnace
#

assert is under-appreciated ๐Ÿ˜„

#

Oh, another useful application of :=

#
if m := re.match(...):
    ...
languid storm
#

ohhh ok so the first line would have worked

#

but the colen wasnt there

#

alr thanks guys

swift valley
#

I feel like assert is not a fun way of validating types for functions

lusty marsh
#

!e

assert False
wise cargoBOT
#

@lusty marsh :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | AssertionError
stuck furnace
#

Oh, you were just listening to Siamese Dream Hemlock?

#

Love that album

swift valley
#

I'd personally go for

@typed(int, int)
def add(x, y):
    return x + y
lusty marsh
#

!e

lambda dominance: "what ever"
assert dominance()
wise cargoBOT
#

@lusty marsh :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | NameError: name 'dominance' is not defined
stuck furnace
#

Over-reliance on autocomplete samimies ๐Ÿ˜„

lusty marsh
#

!e

dominance = lambda: "what ever"
assert dominance()
wise cargoBOT
#

@lusty marsh :warning: Your eval job has completed with return code 0.

[No output]
pure path
#

@rugged root hey may I see the current thing that u have for voice verifcation thingy?

rugged root
pure path
#

thx

stuck furnace
swift valley
#

@lusty marsh The Haskell standard library just reads like math

stuck furnace
#

Look at the last comment in that channel ๐Ÿ˜„

pure path
#

Look at the last comment in that channel ๐Ÿ˜„
@stuck furnace #bot-commands message

hmm tha'ts not even doing anything

green needle
#

bro this voice verification is dumb

#

ive been here for months

lusty marsh
#

!e

from builtins import print; _ = lambda : [x for x in range(98, 100)]; __ = lambda ___: print("".join([x for x in ___])); __(_())
wise cargoBOT
#

@lusty marsh :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 |   File "<string>", line 1, in <lambda>
004 | TypeError: sequence item 0: expected str instance, int found
green needle
#

and i cant speak now me angry ๐Ÿ˜ 

lusty marsh
#

!e

_ = lambda: [x for x in range(98, 100)]; __ = lambda ___: __builtins__.print("".join([__builtins__.chr(x) for x in ___])); __(_())
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

bc
swift valley
#

@rugged root Haskell has a type for unbound integers, but they're super slow

#

Most of the time you'll get away with 64-bit integers though

lusty marsh
#

!e

_ = lambda: [x for x in range(97, 97+26)]; __ = lambda ___: __builtins__.print("".join([__builtins__.chr(x) for x in ___])); __(_())
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

abcdefghijklmnopqrstuvwxyz
stuck furnace
#

Yeah, been meaning to revisit chemistry at some point to understand this stuff ๐Ÿ˜„

#

Oh god

#

I'm deleting that comment so it's not read out-of-context...

stoic ore
#

@ hi Alll

hollow haven
#

Keep the out of context =P

gentle flint
dusky arch
#

I think we got a memer Cl603 look different topical chats xD

pliant atlas
#

is everything back to normal?

#

yep it is

lusty marsh
#

!e

c = lambda: [x for x in range(48, 58)]+[x for x in range(97, 97+26)]; o = lambda ___: __builtins__.print("".join([__builtins__.chr(x) for x in ___])); o([c()[17], c()[14], c()[21], c()[21], c()[24]])
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

hello
pure path
#

@gentle flint are u building a pc?

#

@gentle flint i have a server just for u wait up

stuck furnace
#

I remember when it was

#

๐Ÿ˜„

pure path
gentle flint
#

thanks

stuck furnace
#

brb

pure path
#

I like using the terminal for vsc

tiny seal
rugged root
#

@boreal dock What do you need help with?

boreal dock
#

Yes, I have a problem but not on the python language but on c ++ can you help me? I am a student

#

I'm from italy

#

@rugged root

#

#include <iostream>

using namespace std;

const int DIM = 9;

void Stampa(char a[])
{
cout<<endl;

cout<<"  "<<a[0]<<"  "<<a[1]<<"  "<<a[2]<<endl;
cout<<"  "<<a[3]<<"  "<<a[4]<<"  "<<a[5]<<endl;
cout<<"  "<<a[6]<<"  "<<a[7]<<"  "<<a[8]<<endl;

cout<<endl;

}

void Init(char a[])
{
for(int i =0; i<DIM; i++)
{
a[i] = 48+i;
}
}

bool Mossa(char giocatore, char a[])
{
int m;
do
{
cout<<"giocatore -"<<giocatore<<"- mossa: ";
cin>> m;
}while( m<0 || m>8 || a[m]=='X' || a[m]!='O' );

a[m]=giocatore;

if(a[0]==giocatore && a[0]==a[1] && a[1]==a[2]) return true;


return false;

}

int main()
{
char v[DIM];
int numMosse;
char giocatore;
bool ris;

numMosse=0;
giocatore='X';

Init(v);
Stampa(v);

do
{
  cout<<" muove giocatore "<< giocatore;

  ris=Mossa(giocatore, v);

  if(giocatore=='X') giocatore='O';
  else giocatore='X';


  numMosse++;

}while(ris==0);


return 0;

}

#

This

#

Where is the problem?

pure path
#

hey you could do ```c++ code here ```

rugged root
swift valley
boreal dock
#

Ohh tanx

#

im sorry

pure path
#

@swift valley that theme looks like butter

swift valley
#

I'm saving that work for tomorrow, at least I know what I can work on without being stuck in analysis

#

Set operations are really fast

#

Saved a few minutes on a program I wrote before that did use lists

lusty marsh
#

!e

s = {"hello", "world"}
print(s)
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

{'hello', 'world'}
lusty marsh
#

!e

s = {"hello", "world"}
print(s[0])
wise cargoBOT
#

@lusty marsh :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | TypeError: 'set' object is not subscriptable
lusty marsh
#

!e

import time
mon = time.time()
members = {"1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2"}
for i in members: pass
print(f"fi {time.time()-mon}(s)")
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

fi 4.5299530029296875e-06(s)
lusty marsh
#

!e

import time
mon = time.time()
members = {"1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2"}
print(f"fi {time.time()-mon}(s)")
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

fi 2.384185791015625e-06(s)
lusty marsh
#

!e

import time
mon = time.time()
members = {x for x in range(9000)}
print(f"fi {time.time()-mon}(s)")
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

fi 0.0009889602661132812(s)
stuck furnace
#

Erm, they shouldn't be.

#

But determining whether a key is in a dictionary is asymptotically faster than checking membership in a list.

lusty marsh
#

array = [0]
dict_  = {"0": 0}
#

!e

print({x: x-x for x in range(8)})
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

{0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0}
swift valley
#

Both testing the worst case at 10,000 iterations

#

I don't have the old list-based code but it's faster than 11 seconds when checking the set difference

rugged root
#
py -m timeit -s 'import random; test = set(range(1000)); check = random.randrange(1000)' 'check in t
est'
#

@whole bear Take a look at the #voice-verification channel. That should tell you what you need to know

stuck furnace
#

There's exec and eval

#

eval evaluates an expression

rugged root
stuck furnace
#

See ya

swift valley
#

Gotta hop off for the night, see ya folks

lusty marsh
#

!e

i = 0
ram = {x: x-x for x in range(60000)}

while ram[i] >= 0:
    ram[i] += 1
    i += 1
    ram[i] += 1
    print(ram[i])
    

wise cargoBOT
#

@lusty marsh :x: Your eval job has completed with return code 1.

001 | 1
002 | 1
003 | 1
004 | 1
005 | 1
006 | 1
007 | 1
008 | 1
009 | 1
010 | 1
011 | 1
... (truncated - too many lines)

Full output: too long to upload

whole bear
#

opengl makes my ass hurt

#

i had to fix it for half an hour just for a white triangle to render

candid venture
#

@tiny seal oh yas sexy shit

whole bear
#

aLRIGHT GUYS

#

hEMLOCK SAID THIS SERVER IS NOT OFFICIAL

#

hEhE

#

Restart the speech

#

its kinda cool

candid venture
whole bear
#

Mr. HeMlOcK

#

@elder sable you should create a python helpline

#

@candid venture if you create a yt channel, don't just type code, explain it diagrammatically

candid venture
whole bear
#

i am using edge

elder sable
#

I dont like being on edge all the time

#

I just want to chill

whole bear
#

someone help me with math

candid venture
#

@whole bear please read the rules

#

asking for doing homeowrk for you in this chat is not allowed

rugged root
#

They can ask

#

We just won't do the work for them

candid venture
#

fixed *

rugged root
#

@whole bear It's not official only because we aren't run by the PSF (Python Software Foundation).

whole bear
#

yeah

#

which text-editor or IDE do you guys use ?

#

how do i find the drop in altitude

candid venture
#

which text-editor or IDE do you guys use ?
@whole bear
VSCODE and Nano

whole bear
#

Rider ?

#

yeaa thats rider from jetbrains for c#

#

which text-editor or IDE do you guys use ?
@whole bear VSCODE

#

cool

rugged root
gentle flint
whole bear
#

hehe

#

i joined a week ago

#

i was not active doe

odd lynx
#

Thanks @rugged root Didn;t see that channel

rugged root
#

No worries!

whole bear
#

ig we need to be active for half an hour to be eligible for voice verification

gentle flint
#
  • 3 days
#

also 50 msgs since August 21

whole bear
#

thats the min number of days for which we need to be a member

gentle flint
whole bear
#

how did lemonsaurus make that face change thingy on his website? that's cooool

#

click on his face

#

do you guys know logo_django2 ?

gentle flint
#

not me

whole bear
#

Not me also but i do wanna learn it

#

ig i should start with logo_flask

#

i just got strong with the basics

rugged root
whole bear
#

reading through the docs or from youtube?

#

docs and intellisense

#

uyeah i was also thinking for the docs

#

ohh

#

which editor do u use??

#

VSC

#

yeah that's the best for python ig

#

rather than pycharm

#

if i get voice verified, would i be able to stream in general ? Mr. Hemlock.

rugged root
#

No, that's reserved for staff and contributors

whole bear
#

Okay

rugged root
#

The only time I allow streaming/give someone streaming permissions is if they need help or they're doing something to benefit the server like coding or reviews or what have you

#

And on the latter, I tend to only do it when I know the person well

whole bear
#

Okay, I understand. Thank You ๐Ÿ™‚

#

just use descturctive pyautogui code in a while loop and make it an exe and change the logo ||i am jk okay, don't ban me||

#

Goodbyee Guys, stay safe and Rick roll ya friends

#

see yaa

#

vc popping off today lol

#

can someone explain is there any diff between all those help channels or they all are same?

honest pier
#

@rugged root why can't i speak in voice channels >:( server bad admins aboos

whole bear
#

that just too many of those help channels

#

lol

rugged root
#

@honest pier Restart your client?

honest pier
#

ye @rugged root have class though lol ;-;

whole bear
#

@honest pier ohkkk

rugged root
#
2. RESTRICTIONS

You may not lease, rent, sublicense, publish, modify, patch, adapt or translate System Software. You may not reverse engineer, decompile or disassemble System Software, create System Software derivative works, or attempt to create System Software source code from its object code. You may not (i) use any unauthorized, illegal, counterfeit or modified hardware or software with System Software; (ii) use tools to bypass, disable or circumvent any PS4 system encryption, security or authentication mechanism; (iii) reinstall earlier versions of the System Software ("downgrading"); (iv) violate any laws, regulations or statutes or rights of SIE Inc or third parties in connection with your access to or use of System Software; (v) use any hardware or software to cause System Software to accept or use unauthorized, illegal or pirated software or hardware; (vi) obtain System Software in any manner other than through SIE Inc's authorized distribution methods; or (vii) exploit System Software in any manner other than to use it with your PS4 system according to the accompanying documentation and with authorized software or hardware, including use of System Software to design, develop, update or distribute unauthorized software or hardware for use in connection with your PS4 system.

These restrictions will be construed to apply to the greatest extent permitted by the law in your jurisdiction.
tall latch
#

you can hack into a jeep cherokee

gentle flint
#

Correct

#

I gotta go

#

Cya

rugged root
#

The Utah teapot, or the Newell teapot, is a 3D test model that has become a standard reference object and an in-joke within the computer graphics community. It is a mathematical model of an ordinary, Melitta-brand teapot that appears solid, cylindrical, and partially convex. U...

#

@hollow haven Kaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat

#

I need motivation

regal quiver
#

Coffee

#

It's something lol

rugged root
#

True

tall latch
#

hello there how ya doin

ashen oar
#

I was around before the VC verification stuff was a thing ๐Ÿ˜ฆ

hollow haven
#

For whaaaat?

rugged root
#

I'm just trying to finish the code review guide I've been putting off figuring out what to say

hollow haven
#

Write your stream of consciousness. It'll stuck. That's fine. Go for a quick walk/stretch, then come back and edit

ashen oar
#

Just had one of my audio interfaces crap out and need to figure out if my janky stuff is working

hollow haven
#

Besides, imagine the great code reviews coming in from our helpers and community members once there's a great guide to follow!

rugged root
#

Yeah I know. Just bleh

hollow haven
#

Wanna talk through it?

ashen oar
#

My job is pushing remote work

#

I work at one of the major computer manufactures

rugged root
#

@hollow haven Yeah, I think I'll need to once I finish this scanning for work

ashen oar
#

I have an irrational hatred for JS

#

My day job is Python

#

and SQL

#

Damn I wish I could be in VC right now.

#

@rugged root Can you look at modmail?

#

F

scarlet drift
#

@ashen oar I hate javascript for the meme

#

lol

#

jk

ashen oar
#

I'm a data intelligence engineer for one of the major tech companies.

rugged root
#

Very cool

#

What got you into it?

ashen oar
#

I'm actually all self taught. I dropped out of college after one semester

#

A neurodiversity hiring program

scarlet drift
#

I'm actually all self taught. I dropped out of college after one semester
@ashen oar same man, didn't go to college

ashen oar
#

I used to mess around with Pythonista on iOS during high school

#

Recently I've actually implemented kerberos SSO with requests and requests_gssapi

#

SAML authentication

rugged root
#

That'll tell you what you need to know

ashen oar
#

I did a lot of bridging with Objective C

#

With Pythonista

rugged root
#

Is that even still alive?

#

I thought Obj C pretty much died with the advent of Switft

ashen oar
#

Swift is a front end for Objective C

#

At least in iOS

#

In most cases from what I've seen

rugged root
#

Ah, gotcha

ashen oar
#

I also maintain the port of Katawa Shoujo on iOS

#

Using Renpy

candid venture
#

@rugged root
its not me, as far as it sounds like me, its not me

rugged root
#

That's... ominous

ashen oar
#

Had to update SDL for it to work properly on iOS devices with no home button.

#

My most popular repo too

#

Most of my job involves Apache Airflow and Elasticsearch (not mutually related to each other)

rugged root
#

I'll have to look over these. That's really cool

ashen oar
#

The Anaconda changes in it's licensing has actually made it so I can't use it at work now.

#

Matrix is for the new version of Kodi

#

I tend to use GitLab for internal stuff which works really well

scarlet drift
#

F

ashen oar
#

F

candid venture
#

!source bot

wise cargoBOT
#
Command: bot

Bot informational commands.

Source Code
ashen oar
#

Also F to my 2i2 audio interface. The USB C port yeeted itself.

candid venture
#

@wraith ledge

scarlet drift
#

Also F to my 2i2 audio interface. The USB C port yeeted itself.
@ashen oar oh man. BIG F

candid venture
ashen oar
#

I have to use my 8i6 in a janky way

scarlet drift
#

I need an audio interface for my guitar these days

ashen oar
#

Focusrite Scarlet works pretty well

scarlet drift
#

yeah I'm thinking of buying that

ashen oar
#

It's expensive for what it is

scarlet drift
#

true

#

it's nice

ashen oar
#

I use the included software

#

I got the Addictive Keys pianos with my 2 interfaces.

scarlet drift
#

I've never used an audio interface

#

lol

candid venture
ashen oar
#

It plugs in via USB C to USB A and is USB 2.0

scarlet drift
#

I'll have to learn Logic X too

ashen oar
#

You won't have volume control in macOS

#

You control the volume on the hardware

rugged root
candid venture
ashen oar
#

Interface is weird

scarlet drift
#

Congrats you got voice verified @ashen oar

ashen oar
#

Damnit discord

#

It doesn't know how to handle the loopback device

rugged root
#

Yeah I know that feeling

#

@hollow haven I think I'm going to scoot down to the Staff voice so I can think.

scarlet drift
#

@hollow haven I think I'm going to scoot down to the Staff voice so I can think.
@rugged root you're saying we're brain dead?

#

lol jk

rugged root
#

I'm the brain dead one right now

scarlet drift
#

hahahahaha it's aight my g

whole bear
#

@candid venture Is that Tk?

wraith ledge
rugged root
#

@storm shuttle If you're wondering why you can't talk, check out the #voice-verification. That'll tell you what you need to know

wraith ledge
#

@candid venture ?

candid venture
#

nvm

ashen oar
gentle flint
whole bear
#

whats up

#

i got school goodbye

ashen oar
#

MusicKit lets users play Apple Music and their local music library natively from your apps and now websites. When a user provides permission to their Apple Music account, your app can create playlists, add songs to their library, and play any of the millions of songs in the Ap...

ashen oar
wraith ledge
#

@ashen oar

ashen oar
#

is playing Voodoo by Godsmack from Godsmack

wraith ledge
#

`Right, i'm off

#

ciao

whole bear
#

why dont i have permission to speak in vc???

#

how do i get voice verified

#

@whole bear

#

@whole bear

#

search up my name, i have 582 messages

#

ok

#

@rapid crown

#

test

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-11-09 22:02 (9 minutes and 58 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

gentle flint
#

@west knot after the 21st of August you have just over 30 messages

#

the date starts counting from then

ashen oar
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

hello
#

:incoming_envelope: :ok_hand: applied mute to @lusty marsh until 2020-11-10 00:56 (9 minutes and 59 seconds) (reason: newlines rule: sent 103 newlines in 10s).

scarlet plume
#

!unmute 257846560468107264

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @lusty marsh.

jaunty thicket
#

ุงุณู„ุงู… ุนู„ูŠูƒู…

teal phoenix
#

ุงุณู„ุงู… ุนู„ูŠูƒู…
@jaunty thicket walaikum salam

somber heath
#

@teal phoenix YouTubers Corey Schafer and sentdex for tutorials.

teal phoenix
#

Thank you.

languid valley
#

hey can anyone help with a simple problem im having?

whole bear
#

yeah sure if i can

#

whats the problem???

languid valley
#

im making a menu styled program for a class and if the selection is 4 it's supposed to end the program, but if it is anything besides 4 it should run the menu again

#

sooo

#

i made it work when you enter 4 and it ends BUT the reruns it does when the selection isnt 4 go on indefinetely

#

ill send the code hold on

whole bear
#

just a minute

languid valley
#

wait

#

i fixed it

#

sorry man lol

#

thank you for your time

whole bear
#

ohh nice

#

btw u dont't have any break statement in the loop so that the program would stop

languid valley
#

yea i just realized i didnt fix it lmao

whole bear
#

i suggest you should use if else on the last two loops it would be better

#

lol

languid valley
#

yea i changed it back to that now

#

but its still not working right

#

and when i use breaks it says the break is outside of the loop

whole bear
#

can u copy and paste the code in here

languid valley
#

def main():

#Define the beginning variables
menuSelection = 0
area = 0

#call the displayMenu Function to recieve input on menuSelections
displayMenu(menuSelection)

#Decision structure to call each area solution (or restart the program)
if menuSelection == 1:
    calcCircle(area)
    showArea(area)

elif menuSelection == 2:
    calcRectangle(area)
    showArea(area)

elif menuSelection == 3:
    calcTriangle(area)
    showArea(area)

else:
             
    if menuSelection == 4:
        print("")

    else:
        displayMenu(menuSelection)
break

def displayMenu(menuSelection):
print(" Geometry Calculator ")
print("1. Calculate the Area of a Circle ")
print("2. Calculate the Area of a Rectangle ")
print("3. Calculate the Area of a Triangle ")
print("4. Quit ")

menuSelection = int(input())

main()

whole bear
#

def main():

#Define the beginning variables
area = 0

#print the options
print("         Geometry Calculator         ")
print("1. Calculate the Area of a Circle    ")
print("2. Calculate the Area of a Rectangle ")
print("3. Calculate the Area of a Triangle  ")
print("4. Quit                              ")

menuSelection = int(input())

#Decision structure to call each area solution (or restart the program)
if menuSelection == 1:
    calcCircle(area)
    showArea(area)

elif menuSelection == 2:
    calcRectangle(area)
    showArea(area)

elif menuSelection == 3:
    calcTriangle(area)
    showArea(area)

elif menuSelection == 4:
    return None

else:
    main()

main()

#

here is a better implementation of that

#

we can only use break in for or while loops

#

so just return none when the option is 4

#

and i guess there is no need for that other function

languid valley
#

ohh ok

#

well im working off of a flowchart she wants me to use

#

ill send that hold on a sec

#

im just confused because ive never seen a flowchart where there are 3 options leading to one thing and another option deciding whether to rerun or end the program

whole bear
#

ohh

#

wait a minute

sinful bramble
#

hi

#

nah

whole bear
#

even i am confused with the flowchart cuz its first showing to take menuSelection as a parameter to the displayMenu() function and just before that it is saying to define menuSelection

#

heyy

pure path
#

blue switches are loud

#

as hell

whole bear
#

And the RGB

pure path
#

mine is 144hz

whole bear
#

i can see its directory structure

inland turret
#

yea

#

its fine ๐Ÿ™‚

whole bear
#

Okay

#

random background noises @heavy nacelle

#

๐Ÿ™‚

#

i am bad at singing

#

really bad

#

you will get nightmares

#

@whole bear you got voice verified!!!๐Ÿ’ฏ

#

@heavy nacelle sorry for the location thing, i was just having fun, i am from India ๐Ÿ‡ฎ๐Ÿ‡ณ
Hope you don't take it hard

heavy nacelle
#

@whole bear

whole bear
#

Okay, ๐Ÿ™‚ i come to the US often

jaunty thicket
#

Hello

#

I want print second index in List

#

myList_1 = [1, 2, 3, 2, 4, 5, 456, 6, 456, 7, 8, 9, 10]
x = 0

for i in myList_1:
if i == 456 and x == 1:
print(myList_1.index(i))
break
elif i == 456:
x += 1

teal phoenix
#

wow

#

how do yall learn this shit

#

this is killing my brain

broken burrow
#

hi

gentle flint
#

@teal phoenix takes a while

#

longer you stick to it, more you learn

glacial haven
#

I want print second index in List
@jaunty thicket ```py
myList_1 = [1, 2, 3, 2, 4, 5, 456, 6, 456, 7, 8, 9, 10]

first_index = myList_1.index(456)

new_list = myList_1[first_index+1:]

new_index = new_list.index(456)

print(first_index + new_index + 1)

minor drum
#

@glacial haven hi try: mylist_1[2]

wraith ledge
#

arrays start from cough cough

scarlet drift
#

oh man @wraith ledge not you too lmao

#

@wraith ledge are you in that nullposting group on facebook too? LOL

wraith ledge
#

naah I rarely facebook

glacial haven
#

@glacial haven hi try: mylist_1[2]
@minor drum For a number repeated in a list the index of the 2 nd number I have written code for the sake of understanding, we can try to access though by list[index]

minor drum
#
def Duplicates(x):
    Size = len(x)
    duplicate_list = []
    for i in range(Size):
        k = i + 1
        for j in range(k, Size):
            if x[i] == x[j] and x[i] not in duplicate_list:
                duplicate_list.append(x[i])
    return duplicate_list

print(Duplicates(myList_1))
#

@glacial haven

#
myList_1 = [1, 2, 3, 2, 4, 5, 456, 6, 456, 7, 8, 9, 10]

def Duplicates(x):
    Size = len(x) # get me the size of the list 
    duplicate_list = [] # creating a new list to store the duplicates
    for i in range(Size): # making a for loop to loop thru the first list
        k = i + 1 #incrementing everthing in the list 
        for j in range(k, Size): # making a second loop to add to the list
            if x[i] == x[j] and x[i] not in duplicate_list: # if this statement is true (Giving it a condition to check)
                duplicate_list.append(x[i]) # add to the duplicate list 
    return duplicate_list # cus it is a function i need to return a value

print(Duplicates(myList_1)) # print ur result :) 

full code with description

glacial haven
#

@minor drum ```py
l = list(map(int,input().split()))
fil_list = []
dup_list = []
for x in l:
if x not in fil_list:
fil_list.append(x)
else:
dup_list.append(x)
print(dup_list)

    
Optimal solution is this I think
minor drum
#

yes but now your list is not defined ?

#

you going to input it?

glacial haven
#

Yes

minor drum
#

yes that

#

but better is to this

#

@minor drum ```py
l = list(map(int,input().split()))
fil_list = []
l = list(l)
dup_list = []
for x in l:
if x not in fil_list:
fil_list.append(x)
else:
dup_list.append(x)
print(dup_list)

    
Optimal solution is this I think

@glacial haven

#

python will make list then for u

#

so u dont have to append it everytime

glacial haven
#

Using list-comprehensions? are yous saying in this code @minor drum

tribal solar
#

Guys I need help

#

Pls

#

Coming dm with me

minor drum
#

@glacial haven yes that means u dont have to append it every time to the list

gentle flint
#

@candid venture I have a small problem

#

my main Linux drive just died

#

it boots initially, but then breaks at the filesystem checks with unrecoverable I/O errors

#

any tips on how I might still be able to copy the contents of the drive onto smth else?

candid venture
#

reformat?

gentle flint
#

Yeah, but I'd like to recover the stuff on it if at all possible

candid venture
#

OOF

gentle flint
#

quite

candid venture
#

dual boot?

gentle flint
#

?

#

it's a single linux drive

#

I'm now on my windows drive instead

#

separate HDD

candid venture
#

dual boot usb

gentle flint
#

o I c

#

and then what do I do with the disk from that USB?

#

like, ddrescue?
Do I mount it?

#

Do I start it unmounted?

candid venture
#

boot thru bios

gentle flint
#

I know how to start a LiveUSB

#

I mean

candid venture
#

yeah

#

boot thru bio

#

s

gentle flint
#

what do I do with the disk from the liveusb once the liveusb is started

candid venture
#

yeah like parrot

#

boot into grub

gentle flint
#

you know what

#

I'll be in vc in 5 mins

#

that will be easier

#

o you left

#

nvm then

candid venture
#

o you left
@gentle flint
dog puked on bed

#

then shat on the balcony

gentle flint
#

rip

wispy pelican
#

bruh I can't talk

amber raptor
#

you need to voice verify, it's channel above this one

rugged root
#

I'll be on in a bit, Rab

#

Still settling in at work

wispy pelican
#

30 hours of being here

#

damn

rugged root
#

3 days on the server and 50 message over three 10 minute blocks

#

It's not as rough as it seems

wispy pelican
#

yeah but I have nothing to talk about unless I need help

rugged root
#

Could always see what's going on in the off-topic chats

#

That still counts

pure path
#

Trying to convince my dad to buy me a keyboard.

swift valley
#

Ello

pure path
#

Anne Pro 2

swift valley
#

Apparently we're going to study about relativity for our next semester's Physics class

#

hah

#

Intuition will come over time

#

Hopefully

rugged root
#

@novel pagoda If you're wondering why you can't talk, check out the #voice-verification channel. That should tell you what you need to know.

#

@brittle crest If you're wondering why you can't talk, check out the #voice-verification channel. That should tell you what you need to know.

novel pagoda
#

pk

#

ok*

dusky arch
#

hi

#

umm I am not deafen but still I can't hear anything..?

rugged root
#

Check your output device in discord

#

Settings (the cog) -> Voice and Video

pure path
#

I personally don't like sublime

#

oh

dusky arch
#

ok it was my shitty net

pure path
#

I like vsc

#

OHhh pycharm was made in java?

#

ohh

#

ohhhhhh

balmy nymph
#

Well, Kotlin

dusky arch
#

does legend() has default loc set to 0?

pure path
#

@somber heath why do u say so?

#

hmmm

#

it's like you are whispering

gentle flint
#

I'll try to fix it

#

brb

somber heath
rugged root
#

@whole bear @random kraken @south jungle @solid escarp @glacial haven If you're wondering why you can't talk in voice chat, check out the #voice-verification channel. That'll tell you what you need to know

swift valley
#

The plugin I'm using for my Neovim rich presence doesn't seem to like Linux very much

#

PR time it is

pure path
#

idk how,but vim is on my pc

#

don't remember downloading

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-11-10 14:59 (9 minutes and 59 seconds) (reason: mentions rule: sent 6 mentions in 10s).

pure path
#

lol

rugged root
#

!unmute @whole bear

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @whole bear.

pure path
#

he tried to quote u

dusky arch
#

lol <----- Someone raising their hands xD

swift valley
#

I'm starting to get used to Discord dark mode again, yikes

pure path
#

thats good

whole bear
#

thank you but i not speak english and... i not understand a lot python :''3

pure path
#

light theme is agony

#

i saw that

gentle flint
#

yeah

#

it is

swift valley
#

BLOOD FOR THE BLOOD GOD

gentle flint
somber heath
#

Hematogen (Russian: ะ“ะตะผะฐั‚ะพะณะตะฝ, Gematogen; Latin: Haematogenum) is a nutrition bar, which is notable in that one of its main ingredients is black food albumin taken from processed (defibrinated) cow's blood.

rugged root
#

!resources @whole bear We've got tons of great beginner resources linked on our site. Typically we suggest Automate the Boring Stuff and A Byte of Python

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.

whole bear
#

thank you hemlock โค๏ธ

dusky arch
#

this is cursed
I can't unsee what I have seen

whole bear
#

the silence...

#

mr hemlock your voice is handsome!

#

your welcome nwn

#

my vocabulary in english is very small

#

sorry u.u

rugged root
#

There's no reason to be sorry about

#

To me, the fact that you know more than one language is amazing

whole bear
#

oh... thank you but my english is horrible but thank you โค๏ธ

rugged root
#

What's your native language?

whole bear
#

Spanish :'3

rugged root
#

Very cool

whole bear
#

uwu

slender bison
#

it's cool we all speak python here ๐Ÿ™„

whole bear
#

haha, i not speak python u.u

rugged root
#

You'll get there

slender bison
#

yee study it, it's worth it

rugged root
#

And if you ever need help, we're always happy to answer questions

whole bear
#

thank you hemlock and thank you jeremy, i need to arrive in python! is amazing

#

well, i have homework, good bye guys โค๏ธ

rugged root
#

See you later!

slender bison
#

study hard!

whole bear
#

okay!

#

:3

frigid panther
#

o/

#

sup

gentle flint
#

Denatonium, usually available as denatonium benzoate (under trade names such as Denatrol, BITTERANT-b, BITTER+PLUS, Bitrex or Aversion) and as denatonium saccharide (BITTERANT-s), is the most bitter chemical compound known, with bitterness thresholds of 0.05 ppm for the benzoa...

swift valley
#

Patma hyperlemon

tidal salmon
#

@slender bison

# sadness
range(len(n))
# happiness
(range @ len)(n)
slender bison
#

FUCKIN TRU

#

range @ len $ n

swift valley
slender bison
#

or more likely eval(range @ len, n)

swift valley
#
from fn import _
from fn.op import zipwith
from itertools import repeat

assert list(map(_ * 2, range(5))) == [0,2,4,6,8]
assert list(filter(_ < 10, [9,10,11])) == [9]
assert list(zipwith(_ + _)([0,1,2], repeat(10))) == [10,11,12]
#

Lambdas in Scala use that type of lambda definition

rugged root
manic ravine
#

damn this scared me

#

:))))

tidal salmon
#

!ban hemlock nswf pics

manic ravine
#

:)))))))

#

oh god no

#

who uses comic sans anymore tho

#

like mEmEs

rugged root
#
    @command(name='echo', aliases=('print',))
    @has_any_role(*MODERATION_ROLES)
    async def echo_command(self, ctx: Context, channel: Optional[TextChannel], *, text: str) -> None:
        """Repeat the given message in either a specified channel or the current channel."""
        if channel is None:
            await ctx.send(text)
        else:
            await channel.send(text)
pure path
#

~~I totally did not copy that ~~

foggy tulip
#

People think the bot is actually sentient

#

I had a conversation with the bot before

#

Yup

pure path
#

ye

#

there is dmrelay

#

cog

manic ravine
#

u guys work with linux?

somber heath
#

frommage vs fauxmage

foggy tulip
manic ravine
#

because I have some questions

#

about production environment

foggy tulip
#

@rugged root

swift valley
#

@manic ravine I've only been using it for a few months but I can answer a few inquiries

manic ravine
#

I was just wondering if fail2ban is a good option for request limitations per ip

foggy tulip
#

@somber heath look up Casu Marzu

manic ravine
#

sorry for my english though, not a native :/

foggy tulip
#

It's a type of cheese