#voice-chat-text-0

1 messages ยท Page 36 of 1

scarlet vale
#

so anyone know whats going on

whole bear
#

?

somber heath
whole bear
#

never thought of that

pliant swallow
#

back

#

i had to take a mean shit

#

i wanna play a game

#

so ima pass on the code problem for now

whole bear
pliant swallow
#

what did u say?

#

wdym my own functions

#

like

#

yeah

#

ye ik

scarlet vale
#

@somber heath if i send you the whole code could you quickly check it please?

#

:_(

#

ok

#

yh but the thing is i've literally copied the code just changed the def names etc. the first one works when the button is clicked but the other doesnt

#

ye i have thats the problem

#

def names, frame name etc

#

but the first button works

#

idk haha

#

@rocky hearth

rocky hearth
scarlet vale
#

you know your tkinter shit

rocky hearth
#

what tkinter shit

#

oh

#

no not really

scarlet vale
#

:_(

whole bear
#

very cool

pliant swallow
#

hellllo

#

can u test me

#

yes sir

#

STOP

#

hmm

#

lemme test

#

stackoverflow sucks

#

yeah

#

whats the answer

robust lichen
#

\033[34

pliant swallow
#

i only know minecraft color codes

#

ahh

#

def

#

next quersdtion

#

ohh yes

#

so

#

we

#

got

#

from fun import *

testfunction()
#

WSAIT

#

no

#

i got it

somber heath
#

Wildcard imports should be avoided.

pliant swallow
#

from fun import testfunction

robust lichen
pliant swallow
#

testfunction()

robust lichen
#

import fun

#

print(fun.testfunction())

pliant swallow
#

GIMME A HARD ONE

#

ELABORATE

#

ye

#

no clue

#

can u gimme a tut

#

i should watch

#

for pythopn

#

@somber heath

#

gime tu

somber heath
#

!d in

wise cargoBOT
#
in

6.10.2. Membership test operations

The operators in and not in test for membership. x in s evaluates to True if x is a member of s, and False otherwise. x not in s returns the negation of x in s. All built-in sequences and set types support this as well as dictionary, for which in tests whether the dictionary has a given key. For container types such as list, tuple, set, frozenset, dict, or collections.deque, the expression x in y is equivalent to any(x is e or x == e for e in y).

For the string and bytes types, x in y is True if and only if x is a substring of y. An equivalent test is y.find(x) != -1. Empty strings are always considered to be a substring of any other string, so "" in "abc" will return True.

pliant swallow
#

@somber heath

#

NONONONONONNONONO

#

gimme a tutorial off youtube

#

or somewhere else

#

that i should use to lear

somber heath
#

Corey Schafer.

#

Playlists.

pliant swallow
#

@somber heath

#

can i send u a vid

somber heath
#

I see no need for you to do so.

whole bear
#

if not ctx.user.guild_permissions.manage_guild:

#

does this not exist?

somber heath
#

@mint karma ๐Ÿ‘‹

pliant swallow
#

abcdefghijklmnopqrstuvwxyz 1234567890

whole bear
#

smash

pliant swallow
#

bash

#

slash

#

dash

#

rash

#

lash

#

crash

somber heath
#

@whole bear ๐Ÿ‘‹

pliant swallow
#

@robust lichen @somber heath 5 more hours

#

till i get to !voiceverify

#

#cool #letsgo #dababy #noonecanstopme #unstopable

somber heath
#

I'll hold my breath.

pliant swallow
#

how do i check my

#

messages

somber heath
#

Search tool in Discord.

#

Look for the magnifying glass icon.

pliant swallow
#

5

#

more

#

messages

#

till

#

i

#

get

#

500

whole bear
pliant swallow
#

500 messages

#

les go

#

oh

#

well

robust lichen
#

!e

print("hello world")
wise cargoBOT
#

@robust lichen :white_check_mark: Your 3.10 eval job has completed with return code 0.

hello world
robust lichen
#

!e

def test_print():
    print("Hello, World!")
test_print()
wise cargoBOT
#

@robust lichen :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, World!
toxic edge
#

.

echo shell
#

!e
def test_print():
print("Hello, World!")
test_print()

wise cargoBOT
#

@echo shell :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, World!
echo shell
#

!e
import os
print(os.version)

wise cargoBOT
#

@echo shell :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 | AttributeError: module 'os' has no attribute 'version'
echo shell
#

!e
print(sum(range(101))

wise cargoBOT
#

@echo shell :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     print(sum(range(101))
003 |          ^
004 | SyntaxError: '(' was never closed
echo shell
#

!e
print(sum(range(101)))

wise cargoBOT
#

@echo shell :white_check_mark: Your 3.11 eval job has completed with return code 0.

5050
lavish rover
#
echo -ne "\033]11;#53186f\007"
#
print(f'{27:c}#8')
lavish rover
whole bear
#

Traceback (most recent call last):
  File "/home/runner/cross-ad-bot/venv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 229, in wrapped
    ret = await coro(*args, **kwargs)
  File "main.py", line 245, in setup
    guilds = json.load(f)
  File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
io.UnsupportedOperation: not readable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/runner/cross-ad-bot/venv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 1349, in invoke
    await ctx.command.invoke(ctx)
  File "/home/runner/cross-ad-bot/venv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 1023, in invoke
    await injected(*ctx.args, **ctx.kwargs)  # type: ignore
  File "/home/runner/cross-ad-bot/venv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 238, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnsupportedOperation: not readable
#
@bot.command()
async def setup(ctx):
  try:
    f = open(f"{ctx.guild.id}.json", "r")
  except:
    f = open(f"{ctx.guild.id}.json", "a")
    f.write("{}")
    guilds = json.load(f)
    await saveguild(guilds, ctx.guild)
    with open(f"{ctx.guild.id}.json") as f:
      json.dump(guilds, ctx.guild)
hushed rune
#

what kind of mac do you have?

#

50+ loc and all that is pretty cool

lavish rover
somber heath
#

@noble relic ๐Ÿ‘‹

spice escarp
#

!voiceverify

somber heath
#

@noble solstice ๐Ÿ‘‹

noble solstice
#

what are u doing guys?

peak lily
#

@lavish rover aoc? i also did the most ugly thing ever

somber heath
#

@runic dock ๐Ÿ‘‹

#

@tough sage ๐Ÿ‘‹

tough sage
somber heath
#

@ruby hatch ๐Ÿ‘‹

ruby hatch
#

hello

#

opalmist, are you somehow self botting?

somber heath
ruby hatch
#

:/

echo shell
#

huh?

#

E4, E5

#

Nf3

#

Nc6

#

that is waht I typically play.

somber heath
#

@whole bear ๐Ÿ‘‹

ruby hatch
#

f

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.

ruby hatch
echo shell
#

E4

#

E4

#

E4

#

do it

#

I can't wait.

#

I want to win

ruby hatch
#

ok you do

echo shell
#

E4

ruby hatch
#

then dont say anything else

#

only say this if you wanna move s/g/$&FROMTO an example is this s/g/$&e2e4

#

e2 to e4

echo shell
#

Heh, bad notation bro.

#

too verbose. e2 to e4 should be e4. That is a better notation.

ruby hatch
#

rebane made it not me ยฏ_(ใƒ„)_/ยฏ

echo shell
#

I know

ruby hatch
echo shell
#

e4 is unique

ruby hatch
#

you should do it like e4 pawn

echo shell
#

e4 is only for pawn

ruby hatch
#

I know

echo shell
#

for knight , it is Nf6

#

for queen, it is Qa3, for example

ruby hatch
#

ah

echo shell
#

e4

#

me white. White moves first.

#

exd5

#

x means take

#

it will move Qxd5,

#

I will do Nc3

#

attaching its Queen

#

dxc6

#

Ng3

#

G1G3

#

same thing

#

G1f3

#

sorry

#

f1b5

echo shell
#

castle e1g1

#

f3d4

sick cloud
#

@echo shellwanna play a game?

echo shell
#

g1h2

echo shell
ruby hatch
sick cloud
sick cloud
echo shell
#

sure

sick cloud
echo shell
#

@ruby hatch you can observe, it is much easier

ruby hatch
#

what now

echo shell
#

DEF

sick cloud
#

ohk

echo shell
#

def f(): pass

ruby hatch
echo shell
#

while True: attach

sick cloud
echo shell
#
def f():
  raise Exception(NotImplemented)```
sick cloud
#

!e ```py
def f():
raise NotImplemented()

#

!e ```py
def f():
raise NotImplemented()

f()

wise cargoBOT
#

@sick cloud :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 |   File "<string>", line 2, in f
004 | TypeError: 'NotImplementedType' object is not callable
echo shell
#

try to call f()

sick cloud
#

!e ```py
def f():
raise NotImplemented

f()

wise cargoBOT
#

@sick cloud :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 |   File "<string>", line 2, in f
004 | TypeError: exceptions must derive from BaseException
sick cloud
#

OKAY

#

Oops

ruby hatch
#

!e

pass
wise cargoBOT
#

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

[No output]
ruby hatch
#

mine is the most useless

sick cloud
#

!e ```py
def f():
raise Exception(NotImplemented)

f()

wise cargoBOT
#

@sick cloud :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 |   File "<string>", line 2, in f
004 | Exception: NotImplemented
echo shell
#

!e

def f():
  raise NotImplementedError('aha')
f()```
wise cargoBOT
#

@echo shell :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 |   File "<string>", line 2, in f
004 | NotImplementedError: aha
ruby hatch
#

uselessness = amount of lines it takes {if not usefull in any way}

echo shell
#

@sick cloud

#

it worked

sick cloud
ruby hatch
#

!e

del "Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless "
wise cargoBOT
#

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

001 |   File "<string>", line 1
002 |     del "Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless "
003 |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
004 | SyntaxError: cannot delete literal
ruby hatch
#

hm

echo shell
ruby hatch
#

!
e```py
a = "Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless"
del a

sick cloud
wise cargoBOT
#

@sick cloud :warning: Your 3.11 eval job has completed with return code 0.

[No output]
ruby hatch
#

!e

a = "Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless Very Useless"
del a
wise cargoBOT
#

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

[No output]
ruby hatch
#

I think this shouldn't be counted because you can make it longer infinite times

sick cloud
sick cloud
ruby hatch
#

I mean the amount of char it takes

#

of the useless code

#

aha!

echo shell
#

there is a very good way of running an inf loop from itertools. I have to google it.

ruby hatch
#

!e

# Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless Very useless
wise cargoBOT
#

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

[No output]
wise cargoBOT
#

itertools.cycle(iterable)```
Make an iterator returning elements from the iterable and saving a copy of each. When the iterable is exhausted, return elements from the saved copy. Repeats indefinitely. Roughly equivalent to:

```py
def cycle(iterable):
    # cycle('ABCD') --> A B C D A B C D A B C D ...
    saved = []
    for element in iterable:
        yield element
        saved.append(element)
    while saved:
        for element in saved:
              yield element
```...
ruby hatch
#

what does yield mean?

somber heath
#

Used in generators.

ruby hatch
#

I've seen that couple of times and I do not understand its use

#

give me an example

echo shell
#

!e

from itertools import count
c = count()
for i in range(10):
  print(next(c))```
wise cargoBOT
#

@echo shell :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
echo shell
#

you can loop forever.

ruby hatch
#

!e while True: pass

echo shell
#

and you get the numbers.

wise cargoBOT
#

@ruby hatch :warning: Your 3.11 eval job timed out or ran out of memory.

[No output]
ruby hatch
#

lmao

echo shell
#

haha

somber heath
#

!e ```py
def gen():
yield "a"
yield "b"
yield "c"
yield "d"

g = gen()
print(g)
print(next(g))
for each in g:
print(each)
next(g)```

vague jackal
wise cargoBOT
#

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

001 | <generator object gen at 0x7fdca1df4930>
002 | a
003 | b
004 | c
005 | d
006 | Traceback (most recent call last):
007 |   File "<string>", line 12, in <module>
008 | StopIteration
ruby hatch
#

!e t=0;print(t)

wise cargoBOT
#

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

0
ruby hatch
#

what the hell does := mean

#

!e 0:=0

wise cargoBOT
#

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

001 |   File "<string>", line 1
002 |     0:=0
003 |     ^
004 | SyntaxError: cannot use assignment expressions with literal
somber heath
#

Walrus operator.

#

Both assigns and returns.

ruby hatch
#

!e p:=1;print(p)

wise cargoBOT
#

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

001 |   File "<string>", line 1
002 |     p:=1;print(p)
003 |      ^^
004 | SyntaxError: invalid syntax
somber heath
#

!e py print((a := 123)) print(a)

wise cargoBOT
#

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

001 | 123
002 | 123
ruby hatch
#

what

#

ohh

#

so I could do this

#

!e f"l{e:=1}";print(e)

wise cargoBOT
#

@ruby hatch :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 'e' is not defined
ruby hatch
#

wat

#

!e f"l{(e:=1)}";print(e)

wise cargoBOT
#

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

1
ruby hatch
#

it worked!!

#

I can finally make esoteric

echo shell
#

!e a = 100000, print(f"{a=:_}")

wise cargoBOT
#

@echo shell :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 'a' is not defined
echo shell
#

!e c = 100000; print(f"{c=:_}")

wise cargoBOT
#

@echo shell :white_check_mark: Your 3.11 eval job has completed with return code 0.

c=100_000
dry jasper
#

!e print("Test")

#

!e print("Test")

wise cargoBOT
#

@dry jasper :white_check_mark: Your 3.11 eval job has completed with return code 0.

Test
ruby hatch
echo shell
#

find a python version , and run it here.

ruby hatch
#

I'm making an implementation please wait

echo shell
ruby hatch
#

I think it wont run in the python bot because it will run out of memory

echo shell
#

maybe a stripped one.

ruby hatch
#

Sorry for those random lines, its some sort of bug, I wish to fix it but the solution to it is to re-render the whole video which took 13h 41m 30s

The whole process took 3 days.

1 day to program, 2 day to render, and another day to fix some issues with the code and add some patches to some frames (frames that has nothing on it)

Programs/Libra...

โ–ถ Play video
echo shell
#

Is there a way to make animation here?

#

moving stuff?

ruby hatch
#

what kind of "moving stuff"?

echo shell
#

a charactor say letter 't', walking from left to right.

#

!e
for i in range(10):
print(' ', end="")
print(t)

wise cargoBOT
#

@echo shell :x: Your 3.11 eval job has completed with return code 1.

001 |  Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | NameError: name 't' is not defined
echo shell
#

!e
for i in range(10):
print(' ', end="")
print('t')

wise cargoBOT
#

@echo shell :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 |  t
002 |  t
003 |  t
004 |  t
005 |  t
006 |  t
007 |  t
008 |  t
009 |  t
010 |  t
echo shell
#

!e
for i in range(10):
print('-'*i, end="")
print(t)

wise cargoBOT
#

@echo shell :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | NameError: name 't' is not defined
echo shell
#

!e
for i in range(10):
print('-'*i, end="")
print('t')

wise cargoBOT
#

@echo shell :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | t
002 | -t
003 | --t
004 | ---t
005 | ----t
006 | -----t
007 | ------t
008 | -------t
009 | --------t
010 | ---------t
echo shell
#

!e
import time
for i in range(10):
print('-'*i, end="")
print('t')
time.sleep(1)

wise cargoBOT
#

@echo shell :x: Your 3.11 eval job timed out or ran out of memory.

001 | t
002 | -t
003 | --t
004 | ---t
005 | ----t
006 | -----t
echo shell
#

!e
import time
for i in range(10):
print('-'*i, end="")
print('t')
time.sleep(0.1)

wise cargoBOT
#

@echo shell :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | t
002 | -t
003 | --t
004 | ---t
005 | ----t
006 | -----t
007 | ------t
008 | -------t
009 | --------t
010 | ---------t
ruby hatch
#

!e
for x in range(10): print("." * (((x/10)**2) * 20).__int__())

wise cargoBOT
#

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

001 | 
002 | 
003 | 
004 | .
005 | ...
006 | .....
007 | .......
008 | .........
009 | ............
010 | ................
ruby hatch
#

mmm

#

!e
for x in range(10): print("." * (((x/10)**2) * 20).round())

wise cargoBOT
#

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

001 | 
002 | 
003 | .
004 | ..
005 | ...
006 | .....
007 | .......
008 | ..........
009 | .............
010 | ................
ruby hatch
#

!e
for x in range(10): print("." * (((x/10)*3) 20).round())

wise cargoBOT
#

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

001 |   File "<string>", line 1
002 |     for x in range(10): print("." * (((x/10)*3) 20).round())
003 |                                       ^^^^^^^^^^^^
004 | SyntaxError: invalid syntax. Perhaps you forgot a comma?
ruby hatch
#

!e
for x in range(10): print("." * (((x/10)**3) * 20).__round__())

wise cargoBOT
#

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

001 | 
002 | 
003 | 
004 | .
005 | .
006 | ..
007 | ....
008 | .......
009 | ..........
010 | ...............
ruby hatch
#

!
efor x in range(10): print("." * (((x/10)**2) * 30).__round__())

#

!e
for x in range(10): print("." * (((x/10)**2) * 30).round())

wise cargoBOT
#

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

001 | 
002 | 
003 | .
004 | ...
005 | .....
006 | ........
007 | ...........
008 | ...............
009 | ...................
010 | ........................
dry jasper
safe pumice
ruby hatch
#

!e

import math

WH:int = 32
WW:int = 32

MX_I:int = 9
MN:float = -2.0
MX:float = 2.0
PNX:float = -10
PNY:float = 0
colors = ".->=&#@ "

def m_map(x: float, in_min: float, in_max:float, out_min: float, out_max:float) -> float:
    return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min

def main():
    x, y, a, b, ai, bi, a1, b1 = (0.0, 0.0 , 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
    n = 0

    for sy in range(WH):
        for sx in range(WW):
            x = sx + PNX / MX
            y = sy + PNY / MX
            a = m_map(x, 0, WW, MN, MX)
            b = m_map(y, 0, WH, MN, MX)
            ai = a
            bi = b
            n = 0
            for i in range(MX_I):
                a1 = a * a - b * b
                b1 = 2 * a * b
                a = a1 + ai
                b = b1 + bi

                if ((a * a) + (b * b)) > 2 * 2: break

                n += 1
            print(colors[n] if n < colors.__len__() else " ", end="")
        print("")

if __name__ == '__main__':
    main()
wise cargoBOT
#

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

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

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

dry jasper
ruby hatch
#

trying to make esoteric python

safe pumice
#
# array1 = []
file = open("data.txt", "r")
# print(f.read())

count = 0

file = open("data.txt", "r")

array1 = []
array2 = []

for line in file:
    test1 = line.strip('\n')
    array1.append(test1.split(" "))

    print([float(x) for x in array1[0 + count:1 + count:2][0][2:]])
    the_max = max([float(x) for x in array1[0 + count:1 + count:2][0][2:]])
    the_min = min([float(x) for x in array1[0 + count:1 + count:2][0][2:]])

    # array3 = [array1[0 + count:1 +count:2][0][:2]],[array1[0 + count:1 +count:2][0][2:]],[the_max],[the_min]]
    array3 = [[array1[0 + count:1 + count:2][0][:2]],
              [array1[0 + count:1 + count:2][0][2:]], [the_max], [the_min]]
    print(array3)

    print(array1[0 + count:1 + count:2][0][:2])
    print(array1[0 + count:1 + count:2][0][2:])

    print(the_max)
    print(the_min)

    print("the_max: ", the_max)
    print("the_max: ", the_min)
    count = count + 1

print(array2)


#examples of what its doing
iter = 2

jim3 = array1[0 + iter:1 + iter:2]

jim4 = array1[0 + iter:1 + iter:2][0][2:]
print(jim3)
print(jim4)
print([float(x) for x in array1[0 + iter:1 + iter:2][0][2:]])
the_max = max([float(x) for x in array1[0 + iter:1 + iter:2][0][2:]])
the_min = min([float(x) for x in array1[0 + iter:1 + iter:2][0][2:]])

#

Erik Eriksson 11.47 12.7 10.98 12.04 12.0 12.43 10.47 11.82 10.91 10.37
Anna Andersson 10.02 11.23 13.79 12.44 12.56 11.12 12.68 10.53 13.82 10.26
Olle Olsson 13.45 10.55 12.51 14.29 14.09 10.3 11.8 14.28 13.17 14.06
Eva Enoksson 13.09 14.05 12.47 13.45 11.33 14.91 12.56 10.23 10.56 10.86
Sven Svensson 12.99 12.79 11.4 10.6 12.94 10.02 11.96 14.2 12.35 13.34
Robin Robinsson 14.93 14.92 12.41 14.83 13.77 12.77 10.4 11.76 11.36 11.64
Stina Svensson 13.1 12.32 11.91 10.11 11.27 13.86 11.91 10.83 11.14 11.68
Elsa Enoksson 12.99 14.47 14.6 11.54 14.03 13.8 11.56 14.96 10.63 10.09
Ingrid Istedt 10.85 10.38 11.07 14.75 14.52 12.43 13.25 10.36 10.64 14.33
Gunnar Gรถransson 10.27 13.25 11.47 12.38 12.82 10.32 14.77 10.72 13.17 13.61
Hanna Hansson 11.88 12.79 11.57 14.51 10.41 13.43 13.83 14.69 10.87 11.22
Mats Matsson 13.95 12.64 10.03 14.11 10.6 10.31 10.65 12.72 11.07 11.6
Maria Malmberg 13.66 12.85 11.67 13.06 11.57 13.64 11.95 12.54 11.07 10.47
Vera Valfridsson 14.53 13.02 11.02 11.39 10.07 10.81 10.01 11.24 13.63 13.2
Astrid Adamsson 12.84 11.91 13.34 12.01 12.1 13.2 10.19 11.8 14.49 12.83
Erik Einarsson 14.03 10.78 14.56 10.13 11.98 10.89 11.27 12.7 12.15 14.98
Rune Robertsson 12.11 14.22 13.75 14.88 10.93 13.41 14.75 13.62 11.44 13.24
Mona Mรฅnsson 11.9 10.77 13.95 13.9 10.1 12.26 14.69 12.94 11.7 14.14
Martin Martinsson 10.95 14.0 10.18 10.74 10.77 12.3 14.62 11.51 14.92 12.15
Willy Wik 12.78 13.43 10.83 12.39 10.43 12.12 13.84 10.35 13.99 14.1

ruby hatch
#

!e print("```")

wise cargoBOT
#

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

[No output]
ruby hatch
#

!e print("`")

wise cargoBOT
#

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

`
ruby hatch
#

!e print("`".join["", "", ""])

wise cargoBOT
#

@ruby hatch :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 | TypeError: 'builtin_function_or_method' object is not subscriptable
ruby hatch
#

!e print("`".join(["", "", "", ""]))

wise cargoBOT
#

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

``
ruby hatch
#

!e print("`".join(["", "", "", ""]))

wise cargoBOT
cloud root
#

!e print("```")

wise cargoBOT
#

@cloud root :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     \
003 |      ^
004 | SyntaxError: unexpected EOF while parsing
valid mesa
#

How do I become voice verified?

cloud root
#

The unix epoch date was <t:0:f>, it was <t:0:R>

cloud root
wise cargoBOT
#

Voice verification

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

valid mesa
#

ic tysm

cloud root
#

!voice @ruby otter

wise cargoBOT
#

Voice verification

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

cloud root
#

Not that you asked but I want someone to talk with

ruby otter
cloud root
#

Okay .w.

cloud root
safe pumice
#

make this sound like a research paper "AI art and the creative destruction of the creatives The Austrian economist Joseph Schumpeter theorized in the 1940ties that capitalism is in a constant โ€œprocess of industrial mutation that continuously revolutionizes the economic structure from within, incessantly destroying the old one [and] incessantly creating a new oneโ€ (Schumpeter, 1942). Capitalists and entrepreneurs face a constant pressure to innovate in order to avoid a loss of their capital and face a market exit. This continuous pressure for innovation leads in turn to the destruction of past investments and labour skills in the workforce. The first wave of creative destruction happened during the industrial revolution in England. The steam powered loom, a machine than could knit cloth way more efficient than any human being, made heaves of workers obsolete over night, resulting in mass poverty and social upheaval. AI Art has the same destructive potential in the creative industries. Artists and creatives, who invested a lifetime into honing their craft, face a future in which any image, sound or text can be created with the click of a button and a text prompt, making them and their expertise obsolete."

The process of creative destruction, as theorized by Austrian economist Joseph Schumpeter, is a fundamental characteristic of capitalism. According to Schumpeter, capitalism is in a constant state of "industrial mutation" that continuously revolutionizes the economic structure, destroying the old and creating the new. This pressure to innovate leads to the destruction of past investments and labor skills in the workforce.

One example of this phenomenon is the industrial revolution in England, where the introduction of steam-powered looms made many workers obsolete overnight, leading to mass poverty and social upheaval.

The emergence of AI art has the same destructive potential in the creative industries. Artists and creatives who have spent their entire lives honing their craft now face a future in which their expertise can be replaced by AI-generated images, sounds, and texts. This technology has the potential to make many traditional creative roles obsolete.

oblique bough
#

@dry jasper Can you help me with html and css? I'm in VC

#

@robust lichen @whole bear Can you help me with html and css? I'm in VC

whole bear
#

!voiceverify

oblique bough
#

it'll take 3 days

#

okay

#

I have a img

#

and have hover effect

whole bear
#

I've been in this server for a long time

oblique bough
#

but while hover img scales left

whole bear
#

I'm sure I've sent more then 50 messages

#

but it requires voice verification

oblique bough
whole bear
#

hmm got it

oblique bough
whole bear
#

I've been here more than a year

oblique bough
#

if you want to help me. can you pls come to the call

whole bear
#

guys Have you ever tried opencv

oblique bough
#

or something

#

where i can share my screen

whole bear
#

I ve no idea about css and html

oblique bough
#

thanks

lethal thunder
#
py -m pip install --upgrade pip
py -m pip install tensorflow-cpu==2.10.0
py -m pip install tensorflow-directml-plugin
trail mural
whole bear
#

guys have you ever tried opencv?

lethal thunder
#

print(tensorflow.config.list_physical_devices('GPU'))

#

@safe pumice

dry jasper
#

;

hollow kiln
#

hey

#

can anyone please help me with this question

#

Write a program that simulates a lottery. The program should have a list of 5 integers named winning Digits, with a randomly generated integers in the range of 0 through 9 (both included) for each element in the list. The program should ask the user to enter 5 integers (between 0 to 9) and should store them in a second integer list named player. The program must compare the corresponding elements in the two lists and count how many integers match. For example, the following shows the winning Digits list and the Player list with sample digits stored in each. There are two matching integers, elements 9 and 3 in the same index position.

#

without using functions

lethal thunder
#

@whole bear

somber heath
#

@tranquil peak ๐Ÿ‘‹

#

@hollow glacier ๐Ÿ‘‹

somber heath
#

@pliant karma ๐Ÿ‘‹

lethal thunder
#

# -*- coding: utf-8 -*-

dusk raven
dusk raven
limpid sparrow
#

It means you should update your stuff @lethal thunder

somber heath
#

Allo'y'all'd've.

#

All of you all would have.

gentle flint
lethal thunder
#

yall is not formal

#

doesnt even make sense

stray niche
gentle flint
#

ye

limpid sparrow
#

Llanfairยญpwllgwyngyllยญgogeryยญchwyrnยญdrobwllยญllanยญtysilioยญgogoยญgoch

zenith radish
#

Skovde

#

Vaxjo

limpid sparrow
gentle flint
#

Vรคxjรถ

dusk raven
#

Grundstรผcksยญverkehrsยญgenehmigungsยญzustรคndigkeitsยญรผbertragungsยญverordnung

torn grove
#

Nordvรคstersjรถkustartilleriflygspaningssimulatoranlรคggningsmaterielunderhรฅllsuppfรถljningssystemdiskussionsinlรคggsfรถrberedelsearbeten

somber heath
#

"Legalese", for its lack of.

dusk raven
#

Rindfleischยญetikettierungsยญรผberwachungsยญaufgabenยญรผbertragungsยญgesetz

quasi condor
#

!server

wise cargoBOT
#
Server Information

Created: <t:1483877013:R>
Roles: 102
Member status: status_online 51,714 status_offline 312,588

Members: 364,302

Helpers: 146
Moderation Team: 36
Admins: 14
Owners: 3
Contributors: 46
Leads: 12

Channels: 279

Category: 31
Forum: 3
News: 10
Staff: 72
Stage_Voice: 2
Text: 153
Voice: 8

stray niche
#

เฎคเฎฟเฎฐเฏเฎตเฎพเฎฒเฎตเฎพเฎฏเฏเฎŸเฏˆเฎฏเฎพเฎฐเฏเฎคเฎฟเฎฐเฏเฎตเฎฟเฎฒเฏˆเฎฏเฎพเฎŸเฎฑเฏเฎชเฏเฎฐเฎพเฎฃเฎฎเฏ

rugged root
#

!charinfo เฎฃเฎฎเฏ

wise cargoBOT
rugged root
#

เฎฐเฏ

stray niche
#

la

quasi condor
#

@rugged root what is the relationship between this server and the PSF?

stray niche
#

What is PSF

rugged root
#

We're listed on their communities page, and we've hosted events with them, but we are not officially affiliated with them

#

We're a separate entitiy

#

Python Software Foundation

stray niche
#

Singlish

#

Singaporean English

#

Simlish

rugged root
#

@supple dagger Would you please change your nickname to meet our nickname policy? For more details, see #rules

rugged root
#

Awww, muffin

stray niche
#

byee @limpid sparrow

stray niche
#

ahh

zenith radish
long quiver
#

i need voice verification

#

i need spam

somber heath
gentle flint
#

and then running the command

#

you do also need to have been in the server for a certain amount of days

wise cargoBOT
#

Voice verification

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

limpid sparrow
dusk raven
gentle flint
whole bear
stray niche
whole bear
gentle flint
whole bear
whole bear
#

So chaotic! I love it!

gentle flint
whole bear
#

@quasi condor I see you sir....but today I have a vanilla latte so I shall take this W

amber raptor
#

@quasi condor JavaScript is bad.

gentle flint
#

@quasi condor JavaScript is bad.

amber raptor
#

What was reason?

quasi condor
#

@quasi condor JavaScript is bad.

rugged root
#

The ecosystem

#

Meeting time.

quasi condor
#

Linkedin

#

LinkedIn

#
Linkedin
LinkedIn```
amber raptor
honest pier
gentle flint
#

emptied the solder pump

#

now my fingers are glittery

quasi condor
#
/h1
Hello World

/h2 .subtitle
This is a h2 with the class ".subtitle"

/article
/section
/p This is a section /p there are multiple paragraphs

/img https://onion.beauty/1.jpg

stray niche
quasi condor
#
<div>
<p> Paragraph
<p> This is also a paragraph
honest pier
willow light
honest pier
#

i tried, it was too hard

willow light
#

i really dislike vault, but it does have its uses

amber raptor
quasi condor
#

@zenith radish this is columns

gentle flint
trail mural
#

@honest pier I did todays one the wrong way round

#

I never read the question but I completed part 2 before part 1

zenith radish
#

@amber raptor what vm instance to use for matrix server

whole bear
#

sorry im in class

rugged root
#

@whole bear If you can't control your mic, you're going to lose your voice perms

whole bear
#

rap cap

rugged root
#

The hell does that even mean

whole bear
#

your rap capping

rugged root
#

If by that you mean preventing loud noises from interrupting the voice chat, then yes

whole bear
#

im in class yo

#

not my fault

rugged root
#

Then you keep your mic muted

#

It is, in fact, your fault

whole bear
#

i have push to talk

rugged root
#

Then you were holding it down when you weren't speaking

whole bear
#

i didnt realise

trail mural
#

You left your mic on and a lot of background noise was coming through

whole bear
#

oh

rugged root
#

And now you know

whole bear
#

yea

amber raptor
south torrent
#

somebody know how to use tkinter??

rugged root
#

@south torrent What's the problem you're having with it

#

Better to ask your question rather than asking if someone knows

barren drift
#

lol

south torrent
#

i don't know how to explain this

rugged root
#

I don't know what to tell you then, unfortunately

trail mural
#

what about me ;-;

barren drift
#

im not under 18

#

@tidal shard ^

south torrent
#

the problem is when i am doing a pack to my question (i am trying to make a question game and you can pick the right answer)or doing a grid without anything its work but when i add to the grid row=0, rowspan= 3 it doesn't work any more my question is build on three rows and i am trying to do rowspan it don't work and i dont know why

barren drift
#

@quasi condor his computer has performance issues lol

south torrent
#

sopeone cna help me

#

someone can*

#

??

rugged root
#

Patience.

barren drift
#

whoever just said to not leave their child at the terminal was hilarious lol

rugged root
#

Our dear Maro

barren drift
#

whats a matrix server?

#

nvm ill just google it

#

ohhhh

#

i heard boob, you have peaked my interest

peak lily
#

anyone tried chatGPT?

rugged root
#

What is it exactly?

peak lily
rugged root
#

Interesting

peak lily
#

it's incredible

sweet lodge
rugged root
#

Nah

#

Might later

sweet lodge
peak lily
#

it's a well known fact that there are finitely many primes

echo shell
sweet lodge
peak lily
echo shell
#

chatGPT is not good at math.

peak lily
echo shell
#

OK, I don't know chatGPT is talking about.

#

and is probaly wrong proof.

peak lily
#

yes it is...

echo shell
#

not surprised. Also AI failed the latest AoC.

#

@peak lily do you have access to chatGPT yourself?

peak lily
echo shell
#

but hesitated now.

peak lily
rugged root
#

@mossy creek You've got some buzzing coming from your mic. Can you either turn on Krisp, mute your mic, or turn on push to talk?

#

Thank you

stuck furnace
#

๐Ÿ‘‹

quasi condor
rugged root
#

https://store.steampowered.com/app/846770/DYSMANTLE/ This game is weirdly cathartic, btw

As you ascend from your shelter after the long long years, a brave new old world awaits you. A world inhabited with nasty and vile creatures. A world with no other human soul to be seen. A world with nature in reigns now. A world that's about to get even worse.You need to find a way to escape the wretched island. But before that, enjoy the bitte...

Price

$19.99

Recommendations

7600

โ–ถ Play video
#

No idea why, I just love it so much

#

@stuck furnace How've you been?

stuck furnace
rugged root
#

Not good, but I don't have the energy to go into that. You been busy with school, work, etc.?

stuck furnace
rugged root
#

HA

#

Nice

whole bear
#

!e

wise cargoBOT
#
Missing required argument

code

rugged root
terse needle
#

@lavish rover making a raytracer โ™ฅ๏ธ

rugged root
mossy creek
rugged root
#

!tvmute 754020405089534013 1d You were told to cut it out with the noises. Your random mouth noises and buzzing mic need to be fixed. If you cannot behave yourself by the time you get back, you will have your voice permissions removed permanently.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @mossy creek until <t:1670353554:f> (1 day).

rugged root
#

@last thistle Sorry, didn't mean to cut you off

last thistle
#

It's all good I didn't want to cut you off

#

Can I come back?

rugged root
#

Of course!

tidal shard
#

I shall take my leave

tidal shard
mossy creek
#

!unmute 754020405089534013

#

Hi jamie i am reporting one of the moderators to you as i can't create a ticket. Discombobulated Adams is very rude and refusing to help for no reason. You can see this in the pictures i have sent.

rugged root
#

If you have a complaint, send a message to the @rapid crown bot

mossy creek
rugged root
#

Again, message the bot

mossy creek
# rugged root Again, message the bot

They just said "This system is for reporting concerns to the moderators. Don't be afraid to use it as needed, but it is not intended for other purposes."

sly rock
#

Hey man, do you know mathematica? Im having an issue

rugged root
#

Dude you necro'd a post from like... a week ago

sly rock
#

Oh thank god

rugged root
#

Not you, Rift

sly rock
#

I The code continuously plots 0.25 when x > 1 even though it should plot
(sqrt(x + 3) - 2)/(x - 1) when x > 1

rugged root
#

Just thought it was interesting

sly rock
#

So I literally just searched "mathematica" in chat lol

rugged root
#

No worries, was more just impressed how thorough your search was

#

Ah fair

sly rock
#

AF you still there?

#

Ah

#

What's the difference?

#

The reason why I'm so stressed about this isn't because it's so complicated; it's because it's so simple... that's bad!

rugged root
#

Whatcha workin' on?

sly rock
#

Oh holy shit

#

That's a good catch

#

I did the math for like two points in my head and I thought it wouldn't look like that

#

Ah

#

I have free mathematics through my uni

#

Nvm forget I said that

rugged root
#

!server

wise cargoBOT
#
Server Information

Created: <t:1483877013:R>
Roles: 102
Member status: status_online 59,248 status_offline 305,083

Members: 364,331

Helpers: 146
Moderation Team: 36
Admins: 14
Owners: 3
Contributors: 46
Leads: 12

Channels: 282

Category: 31
Forum: 3
News: 10
Staff: 75
Stage_Voice: 2
Text: 153
Voice: 8

last thistle
#
card_deck_dict = {
    "โ™ 2": "/2_of_spades.png",
    "โ™ฅ2": "/2_of_hearts.png",
    "โ™ฆ2": "/2_of_diamonds.png",
    "โ™ฃ2": "/2_of_clubs.png",
    "โ™ 3": "/3_of_spades.png",
    # ...
}
#
suit_cards = [
    "โ™ ",
    "โ™ฅ",
    "โ™ฆ",
    "โ™ฃ",
]
face_cards = [
    "2",
    "3",
    "4",
    "5",
    "6",
    "7",
    "8",
    "9",
    "T",
    "J",
    "Q",
    "K",
    "A",
]
the_deck = []

for f_card in face_cards:
        for s_card in suit_cards:
            the_deck.append(f_card + s_card)
stuck furnace
#

I think the input processing was the hardest part today

#

Ah right

#

You mean like? ```py
suit_cards = 'โ™ โ™ฅโ™ฆโ™ฃ'
face_cards = '23456789TJQKA'

#

Yeah, there's a bit of a trade-off between vertical space and line length.

#

I agree with steve ๐Ÿ˜„

#

It pleases me that suit_cards and face_cards have the same number of characters ๐Ÿค”

#

I've always avoided GUI programming for some reason.

#

Nah

echo shell
#

If I really have to, I just go with webUI.

stuck furnace
#

Taught by Peter Norvig.

#

Yeah ๐Ÿ˜„

#

Oh nice

#

He used to be high up at Google I think?

warm jackal
#
import random
from enum import Enum
from collections import namedtuple
from dataclasses import dataclass
from pathlib import Path
from itertools import product

Suit = Enum('Suit', split('โ™ โ™ฅโ™ฆโ™ฃ'))
Face = Enum('Face', split('23456789TJQKA'))

@dataclass(frozen=True)
class Card:
  suit: Suit
  face: Face

  def __str__(self) -> str:
    return f"{self.suit}{self.face}"

@dataclass
class Deck:
  cards: typing.iterable[Card]
  def shuffle(self) -> Deck:
    random.shuffle(self.deck)

def get_picture(card: Card) -> Path:
  with path(f"path/to/folder/with/pics/{card}.png") as pic:
    return pic.read()

def generate_full_52_cards_deck():
  return product(
    list(Face),
    list(Suid),
  )

if __name__ == '__main__':
  full_deck = generate_full_52_cards_deck()
  random_card = Card(
    random.choice(list(Face)),
    random.choice(list(Suit))
  )
  assert(len(full_deck.cards) == 52)
  assert(random_card in full_deck.cards)
stuck furnace
#

Looks pretty good to me. I would use a more concrete type than typing.iterable[Card] for Deck.cards, e.g. list[Card] or tuple[Card, ...].

echo shell
#

suggest adding shuffle.

stuck furnace
#

Oh right, so you want your Deck constructor to take any iterable?

#

I'd probably just add an alternate constructor.

#
@dataclass
class Deck:
    cards: list[Card]

    @classmethod
    def from_iterable(cls, it: Iterable[Card]):
        return cls(list(it))
#

Ah yeah

#

I would tend to just use type-aliases though. E.g. ```py
Deck = list[Card]

#

But idk ๐Ÿคทโ€โ™‚๏ธ

echo shell
stuck furnace
#

๐Ÿ‘‹

toxic edge
#

Omg

stuck furnace
#

It's an interesting course. It mostly focuses on solving small puzzles, but he dives straight into things like using the profiler to optimise your code.

toxic edge
#

๐Ÿฅน

stuck furnace
#

Ah yeah ๐Ÿ˜„

#

PAIP?

#

Yeah I always wanted to learn Lisp but never got around to it.

echo shell
#

and a few other books as well.

#

I am not good at Lisp. ๐Ÿ˜ฆ

#

I found it to be difficult.

stuck furnace
#

He writes Python in a very lispy style though ๐Ÿ˜„

#

ยฏ_(ใƒ„)_/ยฏ

#

Anyway gtg ๐Ÿ‘‹

echo shell
#

bye now.

echo shell
whole bear
#

def sing_happy_birthday():

echo shell
#

sing()

wheat needle
#

return birthday =]

whole bear
#

return age

#

age ++ 1

echo shell
#

raise NotImplementedError('huh')
return 0

whole bear
whole bear
#
def Menu(menu):
    print(menu)

global gameScreen

gameScreen = f"""

        {name}
+=---------------------=+
    Health : {health}
    Mana   : {mana}
    Attack : {attack}
    Weight : {weight}
    Weapon : {weapon}
    Armour : {armour}
+=---------------------=+

"""

def createPlayer():
    name = input("What shall you be called")


if __name__ == '__main__':
    createPlayer()
#
class Player():

    def __init__(self,name,health,mana,attack,weight,weapon,armour,gold,xp,level) -> None:
        self.name = name
        self.health = health
        self.mana = mana
        self.attack = attack
        self.weight = weight
        self.weapon = weapon
        self.armour = armour
        self.gold = gold
        self.xp = xp 
        self.level = level
wise cargoBOT
#

Source code: Lib/dataclasses.py

This module provides a decorator and functions for automatically adding generated special methods such as __init__() and __repr__() to user-defined classes. It was originally described in PEP 557.

The member variables to use in these generated methods are defined using PEP 526 type annotations. For example, this code...

whole bear
#
@dataclass
class Weapon():
    name: str
    attack: float
    weight: float

@dataclass
class Armour():
    name: str
    defense: float
    weight: float

@dataclass
class Player():

    name: str
    health: float
    mana: float
    attack: float
    defense: float
    weight: float
    weapon: Weapon
    armour: Armour
    gold: float
    xp: float
    level: int
wise cargoBOT
#

typing.TypeAlias```
Special annotation for explicitly declaring a [type alias](https://docs.python.org/3/library/typing.html#type-aliases). For example:

```py
from typing import TypeAlias

Factors: TypeAlias = list[int]
```  See [**PEP 613**](https://peps.python.org/pep-0613/) for more details about explicit type aliases.

New in version 3.10.
warm jackal
#
@dataclass
class AccurateCappedCounter:
  value: Decimal
  capacity: Decimal
  # overload the add, minus, whatever other operators you need
  # and make sure to throw an error/exception when you go below 0 or above max_value

Health: typing.TypeAlias = AccurateCapperContainer
Gold: typing.TypeAlias = AccurateCapperContainer
Mana: typing.TypeAlias = AccurateCapperContainer

if __name__ == '__main__':
  health = Health(value=100, capacity=100)
  mana = Mana(100, capacity=250)
  wallet = Gold(value=0, 100)
fading lance
#

capicity logic

sleek umbra
#

hi

cloud root
#

@echo shell good morning

sleek umbra
#

Python is an amazing programming language that you can do so many things with.

cloud root
#

Nice to see you again ( I am CiTyESP's alt )

sleek umbra
#

At the moment I am learning python

echo shell
sleek umbra
#

More than anything, I specialize in Java. I have been working with it for 7 years.

echo shell
cloud root
#

Thanks for letting me know

cloud root
sleek umbra
#

Tell me what epic things you have done with python

graceful grail
#
rapid flame
cloud root
# sleek umbra Tell me what epic things you have done with python

Sorry for those random lines, its some sort of bug, I wish to fix it but the solution to it is to re-render the whole video which took 13h 41m 30s

The whole process took 3 days.

1 day to program, 2 day to render, and another day to fix some issues with the code and add some patches to some frames (frames that has nothing on it)

Programs/Libra...

โ–ถ Play video
somber heath
#

Corey Schafer, YouTuber, Playlists @whole bear

#

!resources

wise cargoBOT
#
Resources

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

upbeat leaf
#

@graceful grail @lavish rover Using an multiplication-based approach, I'd do it like this:

Create two arrays using the specified range, and zero out the rest of the range. If 2-4, then arr1 becomes

[0,2,3,4,0,0,0,0]

If 6-8, then array becomes:

[0,0,0,0,0,6,7,8]

To figure out overlap, I'd multiply the indices together and generate a third array

[0,2,3,4,0,0,0,0]
x
[0,0,0,0,0,6,7,8]

It becomes arr3[1] = arr1[i] * arr2[i] for the third array

[0 x 0, 2 x 0, 3 x 0... 0 x 7, 0 x 8]

Which results in:

[0,0,0,0,0,0,0,0]

If all indices in the third array are 0, then there's zero overlap. In the case of overlap, like:

.23456...  2-6
...45678.  4-8

You'd get this:

arr1 = [0,2,3,4,5,6,0,0]
arr2 = [0,0,0,4,5,6,7,8]

arr3 = [0 x 0, 2 x 0, 3 x 0, 4 x 4, 5 x 5, 6 x 6 ... 0 x 8]
arr3 = [0,0,0,16,25,36,0,0]

Where the non-zero indices indicate the overlap between the other.

robust lichen
#
]+(![]+[])
+!+[]]]+[]
+[]]]+(![]
graceful grail
#
variable_name = 1
del variable_name
lavish rover
#

!e

x = 1
globals().pop('x')
x
wise cargoBOT
#

@lavish rover :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | NameError: name 'x' is not defined
graceful grail
#

!e

wise cargoBOT
#
Missing required argument

code

graceful grail
#

!e ```python
x = 1
x.pop(0)
x

upbeat leaf
#

@graceful grail @lavish rover
In the overlap case:

arr1 = [0,2,3,4,5,6,0,0] => Has 5 non-zero elements
arr2 = [0,0,0,4,5,6,7,8] => Has 5 non-zero elements

We know that if arr3 has less non-zero elements than either arr1 or arr2, the overlap is not a subset.

By that same token, if arr3 has the same number of non-zero elements as arr2 and arr2 has less non-zero elements as arr1, then arr2 is a subset of arr1.

The same can be said vice versa if ((arr3.NumNonZeroElements() == arr1.NumNonZeroElements()) < arr2.NumNonZeroElements()), then arr1 is a subset of arr2

lavish rover
#
input_txt = open('input').read()
#
def max_sum_block(input_txt):
    return max(
        sum(map(int, block.split('\n')))
        for block in input_txt.split('\n\n')
    )
spice cloak
#

i have no idea what is that, but looks nice!

whole bear
spice cloak
#

just learn chinese, grammar is simple

whole bear
#

o, it just shows blank spaces for me, my bad

#

i didn't realize it was Chinese chars

spice cloak
#

happens all the time!

#

machine learning ,, Uffff,, what a daddy we got in here

lavish rover
#
print((T:=(R:=(I:=__import__)("functools").reduce)(lambda P,L:(R(lambda p,i:((P[0][i+1].append(L[i*4+1]),P[1][i+1].append(L[i*4+1]))if L[i*4]=="["else P,P)[-1],range(len(L)//4),P)if"["in L else((t:=[*map(int,I("re").findall("\d+",L))]),R(lambda *_:P[0][t[2]].insert(0,P[0][t[1]].pop(0)),range(t[0]),0),P:=(P[0],D(list,{**P[1],t[2]:P[1][t[1]][:t[0]]+P[1][t[2]],t[1]:P[1][t[1]][t[0]:]})))[-1]if"move"in L else P),open("input/05.txt"),((D:=I("collections").defaultdict)(list),D(list))),*["".join(x[1][0]for x in sorted(t.items()))for t in T])[-2:])
spice cloak
#

man

#

I hope that s not real code

lavish rover
spice cloak
#

I dont believe you

#

this is unreal ((

#

this is the GigaChad stuff but as for coding

spice cloak
cloud root
#

!video

#

How is he video verified

bleak bison
#

hello again opan misstt

somber heath
#

@mortal delta

#

๐Ÿ‘‹

#

@hoary path Howdy

hoary path
#

hi

mortal delta
somber heath
#

@novel sleet ๐Ÿ‘‹

#

@wintry wasp ๐Ÿ‘‹

wintry wasp
#

hey

#

@wind raptor is it alright if you share your screen so i can watch you work?

spare terrace
#

@lavish rover could you help me find a problem with my code?

wintry wasp
#

all good

spare terrace
#

or @wind raptor

lavish rover
spare terrace
lavish rover
#

what's the problem specifically, give more details please

spare terrace
#

thats the error

#

mean = sum(rtt, 0.0) / len(rtt)
~~~~~~^~
ZeroDivisionError: float division by zero

#

yes

#

but the server is working @whole bear

#

thats what i did

#

HAHA

#

its free

#

u can do it here

#

yeah

#

@lavish rover it is GPT

wintry wasp
#

coding chess engines must be pretty cool

spare terrace
#

ok

#

nope

#

still timed out

whole bear
#

why is hashmaps under user defined?

spare terrace
#

@lavish rover all goods

thick hamlet
#

I was wondering about that, I was thinking there is no point to having a continue at the end of the while loop

spare terrace
#

no its outside

#

let me change that

wintry wasp
#

this is yalls uni homework?

lavish rover
#

dictionary in python are hashmap

#

dictionaries == hashmap

whole bear
#

dictionaries are hashmaps

spare terrace
#

wait so what did i have to do to the inside @lavish rover

#

like this

#

ok thank you

#

i will try re typing it

thick hamlet
#

"from" and "not respond" are duplicated from the comment

spare terrace
#

i see

thick hamlet
#

respond is undefined though

lavish rover
#

that's more of a runtime not syntactic error, but true

thick hamlet
#

good point

spare terrace
#

wait

#

ooo

#

thanks

#

OMG THANK YOU

#

it worked

heady ridge
#

hi

#

twitter is in seattle

#

@whole bear

lavish rover
thick hamlet
#

Some people just want to see the world burn

#

I wonder who you are referring to

#

can't argue with that

#

but they hold the power

#

that was Roosevelt

#

I think

#

these are some dark thoughts

#

the power of the collective

#

I hope to get the verification some time, looking forward to speaking

heady ridge
#

verify me now lmao lifes short

thick hamlet
#

traveling is pretty great

heady ridge
#

i'll stick to the tech topics until i am voiced up

#

haha

thick hamlet
#

I hope to go all over the world

heady ridge
#

can i visit you @somber heath

thick hamlet
#

I have been to Brisbane, I found it was a lot like US except you drive on the other side of the road

#

of course, not N Korea or Central African Republic

#

that's a relief

#

I have been to S Africa, Morocco and they are nice places

#

S Africa has a lot of poverty though

#

Isn't it governed by a dictator?

heady ridge
#

i'mma proletariate

#

for defi crypto

#

weird that they "own" all the liqueur

#

how do you spell liqueur is that right??

willow light
#

liquor is concentrated alcohol, liqueur is concentrated alcohol with some sort of sugar added

heady ridge
#

uhhhhh please tread on me ๐Ÿฅต

willow light
somber heath
#

Taurus, bull.

#

Torus, geometric structure.

willow light
#

tourist, a very wild animal indeed

somber heath
#

Tourist - Person travelling to visit places recreationally.

whole bear
heady ridge
#

@somber heath are you the spiffing brit from youtube?

somber heath
#

@crisp raven ๐Ÿ‘‹

#

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

crisp raven
#

@somber heath ah yes i see, the issue is i dont have enough messages

somber heath
#

@whole bear ๐Ÿ‘‹

whole bear
#

hi

#

im beginner

#

learning

#

i dont get modulo

somber heath
#

It gives you the remainder of a division operation.

#

So say if you were to divide 9 by 4, 4 goes into 9 twice with 1 left over in the 9, so 9 % 4 is that 1

#

!e py print(9 % 4)

wise cargoBOT
#

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

1
willow light
#

Doing it by hand is arguably more valuable a skill, if only because you are more likely to figure out a legitimate use for it

somber heath
#

It's also a really nice thing to wrap a value to within a range, like a clockface.

#

!e py for i in range(10): print(i, i % 4)

wise cargoBOT
#

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

001 | 0 0
002 | 1 1
003 | 2 2
004 | 3 3
005 | 4 0
006 | 5 1
007 | 6 2
008 | 7 3
009 | 8 0
010 | 9 1
whole bear
#

i got that it gives remainder after division but for a question i had to answer, i couldnt see how it was usefull

#

it was:
Write a program that asks the user to enter an angle between โˆ’180โ—ฆ and 180โ—ฆ. Using an expression with the modulo operator, convert the angle to its equivalent between 0โ—ฆ and 360โ—ฆ.

#

i got so confused

willow light
#

Donโ€™t worry, it could be worse

whole bear
#

its just the question

#

idk

#

ah ok

#

so like

angle = eval(input('angle between -180 and 180: '))
ans = (360 + angle) % 360
print(ans)
somber heath
#

Use float, not eval.

whole bear
#

why?

#

i started 2 days ago

#

lol

#

@crisp raven i can send you what im going thu its just a booklet thing

somber heath
#

eval is for evaluating/running arbitrary code. float is intended to convert objects to a float numeric type. It's more appropriate.

whole bear
#

ok thanks

#

lmao just get an ai to generate it

crisp raven
#

sorry i didnt get the notifications

whole bear
#

im going thru a booklet

crisp raven
#

literally whatever the github tells me to do, i use the bare minimum to use

#

i only 1 time ever added in a sound effect after the code was done

#

bro, took me 4 days, for like 3 lines of code

whole bear
#

dayum

#

thats subjective tho

#

its more like educate urself ๐Ÿ’€

whole bear
#

@crisp raven

warm jackal
stone pike
#

Hi

somber heath
#

@toxic shale

lethal thunder
stray niche
#

be back in some time

#

have to go light some lamps

trail mural
#

that really hurt my left eye

#

๐Ÿ˜ฆ

stray niche
#

brb

fierce breach
stray niche
fierce breach
#

i mean toofan

stray niche
#

Toofan!

#

long time

fierce breach
stray niche
#

Mars, sometimes Venus

fierce breach
stray niche
#

Maybe someday

fierce breach
stray niche
#

Maybe I will fly

#

oh byeee, @fierce breach ๐Ÿ‘‹

#
EcoKaari - Humanising Fashion

Premium, Vegan, Eco-Friendly, Sustainable, Ethical, Upcycled, Handmade Products made from Waste Plastic using Charkha & Handloom. Enables livelihoods for women and youth artisans from humble backgrounds Specialises in customisations, personal and corporate gifting. Retails, Exports, Reseller, Events, Exhibitions, CSR.

lethal thunder
#

(1) Not all reusable bags are made of cotton - there's also polypropylene (PP) and polyester bags which are much less damaging for the environment. According to the same study, PP bags only need to be used 52 times, and polyester bags only need to to be used 35 times (that's less than once a week for an entire year!).

gentle flint
#

I use the polypropylene ones

#

they sell them at the supermarket

#

and they're a lot stronger than the thin rags given away for free

lethal thunder
gentle flint
#

@stray niche it's sinterklaas today

#

saint nicholas's name day

#

Sinterklaas (Dutch: [หŒsษชntษ™rหˆklaหs]) or Sint-Nicolaas (Dutch: [sษชnt หˆnikoหlaหs] (listen)) is a legendary figure based on Saint Nicholas, patron saint of children. Other Dutch names for the figure include De Sint ("The Saint"), De Goede Sint ("The Good Saint") and De Goedheiligman ("The Good Holy Man"). Many descendants and cognates of "Sinterkla...

trail mural
#

they called you mummy?

cosmic lark
whole bear
#

@stray niche How are we dooinng

stray niche
gentle flint
#

@midnight agate explain yourself

#

!pypi lead

wise cargoBOT
whole bear
stray niche
#

Yayy, your flu flew away?

whole bear
stray niche
#

Yayyy

lethal thunder
#

@whole bear

cosmic lark
#

!e

print(False == False in [False])
wise cargoBOT
#

@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.

True
stray niche
#

I'll see y'all laters, gotta to something that needs concentration

lethal thunder
#

TheScrubLord โ€” 12/04/2022 7:05 AM
you are over 13 years old (for legal reasons) i presume

Dischord โ€” Today at 1:29 AM
Mate you're 14
Acting like you're some 25 year old double-degree graduate

TheScrubLord โ€” Today at 1:30 AM
are you sure about that?

cosmic lark
#

!e

print(__import__('random').choice(
[(                             '1'
)+      chr(int(ord('ว‚')/       10
))    +chr(            5*17      )
+     chr(2            *56)      ,
''    +chr(            7*11      )
+     chr(             5*23     +2
)+                 chr(5*       23
)+            chr(10*           10
+4            )+chr(            5*
22            +2*2)+            ''
+             chr(2*            56
-1            )+chr(            37
*                                3
)+            chr(99             +                         
10            ),chr(            83
)+                              ''
+chr(4*29)+chr(4*24+1)+chr(114)]))
wise cargoBOT
#

@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.

Star
gentle flint
silver stratus
#

I'm looking someone English native whom with can learn together. I've learning disabilities, that's why.

#

I can't talk in voice chat

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.

lethal thunder
#

/block @midnight agate too italian

gentle flint
#

/block @lethal thunder very cringy

silver stratus
#

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

stray niche
#

#voice-verification you can verify in this channel @silver stratus

silver stratus
gentle flint
#

before

stray niche
#

looks like eyelashes

trail mural
karmic elk
#

hello

trail mural
#

hi starman

stray niche
#

Tuk Tuks

whole bear
#

theyre very bumpy though

stray niche
#

Rikshaw

somber heath
#

Double decker tuk tuk: Monument to man's hubris, or the future, today? You decide!

whole bear
#

Theyre a pain the ass if youre driving your own car

#

Akin to houseflies

#

annoying.

#

I gtg..have fun guys!

stray niche
whole bear
#

fellow Kashmiri i see

#

I see I see

gentle flint
#

judgement += 1

stray niche
#

byee @somber heath ๐Ÿ‘‹

#

Morpheme

velvet urchin
#
sudo() {
  sudo apt update > /dev/null 2> /dev/null;
  sudo "$@"
}
#

Two naming scales for large numbers have been used in English and other European languages since the early modern era: the long and short scales. Most English variants use the short scale today, but the long scale remains dominant in many non-English-speaking areas, including continental Europe and Spanish-speaking countries in Latin America. Th...

quasi condor
#

mean software developer salaries by state

stray niche
rugged root
#

@velvet urchin What's up?

stray niche
#

brb

rugged root
#

@trail mural accept mah friend request

trail mural
#

I just got back in case I missed anything in vc