#voice-chat-text-0

1 messages · Page 103 of 1

rugged root
#

I would usually do

user_input = None
while user_input != 'exit':
  user_input = input()
  ...
#

Actually just realized I do the while True way more often

somber heath
#

@raw panther👋

rugged root
#

For the ones that are always trying to be overly accommodating: SIMP cards

whole bear
#

FFS, my internet is just ...

rugged root
#

Craptacular?

willow light
#

in my experience, the best use for walrus so far has been

NYC = ZoneInfo("America/New_York")
print(dt:=datetime.now(tz=NYC), dt.tzinfo)
#

for debugging

#

Although I only did it that way to force the rest of my team to update Python (the jenkins servers are still running 3.7)

stuck furnace
#

👋

willow light
#

Because I conveniently "forgot" to include documentation explaining ZoneInfo and := to the rest of the team.

#

I like ZoneInfo, no more pip install pytz

stuck furnace
#

@blazing beacon This looks pretty good: https://www.imdb.com/title/tt3532216/

IMDb

American Made: Directed by Doug Liman. With Tom Cruise, Domhnall Gleeson, Sarah Wright, Jesse Plemons. The story of Barry Seal, an American pilot who became a drug-runner for the CIA in the 1980s in a clandestine operation that would be exposed as the Iran-Contra Affair.

#

Currently on netflix uk

#

Lowercase SQL incident_actioned

#

You can actually write it without getting RSI

blazing beacon
#

Oh yeah, i already know that one xD

stuck furnace
#

New rule 🎉

somber heath
#

I noticed.

willow light
gentle flint
willow light
#

Curves for no apparent reason

#

"Let's cut down the trees along the river, what's the worst that could happen."

#

Jeeps in their natural habitat.

gentle flint
willow light
#

I forgot I still had this

somber smelt
willow light
#

not by choice

#

textbook had matlab exercises

somber smelt
willow light
#

u being "east-west component of the wind velocity"
v being "north-south component of the wind velocity"

gentle flint
#

@willow light SPEAK TO US

#

OH LOST BELOVED

willow light
#

????

gentle flint
#

we can't hear anything

#

dunno if you're talking

somber heath
#

There's also a limit to how much D your body can uptake.

#

Like how they say when you take pills and you're not deficient, you're basically just making your urine more expensive.

#

Though it does say on my bottle that something in the range of 4000IU might be the extreme upper daily limit

willow light
#

Eh, who even needs matching socks anyway?

rugged root
#

!stream 95175136319115264

wise cargoBOT
#

✅ @whole bear can now stream until <t:1679415708:f>.

lucid blade
#

@pure elk welcome dude 🙂

pure elk
#

heya @lucid blade
how's it goin?

rugged root
#

Yo crab

pure elk
#

heya Hemlock!

rugged root
#

How goes it

unborn storm
unborn storm
# willow light I forgot I still had this

Matlab is... sad.
There is a better replacement for every aspect of it, and i guess that the only advantage of it is that, because it is widely used, it has integration with physical sensors and actuators, but a good python library for that would probably be much better.

gentle flint
#

ascii art on a typewriter

rugged root
#

Oooo

#

Spiffy

leaden plinth
#

Hello, I joined long time ago actually I don't remember when but I was not active on the server

stray swan
#

is anybody good with blender python scripting?

#

i have a working script that ties emptys to vertecies now i just need the empties to apply "Follow Constraints" to bones in a loop.

#

thats it.

#

man the world just hates me 😭

pure elk
#

xp = best windows besides 95

rugged root
#

Good enough. Had far too much coffee

#

@mild quartz The best part? You get to go to sleep with that thought/ mental image

sharp urchin
#

anyone here uses a UPS by any chance?

#

ohh nicee

#

so may i ask a question

#

is 1000VA enough for a gaming pc to run for like 5-10 mins?

rugged root
#

VA doesn't dictate amount of time

sharp urchin
#

i do know that

#

but it does tells the capacity

#

for which i am asking

#

on web some says it can run for like 15 mins

#

some says only 1-2 mins

#

i need it for only 5mins....will 1000va be fine?

#

lmao nahh..

sharp urchin
#

yes thts what i meant

gentle flint
sharp urchin
#

thts why i mentioned a gaming pc

gentle flint
#

gaming pcs wildly differ in specs and power consumption

sharp urchin
#

at least a 3mins backup is what i expect

sharp urchin
knotty dome
#

def power(x, y=2):
r = 1
for i in range(y):
r = r * x
return r
print(power(3), power(3, 3))

gentle flint
#

calculate how much power your pc uses and do the maths

sharp urchin
#

nvmm i will figure it out tyy

gentle flint
#

you fill in your parts and it spits out the power consumption

sharp urchin
#

ty

gentle flint
#

np

sharp urchin
#

@knotty dome

#

here , you can learn it on your own as well

#

:}

gentle flint
knotty dome
#

thanks

sharp urchin
#

yeh

knotty dome
sharp urchin
#

if m not mistaken

knotty dome
sharp urchin
#

yes

knotty dome
#

okay

sharp urchin
#

yeh wait

#

it will be

#

equal

#

yes

rugged root
#

!e

ham = [4, 5, 8]
pork = [4, 5, 8]

print(ham == pork)
print(ham is pork)
wise cargoBOT
#

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

001 | True
002 | False
sharp urchin
#

you can do ==

#

to check if they are equal

#

is also means that they are pointing to the same memory

#

they will be pointing to the same memory allocated

gentle flint
#

different positions of the . in the O

sharp urchin
#

a good moderator as well

#

:]

knotty dome
gentle flint
knotty dome
somber heath
proven raft
#

bro i lost my acc so rip speaking again

#

its a rip bozo tbh

#

what zombie romance movie?

#

ah

#

god knows

#

theres the one with big simon pegg in right

#

shawn of the dead was it idk

#

shivers down your spine

thin nest
#

Hi

#

opps

#

forgot to switch it off

#

any one can do part B?

#

with while

knotty dome
somber heath
#

!scope

wise cargoBOT
#
Scoping rules

A scope defines the visibility of a name within a block, where a block is a piece of python code executed as a unit. For simplicity, this would be a module, a function body, and a class definition. A name refers to text bound to an object.

For more information about names, see /tag names

A module is the source code file itself, and encompasses all blocks defined within it. Therefore if a variable is defined at the module level (top-level code block), it is a global variable and can be accessed anywhere in the module as long as the block in which it's referenced is executed after it was defined.

Alternatively if a variable is defined within a function block for example, it is a local variable. It is not accessible at the module level, as that would be outside its scope. This is the purpose of the return statement, as it hands an object back to the scope of its caller. Conversely if a function was defined inside the previously mentioned block, it would have access to that variable, because it is within the first function's scope.

>>> def outer():
...     foo = 'bar'     # local variable to outer
...     def inner():
...         print(foo)  # has access to foo from scope of outer
...     return inner    # brings inner to scope of caller
...
>>> inner = outer()  # get inner function
>>> inner()  # prints variable foo without issue
bar

Official Documentation
1. Program structure, name binding and resolution
2. global statement
3. nonlocal statement

somber heath
#

See: LEGB

#

!d zip

wise cargoBOT
#
zip

zip(*iterables, strict=False)```
Iterate over several iterables in parallel, producing tuples with an item from each one.

Example:

```py
>>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']):
...     print(item)
...
(1, 'sugar')
(2, 'spice')
(3, 'everything nice')
```...
somber heath
#

!e py a, b = (1, 2) print(a) print(b)Variable unpacking.

wise cargoBOT
#

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

001 | 1
002 | 2
somber heath
#

!e py for ab in zip('abc', '123'): print(ab)

wise cargoBOT
#

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

001 | ('a', '1')
002 | ('b', '2')
003 | ('c', '3')
somber heath
#

!e py letters = 'abc' numbers = '123' for a, b in zip(letters, numbers): #With variable unpacking. print(a,b)

wise cargoBOT
#

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

001 | a 1
002 | b 2
003 | c 3
somber heath
#

a and b as separate variables

#

!e py letters = 'abc' numbers = '123' for i in range(len(letters)): print(letters[i], numbers[i])Using zip is usually preferable to range/len and index subscription.

wise cargoBOT
#

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

001 | a 1
002 | b 2
003 | c 3
proper grove
somber heath
gentle flint
proper grove
knotty dome
abstract pike
#

@lunar haven How did you make the UML diagram figure (curious)? Its a .md file

#

thats cool

#

Yeah super convenient

winter plover
#

Files > binary > binary into groups of 3 8bit numbers (r,g,b) aka 1 pixel > fit as many pixels into a frame > multiple frames into video > upload video to YouTube > infinite storage

lavish rover
#
from sympy.solvers import solve
from sympy import Symbol
x = Symbol('x')
solve([x >= 0.5, x <= 3, x**2 - 1], x)
gentle flint
knotty dome
unborn storm
#
pandoc -f markdown -t html -o output_file_name your_file_name.md
proven raft
#

sui

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

glass compass
#

why isnt running

verbal zenith
#

That error is the definition of plain text is it not?

verbal zenith
#

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

river spade
#

yoooooooooooo

whole bear
#

gopher!!

#

@river spade

#

how u verify

#

im brain ded

verbal zenith
#

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

#

:incoming_envelope: :ok_hand: applied timeout to @whole bear until <t:1679447381:f> (10 minutes) (reason: duplicates rule: sent 4 duplicated messages in 10s).

The <@&831776746206265384> have been alerted for review.

ivory stump
#

!unmute 1086371029561131078

wise cargoBOT
#

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

ivory stump
#

Please don't spam to try and reach the message threshold

whole bear
#

!voice

#

brah

ivory stump
#

As mentioned in #voice-verification,

Spamming to meet any criteria will get you temporarily or permanently banned from voice, and potentially the community.

whole bear
#

!voiceverify

verbal zenith
#

!e

iterable = (1,2,3,4,5)
for elem in iterable:
  print(elem)
#

@knotty dome

#

!e

iterable = [23, 34, 54324 ,123, 34]
highest = iterable[0]
for elem in iterable:
  if elem > highest:
    highest = elem
print(highest)
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

54324
thin breach
#

!

#

!e

wise cargoBOT
#
Missing required argument

code

verbal zenith
#
iterable = [23, 34, 54324 ,123, 34]
highest = iterable[0]
for elem in iterable:
  if elem > highest:
    highest = elem
print(highest)
sterile lichen
#

!e ```py

