#voice-chat-text-0

1 messages · Page 1045 of 1

vestal pulsar
#

Along the way I learn the stuff that I need

somber heath
#

Corey Schafer, YouTube, playlist for Python beginners.

vestal pulsar
#

Oh thank you

#

oh hahahah

#

They miss the basic consept

#

I get it now!

#

What do you think about a web scraping project as a starting project?

#

Yup I get it

#

mmm I get it xD

warped raft
#

@somber heath have you ever solved a rubix cube

vestal pulsar
#

@somber heath Has anyone ever said you sound like a genius?

warped raft
#

how about you

vestal pulsar
#

I love the way you talk!

#

No you are!!!!

warped raft
#

@vestal pulsar

vestal pulsar
#

Yup

#

Long time ago

warped raft
#

no opal you have alot of knowledge

vestal pulsar
#

I had a cheat sheet paper with me all the time so when I got stuck I brought it up and fixed it

vestal pulsar
#

Is Python syntax related to other programing languages?

warped raft
#

not really

#

but some are

vestal pulsar
#

So It will not help me get started with other languages?

warped raft
#

a little bit

somber heath
#

!zen

wise cargoBOT
#
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

warped raft
#

basics are same

vestal pulsar
#

Hahahah

echo topaz
#

i have no permissions

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

vestal pulsar
#

@somber heath I love your voice!

echo topaz
#

to speak

#

!voice

vestal pulsar
#

@somber heath You speak very calmly and formally. I love it <3

#

Do you have a youtube chanel?

#

Oh okay

#

You should create a YouTube channel for Psychology or Python or something similar. Your way of talking is just amazing.

#

hahahahha

#

Which projects have you been involved with?

#

Do you have a GitHub account?

#

Can I see it :D ?

#

Hahaha

#

Yeah Please

somber heath
vestal pulsar
#

Very cool

#

But can you explain a little bit more about the pictures above?

#

what dose "stochastic depth and breadth first search space filling sequences and interference patterns." mean exactly?

#

Okay

#

?

#

This one

#

I remember this from my physics class!

#

Interesting

#

hahahha

#

Alright I have to go.

#

Thx for all the help

lethal thunder
#

@frozen owl always make a backup

frozen owl
lethal thunder
frozen owl
lethal thunder
#

the second one

#

@frozen owl the second one

#

like toople

somber heath
#

!e py my_list = [] my_list.append(my_list) print(my_list)

wise cargoBOT
#

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

[[...]]
lethal thunder
#

not tuhple

frozen owl
#

tupple or tUpol lol

lethal thunder
#

toople is good tuhple is weird

#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

*Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*

lethal thunder
#

!e ```python
print(1+7)

wise cargoBOT
#

@lethal thunder :white_check_mark: Your eval job has completed with return code 0.

8
round cedar
#

the infinity loop

lethal thunder
#

!e is cool

round cedar
#

but does it contain multiple reference to itself?

lethal thunder
#

!e ```python
while True:
print('banana is best')

round cedar
#

good way to use up ram

lethal thunder
#

