#voice-chat-text-0

1 messages · Page 369 of 1

carmine tangle
#

my PC when i download free RAM

#

kept sending the wrong img

quiet sleet
#

ai sucks (most of the time)

somber heath
#

Crocodile.

quiet sleet
#

we could be using it to help with so many things

#

but instead we use it to steal art and troll grannies on fb

quiet sleet
somber heath
quiet sleet
#

im rather new

#

i got to if statements and input

#

OHHH

#

thanks internet person

#

in, not im

somber heath
#

!e ```py
if 'abc':
print('A')

if '':
print('B')```

wise cargoBOT
quiet sleet
#

interesting

somber heath
#

!e ```py
if [...]:
print('A')

if []:
print('B')```

wise cargoBOT
somber heath
#

!e py print(bool([...])) print(bool([]))

wise cargoBOT
quiet sleet
#

so basically if its not filled its false?

somber heath
#

!e ```py
if 1:
print('A')

if 0:
print('B')

if -1:
print('C')```

wise cargoBOT
quiet sleet
#

my bad

#

i see

#

wish it wasnt 2:06 AM

#

programming :D

#

I LIKE LISTENING

#

wrong language buddy 💀

#

oh 😳

#

what

#

its Xx_iforgothisname_xX!

#

ohhhh

#

i love that one

#

we need more code ducks

#

code duck series

#

by the science dudes?

#

i cant even try to spell their name

quiet sleet
#

the ones who talk about space and black holes and the universe and stuff

#

one sec

#
#

them

#

they are good at it

#

really cool stuff for science nerds like mee

#

and my brother

#

AHEM project sundial AHEM

#

ngl i thought the programming/python community would be more toxic and condescending

#

there are people

#

and people suck

#

ive wanted to learn programming almost my whole life

#

and im finally dedicating to it

#

i dont really want to use python, i want to make games with unity and stuff, i was told to learn it as a base

#

glad they are back

#

to yknow

#

i dont want to use godot or unreal

#

i like unity (not the company)

#

im inspired by indie devs

#

yeah ofc

#

its the internet

#

Xxrazorface27xX:
get rekd noob lmao get better ur a noob

#

im paying more games that i used to play when i was younger

#

i had an old xbox 360 and actually still have it right here right now

#

never selling it

#

its too important

#

sadly im a younger gamer

#

i do love "retro" games tho, surprise on the workarounds they use

#

my friend loves half life

#

i used to play COD black ops 2

#

and minecraft

#

and terraria

#

and then i got a tablet

#

and all i played

#

was robloc

#

roblox*

#

people say they dont like roblox

#

its a platform

#

yeah

#

i do understand

#

wait

#

lemme test

#

!e print("why is there snake in my pc :( ")

#

oh

#

the bot thing

#

didnt work

#

the hoh

#

!e print("why is there snake in my pc :( ")

wise cargoBOT
quiet sleet
#

neat

#

doe input work?

#

does*

somber heath
#

@fickle veldt 👋

quiet sleet
#

"ookay? just- dont get too exited"

#

hello

#

i exist :D

#

"no fuck you no input haha"

#
  • python bot
#

i use pycharm but for "multiplayer python" i use VSCode

somber heath
#

!e input()

wise cargoBOT
# somber heath !e input()

:x: Your 3.12 eval job has completed with return code 1.

:warning: Note: input is not supported by the bot :warning:

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     input()
004 | EOFError: EOF when reading a line
quiet sleet
#

nuh-uh ☝️

quiet sleet
#

bot says no

quiet sleet
#

well you just restored a bit of my faith in humanity haha

#

but i gotta hit the hay no

#

now*

#

cya

twilit peak
#

guys I did it

#

I present you my first working prov]ject

#

I am proud being a 14yo who knows a small tiny bit of python

#

🙂

whole bear
#

!mute

twilit peak
#

uh

#

you muted me? 😦

somber heath
wise cargoBOT
#
Voice verification

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

brisk bridge
#

hi

quiet sleet
#

i have returned

#

its day time now

#

idk if i wanna talk tho

#

i sound like a 3 year old

#

i promise im of age for this app

#

alot of people do because of how i type and how my voice sounds

#

my mic stopped gimme a sec

#

its using my oculus headsets mic 💀

#

1 sec

#

LMFAO

somber heath
#

@keen idol 👋

#

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

With what do you require assistance?

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @keen idol until <t:1731287356:f> (10 minutes) (reason: burst spam - sent 8 messages).

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

somber heath
#

@keen idol When you asked if you could spam, I suggested you carefully read the instructions in the #voice-verification channel.

What have we learned?

#

@bleak scarab 👋

quiet sleet
#

what happened?

keen idol
quiet sleet
keen idol
#

I did spam on purpose.

#

Seems like the system is indeed working.

#

😅

#

@somber heath Why do you sound robotic?

#

No offence

#

I mean the way he talks.

#

I like the accent though

#

G'day, mate

somber heath
#

@neon cave 👋

neon cave
#

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.

neon cave
#

ive been here less than 3 days sorryt

#

@somber heath

#

are you familiar with matplotlib with python?

#

im having an issue creating interactive - live updating graphs using it

#

is there a way i can send you the example of my code?

somber heath
#

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

neon cave
#

ive looked up alot of ways online and ive been unable to get it to work haha

#

ik its very slow haha im forced into it via my course requirements

#

ive been trying to make a simple pong game using it and ive got the ball working but it was very slow

#

i then made a more concise versio but the ball stoped moving lol

somber heath
neon cave
#

