#voice-chat-text-0

1 messages ยท Page 148 of 1

vocal basin
#

@verbal zenith is cur reference?

#

wait

#

wrong stream

#

can you show the code again?

#

@verbal zenith why does only one have ; val?

vocal basin
#

what?

#

now -- yes

#

I don't know

#

except for "exploring ways to solve problems with data rather than algorithms", maybe
(this is closer to being actually beneficial)

#

it should've been worse

#

or, like, other people should've been better

vocal basin
#

test successful

#

nothing

#

(and that might an issue)

#

((will I ever try to solve it? likely not))

#

there's no definitive deliberate choices, it's all stochastic
(because I can't manage it)

#

that's known empirically; not aware of any direct causes

#

I just wasted a couple minutes on manually sorting this

viscid lagoonBOT
#

stupefied or excited by a chemical substance (especially alcohol)

vocal basin
viscid lagoonBOT
#

stupefied or excited by a chemical substance (especially alcohol)

vocal basin
echo garden
#

alright people im going to bed early af good night

vocal basin
#

(I still don't understand how to solve the task other than brute-force)

#

can hear

#

solving all easy before attempting to solve hard seems wrong

#

first, one task being harder than another is dynamic/subjective/etc.

somber heath
#

I feel special.

vocal basin
#

solving easy problems reduces difficulty floor for hard ones way faster than difficulty ceiling for easy ones;
one easy problem enables some another hard one, almost always;
easy ones are clustered in such way that one cluster doesn't help with another;

somber heath
#

I am both the devil and coconut icecream...I shall muse on this.

#

Oh yes.

#

Coconut oil?

#

Someone throw a coconut at you and you deserved it?

#

I'm indifferent to hearing the story, but the more you tease it, the more my curiosity is piqued.

#

Nineteen-Eighty-Four.

#

Especially in a stiff breeze.

#

@acoustic eagle ๐Ÿ‘‹

#

DO IT TO JULIA! DO IT TO JULIA!

vocal basin
# vocal basin

I gave up
I read the editorial solution['s complexity asymptotics]
they're just as bad

#

sounds like the time difference is just a constant

somber heath
#

Oh, yes. I blocked you but just happen to be able to divine what you're saying and respond to it.

#

Makes sense.

#

@floral tundra ๐Ÿ‘‹

#

I'd advise the keeping of a respectable distance.

#

@jade badger ๐Ÿ‘‹

jade badger
#

hey

#

mic is on mute for some reason

#

@somber heath how do I unmute?

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.

jade badger
#

!voice

#

!voice

#

!voice

#

!voice

#

why is not working

#

!voice

#

oh ok

#

!voice

#

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

@scarlet depot ๐Ÿ‘‹

wet bluff
#

hello would i be able to get some help to understand the values i, n, f

scarlet depot
#

what`s i,n,f?

wet bluff
#

yes

#

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

wet bluff
#

here it is

#

yes

#

oh it it refering to the columns

somber heath
#

!e py a, b, c = [1, 2, 3] print(a) print(b) print(c)Variable unpacking. The unpacking of an iterable object into separate variables.

wise cargoBOT
#

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

001 | 1
002 | 2
003 | 3
wet bluff
#

ok

#

'''py

somber heath
#

!e py a = 1 b = 2 c = 3 print(a, b, c)The print function can take an arbitrary number of positional arguments.

wise cargoBOT
#

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

1 2 3
somber heath
#

!e py for a, b, c in [[1, 2, 3], [4, 5, 6], [7, 8, 9]]: print(a, b, c)

wise cargoBOT
#

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

001 | 1 2 3
002 | 4 5 6
003 | 7 8 9
somber heath
#

Variable unpacking with a for loop.

#

a goes to 1, b goes to 2, c goes to 3

wet bluff
#

so the a, b , c is the columns
and the 1, 2, 3 is the rows

somber heath
#

a goes to 4, b goes to 5, c goes to 6

#

a goes to 7, b goes to 8, c goes to 9

wet bluff
#

so when i would put it into the code and i want to print the values of column a, b, c, d, e, f and g i would put that in insted of i, n,f?

scarlet depot
#

for row in csvreader_list:

#

print(row[0],row[1],row[2])

wet bluff
#

yes so if i want to display the rows of a, b, c, d, e, fa and g i would replace i, n and f with a, b, c, d, e, f, g??

#

probaly AUD

#

sorry aus

somber heath
#

!e py rows = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] for a, b, c in zip(*rows): print(a, b, c)

wise cargoBOT
#

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

001 | 1 4 7
002 | 2 5 8
003 | 3 6 9
somber heath
#

!e py for abc in zip([1, 2, 3], [4, 5, 6], [7, 8, 9]): print(abc)

wise cargoBOT
#

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

001 | (1, 4, 7)
002 | (2, 5, 8)
003 | (3, 6, 9)
somber heath
#

!e py letters = 'abc' numbers = '123' symbols = 'โˆšฯ€รท' for each in zip(letters, numbers, symbols): print(each)

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', 'รท')
wet bluff
#

so if i want to display rows a, b, c, d, e, f, g in my excel sheet how would i do that in code?

somber heath
#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

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

Run Python code and get the results.

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

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

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

By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.

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

wet bluff
#

its list reader

#

I am trying to understand teh code so i can use it

#

sorry the

#

ok

wet bluff
#

ok

somber heath
#
[[1, 2, 3],
 [4, 5, 6],
 [7, 8, 9]]```
wet bluff
#

So a holds 1,4 amd 7 amd b hold 2, 5, and 8, and chold 3, 6, and 9?

somber heath
#

!e py for row in [[1, 2, 3], [4, 5, 6], [7, 8, 9]]: print(row)

wise cargoBOT
#

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

001 | [1, 2, 3]
002 | [4, 5, 6]
003 | [7, 8, 9]
somber heath
#

!e py for r, o, w in [[1, 2, 3], [4, 5, 6], [7, 8, 9]]: print(r, o, w)

wise cargoBOT
#

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

001 | 1 2 3
002 | 4 5 6
003 | 7 8 9
somber heath
#

r to 1 o to 2 w to 3

#

r to 4 o to 5 w to 6

#

r to 7 o to 8 w to 9

wet bluff
#

so when you look at an excel file as the csv what would that look like?

vocal basin
#

excel has export thingy

limber copper
#

import pandas as pd
data = pd.read_csv('name_of_csv.csv')
# Show first five lines of data
print(data.head())```
somber heath
#
name,age,food
Peter,17,apple
Sally,18,pear
Grover,60,banana```
#

"

vocal basin
#

a symbol

wet bluff
#

ok

vocal basin
#

not a newline

wet bluff
#

i am going to go bye

limber copper
#

thanks

vocal basin
#

syntax highlighting doesn't know how to ignore space

somber heath
#

@uncut acorn ๐Ÿ‘‹

uncut acorn
#

hi

#

why am i suppressed?

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.

uncut acorn
#

ah thx

somber heath
#
lspci -nn```
zenith radish
#

aplay -l

ebon mist
somber heath
#

@steep juniper Was it you who was asking for help?

zenith radish
#
apt list --installed | grep "linux-modules-extra"```
#
sudo apt install linux-modules-extra-`uname -r` ```
ebon mist
#

SORRY

zenith radish
#

STOP APOLOGZING

ebon mist
#

phone dead

zenith radish
#

take ur time

#

run the things

#

this one

zenith radish
#

just charge it

#

give it some time

#

after you charge your phone

#

just film ur screen

#

gimme a sec

#

inxi -A

#

run this

#

install this deb file

#

lmao

ebon mist
#

wich??

zenith radish
#

There's only one

#

Also I didn't see the inxi output

#

show me the term

#

do archive maanger

#

whatever

ebon mist
#

done

zenith radish
#

can you show me the output of inxi -A

#

and then install the deb file

#

then like

#

restart your computer

#

okay

#

that's good

ebon mist
#

ok.

zenith radish
#

any diff?

ebon mist
#

no

zenith radish
#

I see wifi still works

#

the fuck

#

inxi finds your devices

#

it should be available in pulse

#

uhh

#

sec

#

do like

#

sudo apt install amixer

#

share screen

#

and run amixer

ebon mist
#

perm?

zenith radish
#

yep

#

sec

wind raptor
#

!stream 360284932469293056

wise cargoBOT
#

โœ… @ebon mist can now stream until <t:1686978471:f>.

zenith radish
#

dude it should be working

#

the icon at the top

#

there's a volume thing

#

see if it's like

#

muted or smth

#

undeafen in discord

#

does it work?>

ebon mist
#

no sound

zenith radish
#

try youtube or something

#

as far as your os is concerned it should be working

#

Oh I see

#

it's dummy output

#

nvm

#

try amixer

#

oh

#

it's

#

alsa-utils

#

@ebon mist

#

๐Ÿ˜ฎโ€๐Ÿ’จ

#

can you install some kind of vnc software?

ebon mist
#

??

zenith radish
#

fuckin

#

teamviewer or something

#

oh shit

#

lemme get it

#

sec

#

bro

#

dm it

#

xd

#

whatever

cunning monolith
#

userData=new userDetails(req.body)
var respond=await userData.loginEmail()
res.send(respond)

whole bear
#

@wind raptor sorry to bother but what's goin' on?

lavish rover
long iron
turbid sandal
somber heath
limber copper
verbal zenith
#
>>> def dict(**kwargs) => kwargs
<function dict: <repl>:1:1>
>>> dict(a:1,b:2,c:3)
{"c": 3, "a": 1, "b": 2}
>>> def add(a,b) => a+b
<function add: <repl>:1:1>
>>> add(**dict(a:1,b:5))
6
>>> 
#
>>> class test { static def add(a,b) => a+b }
<class test: <repl>:1:1>
>>> class other(test) {}
<class other: <repl>:1:1>
>>> other.add(1,2)
3
>>> 
#
>>> class test:
...     def add(a,b): return a+b
...
>>> test.add = lambda a: a+1
>>> test.add(1)
2
robust lichen
#

m => (

verbal zenith
#

g/m => (

somber heath
#

!e ```py
class MyClass:
def my_method(self):
print('A')

def my_replacement(self):
print('B')

instance = MyClass()
instance.my_method()
MyClass.my_method = my_replacement
instance.my_method()```Monkey patching. Stinky, stinky monkey.

wise cargoBOT
#

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

001 | A
002 | B
verbal zenith
#

hello world

somber heath
#

!e ```py
class A:
def init(self):
print('Hello, world.')

def my_method(self):
    print('A')

class B(A):
def my_method(self):
print('B')

a = A()
b = B()
a.my_method()
b.my_method()```Inheritance.

wise cargoBOT
#

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

001 | Hello, world.
002 | Hello, world.
003 | A
004 | B
orchid mauve
#

\

somber heath
#

@zenith radish You know that mono bullshit I was trying to get to work?

#

gif relevant

last wadi
#

!voiceverify

#

oops

#

eh I haven't sent 50 messages yet :0

#

here's a cat for you all to enjoy so you stay happy and motivated^^

#

oh okay see you all i guess

obsidian dragon
turbid sandal
turbid sandal
#

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

turbid sandal
#

this @misty berry

#

qg("1","+","1","2")

warped raft
#

@turbid sandal , @lucid cove hello

#

also @misty berry

#

i can i don't want to

#

what

lucid cove
#

opencv

warped raft
#

no

#

i don't know that

#

java

#

because it is more like a programming community than a python community

#

and also i have completed the basics of python

#

@lucid cove have you turned on your krisp suppression

#

@turbid sandal whose problem

#

@lucid cove are you talking to someone else

#

you are Indian right @lucid cove

#

congrats we are stuck in the same boat

#

what are you doing rn

#

up

#

uttar pradesh

#

i recommend everyone to hear this song once https://www.youtube.com/watch?v=4BpcqBCYrpE

Listen to "I Will Be The Best" on any platform HERE: https://ffm.to/iwillbethebest

GET TICKETS TO MY FALL 2023 WORLD TOUR ๐Ÿค˜๐Ÿ”ฅ: https://www.neffexmusic.com/tour

***THIS IS MY 100TH COPYRIGHT-FREE SONG IN THE LAST 100 WEEKS. THANK YOU TO EVERYONE WHO HAS SUPPORTED ME ON THIS JOURNEY, AND MANY OF YOU WHO HAVE BEEN WITH ME GOING BACK TO 2016. I LOV...

โ–ถ Play video
#

@lucid cove would you like to check my github account

#

Listen to "I Will Be The Best" on any platform HERE: https://ffm.to/iwillbethebest

GET TICKETS TO MY FALL 2023 WORLD TOUR ๐Ÿค˜๐Ÿ”ฅ: https://www.neffexmusic.com/tour

***THIS IS MY 100TH COPYRIGHT-FREE SONG IN THE LAST 100 WEEKS. THANK YOU TO EVERYONE WHO HAS SUPPORTED ME ON THIS JOURNEY, AND MANY OF YOU WHO HAVE BEEN WITH ME GOING BACK TO 2016. I LOV...

โ–ถ Play video
#

sorry

#

this is one of the project

#

there are total six of them

#

i am still a learner

#

there is someone

#

wait

#

there is @turbid sandal

#

ok

#

then bye

#

see you later

midnight quarry
viscid lagoonBOT
#
Wikipedia Search Results

Timeline of the Joe Biden presidency
Joe Biden, a Democrat from Delaware, was elected President of the United States on November 3, 2020. He was inaugurated on January 20, 2021, as the nation's

Inauguration of Joe Biden
Joe Biden as the 46th president of the United States took place on Wednesday, January 20, 2021, marking the start of the four-year term of Joe Biden as

versed mesa
#

@echo garden hey man i want help??

noble solstice
cinder dawn
#

hola

#

@echo garden what did i walk in on

fossil anvil
#

i got a question who is good at beautiful soup

cinder dawn
#

shoot

fossil anvil
#
from bs4 import BeautifulSoup
# downloads page information from timesjobs.com
url = requests.get('https://www.timesjobs.com/candidate/job-search.html?searchType=personalizedSearch&from=submit&txtKeywords=python&txtLocation=').text

# parses it in lxml
soup = BeautifulSoup(url, 'lxml')

jobs = soup.find_all('li', class_='clearfix job-bx wht-shd-bx')
for job in jobs:
    date = job.find('span', class_='sim-posted').span.text
    if 'few' in date:
        skills = job.find('span', class_='srp-skills').text.strip()
        company_name = job.find('h3', class_='joblist-comp-name').text.strip().replace('(MoreJobs)', '')
        more_info = job.header.h2.a['href']
        years_of_experience = job.find('i', class_='material-icons').string
        print(f'\nCompany Name: {company_name.strip()}')
        print(f'Required Skills: {skills.strip()}')
        print(f'links: {more_info}')
        print(f'years of experience: {years_of_experience}')
        print('' '')``````
#

the problem i have is that i'm trying to find the years of experience on the jobs

sour willow
#

yo wassup guys

fossil anvil
#

but i'm not getting the desired text that i want

sour willow
#

hello ap, gofek, lx, opal

#

yo lx how was ur coffee?

fossil anvil
#

it keeps giving me card travel but i want the years of experince that are in quotation marks

fossil anvil
#

nvm fixed the problem

verbal zenith
#

drunk skating tsk tsk

turbid sandal
#

text

echo garden
cinder dawn
echo garden
#

bloominwick

#

you ran it?

echo garden
cinder dawn
echo garden
#

do you wish to run the code? and do you understand what Tensors are?

echo garden
echo garden
# cinder dawn yes :))

well its visualization of a tensor in 3d space and each point in that pace i believe is also a tensor,

turbid sandal
echo garden
vocal basin
#

(for this to work)

turbid sandal
cinder dawn
#

good morning

#

i do i jus dont talk

#

nah nah i jus dont talk lol

cinder dawn
vocal basin
#

randomly encountered in a game
took me ~10 seconds to recall how to do it

#

with double check, yes

#

in that specific case it wasn't a guaranteed checkmate but it was at least winning a rook

#

(the opponent successfully saved the rook)

turbid sandal
#

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

turbid sandal
#
class Question:
    def __init__(self, question: str = "nothing to see here...") -> None:
        self.question = question

    def ask (self) -> str:
        question = self.question
        print(question)
        self.answer = input("Answer: ")
        return self.answer

def qg(question : list[str] = ["1","+","1","2"]):
    qustion = Question(f"What is {question[0]}{question[1]}{question[2]}?")
    answer = qustion.ask()
    if answer == question[3]:
        print("Correct")

def StartQuiz():
    print("Mathematical Questions")
    print("")
    print("/--\  |  |  |  ----")
    print("|  |  |  |  |    /")
    print("\--/   __   |  ----")
    print("")
    question1 = Question("What is your name?")
    name = question1.ask()
    print(f"Great to meet you {name}!")
    question2 =  Question(f"What is your age {name}?")
    age = question2.ask()
    qg(["78","-","34","44"])
    qg(["92","*","17","1564"])
    qg(["144","/","12","12"])
    qg(["56","+","27","83"])
    qg(["63","-","28","35"])
    qg(["81","*","3","243"])
    qg(["90","/","6","15"])
    qg(["68","+","47","115"])
    qg(["24","-","17","7"])
    qg(["58","*","23","1334"])
    qg(["96","/","8","12"])
    qg(["37","+","14","51"])
    qg(["79","-","45","34"])
    qg(["62","*","5","310"])
    qg(["98","/","7","14"])
    qg(["53","+","32","85"])
    qg(["41","-","19","22"])
    qg(["86","*","9","774"])
    qg(["108","/","12","9"])
    qg(["72","+","54","126"])
    qg(["39","-","25","14"])
    qg(["67","*","7","469"])
    qg(["84","/","4","21"])
    qg(["71","+","39","110"])
    qg(["57","-","36","21"])
    print("Well done for completing the test!")   
StartQuiz()
vocal basin
#

question should be tuple[str, str, str, str] not list[str]

#
  1. fixed length
  2. immutable
turbid sandal
#
class Question:
    def __init__(self, question: str = "nothing to see here...") -> None:
        self.question = question

    def ask (self) -> str:
        question = self.question
        print(question)
        self.answer = input("Answer: ")
        return self.answer

def qg(question : list[str] = ["1","+","1","2"]):
    qustion = Question(f"What is {question[0]}{question[1]}{question[2]}?")
    answer = qustion.ask()

    if answer == question[3]:
        print("Correct")

    else:
        print("Incorrect")
        qg(question)
        
def StartQuiz():
    print("Mathematical Questions")
    print("")
    print("/--\  |  |  |  ----")
    print("|  |  |  |  |    /")
    print("\--/   __   |  ----")
    print("")
    
    question1 = Question("What is your name?")
    name = question1.ask()
    
    print(f"Great to meet you {name}!")
    
    question2 =  Question(f"What is your age {name}?")
    age = question2.ask()
    
    qg(["78","-","34","44"])
    qg(["92","*","17","1564"])
    qg(["144","/","12","12"])
    qg(["56","+","27","83"])
    qg(["63","-","28","35"])
    qg(["81","*","3","243"])
    qg(["90","/","6","15"])
    qg(["68","+","47","115"])
    qg(["24","-","17","7"])
    qg(["58","*","23","1334"])
    qg(["96","/","8","12"])
    qg(["37","+","14","51"])
    qg(["79","-","45","34"])
    qg(["62","*","5","310"])
    qg(["98","/","7","14"])
    qg(["53","+","32","85"])
    qg(["41","-","19","22"])
    qg(["86","*","9","774"])
    qg(["108","/","12","9"])


    print("Well done for completing the test!")   
StartQuiz()
vocal basin
#

!pep8

wise cargoBOT
#
PEP 8

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:
โ€ข PEP 8 document
โ€ข Our PEP 8 song! :notes:

turbid sandal
#

!list

wise cargoBOT
#
List comprehensions

Do you ever find yourself writing something like this?

>>> squares = []
>>> for n in range(5):
...    squares.append(n ** 2)
[0, 1, 4, 9, 16]

Using list comprehensions can make this both shorter and more readable. As a list comprehension, the same code would look like this:

>>> [n ** 2 for n in range(5)]
[0, 1, 4, 9, 16]

List comprehensions also get an if clause:

>>> [n ** 2 for n in range(5) if n % 2 == 0]
[0, 4, 16]

For more info, see this pythonforbeginners.com post.

limber copper
#
x = [78, 92, 144, 56, 63] #etc
w = [34, 17, 12, 27, 28, 3] #etc
answers = [44, 1563, 12, 83, 35, 243]
math_func = ['*', '-', '+', '/']

def question(quest_str: str, answer: str) -> str:
    human_answer = input(quest_str)
    actual_answer = answer
    if answer == human_answer:
      print("Correct")
    else:
      print("Wrong")
vocal basin
limber copper
#
import random


for i, item in enumerate(x):
  question(f'{x}{random.choice(math_func)}{w[i]}
#

but the answers wouldnt be the same if youre doing random

vocal basin
vocal basin
limber copper
#

Good point

turbid sandal
#
from random import randint as rand
class Question:
    def __init__(self, question: str = "nothing to see here...") -> None:
        self.question = question

    def ask (self) -> str:
        question = self.question
        print(question)
        self.answer = input("Answer: ")
        return self.answer

def qg(question : list[str] = ["1","+","1","2"]):
    qustion = Question(f"What is {question[0]}{question[1]}{question[2]}?")
    answer = qustion.ask()
    if answer == question[3]:
        print("Correct")
    else:
        print("Incorrect")
        qg(question)
        
def StartQuiz():
    print("Mathematical Questions")
    print("")
    print("/--\  |  |  |  ----")
    print("|  |  |  |  |    /")
    print("\--/   __   |  ----")
    print("")
    
    question1 = Question("What is your name?")
    name = question1.ask()
    
    print(f"Great to meet you {name}!")
    
    question2 =  Question(f"What is your age {name}?")
    age = question2.ask()
    
    for i in range(1, 30):
        number1 = str(rand(0,1000))
        number2 = str(rand(0,1000))
        match rand(1,4):
            case 1: operator = "+"
            case 2 : operator = "-"
            case 3 : operator = "*"
            case _: operator = "/"
        qg([number1 , operator, number2 , eval(number1 , operator, number2)])
    print("Well done for completing the test!")   
StartQuiz()
vocal basin
#

formatting the code properly makes it easier to read

#

if "no one's going to read it", don't send it
programs first and foremost are for humans not computers

#

why is qg recursive?

#

if someone answers the question incorrectly too much times, the program will crash

#
  1. while loop is simpler
  2. while loop works
#

recursion doesn't work here

#

you said "until the user inputs the correct result"

#

which does not describe your solution

#

"until the user inputs the correct result or the program crashes" is more appropriate

#

(even after formatting)

turbid sandal
vocal basin
#

just for context

TypeError: globals must be a real dict; try eval(expr, {}, mapping)
limber copper
vocal basin
#

steps to repeat this error:
press enter 1000 times

#

(or a little bit more)

turbid sandal
#
from random import randint as rand
class Question:
    def __init__(self, question: str = "nothing to see here...") -> None:
        self.question = question

    def ask (self) -> str:
        question = self.question
        print(question)
        self.answer = input("Answer: ")
        return self.answer

def qg(question : list[str] = ["1","+","1","2"]):
    qustion = Question(f"What is {question[0]}{question[1]}{question[2]}?")
    answer = qustion.ask()
    if answer == question[3]:
        print("Correct")
    else:
        print("Incorrect")
        qg(question)
        
def StartQuiz():
    print("Mathematical Questions")
    print("")
    print("/--\  |  |  |  ----")
    print("|  |  |  |  |    /")
    print("\--/   __   |  ----")
    print("")
    
    question1 = Question("What is your name?")
    name = question1.ask()
    
    print(f"Great to meet you {name}!")
    
    question2 =  Question(f"What is your age {name}?")
    age = question2.ask()
    for i in range(1, 30):
        number1 = str(rand(0,1000))
        number2 = str(rand(0,1000))
        match rand(1,4):
            case 1: operator = "+"
            case 2 : operator = "-"
            case 3 : operator = "*"
            case _: operator = "/"
            
        expression = f"{number1}{operator}{number2}"
        qg([number1 , operator, number2 , eval(expression)])
    print("Well done for completing the test!")   
StartQuiz()
languid hedge
#

ุงู‡

#

hi

limber copper
#

rbotos cnat raed tihs hewover a huamn's barin wlil raed tihs vrey qcukliy as lnog as the frist and lsat lteters are in the crorcet pacle

#

try it with random ordered words forming a sentence

turbid sandal
#

**|| The sentence you provided is an example of a widely circulated internet meme that demonstrates how the human brain can still understand words even if the letters within each word are jumbled, as long as the first and last letters remain in their correct positions. Here is the correct interpretation of the jumbled sentence:

"Robots can't read this. However, a human's brain will read this very quickly as long as the first and last letters are in the correct place."

Essentially, the meme highlights the remarkable ability of the human brain to comprehend words based on their overall shape and context, rather than relying solely on individual letter positions.||**

limber copper
limber copper
#
new_windows_filesystem = [
SFSIDKICNFGA
ouh on ooioc
mci no utnor
ekt tw l ddo
 i     d   n
 n         y
 g         m
]```
     @trail tusk
trail tusk
limber copper
#

read it down each uppercase letter is the acronym the lower case following in down is what it stands for

pulsar island
# turbid sandal

There are people who take gardening a bit too seriously, and then theres two levels up with this guy.

warped raft
#

hello @turbid sandal

#

how is it going

#

just stuck

#

i don't prefer

#

because my mother is in the same room as me

warped raft
#

yup i am wearing headset

#

i am not allowed to talk to strangers

#

let me walk you throught

#

this is India

turbid sandal
#

ok

warped raft
#

and here talking to someone rather than an Indian

#

is like

#

talking to some terriorist of al-qayeda

#

or something

#

that's the reason

#

you can continue talking

#

i can hear

#

what are you doing

#

are you wrking on something @turbid sandal

#

java

#

do you know any

#

i am aslo in a java server

#

but it is much more inactive than

#

this one

#

just a qestion

#

how did you get the moderator role

turbid sandal
#

. v n n nm mcv m nvbcnm, mbmnfc gbfjnkm. vnmbg

noble solstice
turbid sandal
#

@noble solstice you know don't you?

noble solstice
#

Only few people in vc today

warped raft
#

yeah from a few days

#

there is not a lot of movement here

noble solstice
#

and 2 are inactive and 1 is not able to tallk and 1 remaning is out of range

noble solstice
warped raft
#

i prefer not to disclose privater infromation
though i can give you a window 14-18years

noble solstice
#

You are too young

warped raft
#

for what

spiral jay
#

hello

#

y cant i tallk

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.

somber heath
#

@whole bear ๐Ÿ‘‹

whole bear
#

for some reason I do not have permission to speak

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
#

@storm nexus ๐Ÿ‘‹

turbid sandal
#

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

turbid sandal
#
from random import randint as rand
class Question:
    """ 
# Question class
A class for a Question object that has attribute Question 
and method ask which promts the user with the question in
the cmd and returns the answer (Input value (str))"""
    def __init__(self, question: str = "nothing to see here...") -> None:
        self.question = question

    def ask(self) -> str:
        question = self.question
        print(question)
        self.answer = input("Answer: ")
        return self.answer

def question_generator(question : list[str] = ["1","+","1","2"]):
    qustion = Question(f"What is {question[0]}{question[1]}{question[2]}?")
    answer = qustion.ask()
    
    if answer == question[3]:
        print("Correct")
    else:
        print("Incorrect")
        question_generator(question)
                
def start_quiz():
    """ 
# Start Quiz function
A function to start the maths quiz and generate the question """
    print("Mathematical Questions\n/--\  |  |  |  ----\n|  |  |  |  |    /\n\--/   __   |  ----\n")    
    question_1 = Question("What is your name?")
    name = question_1.ask()
    
    print(f"Great to meet you {name}!")
    
    question_2 =  Question(f"What is your age {name}?")
    age = question_2.ask()
    
    for i in range(1, 30):
        number1 = str(rand(0,1000))
        number2 = str(rand(0,1000))
        
        match rand(1,4):
            case 1: operator = "+"
            case 2: operator = "-"
            case 3: operator = "*"
            case _: operator = "/"
            
        expression = f"{number1}{operator}{number2}"
        question_generator([number1 , operator, number2 , eval(expression)])

    print("Well done for completing the test!")   
start_quiz()
storm nexus
#

function start_quiz shall have return type of None

#

question_generator too

somber heath
#

!e ```py
def func(arg=[]):
arg.append('*')
print(arg)

func()
func()
func()```

wise cargoBOT
#

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

001 | ['*']
002 | ['*', '*']
003 | ['*', '*', '*']
storm nexus
#

add doc string

turbid sandal
#

""" """

storm nexus
#

functions and classes

somber heath
#

!e ```py
def func():
"""Hello, world."""

print(func.doc)```

wise cargoBOT
#

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

Hello, world.
storm nexus
#

Nooo

#

some time docs save the day

#

yes like a markdown.

#

bye @turbid sandal

boreal copper
#

hi

#

i need help

#

yes

#

i can

#

i cant talk

#

i just joined the server

#

Thank you

#

can u help me with my code if you want

#

xD

#

true

#

i want fix this

#

is tkinter app

#

Monitor Devices in Local Network

#

Manufacturing Area WAPs

#

in a map

#

to know device where in map and status

#

with a log viewer

#

you help me

#

BTW you stream is not working for me

#

no its working

high token
#

Ayo

#

I can't unmute

#

gofek your mic is majestic

#

yes

#

lmao

boreal copper
high token
#

cool

#

what does it do

high token
#

nice

boreal copper
#
from tkinter import messagebox, ttk
from PIL import Image, ImageTk ```
@lunar haven
storm nexus
#

๐Ÿคฎ

whole bear
#

markdown

is

important

storm nexus
#

No

high token
boreal copper
#

like that @storm nexus ?

from tkinter import messagebox, ttk
from PIL import Image, ImageTk ```
storm nexus
whole bear
#

The advantages of using markdown

Markdown will make your text more readable, especially for source code:

import tkinter as tk
from tkinter import messagebox, ttk
from PIL import Image, ImageTk 

The disadvantages of using markdown

Typesetting might take more time and the big text might seem a bit spammy.

boreal copper
#
import tkinter as tk
from tkinter import messagebox, ttk
from PIL import Image, ImageTk 
#

thank you

#

i want speak ๐Ÿฅฒ

queen venture
#

I'm sorry, I came by mistake

boreal copper
#

free speech ๐Ÿ™

whole bear
boreal copper
queen venture
#

Thankful. XD

storm nexus
#

He said he came by mistake.

#

What are we trying to solve. Maybe I can help.

#

Hey

cyan gyro
#

hey whatsup

#

i'm good

#

for quick answer

#

๐Ÿ˜†

#

what are you doing right now?

#

do you know about dsa

#

in python

#

?

#

@lunar haven

#

data structures and algorithms

#

they are so important in python

#

for interviews

#

and big companies like google

trail herald
#

?

cyan gyro
#

facebook

pallid helm
trail herald
#

Tf

pallid helm
#

Tf

cyan gyro
#

soooo fuunny ha ha ha

trail herald
#

Idk man at 2am someone pinging

opaque willow
#

Yes ?

turbid sandal
#

@lunar haven ?

#

can you hear me? @lunar haven

#

can you hear me? @lunar haven

#

did you mute me?

#

can you hear me? @lunar haven
did you mute me?

crystal steppe
#

I don't have permission to speak XD

whole bear
#

One message removed from a suspended account.

turbid sandal
#

can you hear me? @lunar haven
did you mute me?

whole bear
turbid sandal
#

@lunar haven Please unmute me!

whole bear
#

heya man

#

I can't speak

#

not eligible :9

#

XD

#

naah

#

the discord server requirements

#

what are you doing ??

#

right now?

#

developer or something

cinder dawn
#

hello

#

im good

#

jus got back from work

whole bear
#

actually I'm new to this programming thing

cinder dawn
#

im a manager at starbucks lmao

whole bear
#

I mean programming actually

cinder dawn
#

everytime i see u code ur always in tkinter

whole bear
#

See ya man got to go

cinder dawn
#

why tkinter if u dont mind me asking

whole bear
#

Need to do my client work

#

Visual Arts

#

Nope

#

Gfx

cinder dawn
#

astrologist opened up a company in the first step of programming

whole bear
#

Vfx

#

3d arts etc

#

hex code?

cinder dawn
#

red blue green

whole bear
#

yellow?

#

yep

#

skull

#

Xd

cinder dawn
#

@lunar haven howve u spent your day

whole bear
#

primary huh

#

Red

#

Yellow

cinder dawn
#

62 80?

whole bear
#

And Blue I guess

#

yep

#

8-bit computer

#

XD

cinder dawn
#

astrologist clients waiting

#

๐Ÿ˜ญ

#

gofek when did u learn to code

#

noo when

#

like how long ago

#

no in total

#

over minthes

#

years

#

LMAO

#

ngl the way i learn code is i look at what ur doing and i copy you

dark mural
#

@lunar haven t-k-inter

#

Tk is a cross-platform widget toolkit that provides a library of basic elements of GUI widgets for building a graphical user interface (GUI) in many programming languages. It is free and open-source software released under a BSD-style software license.
Tk provides many widgets commonly needed to develop desktop applications, such as button, menu...

wind raptor
#

Hey @whole bear

whole bear
#

oops

#

i pinged you

#

in the other one

wind raptor
#

This is the chat for this channel

whole bear
#

oh

wind raptor
#

I know

whole bear
#

i see

wind raptor
#

lol

#

no worrie

#

s

whole bear
#

ive been trying to verify

#

some guy made me leave discord

#

and i had to change my alias

#

๐Ÿ˜ฆ

#

people were being mean

#

ywah

#

my old alias was darksy

#

ye

#

i had just verified like last week

#

or so

#

fr?

#

bet

#

this is /python

#

i think right

#

@whole bear

#

thats me

cinder dawn
#

@wind raptor dms

whole bear
#

@mind

#

oops?

#

will you be able to help w this????/

#

oh-

#

i can submit proof

#

๐Ÿ˜ญ

#

if needed

cinder dawn
#

@wind raptor dms

whole bear
#

how would i do that

#

@rapid crown

cinder dawn
#

@wind raptor dms

whole bear
#

yeah

#

@wind raptor

#

i got swatted

#

like

#

last week

#

for no reason

#

it keepps saying timed out

#

it wont send

#

for some reason

#

doxcord is a email proxy service designed to protect those who are in "com" from having their personal informaiton leaked through osint tools

#

basically email forwarding as a service

#

i had a website going but cant afford hosting ngl

#

@wind raptor

#

i gotchu

#

yeah

#

was letting you know

#

@whole bear

#

was trying to scam in my dms

#

๐Ÿ˜ญ

#

just blocked them

#

wanted to pay me to make a server backup tool then followed with paysafe or paypal and i waas like im good then blocked

#

why do people like scamming devs?

wind raptor
#

Looking into it

whole bear
#

with pleasure

#

embaressed i cant talk

#

๐Ÿ˜ญ

upper arch
#

hi

whole bear
#

@wind raptor

upper arch
#

I cant chat

#

in vc

whole bear
#

am i allowed to offer to make @molten panther a portfolio site for free?

#

i like working for free and like helping others

upper arch
#

I have one already that I made

wind raptor
wise cargoBOT
#
Voice verification

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

upper arch
#

I did that

whole bear
#

its still in the works

#

sadly

#

no need to click

#

you can jus

#

looka t the preview

upper arch
#

@lunar haven I can't chat in vc wanna just go on my server?

#

cool

#

whats a vps

#

or is that a typo?

whole bear
#

Virtual Private Server

#

its used for hosting, and just useful to have a OS you can SSH into

upper arch
#

cool

whole bear
#

made it for a friend

#

that sounds yum

#

whats your favorite blend?

#

coffee

cinder dawn
#

wait what happen ive been gone

#

ill show u

#

ill jus click it

#

im NOT schizophrenix

#

yes yes

#

no no

#

sorry for confusion

#

or over reaction

#

i jus did a 5:45am to 9:30 pm shift

#

thats intentional grabbing

#

like if its his website his website will take it automativally

#

true

#

darkside is an alien overlord

#

im an olympic athlete in getting my ip grabbed

#

if its not gonna take my ip i dont wanr ir

wind raptor
#

I don't click links in people's profiles

cinder dawn
#

alright im gonna go to sleep

cinder dawn
wind raptor
#

fair

#

It was called doxcord

#

it's not even trying to hide

#

lol

cinder dawn
#

what the frick do u think the orevious site even was

#

doxbin

#

its a place whre people upload doxes of celebs, internet creeps and people dont like

lucid blade
whole bear
#

??

violet plaza
#

for i in range(1,101):
    l100.append(i)
    print(l100)```
lucid blade
violet plaza
#

print("Get data from NASA")

vocal basin
#

There are three reactions to the title of this talk:

  • What the heckโ€™s a probabilistic data structure?
  • UFO Sightingsโ€ฆ wha?
  • 112,092 is an oddly specific number.

This is a talk about the first bullet point with the second thrown in just for fun. I like weird stuffโ€”UFOs, Bigfoot, peanut butter and bologna on toastโ€”maybe you do too? As far as ...

โ–ถ Play video
vocal basin
#

isn't that blitz?

#

right now I'm trying to find out what a strict definition of an AVL tree is

vocal basin
violet plaza
#
if usrinp.isdigit() and len(usrinp) <= 4:
   
violet plaza
#
if usrinp.isdigit() and len(usrinp) <= 4:
   

def guessnum():
    ```
#
def guessnum():
        for i in range(10000):
            print(i)

guessnum
vocal basin
#

btw, original AVL paper defines length (equivalent of height) of a null (empty) branch (subtree) to be 0 not -1

whole bear
# cinder dawn

YO I AM SO SORRY THAT IS MY OLD ACCOUNT ITS CURRENTLY BEING DELETED AND THAT LINK IS EXPIRED DW PLS IM SO SORRY ๐Ÿ˜ญ

violet plaza
#
    usrinp = input("Please enter your password (no more than 4 digits): ")
    if usrinp.isdigit() and len(usrinp) <= 4:
        return usrinp
    else:
        print("Invalid password. Please try again.")
        return takeinput()
        
   

    
        def guessnum():
            for i in range(10000):
                print(i)

            def main():
                password = takeinput()
            print("Password accepted!")
    guessnum()

#
usrinp = input("Please enter your password (no more than 4 digits): ")
if usrinp.isdigit() and len(usrinp) <= 4:
    return usrinp
else:
    print("Invalid password. Please try again.")
    return takeinput()
    

def guessnum():
        for i in range(10000):
            print(i)

        def main():
            password = takeinput()
        print("Password accepted!")
guessnum()

wind raptor
#

Why do you keep linking this?

violet plaza
#
def takeinput():
    usrinp = input("Please enter your password (no more than 4 digits): ")
    if usrinp.isdigit() and len(usrinp) <= 4:
        return usrinp
    else:
        print("Invalid password. Please try again.")
    return takeinput()
    

def guessnum(password):
        for i in range(100):
            print(i,password)


def main():
     
    password = int(password) = takeinput()
    print("Password accepted!")
    guessnum(password)


main()
#
93 1234
94 1234
95 1234
96 1234
97 1234
98 1234
99 1234```
#
def takeinput():
    usrinp = input("Please enter your password (no more than 4 digits): ")
    if usrinp.isdigit() and len(usrinp) <= 4:
        return usrinp
    else:
        print("Invalid password. Please try again.")
    return takeinput()
    

def guessnum(password):
        for i in range(100):
            print(i,password)


def main():
     
    password = int = takeinput()
    print("Password accepted!")
    guessnum(password)


main()```
wind raptor
#

int(takeinput())

violet plaza
#
def takeinput():
    usrinp = input("Please enter your password (no more than 4 digits): ")
    if usrinp.isdigit() and len(usrinp) <= 4:
        return usrinp
    else:
        print("Invalid password. Please try again.")
    return takeinput()
    

def guessnum(password):
        for i in range(100):
            if password == i:
                 print(password)


def main():
     
    password = int(takeinput())
    print("Password accepted!")
    guessnum(password)


main()
vocal basin
#

reminder that you're not in a language that supports tail call elimination

violet plaza
#
def takeinput():
    usrinp = input("Please enter your password (no more than 4 digits): ")
    if usrinp.isdigit() and len(usrinp) <= 4:
        return usrinp
    else:
        print("Invalid password. Please try again.")
    return takeinput()
    

def guessnum(password):
        for i in range(10000):
            if password == i:
                 print(f"The Password was {i}")


def main():
     
    password = int(takeinput())
    guessnum(password)


main()
vocal basin
#
def takeinput():
    while True:
        usrinp = input("Please enter your password (no more than 4 digits): ")
        if usrinp.isdigit() and len(usrinp) <= 4:
            return usrinp
        print("Invalid password. Please try again.")
vocal basin
#

Alt+Shift+F

#

formatting

#

iirc, that's the shortcut

wind raptor
#
def take_input():
    number = ""
    while len(number) != 4 and not number.isalnum():
        number = input("Enter a 4 digit password: ")
    
    return number
vocal basin
#

that depends on being able to pre-construct an invalid input

#
def take_input_once():
    usrinp = input("Please enter your password (no more than 4 digits): ")
    if not usrinp.isdigit() or len(usrinp) > 4:
        print("Invalid password. Please try again.")
        return None
    return usrinp


def take_input():
    while True:
        password = take_input_once()
        if password is not None:
            return password
#

the second thing can probably be more generic

violet plaza
vocal basin
#

probably looks better in Rust

from typing import Callable, TypeVar

T = TypeVar('T')


def repeat_until_not_none(f: Callable[[], T | None]) -> T:
    while True:
        result = f()
        if result is not None:
            return result


def take_input_once() -> str | None:
    usrinp = input("Please enter your password (no more than 4 digits): ")
    if not usrinp.isdigit() or len(usrinp) > 4:
        print("Invalid password. Please try again.")
        return None
    return usrinp


def take_input() -> str:
    return repeat_until_not_none(take_input_once)
#

@wind raptor
speaking of writing scripts in languages not built for it

#

Chrome doesn't want me to see it

#

eh

#

all easy -> all medium -> all hard
is not a valid progression, imo

#

definitely mix

#

@rugged tundra leetcode recommends related problems after you solve one
this way you can find mediums/hards related to easy problems you know how to solve

#

there is a possibility I might full-complete a month

#

@wind raptor there is a hard problem I was trying to solve
my solution was something like O(N*M*logN) which sounds horrific
then I gave up trying to optimise it and looked at the editorial solution
and it was, like, "we don't know how to solve it better either"

#

N*M*logN was bad because N*M is up to 10^5 which usually implies linear complexity

#

@rugged tundra it's still important not to get restricted by "identify the pattern" thinking in this case;
medium/hard problems on leetcode, for example, require solving more specific things,
so it's more about using patterns as tools instead of using a pattern as a framework

#

.next thing is supposed to be in the problem text
if the interviewer expects you to make assumptions instead of asking questions, run

vocal basin
#

I was doing a lot, then I started doing more important things instead

#

(that's mostly this month)

#

I'd say do both if possible

#

because on practice you will have to choose the appropriate one

#

sometimes recursive solution is both more performant and simple

vocal basin
#

!d collections.Counter

wise cargoBOT
#

class collections.Counter([iterable-or-mapping])```
A [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter "collections.Counter") is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") subclass for counting [hashable](https://docs.python.org/3/glossary.html#term-hashable) objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter "collections.Counter") class is similar to bags or multisets in other languages.

Elements are counted from an *iterable* or initialized from another *mapping* (or counter):

```py
>>> c = Counter()                           # a new, empty counter
>>> c = Counter('gallahad')                 # a new counter from an iterable
>>> c = Counter({'red': 4, 'blue': 2})      # a new counter from a mapping
>>> c = Counter(cats=4, dogs=8)             # a new counter from keyword args
vocal basin
#

@rugged tundra also depends on how you solve the problems, not only the count

#

probably, a portion of those "3~5 problems a day" should be revisiting and improving earlier solutions

noble solstice
#

Hii!

vocal basin
#

quality, features, schedule
can only pick two

noble solstice
vocal basin
vocal basin
noble solstice
#
class Solution:
    def largestAltitude(self, gain: List[int]) -> int:
        c = [0]*(len(gain)+1)
        for i in range(1,len(gain)+1):
            c[i] = gain[i-1]+c[i-1]
        print(c)
        return max(c)```
o(n) space and time complexity?
vocal basin
#

yes

#

but it can be solved with O(1) space

noble solstice
#

I will try to optimize now!

vocal basin
noble solstice
#
class Solution:
    def largestAltitude(self, gain: List[int]) -> int:
        ans = 0
        m = 0
        for i in gain:
            ans += i
            if ans>m:
                m = ans   
        return m```
o(1) time and space?
vocal basin
#

yes
wouldn't use i as a name though

#

it's an element not an index

noble solstice
#

okay!

vocal basin
#

I assume I don't do enough of medium and hard

soft plaza
#

can someone make my homework, I will pay for it

#

please

vocal basin
#

!rule 9

wise cargoBOT
#

9. Do not offer or ask for paid work of any kind.

vocal basin
soft plaza
#

I don't understand nothing about it, so it will be pretty much explaining to me how python works

#

that would take a loong time

vocal basin
#

what is the problem you're solving?

soft plaza
#

okay basically

#

my teacher gave us a table, in wich appears the sales of different games, in different years in diferent regions by genre

#

and we have to create the right game according to the data

vocal basin
#

table as a file?

soft plaza
#

no, it gave it to us as a table on a pdf

vocal basin
soft plaza
#

oh sorry, it was not "the right game"

#

we need to find the most selled game genre in the year 2017 globally,

#

the subgenre with the 5th place in the us 2020

#

and find the total percentages per region of how much they spend on games

vocal basin
#

do you have the table itself in any form other than PDF?
or are you supposed to manually copy the data?

wind raptor
vocal basin
#

proprietary programming languages are evil
very Oracle-ish

wind raptor
#

I'm heading out. Cheers all!

whole bear
ebon mist
#

??

flint jackal
#

Tesint message

ebon mist
#

yes

flint jackal
#

So i need to send 50 messages? is there a counter?

#

Got it

#

I got you

#

I am just here to kill some time

#

and Python is pretty awesome

#

Working on anything cool?

#

Nice

whole bear
#

I need to be on the server for more then 3 days

#

:?

#

:/

flint jackal
#

Why Python tho?

whole bear
#

makes sense

flint jackal
#

I can not

#

It's Ben again

#

Give me a python challeng

#

You broke up a bit

#

got it

#

I never played D&D

#

The json save file doesn't seem hard

#

give me a few I'm looking at your code

#

I just don't want to dox myself and make a merge request. i will send my implementation here

#

I know

#

my github is liked to real life me, discord is not so much

#

but i got you!

#

or create a throwaway github

#

or a Github with my discord persona

#

huh?

#

It not about being doxed or not, i just want to separate my Discord persona from my RL/Github persona

vocal basin
flint jackal
#

#bot-commands

vocal basin
#

@ebon mist total memory/cpu usage?

flint jackal
#

just 28 messages

vocal basin
#

to kill the process if it goes over the limit?

#

(for memory)

flint jackal
#

Alisa? similar to Alecia Keys?

vocal basin
#

you can externally limit the memory if, for example, you run the program inside a container

flint jackal
#

can't he use resource module?

vocal basin
#

might work

#

!d resource

wise cargoBOT
#

This module provides basic mechanisms for measuring and controlling system resources utilized by a program.

Availability: not Emscripten, not WASI.

This module does not work or is not available on WebAssembly platforms wasm32-emscripten and wasm32-wasi. See WebAssembly platforms for more information.

Symbolic constants are used to specify particular system resources and to request usage information about either the current process or its children.

An OSError is raised on syscall failure.

flint jackal
vocal basin
#

!e

import resource
print(resource.getrlimit(resource.RLIMIT_DATA))
wise cargoBOT
#

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

(-1, -1)
vocal basin
#

unless you want to limit the memory usage of subprocesses, this might be okay

flint jackal
#
import json

def create_player_json(name, race, class_, level, hp, abilities):
    player_data = {
        "name": name,
        "race": race,
        "class": class_,
        "level": level,
        "hp": hp,
        "abilities": abilities
    }


    with open(f"{name}.json", "w") as file:
        file.write(player_json)
vocal basin
#

py after ``` for syntax highlighting

flint jackal
#

Thank you Alisa

vocal basin
flint jackal
#

you are right

#
import json

def create_player_json(name, race, class_, level, hp, abilities):
    player_data = {
        "name": name,
        "race": race,
        "class": class_,
        "level": level,
        "hp": hp,
        "abilities": abilities
    }

    player_json = json.dumps(player_data, indent=4)

    # Write the JSON to a file
    with open(f"{name}.json", "w") as file:
        file.write(player_json)
vocal basin
#

!d json.dump

wise cargoBOT
#

json.dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)```
Serialize *obj* as a JSON formatted stream to *fp* (a `.write()`-supporting [file-like object](https://docs.python.org/3/glossary.html#term-file-like-object)) using this [conversion table](https://docs.python.org/3/library/json.html#py-to-json-table).

If *skipkeys* is true (default: `False`), then dict keys that are not of a basic type ([`str`](https://docs.python.org/3/library/stdtypes.html#str "str"), [`int`](https://docs.python.org/3/library/functions.html#int "int"), [`float`](https://docs.python.org/3/library/functions.html#float "float"), [`bool`](https://docs.python.org/3/library/functions.html#bool "bool"), `None`) will be skipped instead of raising a [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError").

The [`json`](https://docs.python.org/3/library/json.html#module-json "json: Encode and decode the JSON format.") module always produces [`str`](https://docs.python.org/3/library/stdtypes.html#str "str") objects, not [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes "bytes") objects. Therefore, `fp.write()` must support [`str`](https://docs.python.org/3/library/stdtypes.html#str "str") input.

If *ensure\_ascii* is true (the default), the output is guaranteed to have all incoming non-ASCII characters escaped. If *ensure\_ascii* is false, these characters will be output as-is.
vocal basin
#

to deserialise directly into a file

#

!e

import resource
print(resource.getrusage(resource.RUSAGE_SELF))
wise cargoBOT
#

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

resource.struct_rusage(ru_utime=0.007967, ru_stime=0.0039829999999999996, ru_maxrss=7852, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=849, ru_majflt=0, ru_nswap=0, ru_inblock=0, ru_oublock=0, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=3, ru_nivcsw=0)
vocal basin
#

idk if pathlib has some built-in way to validate whether name is okay to be interpolated as f"{name}.json"

#

(name might contain /, for example)

flint jackal
#

got it. Poppy might have to sanitize it before creates

#

i'm just at 37

#

This is taking forever

#

The name of the player file

#

@jolly terrace no,

#

but I think i need someone to break up my text block

flint jackal
#

nice

vocal basin
flint jackal
#

That's actually a great method

ebon mist
#

you'll lost me what going on??

jolly terrace
flint jackal
#

The player JSON file. the name of the file needs to be sanitized

#

so Alisa, pointed us to Django slugify function whihc would work great

#

i can hear you

ebon mist
vocal basin
#

or just ''.join(filter(str.isalnum, name))

flint jackal
#

Removes special characters that are illegal in filenames on certain operating systems and special characters requiring special escaping to manipulate at the command line

vocal basin
#

!e

name = "name/that/looks/like/path"
name = ''.join(filter(str.isalnum, name))
print(name)
wise cargoBOT
#

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

namethatlookslikepath
ebon mist
#

oh ok

#

i hear you

#

like 'print (url)' @jolly terrace ???

#

as a sting??

#

or what??

jolly terrace
#

look the main file

ebon mist
#

i can hear you but ok

#

idk what i'm look'n at but i can see it

#

so you need the url as a string??

#

right?

#

eula/ula??

#

k

#

??

#

did't hear that

#

??

#

end
user
license
agreements
/or
users
license
agreement

#

right

#

api bug ??

#

.

#

api erorr?

#

than?

#

it might not be made for links??

#

etc

peak nacelle
#

Avor'ion

vocal basin
versed mesa
#

hello

#

@turbid sandal

turbid sandal
#

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

versed mesa
#

when will i able to talk

bright shoal
#

can anyone suggest me from where can i get beginner level python exercise?
thankyou

vocal basin
#

for exercises, there are leetcode and codewars (and some other similar sites)

#

for other resources:

#

!resources

wise cargoBOT
#
Resources

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

cyan gyro
#

@turbid sandal

#

what's up?

bright shoal
vocal basin
#

codewars has some easier exercises (labelled as "8 kyu"/"7 kyu") and many language-specific ones

bright shoal
cinder dawn
#

hello

twin pond
#

Why cant I speak :(

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
#

Yahoy.

#

@turbid sandal If you're going to say my name and just leave...don't.

#

Osyra in the house.

#

@obsidian dragon ๐Ÿ˜ถ

#

Time is the space in which things happen.

#

Well, part of the space.

#

The implication being that given time, the situation should progress.

#

What form would that take?

#

Is now what?

#

@misty berry ๐Ÿ‘‹

somber heath
#

@golden eagle @rough marsh ๐Ÿ‘‹

somber heath
#

'Lo.

#

Cold as a cold thing.

#

It hailed, today.

#

Little.

#

...Yes.

#

We've had that, too

#

FORE!

#

I recently saw an image of a chonky grapefruit sized one

wind raptor
#

๐Ÿ˜ฎ

somber heath
#

Quince.

#

Quince-sized.

#

Mm. It's a strong, sweet flavour.

#

Its pale yellow white until it's cooked, then it turns this grapefruit pinky red colour.

#

Er, yes. You cook them.

#

If you have them raw, you'll have a bad day.

#

Apparently, raw quince is very tanniny.

#

So I suppose if you like munching on teabags, you're golden.

vocal basin
#

ohno, it's no longer 100% Rust

wind raptor
#

@whole bear We're over here in vc0

vocal basin
#

attempt at making some abstract data processing thing

#

for now, there's only two collections implemented

#

stack and AVL tree

#

the main "selling feature" is that it can work both with in-memory storage (synchronously) and with remote storage (asynchronously)

#

evolution of code base size over time

#

size in line count

#

not in feature count

#

and time in commits not in days/whatever

#

oh, I have a plot to get a function for

#

the line is approximation

vocal basin
vocal basin
vocal basin
#

almost

#

it's not an actual fractal, iirc

#

it's not fractional dimension

#

it's two dimensional, if I did the maths correctly

somber heath
#

Barnsley fern.

vocal basin
vocal basin
#

it's just a random walk in a 2D space