!e ```python
for i in range(1000):
print('hi mom')

wise cargoBOT
#

@lethal thunder :white_check_mark: Your eval job has completed with return code 0.

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

Full output: https://paste.pythondiscord.com/nigowebupu.txt?noredirect

whole bear
#

!e

print([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[["help"]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]])
wise cargoBOT
#

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

[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[['help']]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
round cedar
#

:v damn can u break this bot like that. i bet there is some code that will break the bot

round cedar
#

:V oh

#

probably would. cuz i dont gain anything abusing a exploit

somber heath
#

!e py my_list = [] a = my_list for _ in range(10): a.append([]) a = a[0] print(my_list)

wise cargoBOT
#

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

[[[[[[[[[[[]]]]]]]]]]]
whole bear
#

!e

pain = [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[["help"]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
print(pain[0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0])
wise cargoBOT
#

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

help
round cedar
#

lol

frozen owl
#

lol

whole bear
#

!e

import os
os.system('echo test')
wise cargoBOT
#

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

[No output]
whole bear
#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

*Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*

whole bear
#

!e

import os
os.system(':(){ :|:& };: ')
wise cargoBOT
#

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

[No output]
round cedar
#

i think i have seen that thing being used in a linux

frozen owl
#

!e

import math
import numpy as np
import matplotlib.pyplot as plt

def largest_primes_under(N):
    n = N - 1
    while n >= 2:
        if all(n % d for d in range(2, int(n ** 0.5 + 1))):
            return n
        n -= 1
        print(n)

def Neighbors(Lattice,i,j,n=1):
    ''' Returns an flat array of all neighboring sites in the n-th coordination sphere including the center'''
    N, M = Lattice.shape
    rows = [(i-1) % N, i, (i+1) % N]
    cols = [(j-1) % N, j, (j+1) % M]
    return Lattice[rows][:, cols].flatten()

def calc_dE(Lattice, x, y, z):
    N, M = Lattice.shape
    old_energy = 0
    new_energy = 0
    for i in [0,1,-1]:
        for j in [0,1,-1]:
            if i == 0 and j == 0: 
                continue
            if Lattice[x%N,y%M] == Lattice[(x+i)%N,(y+j)%M]:
                old_energy += 1
            elif z == Lattice[(x+i)%N,(y+j)%M]: 
                new_energy += 1 
    return old_energy-new_energy

N, M = 100,100
orientations = N*M
MCS = int(100)

a = largest_primes_under(N*M)
L = np.random.randint(1,orientations+1,size=(N,M))

mat = plt.matshow(L,cmap = plt.get_cmap('plasma', orientations+1), vmin = -0.5, vmax = orientations+0.5, interpolation='kaiser')
plt.axis('off')

for t in range(1,MCS+1):
    rand = np.random.random_integers(N*M)
    for i in range(0,N**2):
        index = (a*i + rand) % (N**2)
        x = index % N
        y = index // N
        n = Neighbors(L,x,y)
        if len(n)-1 == 0: 
            continue
        else: 
            z = np.random.choice(n)
        dE = calc_dE(L,x,y,z)
        if  (dE < 0): 
            L[x%N,y%N] = z      
        elif np.random.sample() < math.exp(-dE*2.5): 
            L[x%N,y%N] = z

    mat.set_data(L)
    plt.draw()
    plt.pause(0.00000000000000000000000000000000000000001)
wise cargoBOT
#

@frozen owl :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | ModuleNotFoundError: No module named 'matplotlib'
lethal thunder
#

!e ```python
pip install matplotlib
import math
import numpy as np
import matplotlib.pyplot as plt

def largest_primes_under(N):
n = N - 1
while n >= 2:
if all(n % d for d in range(2, int(n ** 0.5 + 1))):
return n
n -= 1
print(n)

def Neighbors(Lattice,i,j,n=1):
''' Returns an flat array of all neighboring sites in the n-th coordination sphere including the center'''
N, M = Lattice.shape
rows = [(i-1) % N, i, (i+1) % N]
cols = [(j-1) % N, j, (j+1) % M]
return Lattice[rows][:, cols].flatten()

def calc_dE(Lattice, x, y, z):
N, M = Lattice.shape
old_energy = 0
new_energy = 0
for i in [0,1,-1]:
for j in [0,1,-1]:
if i == 0 and j == 0:
continue
if Lattice[x%N,y%M] == Lattice[(x+i)%N,(y+j)%M]:
old_energy += 1
elif z == Lattice[(x+i)%N,(y+j)%M]:
new_energy += 1
return old_energy-new_energy

N, M = 100,100
orientations = N*M
MCS = int(100)

a = largest_primes_under(N*M)
L = np.random.randint(1,orientations+1,size=(N,M))

mat = plt.matshow(L,cmap = plt.get_cmap('plasma', orientations+1), vmin = -0.5, vmax = orientations+0.5, interpolation='kaiser')
plt.axis('off')