its been a struggle man haha

#

does funcanimation not turn it into a video / gif?

#

ooo that does sound promising

#

i also dont even have tkinter 😭

#

i am forced to use online compiler cocalc

#

whats the word you use to import tkinter?

#

yea says not a known library

#

yea idfk man this software is terrible

#

i will look into this haha

#

i appreciate it man youve given me some more leads to look into i had almost given up lol

#

cya later enjoy your night guys

wise cargoBOT
#

:x: Your 3.12 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 tkinter as tk
004 |   File "/snekbin/python/3.12/lib/python3.12/tkinter/__init__.py", line 38, in <module>
005 |     import _tkinter # If this fails your Python may not be configured for Tk
006 |     ^^^^^^^^^^^^^^^
007 | ImportError: libtk8.6.so: cannot open shared object file: No such file or directory
somber heath
#

@azure fiber 👋

azure fiber
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.

azure fiber
#

You are not currently eligible to use voice inside Python Discord for the following reasons :(

#

Why does this exist?

#

😂

#

Is it on every channel?

#

😂

#

Yep you're lagging now

#

Ye it's better now I'll head out for now once I'll achieve the Voice permission i'll be back just like terminator 👍 😂

#

Have a good one mate

late spoke
#

Good morning Opal

quiet sleet
#

hey

#

cant speak buch

#

much*

#

its midnight

#

sh*t i gotta go lol

#

cya

blazing vale
#

hi

#

im finish my game

#
import random
random.random()
botchoice = ["rock","paper","scisors"]
playornot = (input('اذا تريد اللعب اكتب العب واذا لا تريد اكتب خروج'))
if playornot == 'خروج':
    print ("الى اللقاء")
    exit
while playornot == 'العب':
    bot = random.choice(botchoice)
    playerchoice = (input("اختار حجر ورق مقص"))
    if playerchoice == "حجر" and bot == "scisors" or playerchoice == "ورق" and bot == "rock" or playerchoice == "مقص" and bot == "paper":
        print("فاز اللاعب!")
    if playerchoice == "حجر" and bot == "paper" or playerchoice == "ورق" and bot == "scisors" or playerchoice == "مقص" and bot == "rock":
        print("اللاعب خسر")
    if playerchoice == "حجر" and bot == "rock" or playerchoice == "ورق" and bot == "paper" or playerchoice == "مقص" and bot == "scisors":
        print("تعادل")
    playornot = (input('اذا تريد اللعب اكتب العب واذا لا تريد اكتب خروج'))
    if playornot == "خروج":
        print ("الى اللقاء")
        exit
#

@somber heath i finish

vocal basin
#

"the optimal implementation"

from random import choice
_ = input("Rock, Paper, or Scissors: ")
print(choice(["Win", "Loss", "Draw"]))
#

@upper basin deserialisation is one of the cases where it makes sense to use Rust for reasons other than performance

#

serde simplifies parsing a lot

upper basin
vocal basin
#

I don't think it does

#

match is slower than if

#

in all cases that I've measured

somber heath
#

@arctic salmon 👋

arctic salmon
#

Hello

vocal basin
#

I guess for giant match statements it might try to optimize

karmic rain
vocal basin
#

!timeit

value = ""

match value:
    case "a": pass
    case "b": pass
    case "c": pass
    case "d": pass
    case "e": pass
    case "f": pass
    case "g": pass
    case "h": pass
    case "i": pass
wise cargoBOT
vocal basin
#

!timeit

value = ""

if value == "a": pass
elif value == "b": pass
elif value == "c": pass
elif value == "d": pass
elif value == "e": pass
elif value == "f": pass
elif value == "g": pass
elif value == "h": pass
elif value == "i": pass
wise cargoBOT
vocal basin
#

huh

#

well, this time match is faster

#

hmm

karmic rain
#

shipit @somber heath your voice is similar ;

vocal basin
#

!timeit

value = ""

match value:
    case "a": pass
    case "b": pass
    case "c": pass
wise cargoBOT
vocal basin
#

!timeit

value = ""

if value == "a": pass
elif value == "b": pass
elif value == "c": pass
wise cargoBOT
blazing vale
#

why you just type pass?

vocal basin
#

okay it might've gotten faster recently

somber heath
#

!d pass

wise cargoBOT
#

7.4. The pass statement


pass_stmt ::=  "pass"
``` [`pass`](https://docs.python.org/3/reference/simple_stmts.html#pass) is a null operation — when it is executed, nothing happens. It is useful as a placeholder when a statement is required syntactically, but no code needs to be executed, for example:

```py
def f(arg): pass    # a function that does nothing (yet)

class C: pass       # a class with no methods (yet)
vocal basin
#

likely got optimized in recent versions

#

in 3.10 it was not fast at all

blazing vale
#

im still dont understand

somber heath
#

!e py if True: print('Hello.')

wise cargoBOT
vocal basin
#

!timeit

# setup
mapping = {
    "a": lambda: None,
    "b": lambda: None,
    "c": lambda: None,
    "d": lambda: None,
    "e": lambda: None,
    "f": lambda: None,
    "g": lambda: None,
    "h": lambda: None,
    "i": lambda: None,
}
default = lambda: None
value = ""

mapping.get(value, default)()
wise cargoBOT
vocal basin
#

(faster than both)

somber heath
#

!e py if True: pass

wise cargoBOT
blazing vale
#

hmm

somber heath
#

!e py if True:

wise cargoBOT
# somber heath !e ```py if True:```

:x: Your 3.12 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     if True:
003 | IndentationError: expected an indented block after 'if' statement on line 1
blazing vale
#

oh

upper basin
blazing vale
#

if some thing happend:

#

pass

somber heath
#

!e py if True: 'abc'

wise cargoBOT
blazing vale
#

we have to type to do something if its true

somber heath
#

!e py if False:

wise cargoBOT
# somber heath !e ```py if False:```

:x: Your 3.12 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     if False:
003 | IndentationError: expected an indented block after 'if' statement on line 1
blazing vale
#

ahh

#
if blabla == 'bla'
   print('beb')
else:
pass
#

then if is not
we drop the code away

somber heath
#

Indent on the pass

#

Or remove else pass

#

Ideally that.

blazing vale
#

hmmm

#

i have an idia

#
cake = (input('do you bay a cake from shop'))
if cake == 'yes':
pass
elif cake == 'no':
print ('go bay')
somber heath
#
cake = (input('do you bay a cake from shop'))
if cake == 'yes':
    pass
elif cake == 'no':
    print ('go bay')
blazing vale
#

i know but

#

it dont work in discord

somber heath
#

@merry cargo 👋

merry cargo
#

Hello

somber heath
#

@plush ether 👋

blazing vale
#

i well try agin

merry cargo
blazing vale
#

i can type space

#

in python IDLE

#

he awto

merry cargo
#

That’s good man keep doing what your doing 🔥 💯

blazing vale
#

type space

#

from self

plush ether
blazing vale
#

in IDLE

#
if bla == 'bla':
  print('bla bla bla')
#

but in discord

quiet sleet
twin python
#

I'm in a bus

#

Fuck public they are so noisy

blazing vale
#
if bla == 'bla':
print ('blablabla')
twin python
#

Yeah dawg

blazing vale
#

i dont know why?

twin python
#

It's India so obv it's noisy and laggy

plush ether
upper basin
#

!e

if bla == 'bla':
    print('bla')
wise cargoBOT
somber heath
#

@ebon crag 👋

blazing vale
#

just that!?

somber heath
#

!indent

wise cargoBOT
#
Indentation

Indentation is leading whitespace (spaces and tabs) at the beginning of a line of code. In the case of Python, they are used to determine the grouping of statements.

Spaces should be preferred over tabs. To be clear, this is in reference to the character itself, not the keys on a keyboard. Your editor/IDE should be configured to insert spaces when the TAB key is pressed. The amount of spaces should be a multiple of 4, except optionally in the case of continuation lines.

Example

def foo():
    bar = 'baz'  # indented one level
    if bar == 'baz':
        print('ham')  # indented two levels
    return bar  # indented one level

The first line is not indented. The next two lines are indented to be inside of the function definition. They will only run when the function is called. The fourth line is indented to be inside the if statement, and will only run if the if statement evaluates to True. The fifth and last line is like the 2nd and 3rd and will always run when the function is called. It effectively closes the if statement above as no more lines can be inside the if statement below that line.

Indentation is used after:
1. Compound statements (eg. if, while, for, try, with, def, class, and their counterparts)
2. Continuation lines

More Info
1. Indentation style guide
2. Tabs or Spaces?
3. Official docs on indentation

blazing vale
#

ok

somber heath
#

@tidal seal 👋

blazing vale
#

i understand

#

thank you every one

quiet sleet
twin python
#

I would rather play clash of clans for life

#

Pal world

#

They literally did a great job

#

Imagine suing a game in this world of open-source

#

Guys can u try to sound a little lively

quiet sleet
twin python
#

It's like I am listening to ai bots

upper basin
blazing vale
#

anyone use scratch

upper basin
#

Ok f{username}, you caught us. We are discord bots designed by Mr. Hemlock!

twin python
#

yert you sound exactly like a robo

#

And I'm definitely not last

#

U can sell your voice package

somber heath
#

@proud glen 👋

twin python
#

Literally will work

#

Do u sing?

#

Yeah lol me too I hate male ai voices

#

They're too manly

#

Almost unreal

#

U have a natural robo voice

#

How long will it take for me to learn python?

plush ether
#

What about django?

#

Which framework do you use

#

Okayy

somber heath
#

!zen

wise cargoBOT
#
The Zen of Python, by Tim Peters

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

twin python
#

I feel demotivated

plush ether
twin python
#

How you guys motivate yourself to implement and complete a project?

twin python
plush ether
#

In terms of getting a job? Or studying?

twin python
plush ether
twin python
#

I have been getting responses from recruiters it's always like I'm short on experience or they just want me to work for free

plush ether
#

Freelancing might be a good way to gain experience

twin python
#

No matter what

vocal basin
# plush ether I hear you. It’s tough out there, but don’t settle for unpaid work

The most popular CreativeMornings talk of all time, Mike Monteiro gives us some valuable advice on how to get paid for the work that you do.

Mike Monteiro at the San Francisco chapter of CreativeMornings on Mar 25, 2011.

Free talks like this one are hosted every month in cities around the world. Subscribe to our YouTube channel for more inspi...

▶ Play video
twin python
twin python
#

They don't want me watching it

plush ether
twin python
#

Imma use torrent

somber heath
#

@ripe cipher 👋

twin python
somber heath
#

Hm?

twin python
#

We taking a short break?

#

And I'm still in da bus

#

Population overload is crazy

#

@worldly robin ciao

plush ether
twin python
#

Overcrowded asf

plush ether
#

I'm from Karnataka

twin python
#

Indians really need to hesitate

twin python
#

Atleast you have better air quality

plush ether
#

And much safer

twin python
#

My life was ruined in this state

plush ether
twin python
#

Yeah

plush ether
twin python
plush ether
twin python
twin python
plush ether
plush ether
twin python
#

Yeah

plush ether
twin python
#

Probably will be unemployed this year

#

Or will join sales

plush ether
twin python
#

I did one remote at isro

#

That's all

#

Need a offline one

plush ether
plush ether
twin python
#

What do you do?

#

Are u a developer?

plush ether
twin python
#

What kind of? School?

plush ether
#

@upper basin are you coding something?

plush ether
#

@somber heath what are you talking about??

sage oak
#

Hey 👋

turbid parcel
#

yo

#

any

#

one

#

there

twin python
somber heath
#

@lusty cape 👋

#

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

lusty cape
#

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

lusty cape
#

jeje, well not problem

#

@somber heath 👋

somber heath
#

@winged widget 👋

winged widget
#

i still cant talk 😦

#

huhu

#

@somber heath

somber heath
#

I read you.

winged widget
#

😄

#

ye

#

wie geht es dier?

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
winged widget
#

how are you?

somber heath
#

The world is perfect with no flaws and everyone is living in peace and harmony.

#

I'm fucking brilliant.

winged widget
#

yee hahahah

whole bear
#

hi this is 4DOS

somber heath
#

@whole bear 👋

whole bear
#

wait what?

#

whats up opal

#

gotta do my voice verification on this account too i gues

#

i think a reasonable mod would bypass known members on other accounts

#

Oh yea

#

one sec

quaint oyster
#

I've been summoned

whole bear
#

how did you misspell dude that bad

quaint oyster
#

Idk dude I'm talking to myself rn

whole bear
#

anything new with you opal

#

that's crazy you live there now?

#

new job

#

new wife

#

new kids

#

death

#

murder

#

drugs

#

disease

#

the world is far from perfect

#

everything in life is a half liquidy cup

#

what time is it for you now

#

any exciting projects

#

so what you be up to

#

same

#

what though

#

nice

#

ima start doing leet code

#

again

#

oh yuh

#

i like watching this dude

#

that spends winters in the woods

#

oh yea that's nice to fall asleep to

somber heath
#

@coral temple 👋

coral temple
cold isle
#

Is ther anybody here?

#

How mnay people on server

somber heath
#

@open lion 👋

rugged root
#

!stream 1127458312938598460

wise cargoBOT
#

✅ @still herald can now stream until <t:1731426815:f>.

upper basin
#

!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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

upper basin
amber raptor
#

Depends on your country but in United States, it would do nothing.

upper basin
whole bear
#

@rugged root How you doing?

#

GPU hungry notebook

#

What exactly do you want?

#

An IDE for python? python docs ? Help?

amber raptor
#

Bingo!

rugged root
#

You did call it, I concede

whole bear
#

But if you want to learn advanced concepts in python, you have to hustle

#

Leetcode is a good but best approach is to build projects

#

No

#

Software development includes feasibility.
If it's not a feasible idea it isn't a great just move on

rugged root
#

Not to say it can't be feasible later, maybe just not now

vocal basin
#

whose memory

whole bear
#

Genie : You have three wishes
Programmer: Make it zero
Genie: Okay, now you have 255

//Explain why?

vocal basin
#

@rugged root have you ever seen Outline (wiki)?

whole bear
#

Yes

#

My bad

vocal basin
#

I did not expect people to like it and start using it that much

#

I guess anything is good after switching from Confluence

whole bear
#

Yeah it is but it's a great way to learn new things

vocal basin
#

Python lambdas are ugly

#

even by python's standard

#

|a| |b| a + b

#

when I'm back home, I'll do some benchmarks of hashmap vs array (Rust not Python)

#

for async-ffi

upper basin
#

AF, would you go with my factory method approach, or this match case one?

vocal basin
#

she's not really focusing on that recently it seems

whole bear
#
class ShrinkFactor:
    def __init__(self, first, second):
        self.first = first
        self.second = second

class MyStack:
    def __init__(self, length=10):
        self.data = [None] * length
        self.last = -1
        self.minimum_capacity = 100
        self.factor = ShrinkFactor(10, 5)

    def push(self, element):
        if self.is_full(): self.resize()
        self.last += 1
        self.data[self.last] = element

    def pop(self):
        if self.is_empty(): raise Exception("Stack is empty")
        if len(self.data) > self.size() * self.factor.first: self.shrink()
        element = self.data[self.last]
        self.last -= 1
        return element

    def is_full(self): return self.last + 1 == len(self.data)
    def is_empty(self): return self.last == -1
    def size(self): return self.last + 1

    def resize(self): 
        self.data = self.data[:self.size()] + [None] * self.size()

    def shrink(self):
        if len(self.data) > self.minimum_capacity:
            self.data = self.data[:self.size()] + [None] * (self.size() * self.factor.second)

    def set_shrink_factor(self, factor): self.factor = factor
    def set_minimum_capacity(self, capacity): self.minimum_capacity = capacity
    def peek(self):
        if self.is_empty(): raise Exception("Stack is empty")
        return self.data[self.last]
    def clear(self): self.last = -1
    def display(self):
        print("->".join(str(self.data[i]) for i in range(self.size())) + "->End")
        print(f"Size: {self.size()}\n")

if __name__ == "__main__":
    int_stack = MyStack()

    for i in range(1, 6): int_stack.push(i)
    int_stack.display()

    print(f"popped {int_stack.pop()}\n")
    int_stack.display()

    print(f"peeked: {int_stack.peek()}")
    print(f"isEmpty(): {int_stack.is_empty()}\n"
          f"isFull(): {int_stack.is_full()}\n")

    print("Clearing stack using clear()...")
    int_stack.clear()

    print(f"checking if cleared: {int_stack.is_empty()}")
vocal basin
#

oh wait data and vtable are getting stabilised

#

rust 1.83

whole bear
#

!e

class ShrinkFactor:
    def __init__(self, first, second):
        self.first = first
        self.second = second

class MyStack:
    def __init__(self, length=10):
        self.data = [None] * length
        self.last = -1
        self.minimum_capacity = 100
        self.factor = ShrinkFactor(10, 5)

    def push(self, element):
        if self.is_full(): self.resize()
        self.last += 1
        self.data[self.last] = element

    def pop(self):
        if self.is_empty(): raise Exception("Stack is empty")
        if len(self.data) > self.size() * self.factor.first: self.shrink()
        element = self.data[self.last]
        self.last -= 1
        return element

    def is_full(self): return self.last + 1 == len(self.data)
    def is_empty(self): return self.last == -1
    def size(self): return self.last + 1

    def resize(self): 
        self.data = self.data[:self.size()] + [None] * self.size()

    def shrink(self):
        if len(self.data) > self.minimum_capacity:
            self.data = self.data[:self.size()] + [None] * (self.size() * self.factor.second)

    def set_shrink_factor(self, factor): self.factor = factor
    def set_minimum_capacity(self, capacity): self.minimum_capacity = capacity
    def peek(self):
        if self.is_empty(): raise Exception("Stack is empty")
        return self.data[self.last]
    def clear(self): self.last = -1
    def display(self):
        print("->".join(str(self.data[i]) for i in range(self.size())) + "->End")
        print(f"Size: {self.size()}\n")

if __name__ == "__main__":
    int_stack = MyStack()

    for i in range(1, 6): int_stack.push(i)
    int_stack.display()

    print(f"popped {int_stack.pop()}\n")
    int_stack.display()

    print(f"peeked: {int_stack.peek()}")
    print(f"isEmpty(): {int_stack.is_empty()}\n"
          f"isFull(): {int_stack.is_full()}\n")

    print("Clearing stack using clear()...")
    int_stack.clear()

    print(f"checking if cleared: {int_stack.is_empty()}")
wise cargoBOT
amber raptor
#

Factory must grow.

#

Also, Apple Intelligence is bad and should feel bad.

upper basin
#

!zen

wise cargoBOT
#
The Zen of Python, by Tim Peters

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

amber raptor
#

!e python import this

wise cargoBOT
# amber raptor !e ```python import this```

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | The Zen of Python, by Tim Peters
002 | 
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/6SXSD3UR6ONLRE67MVN7VKDAGA

upper basin
#

!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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

upper basin
vocal basin
#

now I can't just say I don't use hashmaps because it's unstable

#

for mapping wakers to whatever

upper basin
#

Ok, 65-80 is the separation of aliasing from mapping?

#

Good to know. Thank you very much!

short owl
#

gobble gooble , gobble gooble , one of us one of us ( which movie is that from ?) @rugged root

upper basin
#

I think Simpsons?

rugged root
#

It wasn't Simpsons

short owl
#

come on kids , guess guess

rugged root
#

I can see the image in my head

#

I don't think I ever knew the name of the movie, though

short owl
#

Freaks ! , its actually good

#

need to find a backyard mechanic - they exist @molten pewter

#

need a buddy with a garage , drink beer , fix shit

#

double garage , @molten pewter

#

what do insurance companys say about electric cars - lithium

upper basin
#

I don't wanna be an american, so freaking bad.
I'm losing all the stuff I ever had.

Despacitooo

short owl
#

just get a mini van a granny drove on sundays ....

rugged root
#

I love my mini van, I will fight you

short owl
#

its a flexible vehicle for sure

#

you ever gonna link , OpenCV to your robot arms ? @gilded rivet

cinder mirage
#

hi

rugged root
#

Yo

vocal basin
#

for now only beta

gilded rivet
vocal basin
#

how many seconds pass between two stable Rust releases?
10!

short owl
#

you can have LEDs as guidance points around room , just pulse code them , mmm if cam can see strobes @gilded rivet

vocal basin
#

||it's six weeks||

#

it's on 1.82

vocal basin
#

@upper basin read through data model docs

gilded rivet
#

Optitrack motion tracking system

vocal basin
#

__getattr__, __getattribute__

still herald
#

hello

gilded rivet
rugged root
#

I forgot you had the big ass box for all of that, too

still herald
#

how do you like import the vs code into gitgub?

gilded rivet
still herald
#

i mean there are too many ways

gilded rivet
vocal basin
vocal basin
short owl
#

Printer Shanty @gilded rivet

rugged root
#
class Celsius:
  def __init__(self, temperature=0):
    self.temperature = temperature

  def to_fahrenheit(self):
    return (self.temperature * 1.8) + 32

  @property
  def temperature(self):
    return self._temperature

  @temperature.setter
  def temperature(self, value):
    if value < -273.15:
      raise ValueError("Temperature below -273.15 is not possible.")
    self._temperature = value
vocal basin
#

.wa short 0 K to degrees Celsius

viscid lagoonBOT
vocal basin
#

I was not expecting a less precise answer

#

.wa short 0 K to degrees Celsius, 10 digits

viscid lagoonBOT
vocal basin
#

I guess makes sense to standardize it rounded

#

since 0°C is tied to a not so precise thing

vocal basin
#

I'm still outside and walking, can't look at the video

gilded rivet
#

I need to go do some nonsense

still herald
vocal basin
#

git clone

#

--recurse-submodules

late spoke
digital wharf
#

pineapple on pizza is a crime

vocal basin
digital wharf
#

what the hell

#

thats a sick joke right

vocal basin
#

also zefir

vocal basin
digital wharf
#

😐

short owl
#

pizzzzza is savory and cheesy gooey , thems the rules

vocal basin
#

broccoli pizza

#

cauliflower pizza

#

these I've tried

short owl
#

feta cheese pizza is good

vocal basin
#

very spicy pepperoni covered in caramel was not something I could eat

short owl
#

worchestshire is good in soups , stews

late spoke
rugged root
#

@upper basin Trying to finish something for work

upper basin
vocal basin
rugged root
#

You're not bothering, I just need to finish this, that's all

vocal basin
short owl
#

did you ever make a pizza in a pan ? @gentle flint

vocal basin
#

rewrite it in Haskell

#

lazy evaluation out of the box

#

concise language

#

Python can indeed be forced into lazy evaluation quite well

#

!e

print((lambda: lambda f: lambda: (lambda: lambda x: lambda: f()(x()(x))())()(lambda: lambda x: lambda: f()(x()(x))())())()(lambda: lambda g: lambda: lambda x: lambda: 1 if x() == 0 else x() * g()(lambda: x() - 1)())()(lambda: 100)())
wise cargoBOT
vocal basin
#

I wonder if it can do 10000

#

!e

print((lambda: lambda f: lambda: (lambda: lambda x: lambda: f()(x()(x))())()(lambda: lambda x: lambda: f()(x()(x))())())()(lambda: lambda g: lambda: lambda x: lambda: 1 if x() == 0 else x() * g()(lambda: x() - 1)())()(lambda: 10000)())
#

I guess not

#

ah, right, recursion

#

!e

print((lambda: lambda f: lambda: (lambda: lambda x: lambda: f()(x()(x))())()(lambda: lambda x: lambda: f()(x()(x))())())()(lambda: lambda g: lambda: lambda x: lambda: 1 if x() == 0 else x() * g()(lambda: x() - 1)())()(lambda: 1000)())
#

uh

#

I'm too lazy to add recursion limit thing

#

!d sys.setrecursionlimit

wise cargoBOT
#

sys.setrecursionlimit(limit)```
Set the maximum depth of the Python interpreter stack to *limit*. This limit prevents infinite recursion from causing an overflow of the C stack and crashing Python.

The highest possible limit is platform\-dependent. A user may need to set the limit higher when they have a program that requires deep recursion and a platform that supports a higher limit. This should be done with care, because a too\-high limit can lead to a crash.

If the new limit is too low at the current recursion depth, a [`RecursionError`](https://docs.python.org/3/library/exceptions.html#RecursionError) exception is raised.

Changed in version 3\.5\.1: A [`RecursionError`](https://docs.python.org/3/library/exceptions.html#RecursionError) exception is now raised if the new limit is too low at the current recursion depth.
vocal basin
#

left as an exercise for the reader

#

I'm not using tail call optimisation there because I can't

#

it's not that esoteric

#

quite consistently written

vocal basin
#

you can simplify it and end up with a more esoteric version

#

(lambda: ...)()

#

(this appears there)

#

"practical food?? have you seen the prices???"

#

can be reused as white paint afterwards

#

both

#

cheese pizza cheese topping cheese
in that order

#

what about open bakeries at 2 a.m.

#

in case someone wakes up from acute bread deficit

#

truly an emergency

gentle flint
gentle flint
#

for this reason I keep a small supply of par-baked bread rolls

rugged root
#

Like....

Switches: Optical Infrared Mechanical switches provide maximum speed and reliability, with no missing or double letters, and an extraordinary feel.

Tactile – Tactile feedback with a quiet operation for a satisfying feel.
Clicky – Tactile feedback and a soft-click sound for a great typing experience.
Linear – A smooth Linear feedback with a quiet operation.

vocal basin
#

I think I have tactile, doesn't seem clicky

split field
#
rugged root
#

That's the one I use

vocal basin
#

funny gap

rugged root
vocal basin
#

nothing is quiet when I type on it

rugged root
#

Blues are click, Browns are tactile, Reds are linear

vocal basin
#

this one is not that bad

#

I think it's something like 4mm

#

it's a very good keyboard

#

especially compared to other logitech products

#

(in terms of double clicks and stuff)

#

((does not have those))

#

logitech has severe radio issues on every wireless thing it has

#

(almost)

rugged root
#

Range wise or

whole bear
#

ah yes

#

another day another 10 minute period

#

this is 4DOS on another account btw

rugged root
#

It's a step in the right direction

#

Wait why use another one?

whole bear
#

ummm idk

#

different devices

vocal basin
#

@gentle flint @devout kelp for async embedded, Rust

#

micropython asyncio is very limited

#

it's basically just TCP I think

#

and sleep

rugged root
vocal basin
#

it makes sense when you do different parts of media on different devices

#

video/audio

#

audio in/audio out

#

etc

whole bear
vocal basin
#

you can have a single account in different servers' VCs

whole bear
#

yea but not same one

vocal basin
#

yes

buoyant drum
#

yeah

amber raptor
vocal basin
#

video on one device, audio on the other is the common one

whole bear
#

^

#

not that I actually have a use case

#

haha

vocal basin
#

pappycat

vocal basin
robust bone
#

does anyone have worked on Emails sending python projects ?

rugged root
robust bone
#

worked with python libraries or api keys for sending emails managing them

#

I'm a student

#

0$

#

Brevo !

#

they provide 300 emails per day for free feature

rugged root
#

Neat

robust bone
#

I'm working on a internship project

#

Its about sending Bulk mails at once !

#

in the document they are expecting it to be better then Gmail in management of sending bulk emails

amber raptor
robust bone
amber raptor
rugged root
#

So the switch brands I'm looking at are:

  • Gateron
  • Kailh
  • Akko
  • Otemu
#

Now to look through them, check prices, etc

merry cargo
#

@rugged root can you please voice verify me i cant speak in here please

#

yes i do

#

yo bro cause i been in here so i had to leave the server and join back my stuff was messed up bro thats why

#

its ok man thanks tho bro

#

im just trying to learn how to code brody

whole bear
#

its okay bro we can wait our time

#

i love rats

#

:)

rugged root
merry cargo
whole bear
#

a rat hitting the griddy

merry cargo
#

i hate rats bru

whole bear
#

would you like me to send you one?

#

:)

merry cargo
#

let me see

whole bear
#

u promise you'll open it as administrator?

merry cargo
#

yessir

whole bear
#

just kidding

#

❤️ 🙂

merry cargo
#

text me on dms rq

gentle flint
#

keychron

rugged root
whole bear
#

this what i using rn

late spoke
whole bear
#

i would cry having to use this

#

two sets of arrow keys though?

#

ah

merry cargo
#

that keyboard is not it gang

#

lol

#

wtf

tepid mantle
late spoke
whole bear
#

which control do you use the most

late spoke
#

its good for niche use cases

whole bear
#

but your pinky wouldn't be above shift

merry cargo
whole bear
#

the left pinky is all the way lower left

#

ohhh i see

#

where's tab

late spoke
merry cargo
#

im brand new to coding brother so ye lol

whole bear
#

wa alaykom asalam wa rahmatolahee wabarakato

split field
late spoke
merry cargo
late spoke
#

cool

merry cargo
#

yessir wbu

whole bear
#

he's using that mouse with a different limb

late spoke
#

India .. we have a lot of Afghanis here in New Delhi

merry cargo
#

help me out bro lol im brand new but im living in california

late spoke
#

you can ask specific questions, I would answer if its something I know

tepid mantle
whole bear
#

alt tabbing on your keyboard seems like hell @rugged root

merry cargo
wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @split field until <t:1731440074:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

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

rugged root
#

!unmute 540373904401629185

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction timeout for @split field.

late spoke
whole bear
#

I only see two alts on the left and right corners, i thought that was spacebar

merry cargo
late spoke
#

1-2 years at trying bunch of things, tutorials .. courses.. etc .. and that feeling will go away

whole bear
#

^ just gotta keep coding

#

and not talking on discord >:)

late spoke
#

best help I can offer is this advice: "take baby steps" .. one by one.. try a few tutorials.. courses or read books..

#

people build skills slowly

#

thats life

merry cargo
#

where do i find the tutorials bro

late spoke
#

youtube

merry cargo
#

thankls brother

late spoke
#

edx, coursera are good for courses

merry cargo
late spoke
merry cargo
rugged root
#

Crap, back later

late spoke
merry cargo
#

oh ok ok sounds good bro

#

how long did it take you to code this SOMEAB

#

it looks like a lot of work mane

#

lol

late spoke
#

thanks for the company everyone.. I gotta sleep.. will be back tomorrow 🙂

merry cargo
#

talk to you tommorrow brother

#

bye

karmic rain
#

@somber heath hello :/

quiet sleet
karmic rain
#

@somber heath what you think about bracket notation for objects

somber heath
#

@dim folio 👋

dim folio
#

hi

#

im new

somber heath
#

@distant zephyr 👋

#

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

karmic rain
#

like adding a value in object

#

yes

whole bear
#

hello

#

just vc hopping

#

dont mind me

#

whats up in here

#

spectacular

#

i still need to wait 3 days

#

ill see you in 2

#

you alone are the appetizer main dish and dessert alone

karmic rain
#

see you soon guys

#

:/

sly tinsel
#

Hello?

#

Do you guys help with code?

#

It's the 1st problem in python-help if you can check it out

somber heath
#

@hidden sorrel 👋

somber heath
#

Echidna

somber heath
#

@drifting sable 👋

drifting sable
#

hi

plush ether
somber heath
#

@plucky mason 👋

plucky mason
#

@somber heath Heey

upper basin
#

@rugged root Hemlooock, wanna see my new fix for the issue I mentioned yesterday?

#

Also, best of mornings to you sir.

plush ether
#

@upper basin I need to drop 50 msgs

#

I have left something 7-8

upper basin
#

I see.

plush ether
#

Okayy

upper basin
#

How's your day going?

#

What do you mean?

#

You mean taped?

#

Oh, yeah. Taped.

plush ether
upper basin
#

Mine's almost ending.

plush ether
upper basin
#

No worries.

#

I have a meeting later at midnight, but pretty much same ol same ol.

plush ether
upper basin
#

9:43 pm.

plush ether
upper basin
#

Yeah.

plush ether
upper basin
#

Most of my meetings are at night, due to the timezone difference with US, UK, and Canada.

upper basin
#

Do you have a python question, or just hanging out?

plush ether
#

Ai internship is better or web dev??

upper basin
#

Depends on which you prefer.

#

I think job wise web dev is better.

plush ether
#

Okayy thankyou

upper basin
#

My pleasure.

plush ether
exotic adder
#

yo

#

its 10th msg

#

A

#

B

#

C

#

D

#

E

#

F

#

G

#

H

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @exotic adder until <t:1731510295:f> (10 minutes) (reason: burst spam - sent 8 messages).

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

peak siren
#

!unmute 1291805928370208778 spamming to get voice gate is not allowed. I'll unmute you from chat but you'll be blocked from voice for 2 weeks

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction timeout for @exotic adder.

terse rose
exotic adder
#

Someone find a sollution for this!

lusty cape
#

how can i get verified

#

is there an easier way?

plush ether
#

I felt like I waited so long

rugged root
#

@cosmic chasm I know a bit about GODOT

cosmic chasm
#

its just my game won't seem to work

#

the camera2D i added seemed to fluff it up

#

if it is can u join code/help

#

yeah that would be awesome

#

like coding?

rugged root
cosmic chasm
#

thx

rugged root
cosmic chasm
#

mr hemlock. could u do me a favor and just see if you can help me w/ a quick fix?

verbal wind
#

grub2-win?

rugged root
#

Seems to be that

toxic arch
#

just 8 mb?

rugged root
#

If only

toxic arch
#

i use arch linux with cinnamon

#

why not just run it off a usb to play around it?

#

live boot

#

if you set up ventoy, you can just put isos

#

but ventoy installation wipes it

rugged root
#

Huh, I hadn't actually heard of ventoy

toxic arch
#

Ventoy is an open source tool to create bootable USB drive for ISO files. With ventoy, you don't need to format the disk again and again, you just need to copy the iso file to the USB drive and boot it.

#

it doesnt work with mixing efi and bios isos

#

you need to use ethier efi or bios

rugged root
#

Are those mutually exclusive?

toxic arch
#

because ventoy makes a boot partion with its gui,the isos needs to match that boot method, im not sure how it works really but you just cant mix efi and bios isos on the same usb

#

bye bye i gtg work on me project

short owl
#

saw a chick with 2 pet chickens , slept on her shoulder or chair , they dont do much

rugged root
#

Nope, not really

#

Like guinea pigs

short owl
#

havent looked at GODOT for long time , will look at server

lime fractal
short owl
#

has anyone ever updated a potentially damaged BIOs image with the special UBB port on some new motherboards ?

rugged root
#

I feel like I have

short owl
#

I was given a motherboard while back ( I suspect he static zapped it he wont tell ) BUT from what I remember , it had a special USB port to do BIOS updates via data stick bla bla , I will revisit it , also great to see the GODOT room link

#

I met a CISCO network engineer , he was building fences for a living ... theres the clue @steep vortex

lime fractal
#

That good

rugged root
#

Good good

#

Yeah

short owl
#

Older secretaries know how to do all that awful paper work nightmares

#

most good plumbers are at 100K plus and more

#

tons of work

upper basin
#

Get chills boys.

short owl
#

did you ever build a small local network to do experiments on hands learning ( Linux , Windozze ) @steep vortex

#

you can inherit old equipment , routers ... switches and do linux , python network stuff .. lots to learn for security , especially IOT stuff @steep vortex

#

most city infrastructure is IOT , and needs security setups

#

talk to every one you know , they will know some one with a garage or closet with a box , full of old Linksys routers , laptops ... start aquiring like a squirrel and rebuild stuff @steep vortex

rugged root
#

@fervent pine Yo

upper basin
#

Hemlock, have you seen Secret Level?

fervent pine
#

hellloo

short owl
#

have a big box of scrap ether cable , learn to fix them for your setup

fervent pine
#

i got no perm

upper basin
#

It's gonna be insane.

rugged root
#

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

fervent pine
#

oh okay

rugged root
#

Pressing the button should tell you what criteria you're missing if any

fervent pine
#

got it

wind raptor
#

You must pass the trial of the Hem-gate.

fervent pine
#

need to be active

rugged root
#

Hold on, let me get the combat bears ready...

upper basin
short owl
#

saw a hour of bear attack videos , teddy bears they are not @rugged root

upper basin
#

It's just a bear with a beard.

rugged root
#

Bear'd

upper basin
#

HAH

#

Bear'd watch out.

short owl
#

dont old lions get beards

#

some old doggys get beards even turn white

upper basin
#

If lions were human, would they just be dudes with massive neck beards?

#

Plome: "I shall not admit defeat, thus I have no regrets."

rugged root
#

Hadn't heard of that

short owl
#

go to maker spaces - specialize in a area - Networks ? - and soon you will be busy learning , aquiring parts @steep vortex

#

raspis have ether , can run linux , use something like , PFsense , Opensense for network management @steep vortex

rugged root
#

There's some cool things I hadn't seen before

upper basin
#

The crossfire one is basically Call of Duty Modern Warfare and I'm all for it.

rugged root
#

Haven't looked into them further yet, but some names that came up:

  • Cisco Packet Tracer
  • GNS3 (Graphical Network Simulator-3)
  • EVE-NG (Emulated Virtual Environment - Next Generation)
  • Boson NetSim
  • Mininet
  • CORE (Common Open Research Emulator)
short owl
#

a shitbox car is safer than any motorbike

#

if you aquire the final stone for your gauntlet and become ADMIN @rugged root

#

Thanos snap - Hemlock snap

rugged root
#

Copilot, actually

short owl
#

heres how Elon Musk answered same question , find a problem out there , and solve it - you will learn tons @steep vortex

rugged root
#

It was closer at hand