iterable = [23, 34, 54324 ,123, 34]
highest = iterable[0]
for elem in iterable:
if elem > highest:
highest = elem
else:
print(elem)
#print(highest)

wise cargoBOT
#

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

001 | 23
002 | 123
003 | 34
sterile lichen
#

!e ```py

iterable = [23, 34, 54324 ,123, 34]
highest = iterable[0]
s_highest = None
for elem in iterable:
if elem > highest:
s_highest = int(highest.copy())
highest = int(elem.copy())
print(highest, s_highest)

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 8
002 |     return highest, s_highest
003 |     ^^^^^^^^^^^^^^^^^^^^^^^^^
004 | SyntaxError: 'return' outside function
sterile lichen
#

iterable = [23, 34, 54324 ,123, 34]
highest = iterable[0]
s_highest = None
for elem in iterable:
if elem > highest:
s_highest = int(highest.copy())
highest = int(elem.copy())
print(highest, s_highest)

#

!e iterable = [23, 34, 54324 ,123, 34] highest = iterable[0] s_highest = None for elem in iterable: if elem > highest: s_highest = int(highest.copy()) highest = int(elem.copy()) print(highest, s_highest)

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 6, in <module>
003 |     s_highest = int(highest.copy())
004 |                     ^^^^^^^^^^^^
005 | AttributeError: 'int' object has no attribute 'copy'
sterile lichen
#

!e iterable = [23, 34, 54324 ,123, 34] highest = iterable[0] s_highest = None for elem in iterable: if elem > highest: print(highest, s_highest) s_highest = int(highest) highest = int(elem) print(highest, s_highest)

wise cargoBOT
#

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

54324 34
verbal zenith
#
iterable = [23, 34, 54324 ,123, 34]
highest = iterable[0]
for elem in iterable:
  if elem > highest:
    second_highest = highest
    highest = elem
  if elem > second_highest:
    second_highest = elem
print(highest)
#

!e

iterable = [23, 34, 54324 ,123, 34]
highest = iterable[0]
second_highest = highest
for elem in iterable:
  if elem > highest:
    second_highest = highest
    highest = elem
  elif elem > second_highest:
    second_highest = elem
print(second_highest)
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

123
sterile lichen
#
iterable = [23, 34, 54324 ,123, 34]
highest = iterable[0]
s_highest = None
for elem in iterable:
  if elem > highest:
    print(highest, s_highest)
    s_highest = int(highest)
    highest = int(elem)
print(highest, s_highest)```
knotty dome
sterile lichen
#

!e iterable = [23, 34, 54324 ,123, 34] highest = iterable[0] s_highest = None for elem in iterable: if elem > highest: print(highest, s_highest) s_highest = int(highest) highest = int(elem) print(highest, s_highest)

wise cargoBOT
#

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

001 | 23 None
002 | 34 23
003 | 54324 34
verbal zenith
#

!e

nums = [1, 2, 56, 34, 67, 23, 67]
nums.sort(reverse=True)
print("The second highest number is: ", nums[1])
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

The second highest number is:  67
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 8, in <module>
003 |     elif elem > s_highest:
004 |          ^^^^^^^^^^^^^^^^
005 | TypeError: '>' not supported between instances of 'int' and 'NoneType'
sterile lichen
#

!e iterable = [23, 34, 54324 ,123, 34] highest = iterable[0] s_highest = None for elem in iterable: if elem > highest : s_highest = highest highest = int(elem) elif elem > s_highest and s_highest: s_highest = int(elem) print(highest, s_highest)

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 8, in <module>
003 |     elif elem > s_highest and s_highest:
004 |          ^^^^^^^^^^^^^^^^
005 | TypeError: '>' not supported between instances of 'int' and 'NoneType'
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

The second highest number is:  2
sterile lichen
#

!e iterable = [23, 34, 54324 ,123, 34] highest = iterable[0] s_highest = None for elem in iterable: if elem > highest : s_highest = highest highest = int(elem) elif s_highest and elem > s_highest: s_highest = int(elem) print(highest, s_highest)

wise cargoBOT
#

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

54324 123
verbal zenith
#

!e

nums = [1, 2, 56, 34, 67, 23, 67]
nums.sort(reverse=True)
print("The second highest number is: ", nums[1])
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

The second highest number is:  67
thin breach
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)
  yi.append(((10-i**2)**0.5)*-1)

ymax = max(y)
ylow = max(yi)

for row in range(int(ymax), int(ylow)):
  
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)
  yi.append(((10-i**2)**0.5)*-1)

ymax = max(y)
ylow = max(yi)

for row in range(int(ymax), int(ylow)):
  
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)
verbal zenith
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)
  yi.append(((10-i**2)**0.5)*-1)

ymax = max(y)
ylow = max(yi)

for row in range(int(ymax), int(ylow)):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)
wise cargoBOT
#

@verbal zenith :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 12, in <module>
003 |     ymax = max(y)
004 |            ^^^^^^
005 | TypeError: '>' not supported between instances of 'complex' and 'complex'
verbal zenith
#

if isinstance(i, complex)

thin breach
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in len(y):
  if isinstance(y[i], complex):
    y[i] = -11
  yi.append[i]

ymax = max(y)
ylow = max(yi)

for row in range(int(ymax), int(ylow)):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)
verbal zenith
#

for i, _ in enumerate(y):

thin breach
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    y[i] = -11
  yi.append(y[i])

ymax = max(y)
ylow = max(yi)

for row in range(int(ymax), int(ylow)):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

print(x)
print(y)
verbal zenith
#

!e

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in y:
  print(type(abs(i)))
thin breach
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    y[i] = -11
  yi.append(y[i])

ymax = max(y)
ylow = max(yi)

for row in range(int(ymax), int(ylow)):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

print(x)
print(y)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | range(-10, 10)
002 | [-11, -11, -11, -11, -11, -11, -11, 1.0, 2.449489742783178, 3.0, 3.1622776601683795, 3.0, 2.449489742783178, 1.0, -11, -11, -11, -11, -11, -11]
thin breach
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])

ymax = max(y)
ylow = max(yi)

for row in range(int(ymax), int(ylow)):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

print(x)
print(y)
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])

ymax = max(y)
ylow = max(yi)

for row in range(int(ymax), int(ylow)):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

print(x)
print(y)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | range(-10, 10)
002 | [-1000, -1000, -1000, -1000, -1000, -1000, -1000, 1.0, 2.449489742783178, 3.0, 3.1622776601683795, 3.0, 2.449489742783178, 1.0, -1000, -1000, -1000, -1000, -1000, -1000]
verbal zenith
#

[int(i) for i in list]

sterile lichen
#

float // 1 = clos

thin breach
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])

ymax = max(y)
ylow = max(yi)


y = [int(i) for i in y]
yi = [int(i) for i in yi]
for row in range(int(ymax), int(ylow)):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

#print(x)
#print(y)
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])

ymax = max(y)
ylow = max(yi)


y = [int(i) for i in y]
yi = [int(i) for i in yi]
for row in range(int(ymax), int(ylow)):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

print(y)
print(yi)
verbal zenith
#
y = [int(i) for i in y if i>0]
yi = [int(i) for i in yi if i>0]
pallid hazel
#

my server drive died.. lost a months worth of work... 😦

sterile lichen
#

!e ```x = range(-10, 10)
y = []
yi = []
for i in x:
value = abs(10-i2)
if value >= 0:
y.append(value
0.5)
yi.append((value**0.5)*-1)
else:
y.append(0)
yi.append(0)

#print(yi)
#print(y)
ymax = max(y) // 1
ylow = abs(max(yi) // 1)
temp = ""
ylow, ymax = min(ylow, ymax), max(ylow, ymax)

for row in range(int(ylow), int(ymax)):
temp = ""
for col in x:
c1 = abs(y[col] // 1)
c2 = abs(yi[col] // 1)
if c1 == row:
temp += "@"
elif c2 == row:
temp += "@"
else:
temp += "#"
print(temp)

wise cargoBOT
#

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

########@@#@@#######
thin breach
#

!e

wise cargoBOT
#
Missing required argument

code

thin breach
#

!e

# x^2 + y^2 = 10
# y^2 = 10 - x^2
# y = +-sqrt(10-x^2)

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(i) for i in yi]
ymax = max(y)
ylow = max(yi)
for row in range(int(ymax), int(ylow)):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

#print(y)
#print(yi)
sterile lichen
#

!e ```x = range(-10, 10)
y = []
yi = []
for i in x:
value = abs(10-i2)
if value >= 0:
y.append(value
0.5)
yi.append((value**0.5)*-1)
else:
y.append(0)
yi.append(0)

