#voice-chat-text-0
1 messages ยท Page 148 of 1
wait
wrong stream
can you show the code again?
@verbal zenith why does only one have ; val?
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)
ew
it should've been worse
or, like, other people should've been better
I totally don't understand how to solve it
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
stupefied or excited by a chemical substance (especially alcohol)
stupefied or excited by a chemical substance (especially alcohol)
alright people im going to bed early af good night
(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.
I feel special.
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;
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!
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
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 ๐
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
!voice
!voice
!voice
why is not working
!voice
oh ok
!voice
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@scarlet depot ๐
hello would i be able to get some help to understand the values i, n, f
what`s i,n,f?
!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.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
!e py a = 1 b = 2 c = 3 print(a, b, c)The print function can take an arbitrary number of positional arguments.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
1 2 3
!e py for a, b, c in [[1, 2, 3], [4, 5, 6], [7, 8, 9]]: print(a, b, c)
@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
so the a, b , c is the columns
and the 1, 2, 3 is the rows
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?
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
!e py rows = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] for a, b, c in zip(*rows): print(a, b, c)
@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
!e py for abc in zip([1, 2, 3], [4, 5, 6], [7, 8, 9]): print(abc)
@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)
!e py letters = 'abc' numbers = '123' symbols = 'โฯรท' for each in zip(letters, numbers, symbols): print(each)
@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', 'รท')
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?
!e
code
!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!
this
Start here.
ok
What is happening.
[[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]```
So a holds 1,4 amd 7 amd b hold 2, 5, and 8, and chold 3, 6, and 9?
!e py for row in [[1, 2, 3], [4, 5, 6], [7, 8, 9]]: print(row)
@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]
!e py for r, o, w in [[1, 2, 3], [4, 5, 6], [7, 8, 9]]: print(r, o, w)
@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
so when you look at an excel file as the csv what would that look like?
excel has export thingy
import pandas as pd
data = pd.read_csv('name_of_csv.csv')
# Show first five lines of data
print(data.head())```
remove space after "python"
ok
not a newline
i am going to go bye
thanks
syntax highlighting doesn't know how to ignore space
@uncut acorn ๐
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
ah thx
lspci -nn```
aplay -l
@steep juniper Was it you who was asking for help?
apt list --installed | grep "linux-modules-extra"```
sudo apt install linux-modules-extra-`uname -r` ```
SORRY
STOP APOLOGZING
phone dead
this one
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
wich??
There's only one
Also I didn't see the inxi output
show me the term
do archive maanger
whatever
done
can you show me the output of inxi -A
and then install the deb file
then like
restart your computer
okay
that's good
ok.
any diff?
no
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
perm?
!stream 360284932469293056
โ @ebon mist can now stream until <t:1686978471:f>.
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?>
no sound
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?
??
fuckin
teamviewer or something
oh shit
lemme get it
sec
bro
dm it
xd
whatever
userData=new userDetails(req.body)
var respond=await userData.loginEmail()
res.send(respond)
@wind raptor sorry to bother but what's goin' on?
@somber heath https://paste.pythondiscord.com/initebejow
>>> 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
m => (
g/m => (
!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.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | B
hello world
!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.
@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
\
@somber heath
@zenith radish You know that mono bullshit I was trying to get to work?
gif relevant
!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
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
opencv
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...
@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...
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

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
@echo garden hey man i want help??
What is this?arudino?
i got a question who is good at beautiful soup
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
Jobs in python. Search and apply jobs online at Timesjobs.com
yo wassup guys
but i'm not getting the desired text that i want
it keeps giving me card travel but i want the years of experince that are in quotation marks
nvm fixed the problem
drunk skating tsk tsk
text
what is the use of this abstarct art
you ran code?
non but i saw the images, why
do you wish to run the code? and do you understand what Tensors are?
yes :))
well its visualization of a tensor in 3d space and each point in that pace i believe is also a tensor,
so of array of maths
a basic structure of what im starting with, im planning to implement mathematical structured based opporation
you need to own codeverse account/organisation
(for this to work)
??
online**
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)
!code
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()
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()
!pep8
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:
!list
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.
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")
having questions and answers organised like here is simpler to handle, imo
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
storing one list of question-answer pairs instead of several lists
that's why one list solution is simpler
Good point
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()
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
- while loop is simpler
- 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)
did you even run it?
just for context
TypeError: globals must be a real dict; try eval(expr, {}, mapping)
self.answer = input("Answer: ")
^^^^^^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded
steps to repeat this error:
press enter 1000 times
(or a little bit more)
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()
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
**|| 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.||**
@turbid sandal https://www.theverge.com/2016/11/3/13507542/facial-recognition-glasses-trick-impersonate-fool maybe you could use something original like this but in a captcha form somehow
new_windows_filesystem = [
SFSIDKICNFGA
ouh on ooioc
mci no utnor
ekt tw l ddo
i d n
n y
g m
]```
@trail tusk
Sorry, my tiny brain isn't capable to comprehend this info ๐
read it down each uppercase letter is the acronym the lower case following in down is what it stands for
There are people who take gardening a bit too seriously, and then theres two levels up with this guy.
hello @turbid sandal
how is it going
just stuck
i don't prefer
because my mother is in the same room as me
wow this is next level
yup i am wearing headset
i am not allowed to talk to strangers
let me walk you throught
this is India
ok
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
. v n n nm mcv m nvbcnm, mbmnfc gbfjnkm. vnmbg
lol
@noble solstice you know don't you?
and 2 are inactive and 1 is not able to tallk and 1 remaning is out of range
what is ur age?
i prefer not to disclose privater infromation
though i can give you a window 14-18years
You are too young
for what
i don't have it rn
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@whole bear ๐
sup my boy
for some reason I do not have permission to speak
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@storm nexus ๐
!code
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()
!e ```py
def func(arg=[]):
arg.append('*')
print(arg)
func()
func()
func()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ['*']
002 | ['*', '*']
003 | ['*', '*', '*']
add doc string
""" """
functions and classes
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
!e ```py
def func():
"""Hello, world."""
print(func.doc)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, world.
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
check this https://paste.pythondiscord.com/oguhimeqij
nice
from tkinter import messagebox, ttk
from PIL import Image, ImageTk ```
@lunar haven
Put it in code blocks
๐คฎ
markdown
is
important
No
how?
like that @storm nexus ?
from tkinter import messagebox, ttk
from PIL import Image, ImageTk ```
Better now. Now normal person can read it
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.
import tkinter as tk
from tkinter import messagebox, ttk
from PIL import Image, ImageTk
thank you
i want speak ๐ฅฒ
I'm sorry, I came by mistake
free speech ๐
We forgive you, friend

Thankful. XD
Sorry to hear that.
He said he came by mistake.
What are we trying to solve. Maybe I can help.
Hey
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
?
?
Tf
Tf
soooo fuunny ha ha ha
Idk man at 2am someone pinging
Yes ?
@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?
I don't have permission to speak XD
One message removed from a suspended account.
can you hear me? @lunar haven
did you mute me?
One message removed from a suspended account.
@lunar haven Please unmute me!
heya man
I can't speak
not eligible :9
XD
naah
the discord server requirements
what are you doing ??
right now?
developer or something
actually I'm new to this programming thing
im a manager at starbucks lmao
I mean programming actually
everytime i see u code ur always in tkinter
See ya man got to go
why tkinter if u dont mind me asking
astrologist opened up a company in the first step of programming
red blue green
@lunar haven howve u spent your day
62 80?
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
@lunar haven t-k-inter
interface for tk
https://en.wikipedia.org/wiki/Tk_(software)
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...
Hey @whole bear
This is the chat for this channel
oh
I know
i see
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
@wind raptor dms
@mind
oops?
will you be able to help w this????/
oh-
i can submit proof
๐ญ
if needed
@wind raptor dms
@wind raptor dms
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?
Looking into it
hi
@wind raptor
am i allowed to offer to make @molten panther a portfolio site for free?
i like working for free and like helping others
I have one already that I made
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I did that
@lunar haven I can't chat in vc wanna just go on my server?
cool
whats a vps
or is that a typo?
Virtual Private Server
its used for hosting, and just useful to have a OS you can SSH into
cool
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
I don't click links in people's profiles
alright im gonna go to sleep
neither but i got compelled
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
??
for i in range(1,101):
l100.append(i)
print(l100)```
Commander David Fravor is a retired US Navy pilot, who has a close encounter in 2004 with the so-called Tic Tac UFO, and Jeremy Corbell is a contemporary artist and documentary filmmaker.
print("Get data from NASA")
@lucid blade
https://youtu.be/2SpYbEfp4vA
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 ...
watching this
isn't that blitz?
right now I'm trying to find out what a strict definition of an AVL tree is
specifically:
are tree rotations essential to what an AVL tree is or not
if usrinp.isdigit() and len(usrinp) <= 4:
"export level" security
if usrinp.isdigit() and len(usrinp) <= 4:
def guessnum():
```
def guessnum():
for i in range(10000):
print(i)
guessnum
btw, original AVL paper defines length (equivalent of height) of a null (empty) branch (subtree) to be 0 not -1
YO I AM SO SORRY THAT IS MY OLD ACCOUNT ITS CURRENTLY BEING DELETED AND THAT LINK IS EXPIRED DW PLS IM SO SORRY ๐ญ
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()
Why do you keep linking this?
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()```
int(takeinput())
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()
reminder that you're not in a language that supports tail call elimination
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()
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.")
are you using an IDE?
Alt+Shift+F
formatting
iirc, that's the shortcut
def take_input():
number = ""
while len(number) != 4 and not number.isalnum():
number = input("Enter a 4 digit password: ")
return number
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
Explore developer resources, tutorials, API docs, and dynamic examples to get the most out of OpenAI's platform.
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
Run Rust files and expressions as scripts without any setup or compilation step.
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
nice
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
(iterative and recursive)
!d collections.Counter
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
this solves a lot of leetcode problems
@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
Hii!
quality, features, schedule
can only pick two
Hii ALisa
Do u solved today leetcode problem?
spoiler: not picking quality leads to failure always
see screenshot above
#voice-chat-text-0 message
like partition tolerance in CAP theorem
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?
I will try to optimize now!
one day is missing
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?
okay!
I assume I don't do enough of medium and hard
!rule 9
no one will do it for you, but we can help to understand the problem you're solving
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
what is the problem you're solving?
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
table as a file?
no, it gave it to us as a table on a pdf
what does "the right game" stand for in this case?
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
do you have the table itself in any form other than PDF?
or are you supposed to manually copy the data?
Please don't ask/offer paid work in the server
ik
I guess so
proprietary programming languages are evil
very Oracle-ish
I'm heading out. Cheers all!
huh?
??
Tesint message
yes
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
Why Python tho?
makes sense
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
sending !user command in #bot-commands is probably the most reliable way to get the message count the way the bot sees it
#bot-commands
@ebon mist total memory/cpu usage?
just 28 messages
Alisa? similar to Alecia Keys?
you can externally limit the memory if, for example, you run the program inside a container
can't he use resource module?
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.
!e
import resource
print(resource.getrlimit(resource.RLIMIT_DATA))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
(-1, -1)
unless you want to limit the memory usage of subprocesses, this might be okay
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)
py after ``` for syntax highlighting
Thank you Alisa
isn't player_json definition missing?
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)
!d json.dump
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.
to deserialise directly into a file
!e
import resource
print(resource.getrusage(resource.RUSAGE_SELF))
@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)
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)
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
Django has something related inside of it, seems like
https://github.com/django/django/blob/main/django/utils/text.py#L420-L437
nice
time to check licensing for how to properly copy code
That's actually a great method
you'll lost me what going on??
what
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
what dos 'sanitized' meen??
or just ''.join(filter(str.isalnum, name))
Removes special characters that are illegal in filenames on certain operating systems and special characters requiring special escaping to manipulate at the command line
!e
name = "name/that/looks/like/path"
name = ''.join(filter(str.isalnum, name))
print(name)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
namethatlookslikepath
look the main file
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
Avor'ion
@midnight agate
https://leetcode.com/problems/find-the-highest-altitude/
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
when will i able to talk
can anyone suggest me from where can i get beginner level python exercise?
thankyou
for exercises, there are leetcode and codewars (and some other similar sites)
for other resources:
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
thanks
leetcode have exercise for beginnners also
i used the filter easy but i found that tough ๐ฅฒ ๐
codewars has some easier exercises (labelled as "8 kyu"/"7 kyu") and many language-specific ones
thankyou v. much
appreciated a lot
hello
Why cant I speak :(
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
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 ๐
@golden eagle @rough marsh ๐
'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
๐ฎ
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.
ohno, it's no longer 100% Rust
@whole bear We're over here in vc0
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
the underlying data:
I'm trying to remember how this plot gets produced
this is self-repeating
almost
it's not an actual fractal, iirc
it's not fractional dimension
it's two dimensional, if I did the maths correctly
Barnsley fern.
X: something roughly proportional to arithmetic mean
Y: logarithm of a standard deviation
(this is not related to files)
it's just a random walk in a 2D space
@misty berry