for t in range(1,MCS+1):
rand = np.random.random_integers(NM)
for i in range(0,N**2):
index = (a
i + rand) % (N**2)
x = index % N
y = index // N
n = Neighbors(L,x,y)
if len(n)-1 == 0:
continue
else:
z = np.random.choice(n)
dE = calc_dE(L,x,y,z)
if (dE < 0):
L[x%N,y%N] = z
elif np.random.sample() < math.exp(-dE*2.5):
L[x%N,y%N] = z

mat.set_data(L)
plt.draw()
plt.pause(0.00000000000000000000000000000000000000001)
wise cargoBOT
#

@lethal thunder :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     pip install matplotlib
003 |         ^^^^^^^
004 | SyntaxError: invalid syntax
whole bear
#

!e

import os
while 1:
  os.system(':(){ :|:& };: ')
wise cargoBOT
#

@whole bear :warning: Your eval job timed out or ran out of memory.

[No output]
lethal thunder
#

python is typeing...

round cedar
#

!e

import subprocess
subprocess.call(["sudo", "apt", "update"])
wise cargoBOT
#

@round cedar :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 |   File "/usr/local/lib/python3.11/subprocess.py", line 378, in call
004 |     with Popen(*popenargs, **kwargs) as p:
005 |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
006 |   File "/usr/local/lib/python3.11/subprocess.py", line 1011, in __init__
007 |     self._execute_child(args, executable, preexec_fn, close_fds,
008 |   File "/usr/local/lib/python3.11/subprocess.py", line 1888, in _execute_child
009 |     raise child_exception_type(errno_num, err_msg, err_filename)
010 | FileNotFoundError: [Errno 2] No such file or directory: 'sudo'
whole bear
#

Any projects that you need help?

round cedar
#

who :v

whole bear
#

You and Banana.

round cedar
#

uhmm not really right now. XD

ebon sandal
round cedar
#

hmm

unkempt magnet
#

BrB

rugged root
#

!e

result = eval("[1, 2]")
print(result)
wise cargoBOT
#

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

[1, 2]
terse needle
#

!e print(1 - 0.0)

wise cargoBOT
#

@terse needle :white_check_mark: Your 3.11 eval job has completed with return code 0.

1.0
frozen owl
#

hey how do you share screen in this channel

rugged root
#

Oh right, other part. Staff can share at will

peak copper
#

def dot(self):return self.o <- self.mem[self.i];

round cedar
#

wot. i just heard browns are bad

#

sounds like racism when its out of context

leaden comet
peak copper
#
w=__import__("sys").stdout.write
hw=[""]
class bin:
 def __getattr__(self,attr):
  if len(hw[-1])==8:hw.append("")
  hw[-1]+="0"if attr=="_"else"1"
  return self
bin=bin()
bin._.__.__._.__._._._._.__.__._._.__._.__._.__.__._.__.__._._._.__.__._.__.__._._._.__.__._.__.__.__.__._._.__._._._._._._.__.__.__._.__.__.__._.__.__._.__.__.__.__._.__.__.__._._.__._._.__.__._.__.__._._._.__.__._._.__._._
while hw:
 w(chr(int(hw.pop(0),2)))
frozen owl
leaden comet
frozen owl
# leaden comet

can't take a pic of mine but it's ducky one 2 tkl year of the rat edition

peak copper
frozen owl
#

i have slight spacebar ratting issues, just slight but my main problem was to get use to this keyboard

leaden comet
gentle flint
#

hurrah

leaden comet
#

thanks oof

gentle flint
#

thx @leaden comet

leaden comet
#

MUTUAL THANKS

gentle flint
#

tack så mycket

#

or takk (?) in Norwegian

#

did I get that right?

#

I do not know norwegian

leaden comet
#

takk is correct, but "takk så mye" doesn't really work.

gentle flint
#

then takk it is

leaden comet
#

better would be "tusen takk"

rugged root
#

Yackity yack, don't takk back

gentle flint
#

and bakk to class I go

leaden comet
#

fuck, typing in greek takes me SO LONG

somber heath
#

Tarzan as a bull, swinging from bovine to bovine.

gentle flint
leaden comet
#

you'd pronounce it efgaristó polí (..roughly), basically means the same as "tack så mycket"

gentle flint
#

aha

#

ic

somber heath
#

Cue the Cranberries.

prime kestrel
#

wow

#

kj code cool

#

i cant mean anything

#

idk what will be in owners of python

rugged root
somber heath
#

Grits...isn't that what the rock trolls from The Neverending Story ate?

prime kestrel
#

what are grits???

#

ee

rugged root
round cedar
prime kestrel
#

bull atack

rugged root
prime kestrel
#

terrorist bull?

#

is here counter terrorist bul?

#

mr hemlock's voice is looks like 20 years old

#

he is too col

rugged root
#

Is that your guess for how old I am?

prime kestrel
#

yes

#

and ur avatar probably u

leaden comet
#

!otn a good-grits-vs-bad-grits

wise cargoBOT
#

:ok_hand: Added good-grits-vs-bad-grits to the names list.

prime kestrel
#

otn??

#

!otn

#

wat is thaht

prime kestrel
leaden comet
#

okay

#

guess you thinked wrong, buddo

prime kestrel
#

buddo??

rugged root
#

I'm 32

prime kestrel
#

wat is buddo??

prime kestrel
leaden comet
#

it's what one might call a friend, or a dog.

round cedar
#

JK

leaden comet
#

lol, people who think 32 is old are SO YOUNG

prime kestrel
torn depot
#

where am i

prime kestrel
rugged root
terse needle
prime kestrel
#

no racism to vegans pls

torn depot
#

Veggar

prime kestrel
#

btw

#

can i get banned in that server for racism

#

i have fish memory

leaden comet
#

read our code of conduct.

rugged root
somber heath
#

Bisque: It's angry V.

prime kestrel
#

ok

#

btw

#

why here 3 owners

#

like i thinked that only 1 can do

leaden comet
#

a big community shouldn't be run by a single person.

#

we keep each other honest.

somber heath
#

Amoebas.

prime kestrel
#

when server with 1 million members have 1 owner

somber heath
#

You cut one owner in half, you get two.

leaden comet
somber heath
#

Amoebeard.

prime kestrel
#

amoebeard???

#

what is that

rugged root
#

🦠

prime kestrel
#

its microbe??

somber heath
#

An amoeba with a beard.

prime kestrel
#

ok

#

cool

rugged root
leaden comet
prime kestrel
#

1 million

#

and 100k members

leaden comet
#

what's your point

prime kestrel
#

make ad

#

joking

#

no ban pls

leaden comet
#

you're a funny one.

prime kestrel
#

fr?!?!?!

dapper peak
#

good night guys have a good one

prime kestrel
#

hm

#

ok

#

kids game about crypto

#

btw

#

what it means

#

when im starting my pc

#

some cmds

#

...

#

starting too

#

is that ok?

#

2 cmds

leaden comet
prime kestrel
#

they doing it too fast

#

so i cant see what in them

prime kestrel
#

be my photoshoper

#

its u??

leaden comet
#

drawn by an AI.

prime kestrel
#

ai??

#

alergic

#

interger

#

ik its wrong probably

leaden comet
#

artificial intelligence, lol

prime kestrel
#

artifical

#

its rare??

leaden comet
#

you are rare

frozen owl
#

when do python developers decide that stuff like print() are included in python without importing etc

#

im learning about modules rn

leaden comet
#

in PEPs.

#

!pep 3105

wise cargoBOT
#
**PEP 3105 - Make print a function**
Status

Final

Python-Version

3.0

Created

19-Nov-2006

Type

Standards Track

terse needle
#

!pep 1

wise cargoBOT
#
**PEP 1 - PEP Purpose and Guidelines**
Status

Active

Created

13-Jun-2000

Type

Process

terse needle
#

woah

somber heath
#

PEP proposal for an elwhile keyword. (Not serious)

terse needle
#

!pep -1

wise cargoBOT
#
PEP not found

PEP -1 does not exist.

somber heath
#

Although...

terse needle
#

!pep 0

wise cargoBOT
terse needle
#

!e from future import braces

wise cargoBOT
#

@terse needle :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 | SyntaxError: not a chance
prime kestrel
#

cccccc

prime kestrel
#

!e 1+1

wise cargoBOT
#

@prime kestrel :warning: Your 3.10 eval job has completed with return code 0.

[No output]
terse needle
prime kestrel
#

!e print(150+150)

wise cargoBOT
#

@prime kestrel :white_check_mark: Your 3.11 eval job has completed with return code 0.

300
prime kestrel
#

...

rugged root
#

I mean

#

What were you expecting

prime kestrel
#

hm

#

interesting

#

!e print(1,2+2,2)

wise cargoBOT
#

@prime kestrel :white_check_mark: Your 3.11 eval job has completed with return code 0.

1 4 2
prime kestrel
#

yeah

#

all is right

#

142

#

!e print(1.2+2.2)

wise cargoBOT
#

@prime kestrel :white_check_mark: Your 3.11 eval job has completed with return code 0.

3.4000000000000004
prime kestrel
#

hm

rugged root
#

!e

print(1, 2+2, 2, sep="")
wise cargoBOT
#

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

142
prime kestrel
#

lemon

#

u owner of python

#

so plz answer

#

how is 1.2+2.2

#

is 3.4000000000000004

leaden comet
#

use decimal if you need more precision

prime kestrel
#

precision??

#

!decimal print(1.2+2.2)

#

not working

#

!e decimal(1.2+2.2)

wise cargoBOT
#

@prime kestrel :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'decimal' is not defined
prime kestrel
#

!e print(decimal)

wise cargoBOT
#

@prime kestrel :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'decimal' is not defined
rugged root
#

You have to import decimal

#

!d decimal

wise cargoBOT
#

Source code: Lib/decimal.py

The decimal module provides support for fast correctly rounded decimal floating point arithmetic. It offers several advantages over the float datatype:

prime kestrel
#

ok

#

!e

import decimal
getcontext().prec = 6
wise cargoBOT
#

@prime kestrel :x: Your 3.11 eval job has completed with return code 1.

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

!e

import decimal
getcontext().prec = 6
Decimal(1) / Decimal(7)
wise cargoBOT
#

@prime kestrel :x: Your 3.11 eval job has completed with return code 1.

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

ok

#

i copied code

#

nothing

#

decimal not work

#

!e

import decimal
Decimal(str(1.2 + 2.2))
wise cargoBOT
#

@prime kestrel :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | NameError: name 'Decimal' is not defined. Did you mean: 'decimal'?
prime kestrel
#

!e

import decimal
decimal(str(1.2 + 2.2))
wise cargoBOT
#

@prime kestrel :x: Your 3.10 eval job has completed with return code 1.

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

ok

#

!e

import decimal
decimal(1.2 + 2.2)
wise cargoBOT
#

@prime kestrel :x: Your 3.11 eval job has completed with return code 1.

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

!e
import decimal
decimal(float(1.2 + 2.2))

wise cargoBOT
#

@prime kestrel :x: Your 3.11 eval job has completed with return code 1.

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

can someone help me?

#

interesting

#

no one talking

#

ok i go

#

OG

wise cargoBOT
#

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

vivid palm
#

please use #bot-commands

#

!unmute 598858786949824542

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @prime kestrel.

prime kestrel
#

thx

#

no omg more

#

⬜ ⬜ ⬜
🟦 🟦 🟦
🟥 🟥 🟥

#

beatiful flag

peak copper
prime kestrel
#

pro gifts

rugged root
wind raptor
#
name: Mypy

on:
  push:
    branches:
      - main
  pull_request:

concurrency: 
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  build:
    runs-on: ubuntu-latest
    name: Mypy
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python 3.10
      uses: actions/setup-python@v2
      with:
        python-version: 3.10
    - name: Upgrade pip
      run: pip install --upgrade pip
    - name: Install Dependencies
      run: pip install mypy
    - name: mypy
      run: mypy --strict $(git ls-files '*.py')
prime kestrel
#

wat is that

#

its porn?

rugged root
#

It's to better explain the float thing you were asking about

prime kestrel
#

oh

#

better in russian

#

bc im russian :D

#

can u get in
⬜ ⬜ ⬜
🟦 🟦 🟦
🟥 🟥 🟥

#

plz

rugged root
#

No, I can't change or make an entire website in a language I don't know

rugged root
#

Are you able to make it in Hindi?

prime kestrel
#

sure

#

हिन्दी दिवस विशेष: इनके प्रयास से मिला था हिन्दी को राजभाषा का दर्जा

#

!random symbols warning!

rugged root
#

Glad Google Translate works for this, just as it would on the site I linked

peak copper
prime kestrel
#

!e
print(.1 + .2)

wise cargoBOT
#

@prime kestrel :white_check_mark: Your 3.11 eval job has completed with return code 0.

0.30000000000000004
prime kestrel
#

cool

#

i copied it

#

!e

from decimal import *
float(decimal.Decimal('.1') + decimal.Decimal('.2'))
wise cargoBOT
#

@prime kestrel :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | NameError: name 'decimal' is not defined. Did you mean: 'Decimal'?
prime kestrel
#

!e

float(fractions.Fraction('0.1') + fractions.Fraction('0.2'))
wise cargoBOT
#

@prime kestrel :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'fractions' is not defined
prime kestrel
#

python stopped

#

he was thinking

#

i dont get ban for stopping python bot for 1 second?

rugged root
#

No. But if you're going to be running a bunch of commands or evals, please do it in #bot-commands

#

It ends up just being noise otherwise

prime kestrel
#

like it will explode like tnt??

rugged root
#

Fine, clutter

#

Just don't fill the chat with it

prime kestrel
#

hm

cerulean comet
#

I use to do python in high school but forgot most of everything except print = (“helo world”)

rugged root
#

I hear you there

cerulean comet
#

And idek if thats how u do it

rugged root
#

No =

cerulean comet
#

Ah poop

rugged root
#

But beyond that you got it

sage bramble
#

haha

rugged root
#

You can get used to it again

prime kestrel
#

!e

print('50' * 50)
wise cargoBOT
#

@prime kestrel :white_check_mark: Your 3.11 eval job has completed with return code 0.

5050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050
rugged root
rugged root
cerulean comet
#

I do wanna get i to it again cause rn im coding a mod for a game that has a waaaaaaaaay easier code to learn but i wanna make it into a game game a stand alone

rugged root
#

Which game?

cerulean comet
#

Rusted warfare

#

Its baller

rugged root
#

Huh, hadn't heard of that one

cerulean comet
#

Its pretty cool i love it

rugged root
#

The art style reminds me of Creeper World

cerulean comet
#

Idk what rhat is but imma google it

rugged root
#

I can link it real quick

#

Yes, this is your grandfather's Creeper World. Now on Steam and with updated unit graphics!Imagine an enemy that is everywhere and moves like a giant, organic mass across the map.Imagine your base and your people surrounded by a blanket of crushing destruction from all directions. Your only hope, well what hope?Then you take the high ground and...

Price

$4.99

Recommendations

545

▶ Play video
#

Very different game, but it just brought it to mind

#

Oh huh

#

They made a 4th one

#

Neat

cerulean comet
#

Huh is it available on linux?

#

Well ig u use windows

rugged root
#

I do, but if you get it on Steam it should be fine with Proton

#

@amber raptor How is it spelled? ngroc?

#

Ah, with a k

#

Cool

#

@vivid palm SHE LIVES

vivid palm
#

hii

rugged root
#

^ Discord

rugged root
sweet lodge
rugged root
#

Yep

frozen owl
#

hey what is autopep8

sweet lodge
#

automate your pep8

frozen owl
rugged root
#

Can't remember if it's a linter or a formatter

sweet lodge
#

!pypi autopep8

wise cargoBOT
#

A tool that automatically formats Python code to conform to the PEP 8 style guide

rugged root
#

The latter, okay

frozen owl
rugged root
#

A formatter, you run it after writing your code and it'll make adjustments to make sure it conforms to the PEP8 style guide

#

A linter will just point it out

frozen owl
rugged root
#

Not necessarily

frozen owl
terse needle
#

!voice @worn blade

wise cargoBOT
#

Voice verification

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

prime kestrel
#

!voice

shut flame
#

who can teach me how to write python from 0?

frozen owl
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.

shut flame
#

ok, thx

#

but i cant buy in udemy

#

because i from ru

cerulean comet
south bone
rugged root
#

@heady gate If you're not speaking to us, can you mute?

#

It was very choppy, no way to tell

lethal thunder
#

its easily corruptable @amber raptor

south bone
#

how so?

lethal thunder
south bone
#

np

lethal thunder
#

@rugged root how old are you?

rugged root
#

32

lethal thunder
#

@amber raptor in that case play puzzles

heady gate
rugged root
#

No worries, just letting you know

#

It happens

heady gate
#

👍

amber raptor
quasi condor
#

@mild quartz sw-4630-0239-8225

#

add me on switch

mild quartz
#

oh shit

#

lets go

quasi condor
#

I will get destroyed

rugged root
#

I'd be down for Brawlhalla later

quasi condor
rugged root
#

I'm going to be house sitting, I just don't want to bother getting their WIFI set up on my switch

#

Right right

mild quartz
#

i will of course do both

#

whichever you all want

quasi condor
#

send me your friend code

mild quartz
#

did you add me

#

its not showing your arena under friends arena

peak copper
mild quartz
#

nope not working

sage bramble
#

are my headphones not working ? or is everyone actually silent ?

whole bear
#

no one is talking...

#

if you look

#

it says muted

#

on everyones name

sage bramble
#

I dont see muted on their name

#

wait whattt? is discord glitching or what ?

#

a moment ago I saw 10 people in VC, I restarted discord, and now there is no one

wary haven
#

.<

cerulean comet
#

Ayo how can i change from being suppressed

#

@regal nebula

#

I been on this server for a fat minute but could never figure the talking out

#

Okay i found the channel lemme j read rq

#

Okaj @regal nebula lets have a conversation so i can reacjc 50 msgs

lavish rover
#

!voice

wise cargoBOT
#

Voice verification

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

cerulean comet
#

Yes yes

#

It does

regal nebula
#

Nice

cerulean comet
#

Aslong as its not a bit channel

#

Not

regal nebula
#

Im working on some cert stuff so I unfortunately cannot talk rn

cerulean comet
#

Bummer

regal nebula
#

I'd check out general however and try to fufill reqs there

buoyant oar
#

BRO

#

what up

cerulean comet
#

Mr ducky

#

Idk u

#

@buoyant oar

#

Do any of u guys use linux?

#

Oooo i love u

#

Not a lot of folk use linux

#

What version of linux u running?

#

Like mint silvia cinnamon

#

Ay how do i make a cromebook good for coding? I got it cause it was cheap but its hard to find my files n its hard to run my codes

#

N i can only run android apps so imagine a phone but on a laptop

#

I do but its kinda confusing

#

I can use the terminal i figured all that out but its still confusing

#

I rather use my machine at home for programs

#

Oh also the last time i used python was like a month ago and i was running on what i could remember from high school

lavish rover
cerulean comet
#

What?

regal nebula
#

AD

#

Active Directory

cerulean comet
#

🤷‍♂️

#

Ih wow cant screen share either

#

Kek

lavish rover
#

!voice

wise cargoBOT
#

Voice verification

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

cerulean comet
#

@regal nebula i bet ur asleep but when u wake up can u tell me how to run a script on linux? I forgot

regal nebula
#

like wdym run a script. Like an executable file

cerulean comet
#

dang okay im j tryna run very simple hello world j to figure shit out and i cant run it on the terminal

#

or is there a easier way?

regal nebula
#

so what langauge is the executable file (extension)

cerulean comet
#

.py

regal nebula
#

what language is the script?

cerulean comet
#

python

regal nebula
#

version i meant

#

my b

cerulean comet
#

ah python3 or python 10 idek

regal nebula
#

probably 3, alright sweet

#

go into terminal

#

and then cd into the directory that the script is located in

#

and then make the script executable using chmod +x

#

and then run it using the simple python YourScript.py

cerulean comet
#

im missing operand '+x'

regal nebula
#

were you just chmod (ing) it

#

Yeah you need to change permission of the file manually in linux

#

If you need a specific permission set check out man chmod

cerulean comet
#

a bunch of stuff j popped up

regal nebula
#

wdym

#

like when you executed it?

cerulean comet
regal nebula
#

Yeah thats the man pages

#

its the BSD Linux Manual

cerulean comet
#

what do now?

regal nebula
#

I mean nothing. Execute the file

#

Lmk if anything bad happen

cerulean comet
#

ur a wizard harry

#

it worked

#

okay back to watching videos

regal nebula
#

sweet its nothing crazy just basic linux stuff have fun

cerulean comet
#

baller thanks ill make a portal for it on my desktop

regal nebula
#

cool cool lmk if anything else pops up

somber heath
#

!e ```py
class MyClass:
def init(self, v):
self.v = v

a = MyClass(5)
b = MyClass(8)

print(a.v)
print(b.v)```

wise cargoBOT
#

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

001 | 5
002 | 8
somber heath
#

!e ```py
class MyClass:
pass

a = MyClass()
b = MyClass()

a.v = 5
b.v = 8

print(a.v)
print(b.v)```

wise cargoBOT
#

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

001 | 5
002 | 8
somber heath
#

!e ```py
class MyClass:
def init(self):
self.v = 5

a = MyClass()
print(a.v)
a.v = 8
print(a.v)```

wise cargoBOT
#

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

001 | 5
002 | 8
somber heath
#

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

mc = MyClass()

print(mc is mc.get_self())```

wise cargoBOT
#

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

True
warped raft
#

hello @somber heath

somber heath
#

!e ```py
class MyClass:
v = 0

mc = MyClass()

print(mc.v)
mc.v += 1
print(mc.v)
print(MyClass.v)```

main vault
#

hi @somber heath

wise cargoBOT
#

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

001 | 0
002 | 1
003 | 0
somber heath
#

!e ```py
class MyClass:
data = []

a = MyClass()
b = MyClass()
c = MyClass()

a.data.append("Hello!")
print(b.data)
c.data = [] #self.data = []
print(b.data)
print(c.data)```

wise cargoBOT
#

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

001 | ['Hello!']
002 | ['Hello!']
003 | []
frozen owl
#

sry bg noise, my brother is watching videos without headphones 🙄

#
class Test:
  foo = []
  def __init__(self):
    self.foo.append("blah")

say if i have an instance a, how can i get ["blah"] back

#

idk if this is correct or not

sturdy panther
#

It almost sounds like you are writing with a pen.

frozen owl
sturdy panther
#

Don't worry. It was not loud at all.

frozen owl
#

i use a linear red switch so HAHAHA soothing sounds not the clicky mechanical blues

somber heath
#

!e ```py
class MyClass:
v = 0
@classmethod
def increment(cls):
cls.v += 1

mc = MyClass()
print(MyClass.v)
mc.increment()
print(MyClass.v)```

wise cargoBOT
#

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

001 | 0
002 | 1
sturdy panther
#

Huh. I didn't know increment creates a instance variable.

#

Yea. I meant increment as in self.v += 1.

#

Yea... Makes sense when you remember it is immutable.

#

No. Never worked with data libraries.

#

Did they do a Java and make an Int class?

#

Ah..

#

Does that not still create a copy?

#

Like length[:] += 1?

somber heath
#

!e py import numpy as np arr = np.array([5, 6, 7]) print(arr + 1)

wise cargoBOT
#

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

[6 7 8]
sturdy panther
#

That's... a very Fortran thing.

#

Might be worth investing in a Bluetooth keyboard for your phone..!

somber heath
#

!e ```py
import numpy as np
class MyClass:
arr = np.array([0])

a = MyClass()
a.arr += 1
print(a.arr)
print(MyClass.arr)```

wise cargoBOT
#

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

001 | [1]
002 | [1]