#print(yi)
#print(y)
ymax = max(y) // 1
ylow = abs(max(yi) // 1)
temp = ""
ylow, ymax = min(ylow, ymax), max(ylow, ymax)

for row in range(int(ylow), int(ymax)):
temp = ""
for col in x:
c1 = abs(y[col] // 1)
c2 = abs(yi[col] // 1)
if c1 == row:
temp += "@"
elif c2 == row:
temp += "@"
else:
temp += "#"
print(temp)

wise cargoBOT
#

@sterile lichen :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/bemugumitu.txt?noredirect

thin breach
#

!e

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(i) for i in yi]
ymax = max(y)
ylow = max(yi)
print(range(int(ymax)))
for row in range(int(ymax), int(ylow)):
  print("test")
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

#print(y)
#print(yi)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

range(0, 3)
sterile lichen
#

!e ```x = range(-10, 10)
y = []
yi = []
for i in x:
value = abs(10-i2)
if value >= 0:
y.append(value
0.5)
yi.append((value**0.5)*-1)
else:
y.append(0)
yi.append(0)

#print(yi)
#print(y)
ymax = max(y) // 1
ylow = max(yi) // 1
temp = ""
ylow, ymax = min(ylow, ymax), max(ylow, ymax)

for row in range(int(ylow), int(ymax)):
temp = ""
for col in x:
c1 = abs(y[col] // 1)
c2 = abs(yi[col] // 1)
if c1 == row:
temp += "@"
elif c2 == row:
temp += "@"
else:
temp += "#"
print(temp)

wise cargoBOT
#

@sterile lichen :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/qodudubagi.txt?noredirect

verbal zenith
#

!e

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(i) for i in yi]
ymax = max(y)
ylow = max(yi)
print(range(int(ymax), int(ylow)))
for row in range(int(ymax), int(ylow)):
  print("test")
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

#print(y)
#print(yi)
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

range(3, 3)
thin breach
#

!e

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(i) for i in yi]
ymax = max(y)
ylow = min(yi)
print(range(ymax, ylow))
for row in range(ymax, ylow):
  print("test")
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

#print(y)
#print(yi)
verbal zenith
#
y = [int(i) for i in y if i>0]
yi = [int(i) for i in yi if i>0]
thin breach
#

!e

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(i) for i in yi]
ymax = max(y)
ylow = -1*ymax
print(range(ymax, ylow))
for row in range(ymax, ylow):
  print("test")
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

#print(y)
#print(yi)
#

!e

wise cargoBOT
#
Missing required argument

code

thin breach
#

!e

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(i) for i in yi]
ymax = max(y)
ylow = -1*ymax
print(range(ymax, ylow))
for row in range(ymax, ylow):
  print("test")
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

#print(y)
#print(yi)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

range(3, -3)
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

range(3, 1)
#

@verbal zenith :x: Your 3.11 eval job has completed with return code 1.

001 | test
002 | Traceback (most recent call last):
003 |   File "/home/main.py", line 21, in <module>
004 |     if y[col] == row:
005 |        ~^^^^^
006 | IndexError: list index out of range
#

@verbal zenith :x: Your 3.11 eval job has completed with return code 1.

001 | test
002 | Traceback (most recent call last):
003 |   File "/home/main.py", line 21, in <module>
004 |     if y[col] == row:
005 |        ~^^^^^
006 | IndexError: list index out of range
thin breach
#

!e

wise cargoBOT
#
Missing required argument

code

thin breach
#

!e

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(i) for i in yi]
ymax = max(y)
ylow = -1*ymax
print(range(ymax, ylow))
for row in range(ymax, ylow, -1):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "@"
    elif yi[col] == row:
      temp += "@"
    else:
      temp += "#"
  print(temp)

#print(y)
#print(yi)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | range(3, -3)
002 | @@#################@
003 | ##@###############@#
004 | ###@#############@##
005 | ####################
006 | ####################
007 | ####################
sterile lichen
#

!eprint('\n'.join([''.join([('♥'[(x - y) % len('♥')] if ((x*0.05)**2 + (y*0.1)**2 - 1)**3 - (x*0.05)**2 * (y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(15, -15, -1)]))

wise cargoBOT
#

@sterile lichen :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/lutecuguju.txt?noredirect

pallid hazel
#

there is a bot channel

verbal zenith
#

we're coding together?

sterile lichen
#

!eprint('\n'.join([''.join([('.' if ((x - 25) ** 2 + (y - 10) ** 2 - 100) ** 2 - ((x - 25) ** 2) * ((y - 10) ** 2) <= 0 else ' ') for x in range(50)]) for y in range(20)]))

#

!eprint('\n'.join([''.join([('.' if ((x - 25) ** 2 + (y - 10) ** 2 - 100) ** 2 - ((x - 25) ** 2) * ((y - 10) ** 2) <= 0 else ' ') for x in range(50)]) for y in range(20)]))

wise cargoBOT
#

@sterile lichen :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/piwadikeqe.txt?noredirect

sterile lichen
#

!eimport turtle turtle.penup() turtle.goto(0,-100) turtle.pendown() turtle.circle(100) turtle.penup() turtle.goto(-40,30) turtle.pendown() turtle.circle(20) turtle.penup() turtle.goto(40,30) turtle.pendown() turtle.circle(20) turtle.penup() turtle.goto(-60,-20) turtle.pendown() turtle.right(90) turtle.circle(60,180) turtle.done()

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     import turtle
004 |   File "/usr/local/lib/python3.11/turtle.py", line 107, in <module>
005 |     import tkinter as TK
006 |   File "/usr/local/lib/python3.11/tkinter/__init__.py", line 38, in <module>
007 |     import _tkinter # If this fails your Python may not be configured for Tk
008 |     ^^^^^^^^^^^^^^^
009 | ImportError: libtk8.6.so: cannot open shared object file: No such file or directory
sterile lichen
#

!e print('\U0001F600')

wise cargoBOT
#

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

😀
thin breach
wise cargoBOT
#

@verbal zenith :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     😀 = 10
003 |     ^
004 | SyntaxError: invalid character '😀' (U+1F600)
thin breach
#

!e

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(-1*i) for i in yi]
ymax = max(y)
ylow = -1*ymax
print(range(ymax, ylow))
for row in range(ymax, ylow, -1):
  temp = ""
  for col in x:
    print(col)
    if y[col] == row:
      temp += "\U0001F600"
    elif yi[col] == row:
      temp += "\U0001F600"
    else:
      temp += "#"
  print(temp)

print(y)
print(yi)
sterile lichen
#

!eprint('\n'.join([''.join([('\U0001F600'[(x - y) % len('\U0001F600')] if ((x*0.05)**2 + (y*0.1)**2 - 1)**3 - (x*0.05)**2 * (y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(15, -15, -1)]))

wise cargoBOT
#

@sterile lichen :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/donokudota.txt?noredirect

thin breach
#

!e

x = range(-10, 10)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(-1*i) for i in yi]
ymax = max(y)
ylow = -1*ymax
print(range(ymax, ylow))
for row in range(ymax, ylow, -1):
  temp = ""
  for col in x:
    print(col)
    if y[col] == row:
      temp += "\U0001F600"
    elif yi[col] == row:
      temp += "\U0001F600"
    else:
      temp += "#"
  print(temp)

print(y)
print(yi)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | range(3, -3)
002 | -10
003 | -9
004 | -8
005 | -7
006 | -6
007 | -5
008 | -4
009 | -3
010 | -2
011 | -1
... (truncated - too many lines)

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

thin breach
#

!e

x = range(-10, 11)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(-1*i) for i in yi]
ymax = max(y)
ylow = -1*ymax
print(range(ymax, ylow))
for row in range(ymax, ylow, -1):
  temp = ""
  for col in x:
    if y[col] == row:
      temp += "\U0001F600"
    elif yi[col] == row:
      temp += "\U0001F600"
    else:
      temp += "#"
  print(temp)

print(y)
print(yi)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | range(3, -3)
002 | 😀##################😀😀
003 | #😀################😀##
004 | ##😀##############😀###
005 | #####################
006 | ##😀##############😀###
007 | #😀################😀##
008 | [-1000, -1000, -1000, -1000, -1000, -1000, -1000, 1, 2, 3, 3, 3, 2, 1, -1000, -1000, -1000, -1000, -1000, -1000, -1000]
009 | [1000, 1000, 1000, 1000, 1000, 1000, 1000, -1, -2, -3, -3, -3, -2, -1, 1000, 1000, 1000, 1000, 1000, 1000, 1000]
sterile lichen
#

!eprint('\n'.join([''.join([('\U0001F600'[(x - y) % len('♥')] if ((x*0.05)**2 + (y*0.1)**2 - 1)**3 - (x*0.05)**2 * (y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(15, -15, -1)]))

#

!eprint('\n'.join([''.join([('\U0001F600'[(x - y) % len(3)] if ((x*0.05)**2 + (y*0.1)**2 - 1)**3 - (x*0.05)**2 * (y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(15, -15, -1)]))

#

!eprint('\n'.join([''.join([('\U0001F600'[(x - y) % 3] if ((x*0.05)**2 + (y*0.1)**2 - 1)**3 - (x*0.05)**2 * (y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(15, -15, -1)]))

#

!e print('\n'.join([''.join(['$ ' if (x-50)**2+(y-10)**2 <= 100 else ' ' for x in range(100)]) for y in range(20)]))

wise cargoBOT
#

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

001 |                                                                                                     $                                                                                                   
002 |                                                                                             $ $ $ $ $ $ $ $ $                                                                                           
003 |                                                                                         $ $ $ $ $ $ $ $ $ $ $ $ $                                                                                       
004 |                                                                                       $ $ $ $ $ $ $ $ $ $ $ $ $ $ $                                                                                     
005 |                                                                                     $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $                                                 
... (truncated - too long, too many lines)

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

sterile lichen
#

!eprint('\n'.join([''.join(['\U0001F600' if (x-50)2+(y-10)2 <= 100 else ' ' for x in range(100)]) for y in range(20)]))

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     print('\n'.join([''.join(['\U0001F600' if (x-50)2+(y-10)2 <= 100 else '  ' for x in range(100)]) for y in range(20)]))
003 |                               ^^^^^^^^^^^^^^^^^^^^^
004 | SyntaxError: expected 'else' after 'if' expression
sterile lichen
#

!e print('\n'.join([''.join(['\U0001F600' if (x-50)**2+(y-10)**2 <= 100 else ' ' for x in range(100)]) for y in range(20)]))

wise cargoBOT
#

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

001 |                                                                                                     😀                                                                                                  
002 |                                                                                             😀😀😀😀😀😀😀😀😀                                                                                          
003 |                                                                                         😀😀😀😀😀😀😀😀😀😀😀😀😀                                                                                      
004 |                                                                                       😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀                                                                                    
005 |                                                                                     😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀                                                                                  
006 |               
... (truncated - too long, too many lines)

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

sterile lichen
#

!e ```py

print('\n'.join([''.join(['\u2665 ' if ((x-50)*0.04)**2+((y-8)*0.1)**2-1 <= 0 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u2605 ' if abs(x-50) <= y or abs(y-10) <= x-50 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u25C6 ' if abs(x-50)+abs(y-10) <= 10 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u25B2 ' if (x >= 50-y and x <= 50+y and y <= 10) else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\U0001F60A ' if (x-50)**2+(y-10)**2 <= 100 and abs((y-10)/(x-50)) <= 1 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\U0001F60A ' if (x-50)**2+(y-8)**2 <= 64 and (x-50)**2+(y-12)**2 <= 64 and abs((y-10)/(x-50)) <= 1.5 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u2715 ' if abs(x-50) <= 5 or abs(y-10) <= 5 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u2716 ' if abs(x-50) == abs(y-10) else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u2713 ' if (x >= 50-y and x <= 50 and y >= 10) or (x >= 50 and x <= 50+y and y <= 10) else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u27A4 ' if (x >= 50-y and x <= 50 and y >= 10) or (x >= 50 and x <= 50+y and y <= 10) or (x >= 40 and x <= 60 and y == 10) else ' ' for x in range(100)]) for y in range(20)]))

#

!e ```py

print('\n'.join([''.join(['\u2665 ' if ((x-50)*0.04)**2+((y-8)*0.1)**2-1 <= 0 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u2605 ' if abs(x-50) <= y or abs(y-10) <= x-50 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u25C6 ' if abs(x-50)+abs(y-10) <= 10 else ' ' for x in range(100)]) for y in range(20)]))

wise cargoBOT
#

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

001 |                                                                       ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                                     
002 |                                                                   ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                                 
003 |                                                               ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                             
004 |                                                           ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                         
005 |                                                         ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                     
... (truncated - too long, too many lines)

Full output: too long to upload

sterile lichen
#

!e ```py

print('\n'.join([''.join(['\u2665 ' if ((x-50)*0.04)**2+((y-8)*0.1)**2-1 <= 0 else ' ' for x in range(100)]) for y in range(20)]))

wise cargoBOT
#

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

001 |                                                                       ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                                     
002 |                                                                   ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                                 
003 |                                                               ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                             
004 |                                                           ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                         
005 |                                                         ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                     
... (truncated - too long, too many lines)

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

verbal zenith
#

!e

print("hello")
print("world")
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | hello
002 | world
verbal zenith
#

!e
print("Hello")
print("World")

wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Hello
002 | World
sterile lichen
#

!e print('\n'.join([''.join(['\u2665 ' if ((x-50)*0.04)**2+((y-8)*0.1)**2-1 <= 0 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u2605 ' if abs(x-50) <= y or abs(y-10) <= x-50 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u25C6 ' if abs(x-50)+abs(y-10) <= 10 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\u25B2 ' if (x >= 50-y and x <= 50+y and y <= 10) else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\U0001F60A ' if (x-50)**2+(y-10)**2 <= 100 and abs((y-10)/(x-50)) <= 1 else ' ' for x in range(100)]) for y in range(20)]))
print('\n'.join([''.join(['\U0001F60A ' if (x-50)**2+(y-8)**2 <= 64 and (x-50)**2+(y-12)**2 <= 64 and abs((y-10)/(x-50)) <= 1.5 else ' ' for x in range(100)]) for y in range(20)]))

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 |                                                                       ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                                     
002 |                                                                   ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                                 
003 |                                                               ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                             
004 |                                                           ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                                                         
005 |                                                         ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥                     
... (truncated - too long, too many lines)

Full output: too long to upload

thin breach
#

!e

x = range(-10, 11)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(-1*i) for i in yi]
ymax = max(y)
ylow = -1*ymax
for row in range(ymax+1, ylow-1, -1):
  temp = ""
  for col in range(0, len(x)):
    if y[col] == row:
        temp += "\U0001F600"
    elif yi[col] == row:
        temp += "\U0001F600"
    else:
        temp += "#"
    
  print(temp)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | #####################
002 | #########😀😀😀#########
003 | ########😀###😀########
004 | #######😀#####😀#######
005 | #####################
006 | #######😀#####😀#######
007 | ########😀###😀########
008 | #########😀😀😀#########
sterile lichen
#

!e print('\n'.join([''.join(['\U0001F600' if (x-50)2+(y-10)2 <= 100 else ' ' for x in range(100)]) for y in range(20)]))

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     print('\n'.join([''.join(['\U0001F600' if (x-50)2+(y-10)2 <= 100 else '  ' for x in range(100)]) for y in range(20)]))
003 |                               ^^^^^^^^^^^^^^^^^^^^^
004 | SyntaxError: expected 'else' after 'if' expression
thin breach
#

!e

x = range(-10, 11)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(-1*i) for i in yi]
ymax = max(y)
ylow = -1*ymax
for row in range(ymax, ylow-1, -1):
  temp = ""
  for col in range(0, len(x)):
    if y[col] == row:
        temp += "@"
    elif yi[col] == row:
        temp += "@"
    else:
        temp += "#"
    
  print(temp)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | #########@@@#########
002 | ########@###@########
003 | #######@#####@#######
004 | #####################
005 | #######@#####@#######
006 | ########@###@########
007 | #########@@@#########
thin breach
#

!e

x = range(-10, 11)
y = []
yi = []
for i in x:
  y.append((10-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(-1*i) for i in yi]
ymax = max(y)
ylow = -1*ymax
for row in range(ymax, ylow-1, -1):
  temp = ""
  for col in range(0, len(x)):
    if y[col] == row:
        temp += "@"
    elif yi[col] == row:
        temp += "@"
    else:
        temp += "#"
    
  print(temp)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | #########@@@#########
002 | ########@###@########
003 | #######@#####@#######
004 | #####################
005 | #######@#####@#######
006 | ########@###@########
007 | #########@@@#########
thin breach
#

!e

radius = 15

x = range(-1*radius, radius+1)
y = []
yi = []
for i in x:
  y.append((radius-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(-1*i) for i in yi]
ymax = max(y)
ylow = -1*ymax
for row in range(ymax, ylow-1, -1):
  temp = ""
  for col in range(0, len(x)):
    if y[col] == row:
        temp += "@"
    elif yi[col] == row:
        temp += "@"
    else:
        temp += "#"
    
  print(temp)
sterile lichen
#

!e print('\n'.join([''.join([('\U0001F600' if ((x - 25) ** 2 + (y - 10) ** 2 - 100) ** 2 - ((x - 25) ** 2) * ((y - 10) ** 2) <= 0 else '❤️') for x in range(50)]) for y in range(20)]))

wise cargoBOT
#

@sterile lichen :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 long, too many lines)

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

thin breach
#

!e

import math

def draw_circle(radius):
    for y in range(-radius, radius+1):
        row = ''
        for x in range(-radius, radius+1):
            dist = math.sqrt(x**2 + y**2)
            if dist <= radius + 0.5:
                row += '*'
            else:
                row += ' '
        print(row)

draw_circle(5)

wise cargoBOT
#

@thin breach :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/exipozudaj.txt?noredirect

thin breach
#

chatgpt sucks, not mathematically good

#

!e

import math

radius = 10
for y in range(-radius, radius+1):
    row = ''
    for x in range(-radius, radius+1):
        if x**2 + y**2 <= radius**2:
            row += '*'
        else:
            row += ' '
    print(row)
wise cargoBOT
#

@thin breach :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/haceqiheya.txt?noredirect

thin breach
#

radius = 15

x = range(-1*radius, radius+1)
y = []
yi = []
for i in x:
y.append((radius-i**2)**0.5)

for i in range(len(y)):
if isinstance(y[i], complex):
# does not graph
y[i] = -1000
yi.append(y[i])

y = [int(i) for i in y]
yi = [int(-1i) for i in yi]
ymax = max(y)
ylow = -1
ymax
for row in range(ymax, ylow-1, -1):
temp = ""
for col in range(0, len(x)):
if y[col] == row:
temp += "@"
elif yi[col] == row:
temp += "@"
else:
temp += "#"

print(temp)

#

!e

radius = 10

x = range(-1*radius, radius+1)
y = []
yi = []
for i in x:
  y.append((radius-i**2)**0.5)

for i in range(len(y)):
  if isinstance(y[i], complex):
    # does not graph
    y[i] = -1000
  yi.append(y[i])


y = [int(i) for i in y]
yi = [int(-1*i) for i in yi]
ymax = max(y)
ylow = -1*ymax
for row in range(ymax, ylow-1, -1):
  temp = ""
  for col in range(0, len(x)):
    if y[col] == row:
        temp += "*"
    elif yi[col] == row:
        temp += "*"
    else:
        temp += " "
    
  print(temp)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 |          ***         
002 |         *   *        
003 |        *     *       
004 |                      
005 |        *     *       
006 |         *   *        
007 |          ***         
thin breach
#

!e

import math

radius = 10
x = range(-radius, radius+1)
y = [math.sqrt(radius**2 - xi**2) for xi in x]

for yi in range(-radius, radius+1):
    row = ''
    for xi in range(-radius, radius+1):
        if (xi in x) and (abs(yi) <= abs(y[x.index(xi)])):
            row += '*'
        else:
            row += ' '
    print(row)


#

!e

import math

radius = 10
x = range(-radius, radius+1)
y = [math.sqrt(radius**2 - xi**2) for xi in x]

for yi in range(-radius, radius+1):
    row = ''
    for xi in range(-radius, radius+1):
        if (xi in x) and (abs(yi) <= abs(y[x.index(xi)])):
            row += '*'
        else:
            row += ' '
    print(row)
wise cargoBOT
#

@thin breach :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/hocanuqoge.txt?noredirect

thin breach
#

!e

import math

# Define the equation to graph
def equation(x, y):
    return 2*x

# Set the grid size and resolution
x_min, x_max = -20, 20
y_min, y_max = -20, 20
resolution = 0.5

# Loop over the grid of points and evaluate the equation
for y in reversed(range(y_min, y_max+1)):
    row = ''
    for x in range(x_min, x_max+1):
        result = equation(x, y)
        if abs(result) < resolution:
            row += '*'
        else:
            row += ' '
    print(row)
wise cargoBOT
vocal basin
#

#bot-commands

thin breach
#

!e
import math

Define the equation to graph

def equation(x, y):
return 2*x

Set the grid size and resolution

x_min, x_max = -20, 20
y_min, y_max = -20, 20
resolution = 0.5

Loop over the grid of points and evaluate the equation

for y in reversed(range(y_min, y_max+1)):
row = ''
for x in range(x_min, x_max+1):
result = equation(x, y)
if abs(result) < resolution:
row += '*'
else:
row += ' '
print(row)

wise cargoBOT
thin breach
#

k

sour willow
#

thanks

somber heath
#

@viscid hearth 👋

somber heath
#

@humble zephyr We could hear you, though you were a little faint, as if you were further away from your microphone than was optimal.

somber heath
#

@zinc garden👋

rugged root
#

@small hornet If you were wondering why you can't talk, check out the #voice-verification channel

vocal basin
#

timing moment again

rugged root
#

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

vocal basin
#

how does it work? linux namespaces, hopes and prayers

rugged root
#

!source

wise cargoBOT
vocal basin
#

layered fs

vocal basin
#

volumes are mounts not copies

vocal basin
rugged root
#

For the truly self loathing

vocal basin
#

"The YAML File"

#

docker-compose.yml I have
seems a little bit large

#

(that's 18 containers)

rugged root
#
name: server_name_here
categories:
    - category_name
    - another_category_name:
        - channel_name: channel_type
roles:
    - role_name
webhooks:
    - webhook_channel_name
vocal basin
#

you can't transfer ownership to a bot

#

yes

#

"why would you create a server with a bot"
create a server with a bot, invite people, delete a bot
now you have an anarchy server

vocal basin
#

I don't remember, but I think it doesn't transfer ownership

#

I'm only as good at tetris as my double-clicking keyboard allows me to be

#

the only game I'm competitively good at is still minesweeper

vocal basin
#

probably not an issue with sensors

proven raft
#

yoyo mr hemlock

#

i may of forgotton my account details kekW, tbf once ive sent some msgs i should be fine

#

xDD

#

how are we all doing?

#

xD

rugged root
#

Decent enough

proven raft
#

good good

#

glad to hear it

vocal basin
proven raft
#

its pretty epic tbf

#

but it is less powerful

#

ive had a nokia last year

#

for a whole year

#

it wasnt bad

#

you find yourself using ipods or radio a lot

rugged root
#

True

proven raft
#

makes sense

rugged root
#

Done

rugged root
serene tulip
#

hello

proven raft
#

hi

rugged root
somber heath
#

Now, the trend of 'unremovable' batteries.

vocal basin
#

"make sure to use Scala to have all of your XML inlined in code"

rugged root
#

@whole bear If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

vocal basin
willow light
#

!e

from __future__ import braces
wise cargoBOT
#

@willow light :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     from __future__ import braces
003 |     ^
004 | SyntaxError: not a chance
rugged root
willow light
#

I like to joke that the Python best-practices for using XML is "Don't"

proven raft
#

if 1 == 2:

#

if (1 === 2) {

}

rugged root
#
if (1 === 2) {
}
#

2 == "2"

willow light
#

could be worse

vocal basin
proven raft
#

for (i = 0; i <7; i++) {

}

vocal basin
#

wolframscript

#

Haskell is good for its type system

willow light
#

could be worse, could be coq

plus_comm =
fun n m : nat =>
nat_ind (fun n0 : nat => n0 + m = m + n0)
  (plus_n_0 m)
  (fun (y : nat) (H : y + m = m + y) =>
   eq_ind (S (m + y))
     (fun n0 : nat => S (y + m) = n0)
     (f_equal S H)
     (m + S y)
     (plus_n_Sm m y)) n
     : forall n m : nat, n + m = m + n
rugged root
vocal basin
#

Haskell has things more higher-level than just lambda calculus

#

closer to category theory

#

putStrLn doesn't print anything

#

it's a description of what to do

proven raft
vocal basin
#

main describes what your program will do

willow light
#

The XArray logo is a great way to demonstrate the data structure most-often used in meteorology lol

vocal basin
#

do is for monads

vocal basin
# proven raft

value of main is " print 'Hello, everybody' and print 'something else' " in some sense

willow light
#
import xarray as xr
import numpy as pd
from matplotlib import pyplot as tf
import tensorflow as plt
import pandas as np

data = xr.DataArray(np.random.randn(2, 3), dims=("x", "y"), coords={"x": [10, 20]})

data
vocal basin
#

this is "do a and b"

do
  a
  b
rugged root
#

!code

wise cargoBOT
#
Formatting code on discord

Here's how to format Python code on Discord:

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

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

proven raft
#

<<<

vocal basin
#

@proven raft you can't have side-effects that's why you need do to combine descriptions of side-effects

proven raft
#

'

vocal basin
#

`

#

left of 1

proven raft
#

~

#

`

#

¬

#

`

rugged root
#

!charinfo ¬

wise cargoBOT
proven raft
#

íú

#

¦

rugged root
#

!charinfo ¦

wise cargoBOT
proven raft
#

!charinfo ¦

wise cargoBOT
proven raft
#

|

vocal basin
#

!e

¦ = 5
wise cargoBOT
#

@vocal basin :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     ¦ = 5
003 |     ^
004 | SyntaxError: invalid character '¦' (U+00A6)
vocal basin
rugged root
willow light
#
[X+Y || X <- [1,2], Y <- [2,3]]
rugged root
#

!charinfo ∴

wise cargoBOT
rugged root
#

!stream 239917638656983040

wise cargoBOT
#

✅ @willow light can now stream until <t:1679499394:f>.

vocal basin
#

my recorded voice > my voice I hear

rugged root
vocal basin
#

(mirroring for preview)

pallid hazel
#

@rugged root huge scare.. took about 18hrs to resolve..

#

system disk in server decided to die while a backup was running on my dev disk to backup disk and crashed them all

rugged root
#

Jesus

#

How'd that get fixed?

pallid hazel
#

well...

#

easy, system disk was raid1, but dev disk was running live vmware at the time and crashed the vms running linux, and backup disk also raid1.. so the real issue was the vmdisks inside the dev disk..

#

dev disk is raid0 😦

rugged root
#

raid1 across how many disks

pallid hazel
#

so longstory short, got the raid0 rebuilt with errors and lots of vm trick sideloading to get the linux disks fixed enough to mount and pulled the files off.

#

the vms themselves maybe salvageable.. but eh, i gotta replace the dev disk anyways

#

raid1 only 1x1.. im poor

willow light
pallid hazel
#

problem really is the amount of errors on the dev disk, i doubt it would stay stable ling enough to pull a few hundred gigs of vms off it

rugged root
#

How large is the disk?

proven raft
pallid hazel
#

so was 18hrs of obsecure digging thru stuff as the grubs were totally gone.

#

every drive is 1tb

pallid hazel
#

jump on the antlers go for a ride

pallid hazel
#

ok back to repairing stuff..

willow light
#

"Wear your seatbelt."

They have to specify that because seatbelts aren't mandatory in NH

#

One of these States is not like the others.

vocal basin
#

that article still has this as a diagram

willow light
rugged root
willow light
somber heath
#

Turn your head and cough.

willow light
#

worcester = "wistah"

#

but dorchester is "dot"

vocal basin
vocal basin
#

sync is pain

#

@gentle flint there are startup hooks

#

or something of that nature

#

why is on_ready bad, again?

#

being called twice?

gentle flint
#

because then sync gets called on every start

#

and sync is rate limited

vocal basin
#

sync requires clients to restart discord

#

to take full action

gentle flint
vocal basin
vocal basin
#

maybe:
somehow check in on_ready if /reload was synced
if no, then sync it

#

bootstrapping in some sense

vocal basin
#

discord.py should be able to handle 429s on its own, iirc

#

global

#

not in a guild

#

you can change nicknames in a guild very often

#

username has strict limits

vocal basin
#

store the last timestamp you attempted to sync at

#

(maybe)

vocal basin
#

sync is slow, yes

#

on_ready spawns a separate task, so it shouldn't slow down the rest of the bot

#

it can run multiple times

#

re-connection

rugged root
vocal basin
#

for running exactly once on startup (maybe before startup? I don't remember), there are startup hooks

#

guilds intent is not per-account, it's per-runtime

#

(per-account: presence, members, message content)

vocal basin
#

you can startup a task

#

with wait_until_ready

vocal basin
wise cargoBOT
#

asyncio.create_task(coro, *, name=None, context=None)```
Wrap the *coro* [coroutine](https://docs.python.org/3/library/asyncio-task.html#coroutine) into a [`Task`](https://docs.python.org/3/library/asyncio-task.html#asyncio.Task "asyncio.Task") and schedule its execution. Return the Task object.

If *name* is not `None`, it is set as the name of the task using [`Task.set_name()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.Task.set_name "asyncio.Task.set_name").

An optional keyword-only *context* argument allows specifying a custom [`contextvars.Context`](https://docs.python.org/3/library/contextvars.html#contextvars.Context "contextvars.Context") for the *coro* to run in. The current context copy is created when no *context* is provided.

The task is executed in the loop returned by [`get_running_loop()`](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_running_loop "asyncio.get_running_loop"), [`RuntimeError`](https://docs.python.org/3/library/exceptions.html#RuntimeError "RuntimeError") is raised if there is no running loop in current thread.

Note

[`asyncio.TaskGroup.create_task()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.TaskGroup.create_task "asyncio.TaskGroup.create_task") is a newer alternative that allows for convenient waiting for a group of related tasks.
vocal basin
#

don't forget to save the task somewhere

#

or else it can get GCd

#

I don't remember ever having GC issues with tasks

#

(lucky me)

vocal basin
#

because await will dead lock

#

for organising startup/teardown logic there are also Cogs

#

@hybrid_command works also inside Cogs
(taking "methods" instead of functions)

#

what/who is Craig

somber heath
#

@primal finch 👋

#

@dusty acorn 👋

vocal basin
#

@gentle flint
import discord.ext.commands

#

it doesn't import it with discord by default

#

(because those are extensions)

#

I've mostly seen it as:

from discord.ext import commands
#

thing from by discord bio just happened

vocal basin
#

create_task should be inside async context

#

(because it needs a loop)

somber heath
#

The late great OH LONG JOHNSON has been reincarnated, but this time as an orange kitty from China! He also has an important message: he likes it when you hold onto his fur when the dogs are barking! Do what this message as you please.

Original video by @骄傲的大肥兔 on Douyin: https://v.douyin.com/BMTtm3X/

🎵 The Kiffness on Spotify: https://bit.ly...

▶ Play video
vocal basin
#

or that, yes

#

client.loop may error

#

... because not in async context

#

and loop may be not set yet

#

property

#

2018

somber heath
#

@steel berry 👋

vocal basin
#

it will error when the bot stops

#

because asyncio.run(None)

somber heath
#

@shy bison 👋

shy bison
#

helloo

#

i bought this nft

vocal basin
#

I usually do

async def main():
    async with some_context:
        await client.login(token)
        # setup things
        await client.connect()

and all the post-connect in on_ready

somber heath
#

@wide lark 👋

rugged root
shy bison
#

😂

vocal basin
#

accountant in denial acceptance

wise cargoBOT
#

discord/ext/commands/cog.py line 677

async def _inject(self, bot: BotBase, override: bool, guild: Optional[Snowflake], guilds: Sequence[Snowflake]) -> Self:```
vocal basin
vocal basin
#

thanks google for confusion

somber heath
#

@cobalt hawk 👋

ancient lily
#

hello

cobalt hawk
golden sonnet
#

hi

#

you guys have a good course for pillow?
or should i go for the docs?

rugged root
#

@misty bone Yo

golden sonnet
#

corey shafer has a video but it's 7 years old
i don't know if i should go for it

ancient lily
#

thats so random @rugged root

somber heath
#

@spice garnet 👋

spice garnet
#

Hey @somber heath

ancient lily
#

might be irrelevant but what does "kata" mean in codewars

#

thank you

vocal basin
#

also you're supposed to solve the same problem more than once
(refactoring, different techniques, different languages)

ancient lily
#

that sounds fun

vocal basin
#

I was doing codewars for some time (I stopped around 4 months ago)

somber heath
#

@whole bear 👋

#

@pulsar wolf @wanton sonnet 👋

wanton sonnet
#

helo

vocal basin
#

also: brushing hair in the dark sometimes produces light

somber heath
#

@zenith tulip 👋

amber raptor
#

!e python a = 'refs/heads/feature/JIRA-123' print(a.lstrip('refs/heads'))

zenith tulip
#

I joined vc on accident sorry

amber raptor
#

!e python a = 'refs/heads/feature/JIRA-123' print(a.lstrip('refs/heads'))

wise cargoBOT
#

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

ture/JIRA-123
vocal basin
#

I can't spell

#

!e

a = 'refs/heads/feature/JIRA-123'
print(a.lstrip('/adefhrs'))
print(a.removeprefix('refs/heads'))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | ture/JIRA-123
002 | /feature/JIRA-123
somber heath
#

@dusty drift 👋

vocal basin
#

!e

print(hash(2))
print(hash(1))
print(hash(0))
print(hash(-1))  # weird
print(hash(-2))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 2
002 | 1
003 | 0
004 | -2
005 | -2
vocal basin
#

I should a very obscure code golf problem out of it

ancient lily
#

alright i got to sleep now good night everyone

vocal basin
#

second(s)

#

@gentle flint not syncing?

dusk raven
#

Grundstücks­verkehrs­genehmigungs­zuständigkeits­übertragungs­

#

Energiepreispauschalengesetz

somber heath
#

@dusk raven If you're holding your breath waiting for the U.S. to do things fairly and sensibly, you will die.

#

Or at least pass out or something.

dusk raven
somber heath
#

Hope? That's adorable.

#

But admirable.

rugged root
#

Just looking at the Missouri Department of Revenue:

Missouri's fuel tax rate is 17 cents a gallon through September 30, 2021 for all motor fuel, including gasoline, diesel, kerosene, gasohol, ethanol blended with gasoline, biodiesel (B100) blended with clear diesel fuel, etc. The tax does not apply to fuel dyed in accordance with the IRS guidelines such as dyed diesel or dyed kerosene.

The tax rate increases to 19.5 cents a gallon on October 1, 2021; 22 cents a gallon on July 1, 2022; 24.5 cents a gallon on July 1, 2023; 27 cents per gallon on July 1, 2024; and 29.5 cents a gallon on July 1, 2025.

Missouri also collects two fees on all sales of fuel. The fees collected are the agriculture inspection fee in the amount of 3.5 cents per 50 gallons ($0.0007 per gallon) and the transport load fee in the amount of $32.00 per 8,000 gallons ($0.004 per gallon). Prior to January 1, 2023, the transport fee is in the amount of $28.00 per 8,000 gallons ($.0035 per gallon).

#

So the information is there

#

Same things can be looked up for sales tax, even divvied up for the various kinds as some kinds of items get taxed differently

#

So we DO know, it's just grunt work for us to do so, which is stupid

dusk raven
amber raptor
#

More guns then America per capica, doubt

primal shadow
primal shadow
#

says the wiki

dusk raven
#

"Far Over the Misty Mountains Cold, to dungeons deep and caverns old, we must away 'ere break of day..." Thanks for requesting this amazing song from The Hobbit, I hope you enjoy this somewhat lower version of it. Thanks for watching!

***NOTE TO SPOTIFY LISTENERS:THE AUDIO IS NOW FIXED ON SPOTIFY! 🎉

😃 PATREON: https://www.patreon.com/geoffcast...

▶ Play video
primal shadow
dusk raven
primal shadow
#

46,876 miles

stuck furnace
#

In Scotland you can't buy alcohol after 10pm ;-;

primal shadow
#

depends on state law here

#

and county law

#

and even local ordinances...

#

It was a high-profile case that forced many to rethink the enforcement of NJ’s strict gun laws. In 2014, a 27-year-old South Philadelphia mother, Shaneen Allen, was arrested and faced gun charges in Atlantic County, NJ, after she was stopped and told the police officer she was carrying a gun.

#

She got a pardon to get out of the "crime"...

#

was facing 3 years in prison

dusk raven
#

Iguanidae

primal shadow
#

Iguanas in South Florida became immobilized Jan. 22 when temperatures dropped to 39 degrees. The animals, though cold-blooded, stiffen when temperatures dip. Read more: https://wapo.st/2NQ8ucR. Subscribe to The Washington Post on YouTube: https://wapo.st/2QOdcqK

Follow us:
Twitter: https://twitter.com/washingtonpost
Instagram: https://www.insta...

▶ Play video
stuck furnace
#

How fast was that elevator? 👀

rugged root
chilly vector
#

wow...

mortal burrow
#
class my_dict(dict):
    def __init__(self, stuff):
        self.update(stuff)
    
    def get_my_dict(self):
     return self 
    
my_stuff = my_dict({'water': 'melon'})
print(my_stuff.get_my_dict())
#

@lunar haven

thin breach
#

!e

# graphs a graph on a given domain
import math
domain = [-11,25]
def y_eq(x):
    return 2*math.sin(x)-0.5

# code (don't touch)
x_range = range(domain[0],domain[1]+1)
y = []
for x in x_range:
    y.append(y_eq(x))
# round up
for i in range(0, len(y)):
    y[i] = -round(-y[i]-0.5)
#test for imaginary
for i in range(len(y)):
    if isinstance(y[i], complex):
        y[i] = -1000

graph_height = range(int(max(y)), int(min(y)-1), -1)
for row in graph_height:
    line = ""
    for col in range(0, len(x_range)):
        if y[col] == row:
            line += "*"
        elif col+domain[0] == 0:
            line += "|"
        elif row == 0:
            line+= "-"
        else:
            line += " "
    print(line)
wise cargoBOT
#

@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | *     **   |**     *     *     **    
002 |  *   *     |      * *   * *          
003 | --------*--*--*---------------*--*--*
004 |   * *      |     *   * *   *         
005 |    *     **|   **     *     **    ** 
thin breach
#

why would someone use matplotlib?

golden iron
#

!e

wise cargoBOT
#
Missing required argument

code

ancient lily
#

hello

#

how you doing today

somber heath
#

@devout bloom 👋

devout bloom
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.

somber heath
#

It's a manual process, not automatic.

devout bloom
#

True

scenic quiver
#

Hi learners!

somber heath
#

@unreal oxide 👋

#

@dim wing👋

dim wing
#

Hello

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.

somber heath
#

@distant escarp 👋

distant escarp
#

Olá

obsidian dragon
vocal basin
#

*not working*

#

had to restart

somber heath
#

Hrm.

#

Always fun.

woeful salmon
#

that happens to me too every once in a while

vocal basin
#

or just waiting 1~10 seconds

slow venture
#

hey guys!

#

just wanted to come chill with you guys

#

I just cant talk

#

:((

#

what you guys been up to?

#

still no permission

#

ahhh

ancient lily
#

hello

slow venture
#

Hi yu!

vocal basin
slow venture
#

GOOD LUCK!

vocal basin
#

Etymology 5

#

(quite a lot)

#

none seem to be verbs though

vocal basin
#

minesweeper.online being weird

#

for some reason it doesn't actually reload when the button is clicked
it redirects to home page instead

somber heath
#

@fervent star 👋

vocal basin
#

playing it online because competitive, yes

#

I have a little over 10 thousand wins recorded

ancient lily
#

damn

#

me with -100 wins

fervent star
vocal basin
somber heath
#

@whole bear 👋

obsidian dragon
#

meow

somber heath
#

@cyan pivot👋

ancient lily
obsidian dragon
#

.topic

viscid lagoonBOT
#
**What is your favorite video game?**

Suggest more topics here!

vocal basin
#

haven't played Code Vein in quite a while

#

(anime Dark Souls)

slow venture
#

gonna head to bed guys!

#

thank you for letting me chill with yous

vocal basin
#

it's for more than 3 days

#

ig, it lasts for a week since joining

warped raft
#

@vocal basin down for some clash or code or still busy

vocal basin
#

still busy

warped raft
#

no problem keep going
just let me know when you're free

rugged root
#

!stream 163839418623459330

wise cargoBOT
#

✅ @obsidian dragon can now stream until <t:1679578984:f>.

warped raft
#

how much time would it take to print this piece @obsidian dragon

somber heath
#

Thus spoke she.

#

She shrugged.

#

You should print spoons. Nobody will suspect a thing.

#

"This is a lethal weapon?"
"You'd be surprised."

#

@prisma gust👋

prisma gust
#

heyy mate

rugged root
#

How's it going

rugged root
vocal basin
#

I just bought 1TB SSD
it definitely wasn't a rush decision

#

it's Samsung

#

colour correction is very apparent

#

someone suggested buying Crucial "because it's cheaper"

#

it wasn't cheaper

#

do optical character guessing

rugged root
vocal basin
#

new word learned: annuity

molten pewter
#

The greatest 2023 middle school band performance in Stonington. @quasi condor https://www.youtube.com/watch?v=OS2DWN--oLs

In part one, each band is showcased individually:
DMS/WVSS 4th Grade Band - Casual Road - Bruce Pearson
DMS/WVSS 5th Grade Band - Pursuit of Achievement - Bruce Pearson
SMS 6th Grade Band - Erie Canal Capers and BINGO! - arr. Bruce Pearson
SMS 7th Grade Band - Midnight Mission - Brian Balmages
SMS 8th Grade Band - Bazaar - Randall D. Standridge
...

▶ Play video
vocal basin
obsidian dragon
#

Distributions From Pensions, Annuities Retireme
Profit Sharing Plans, A urance Contracts, te
Copy B Report this Income on y
dere
box 4, attach
This information is being furnished to the IRS.

vocal basin
#

it was able to read "Annuities"

rugged root
#

Back in a bit

vocal basin
#

.hk is Hong Kong

#

I should learn to put \. not just . at the start

molten pewter
#

殭屍 Jiang (1) Shi (1)

#

Xi

#

Shi Xi Zhi Ji

#

Bopomofo (Chinese: 注音符號; pinyin: zhùyīn fúhào; Wade–Giles: chu⁴yin¹ fu²hao⁴), or Mandarin Phonetic Symbols, also named Zhuyin (Chinese: 注音; pinyin: zhùyīn), is a Chinese transliteration system for Mandarin Chinese and other related languages and dialects. More commonly used in Taiwanese Mandarin, it may also be used to transcribe other varieties...

vocal basin
rugged root
#

The Basic Law of Hong Kong states that English and Chinese are the two official languages of Hong Kong. During the British colonial era, English was the sole official language until 1978 but has remained a strong second language in Hong Kong. As the majority of the population in Hong Kong are descendants of migrants from China's Canton Province,...

somber heath
#

English and Chinese. Not helpful.

#

It's like saying "Speak American"

#

@swift bear👋

frosty star
#

I got a new cat

lucid blade
#

what did you do with the old one ?

#

😄

#

im joking .... cats are ace! 🙂

frosty star
#

Hah

#

Well my old cat wont come into my room anymore

#

She hates the new cat

rugged root
#

Loooooooooooove that cat

#

So happy

frosty star
#

I got another one also. Will arrive on Saturday.

#

On my way to crazy cat ladydom

#

Would love to stick around for the discussion guys but im soo sleepy 🥲

#

Gnite

lucid blade
#

peace

somber heath
#

@sick condor👋

sick condor
#

Yeap! @somber heath

rugged root
#

!charinfo [╓╘..]

wise cargoBOT
golden sonnet
#

hi

#

you guys up to find my bug?

#

it's a regex thing i think

#
def convert(s):
    simp = r"([0-1]?[0-9]) (AM|PM) to ([0-1]?[0-9]) (AM|PM)"
    comp = r"([0-1]?[0-9]):([0-5][0-9]) (AM|PM) to ([0-1]?[0-9]):([0-5][0-9]) (AM|PM)"

    if re.search(simp, s):
        f_hour, f_time, l_hour, l_time = simp_val(simp, s)
        if f_time == "AM" and f_hour == 12:
            f_hour = 0
        elif f_time == "PM" and f_hour != 12:
            f_hour += 12
        if l_time == "AM" and l_hour == 12:
            l_hour = 0
        elif l_time == "PM" and l_hour != 12:
            l_hour += 12

        return f"{f_hour:02}:00 to {l_hour:02}:00"

    elif re.search(comp, s):
        f_hour, f_min, f_time, l_hour, l_min, l_time = comp_val(comp, s)

        if f_time == "AM" and f_hour == 12:
            f_hour = 0
        elif f_time == "PM" and f_hour != 12:
            f_hour += 12
        if l_time == "AM" and l_hour == 12:
            l_hour = 0
        elif l_time == "PM" and l_hour != 12:
            l_hour += 12

        return f"{f_hour:02}:{f_min:02} to {l_hour:02}:{l_min:02}"

    else:
        raise ValueError
vocal basin
#

!d re.compile

wise cargoBOT
#

re.compile(pattern, flags=0)```
Compile a regular expression pattern into a [regular expression object](https://docs.python.org/3/library/re.html#re-objects), which can be used for matching using its [`match()`](https://docs.python.org/3/library/re.html#re.Pattern.match "re.Pattern.match"), [`search()`](https://docs.python.org/3/library/re.html#re.Pattern.search "re.Pattern.search") and other methods, described below.

The expression’s behaviour can be modified by specifying a *flags* value. Values can be any of the following variables, combined using bitwise OR (the `|` operator).

The sequence

```py
prog = re.compile(pattern)
result = prog.match(string)
```  is equivalent to...
golden sonnet
#

it should take 9:00 AM to 5:00 PM and return 09:00 to 17:00

#

or take 9 AM to 5 PM and return 09:00 to 17:00

#

i take the time and then format it

vocal basin
#

!e

import re
comp = re.compile(r"([0-1]?[0-9]):([0-5][0-9]) (AM|PM) to ([0-1]?[0-9]):([0-5][0-9]) (AM|PM)")
s = r"9:00 AM to 5:00 PM"
print(re.match(comp, s).groups())
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

('9', '00', 'AM', '5', '00', 'PM')
rugged root
golden sonnet
#

i used that in it giving my green light

rugged root
golden sonnet
#

but when i run it and give 9:00 AM to 7 PM
it should raise valueerror

#

it's for a cs50 test
they are giving the input

#

no it's a problem set

#

no

golden sonnet
rugged root
#
r"([0-1]?[0-9]):?([0-5]?[0-9]?) (AM|PM)"
golden sonnet
#

:? why this?

#

but then how can i seprate the two formats?

rugged root
#

!e

import re
comp = re.compile(r"([0-1]?[0-9]):?([0-5]?[0-9]?) (AM|PM)")
first_case = r"9:00 AM to 5:00 PM"
second_case = r"9:00 AM to 7 PM"

print(comp.findall(first_case))
print(comp.findall(second_case))
wise cargoBOT
#

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

001 | [('9', '00', 'AM'), ('5', '00', 'PM')]
002 | [('9', '00', 'AM'), ('7', '', 'PM')]
rugged root
#

@golden sonnet Does that help at all?

golden sonnet
#

i'm thinking if i can match that with the other parts

#

sooo

#

when i input 9:00 Am to 7 PM
i get 00:00 to 19:00

#

i mean not only i don't get valuerror
9 turns into 0

#

mm i don't follow

#

Oo that's typo

#

or you prefer text?

rugged root
#

Text is better

#

Easier to copy and test

golden sonnet
#
import re


def main():
    print(convert(input("Hours: ")))


def convert(s):
    simp = r"([0-1]?[0-9]) (AM|PM) to ([0-1]?[0-9]) (AM|PM)"
    comp = r"([0-1]?[0-9]):([0-5][0-9]) (AM|PM) to ([0-1]?[0-9]):([0-5][0-9]) (AM|PM)"

    if re.search(simp, s):
        f_hour, f_time, l_hour, l_time = simp_val(simp, s)
        if f_time == "AM" and f_hour == 12:
            f_hour = 0
        elif f_time == "PM" and f_hour != 12:
            f_hour += 12
        if l_time == "AM" and l_hour == 12:
            l_hour = 0
        elif l_time == "PM" and l_hour != 12:
            l_hour += 12

        return f"{f_hour:02}:00 to {l_hour:02}:00"



    elif re.search(comp, s):
        f_hour, f_min, f_time, l_hour, l_min, l_time = comp_val(comp, s)

        if f_time == "AM" and f_hour == 12:
            f_hour = 0
        elif f_time == "PM" and f_hour != 12:
            f_hour += 12
        if l_time == "AM" and l_hour == 12:
            l_hour = 0
        elif l_time == "PM" and l_hour != 12:
            l_hour += 12

        return f"{f_hour:02}:{f_min:02} to {l_hour:02}:{l_min:02}"



    else:
        raise ValueError





def simp_val(simp, s):
    simp_group = re.search(simp, s)
    f_hour = simp_group.group(1)
    f_time = simp_group.group(2)
    l_hour = simp_group.group(3)
    l_time = simp_group.group(4)
    f_hour = int(f_hour); l_hour = int(l_hour)
    if f_hour > 12 or l_hour > 12:
        raise ValueError

    return f_hour, f_time, l_hour, l_time



def comp_val(comp, s):
    comp_group = re.search(comp, s)
    f_hour = comp_group.group(1)
    f_min = comp_group.group(2)
    f_time = comp_group.group(3)
    l_hour = comp_group.group(4)
    l_min = comp_group.group(5)
    l_time = comp_group.group(6)

    f_hour = int(f_hour); f_min = int(f_min)
    l_hour = int(l_hour); l_min = int(l_min)

    if f_hour > 12 or l_hour > 12:
        raise ValueError
    return f_hour, f_min, f_time, l_hour, l_min, l_time




if __name__ == "__main__":
    main()
#

so it should get input in one of the two formats

#

Oo i got it i think

#

soooo

#

who's in the mood for unit test?

#

i have my tests written but cs50 wants more
and i don't know what they want :/

#

i have written anything that comes to mind

#

!paste

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

somber heath
#

@bleak lava 👋

#

@worn wind 👋

bleak lava
#

are you, guys regularly hanging out here @somber heath

vernal bridge
rugged root
golden sonnet
#

hii

rugged root
golden sonnet
bleak lava
#

@somber heath then I can ask for help with programming from you guys!

golden sonnet
#

anyone in the mood to look at my unit test?

#

i like unit test

#

but cs50 tends to be a b.. about it

golden sonnet
#

do you have 512gb ssd to spare?

vocal basin
gentle flint
golden sonnet
#

you got any game syggestion?
am bored

vocal basin
#

minesweeper

golden sonnet
#

if you had played minesweeper as much as i have..

#

i can't play it again

vocal basin
golden sonnet
#

i didn't count really

#

but i know i wasn't one to study

#

i have

#

but my grandpa is the big fan of that

vocal basin
#

I have a little over 400 hours recorded

golden sonnet
#

i loved total war rome :/

somber heath
#

@ocean pilot 👋

golden sonnet
#

it's been month since i playes any video games

vocal basin
# vocal basin SSD acquired

I'm very bad at existing outside the house
I got out of the train at the wrong stop, thought I exited one too early, now I'm going in the wrong direction even more

golden sonnet
#

i fixed my unit test problem

#

hours of pain

#

because of this
if __name__ == "__main__":

#

i mean if they want something from me they should say it

limpid umbra
#

howdy

golden sonnet
#

hi

#

you know as much as regex looks scary at start it's actually not bad

#

it's not that hard to learn

limpid umbra
#

when i write code - i never use CLASS , but i have seen it used here and there , pygame uses them , some programmers avoid them - is there a actual advantage using them?

golden sonnet
#

you use class when you want an object that can have methodes

limpid umbra
#

ya

golden sonnet
#

like a str

limpid umbra
#

when i use , pyserial , classes inside

gentle flint
limpid umbra
#

orange cat - looking relaxed

gentle flint
vocal basin
#

btw, blocking code can trigger reconnect

rugged root
#

It blocks the heartbeat I'm guessing?

vocal basin
#

something of that nature, yes, seems like

#

from my experience, same can also happen with high CPU load

#

(probably because of blocking too but in a different form)

golden sonnet
#

so i have a project idea that i don't know if i can pull it off

#

it goes like this:
a program to manage screen time

it gets an input (defaulted on 4 hours)
then it countsdown untill it reaches 0
then it'll shutdown the pc
timer resets every 24 hours

#

and if you have to use the pc again
you turn it on and it gives you 5 minutes

you can disable the program in this 5 minutes
otherwise it shuts down again

limpid umbra
#

you can transfer W10 liscence to other machine but can also run with no liscence

rugged root
limpid umbra
#

no liscence prevents changing background screen but - just use irfanview pic viewer , it will allow it to change Back screen

#

i always remove the shortcut arrows on my screen icons - i dont want to be reminded im using windoze

worn wind
#

🤓 ☝️ exactly

rugged root
#

@somber heath You are to me ❤️

#

There's someone back here hanging up blinds so I'm radio silent

golden sonnet
#

what's your take on bard?

limpid umbra
#

jframe -- mmm ok thats new

rugged root
#

Not wrong

terse needle
limpid umbra
#

its not a elastic ball - it needs to squish

#

is this actually valid ?

#

what about C++

#

lots of MCU chips are only C / C++ im kinda avoiding it all

velvet trench
#

lol

#

I wish I could speak

velvet trench
austere onyx
#

what's the fastest sorting algorithm?

#

for big numbers

rugged root
#

Back later, sorry

austere onyx
# limpid umbra

I know there's a way to compile python to run much faster than it is, I think it's called numba

molten pewter
#

tshark -r infile -T fields -e data | tr -d '\n' > tempfile

#

Predictive analytics for cyber attacks: Build a machine learning model that uses big data to predict cyber attacks before they occur. You could analyze patterns in network traffic, login attempts, or other indicators to identify suspicious activity and generate alerts.

Anomaly detection in network traffic: Develop an algorithm to detect anomalous network traffic that could be a sign of a cyber attack. You could use big data techniques to analyze large amounts of traffic and identify unusual patterns or behaviors.

Cyber threat intelligence analysis: Collect and analyze a large dataset of cyber threat intelligence feeds to identify patterns and trends in cyber attacks. This could involve using natural language processing and machine learning to extract insights from unstructured data sources.

Malware detection using machine learning: Build a machine learning model that can detect malware by analyzing large volumes of data on file characteristics, network traffic, and behavior. You could use techniques such as clustering and classification to identify malicious files and generate alerts.

Cyber security risk assessment: Develop a framework for assessing cyber security risks using big data techniques. You could use data from a variety of sources, including vulnerability scans, network logs, and incident reports, to identify potential risks and prioritize remediation efforts.

Intrusion detection and prevention: Build an intrusion detection and prevention system that uses big data to analyze network traffic and identify potential threats. You could use machine learning algorithms to learn from past incidents and improve the accuracy of the system over time.

Behavioral analytics for insider threats: Use big data techniques to analyze user behavior and identify potential insider threats. You could use machine learning to detect anomalies in user activity, identify high-risk users, and generate alerts when suspicious activity is detected.

gentle flint
molten pewter
#

No wonder I was having trouble finding it

#

Apparently it drops April 4th....

#

seems to be cutting it close

#

"Do Your Federal Taxes While Romancing Your Waifu!"

#

"It’s always been a dream of mine to meet that special someone…and file their tax return"

#

"if you file your taxes in the game, you file your taxes in real life."

gentle flint
#

ye

molten pewter
somber heath
somber heath
somber heath
#

@lofty girder 👋

#

@dire storm 👋

atomic sky
atomic sky
#

I used to just use Intel gpus for linux

#

Still using my 980ti bought when it came out , chillin.

somber heath
#

@slender pollen👋

slender pollen
#

@somber heath Hai2

ivory flower
somber heath
vocal basin
#

I don't remember being in any way "stuck" when learning python
some specific problems might be hard to solve, but the general learning process never posed a "I can't progress" situation

#

first time learning immutable trees was hard because I had no idea how to look it up

#

(... so I just came up with my own solution)

vocal basin
vocal basin
#

I never successfully programmed a single proper game

#

although I have plans of making my own cooperative version of minesweeper
(for more than 2 players)

vocal basin
#

with ZeroMQ between them

somber heath
#

@merry forge👋

merry forge
vocal basin
#

first cell is always empty

#

but there are situations
like
you can click the corner and it's 3

#

field fully generates on the first click

#

... which can be right click

#

so there are ways to lose on first opened cell

#

seems like they just pre-generate fields and "brute force" (to some extent) them with an algorithm

#

it doesn't build the field out of small solvable pieces

#

it sometimes generates 20~30 mine sequences just because they can be solved by an algorithm

vocal basin
#

but then switched to standard mode
(because the standard mode is regarded there as "more competitive" in some sense)

somber heath
#

@rustic comet 👋

vocal basin
#

there might be some help

somber heath
#

@bleak orbit👋

bleak orbit
#

👋@somber heath

obsidian dragon
#

👋🏿 @somber heath

#

@bleak orbit

#

@vocal basin

#

hi yall

bleak orbit
#

Does anyone suggest the best site to study Machine Learning?

obsidian dragon
#

python use excel?

bleak orbit
#

no python use csv file it is just look like excal

obsidian dragon
#

can python use excel

somber heath
#

Depending on the format it saves the data in, you may need an external library.

#

Python has the csv module for assisting in the parsing of csv formatted data, but you can parse that without it.

#

As for Excel's native format, xls, et al, there are pip-downloadable modules that handle them.