#voice-chat-text-0
1 messages ยท Page 176 of 1
ohhh forgot
Python is the only language I know where self.field: SomeType syntax is valid
mypy rather than pydantic
pydantic is more of a library-style thing
mypy is somewhat more strict than just a linter
somewhere
language servers understand that
!e
a: int = 5
print(__annotations__)
!e py a:str = '' print(dir(a))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'removeprefix', 'removesuffix', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'a': <class 'int'>}
!e
class C:
b: str
def __init__(self):
self.a: int = 5
print(__annotations__)
print(self.__annotations__)
print(C.__annotations__)
C()
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | {}
002 | {'b': <class 'str'>}
003 | {'b': <class 'str'>}
... and this is where it gets difficult
!e
class C:
def __init__(self):
self.a: int = 5
print(C.__init__.__annotations__)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
{}
so this is likely lint/lsp-only
will try to post-process now
post-processing should be done before colouring
to preserve quality
I don't remember what the POWER constant is responsible for, but it definitely changed something
couldn't figure out anything better than just making it less blue
now I remember what distance limit was for
(last one is no limit)
that looks so cool
(one from the archive)
now that I save colour data before rendering, I can re-render with different settings
Anyone made an autotrading bot before? (Like robinhood)
Wondering about what kind of logic/decision making/strategy to employ
no, but keep in mind that differend trading platforms (steam, crypto trading platforms) give you more or less information that has to be analyzed to make a prediction for the future price. On certain cypto trading platforms they show you the "order book" (how many ppl want to sell or buy at what prices)
Ooh that's really smart
Could weight buys and sells for volume of trades at price points
Yeah it is a crypto flipper (robinhood) for now. I finished the early version yesterday. Now I'm just thinking about how to improve
It weighs monthly and hourly in real time, compared to your holdings, makes a decision
you could sign up at bitfinex and connect your trading bot to the paper trading (no real money) and see how it performs
ahh ok
I connected it to my real trade accound lol
do you know "margin trading"?
Yeah I'm familiar. I started with limit functionality only for now
so you know that you can trade sometimes with 10x your input and for each small change in the price of btc you lose or gain alot of money
would be cool to have a fast trading bot that works with margin trading
Yeah i don't trust my programs logic enough yet lol
i would test it on a test account so you dont lose money
Yeah, i should throw more aggressive strategies and mock for a while
@somber heath i think that deserves a hemlock emoji
@turbid sandal
hey if u will be online can u help me to understand this line of code please
https://discord.com/channels/267624335836053506/1140320210725912678
@whole bear ๐ค
yo
was this made in python?
Er...no?
all_data = [
sq1,
sq2,
sq3,
sq4,
sq5,
sq6,
sq7,
sq8,
*piece_sqs,
sq21,
]
so this is common w/ other langs right
!e py a = 4, 5, 6 b = (1, 2, 3, *a, 7, 8, 9) print(b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
(1, 2, 3, 4, 5, 6, 7, 8, 9)
does this exist in other langs?
@warm idol ๐
I don't know.
i see.
:/
yk i don't think so
judging from the fact that the lang that imma impl is rust
rust is just a bitch about everything
interesting
https://doc.rust-lang.org/std/vec/struct.Splice.html for rust unpacking
but it's fucken ugly
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!kindling
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
projects to do ^^^^^^^
my contributions pattern is telling me something
looks like some sort of hidden message
tbh looks a bit like korean lmao
@brittle coral ๐
hello
github korean?
no
like
the contribution shape looks like korean text lol
no its not its just ur contributions
@steel crest ๐
๐ค

@amber raptor An email I got this morning from one of our folks:
Good morning,
Lacerte isnโt opening up for me. It says it needs to be rebooted.
Well then... fucking.... reboot it
wire is just simpler and more efficient
it's turning between wireless and wire anyway at two points
Back in a bit
I have a problem with this diagram.
Light. Yellow. On. White.
Whoever designed it has earned a seat on the sun catapult.
why is it also that blurry
it is just how jpeg deals with yellow on white?
can hear okay
ooh, that usbc pinout is interesting
@gleaming pendant ๐
More pins than I thought.
I suppose I would have looked at some point and forgotten.
as someone who occasionally does arduino stuff
could be useful
except for that atrocious yellow on white
๐
not in the least
you don't interface with that part
step = 0
running = True
while running:
print("running")
Eke
you interface with the other end of the plug, of which the pinout completely depends on the manufacturer
so what is tx1 for
yeah and rx is return
so it seems like that would potentially be useful
i say that because i work in telecommunications where we use tx and rx multiple times daily
its existence is
its location is completely irrelevant
because you won't be interfacing with it at that location
which is exactly what I said here
ye but you won't be wiring to that
well u might
well u won't
you'd have to cut open the entire jack
solder to the tiny pins without bridging or destroying them
then glue it closed again
or building your own jack on a breadboard?
besides which you could then no longer use it as a jack
you don't build your own jacks
you need a factory assembly line with cnc machines to do that
you buy them, and then you solder to then
to the other end of them, obviously, otherwise you can't use them as a jack
please stop suggesting ridiculous theoretical ideas
thanks
i fail to see why you could not emulate this in a breadboard
the breadboard you can make
kinda rude
the jack itself, you can't
@flat jacinth ๐
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!e py my_list = ['apples', 'pears', 'oranges'] length = len(my_list) print(length)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
3
!e
print("hello")
@jolly terrace :white_check_mark: Your 3.11 eval job has completed with return code 0.
hello
@blissful mango ๐
sequence_list[] #list of function
def sequencer(list):
step = len(list)
running = True
while running:
#runs the thing from list
step -=1
if step == 0:
running = False
sequencer(sequence_list)
```
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
def sequencer(arg):
step = len(arg)
running = True
while running:
step -=1
if step == 0:
running = False
sequence_list = []
sequencer(sequence_list)```
!e py def func(list): print(list) func('Hello, world.') print(list)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello, world.
002 | <class 'list'>
!e py def func(list): list('abc') print(list('abc')) func('Hello, world.')
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | ['a', 'b', 'c']
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 4, in <module>
004 | func('Hello, world.')
005 | File "/home/main.py", line 2, in func
006 | list('abc')
007 | TypeError: 'str' object is not callable
@limpid raven
@scarlet ferry ๐
... I typed in general not here xd
So I'm opening a secondary window and if I don't have a breakpoint in the init it briefly appears and closes the window
!stream 381154715293188106
โ @dry jasper can now stream until <t:1692027743:f>.
Hard to know without seeing the code. https://paste.pydis.com
@sly yarrow
Scene: Anime. Office. A computer flashes a prompt. A man reaches for a dongle attached to his lanyard and plugs it in. The screen turns green.
"Uwubikey accepted."
I'll just restart my pc and see if it works
I have no words
it works now
Weird. But glad it does at least
Hey whats going on?
Not much, you?
i am doing nothing thats why i joined
sequence_list[] #list of note, instruments objects
def sequencer(arg):
step = len(arg)
running = True
while running:
#runs the thing from list in order one introry at a time
step -=1
if step == 0:
running = False
sequencer(sequence_list)
!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!
!e
sequence_list[] #list of note, instruments objects
def sequencer(arg):
step = len(arg)
running = True
while running:
#runs the thing from list in order one introry at a time
step -=1
if step == 0:
running = False
sequencer(sequence_list)
@peak nacelle :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | sequence_list[] #list of note, instruments objects
003 | ^
004 | SyntaxError: invalid syntax
sequence_list = []
!e
sequence_list=[] #list of note, instruments objects
def sequencer(arg):
step = len(arg)
running = True
while running:
#runs the thing from list in order one introry at a time
step -=1
if step == 0:
running = False
sequencer(sequence_list)
@peak nacelle :warning: Your 3.11 eval job timed out or ran out of memory.
[No output]
Ok cool
!e
sequence_list=[l,j,j,j] #list of note, instruments objects
def sequencer(arg):
step = len(arg)
running = True
while running:
#runs the thing from list in order one introry at a time
step -=1
if step == 0:
running = False
sequencer(sequence_list)
!e
sequence_list=[1,1,1,1,1] #list of note, instruments objects
def sequencer(arg):
step = len(arg)
running = True
while running:
#runs the thing from list in order one introry at a time
step -=1
if step == 0:
running = False
sequencer(sequence_list)
@peak nacelle :warning: Your 3.11 eval job has completed with return code 0.
[No output]
sequence_list=["l","j","j","j"] probably
sequence_list=[] #list of note, instruments objects
def sequencer(arg):
step = len(arg)
running = True
while running:
#runs the thing from list in order one introry at a time
step -=1
if step == 0:
running = False
sequencer(sequence_list)
@warm idol Yo
@dire storm
sucuk
Dr Wilhelm II. isch stockkonserwatiiv gsi und het weenig Verstรคndnis fรผr s Wรครคse vo dr konstitutionelle Monarchii ghaa und het sich druf verstift, d Regierigspolitik persรถnlig z lรคite. Wil er sich undiplomaatisch und groossspuurig benoo het, het immer wider inne- und ussepolitischi Kriise verursacht.
Het Gentse dialect met Jacky de cafรฉbaas
Freek Neiryncks Gents veur geveurderden 2011
Joepie! T Schoole es weere begost !!! Op maandag 26 en woensdag 28 september starten de lessen Gensch van Perfesser Freek Neirynck weer in het Centrum voor Volwassenenonderwijs aan de Bargiekaai (Brugse Poort)
7 basislessen "Gensch veur beginners" (maandagavonden van 19u30 tot 21u15) worden voor de...
Gadget wekker - breng de bal naar het doel om het alarm te stoppen (basketbal) : Amazon.nl: Speelgoed & spellen
Stop met teveel betalen voorinternet,tv en bellen. Vergelijk internet bellen en tv en bespaar tot wel 200,-
@cedar briar wssp
can you help me @cedar briar
can you help
i dont understand whats the problem here
@whole bear What's up?
Limit what thing?
like this
after i get 2. verification code
i dont want it to listen anymore
from mailtm import Email
import re
def listener(message):
for m in re.findall(r"(\d+)", message['subject']):
print(m)
# Get Domains
test = Email()
print("\nDomain: " + test.domain)
# Make new email address
test.register()
print("\nEmail Adress: " + str(test.address))
# Start listening
test.start(listener, interval=3)
print("\nWaiting for new emails...")
heres the full code
You want to listen for only two messages?
yeah
first one for
verifying the account
second one for
enabling the 2fa
@cedar briar
from now on im a chubby super </dev>
xd
I believe there's a method to stop listening on the Email object. You need to call it after the number of received messages reaches 2. You'll need to maintain the counter that updates on message receivals.
hmm
so i will set a variable which is 0 and
if i receive a message i will do +1 to variable
if its == 2
then it will stop listening
did i understand righT?
@cedar briar
You'll have to call the stop method. I'll have to look at the API from mailtm for it.
Only then it'll stop listening.
alright but how im gonna make it
You have to call it after the number of messages reaches 2.
count it like
every message receive will countr +1 but idk
im nub at coding
i understand what i want to do but i dont know how im gonna do
Give me a few minutes. I'll send out a snippet.
import time
from typing import Self
from mailtm import Email
class EmailProcessor:
def __init__(self):
self.message_count = 0
def can_receive_messages() -> bool:
return self.message_count < 2
def process_message(self, message):
self.message_count += 1
# Other processing here
print(message)
client = Email()
email_processor = EmailProcessor()
interval_seconds = 3
client.start(email_processor.process_message, interval_seconds)
while email_processor.can_receive_messages():
time.sleep(interval_seconds)
# If it reaches here, it means `email_processor.message_count` is > 2. We can
# stop listening.
client.stop()
@whole bear
I'm @turbid sandal
And I'm @whole bear
was this working ?
im super dev chubby.0 @turbid sandal
@turbid sandal
now its better
Super </dev> Pandemic! @whole bear @whole bear @turbid sandal
xd
Can't at the moment, I'm about to do a delivery run
no problem
Is there a way to use Push To Talk via the mobile voice overlay?
This doesn't make any sense.
why is all our oxygen in our legs? how does it get to our lungs?
Why though
High brow conversation as always ๐
Masterpiece
Err
Make the values sets rather than lists?
Frozensets are, but not regular sets.
do you also have femail slots
Ideally, the hash function roughly evenly distributes the keys over the hash table.
So what has everyone been up to? ๐
A what? ๐ค
I didn't test it. But you can!
Is washing machine in bathroom a continental Europe thing? ๐ค
In the UK we keep it in the kitchen.
ic
Don't use random carabinas you find for actual climbing though 
Good exercise ยฏ_(ใ)_/ยฏ
Get massive quads
In case you get hungry
I'm considering getting intentionally infected with the flu
For science ๐
I went inside the former hotel where, for science (and money), people are volunteering to get colds, flu, and RSV. โ Challenge trials looking for volunteers: https://flucamp.com/ and https://www.1daysooner.org/recruiting-challenge-studies
This isn't an advert! the subject was suggested by the team at 1DaySooner, but that's it: no money changed ...
It's like ยฃ2000 for two weeks
Seems not bad ยฏ_(ใ)_/ยฏ
Yeah, if I had a job ๐
And apparently it's a really low dose, so most people don't even get sick
Regular reminder not to re-use passwords!
are yall familiar with tch-rs? like the rust wrapper for torch?
hello how are you doin
afik iq is mostly influenced by gene
your theory that race influences IQ might be true but
whats the point of that
it also might be true but
we should note that common 'IQ test' results are influenced by educational level
not pure individual intelligence
so we can't conclude
yup
really
i had no idea
no it doesn't
well partially it does
what does that mean?
IQ is mostly influenced by the specific IQ test
it's just a way of transforming ranking into a number
uhh i meant like intelligence not test result
you can assign an IQ values to coins based on how well their flips predict the stock market
IQ doesn't measure intelligence, it measures how well you score on IQ tests
and it's very good at it
^ for example, this is not a good IQ test, because results are unstable
wth is this
nah but on the side note i actually wanna code
learn to code
any tips
bouta install python
watch tutorials
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
when did you guys start coding
depends on what counts as coding
TIL this exists
https://en.wikipedia.org/wiki/Cobra_(programming_language)
Cobra is a discontinued general-purpose, object-oriented programming language. Cobra is designed by Charles Esterbrook, and runs on the Microsoft .NET and Mono platforms. It is strongly influenced by Python, C#, Eiffel, Objective-C, and other programming languages. It supports both static and dynamic typing. It has support for unit tests and con...
yeah
i deliberately joined to post that ๐
I installed python like 3 years ago
you guys do like python homework stuff
but I still suck
like a channel
ok
hi see you space cowboy
cuz you just put VS Code as a game in game activity
yup
It only shows that youโre in vs code
With Rich presence it will show the file youโre working on, the workspace, etc.
Just wanted to let you know
i know but
i thought that isn't necessary
and in fact it isn't
but i'll give it a try
wait my folder name is too dumb
I believe it shows only the workspace and the name of the file youโre currently working on
You can disable the features it displays btw
Within the extension config file
I just made my workspace name less dumb
Nice
Hi everyone
I just joined
I'd like someone who knows how to use Python to practice mcq Python questions with me for my final this Thursday
wdym exactly?
I will practice for my final exam this Thursday and I'd like to have a study buddy
To do mcq questions
For Python
Not really
oh
I'm not advanced like all I know is what I studied in the course
Which was a course for beginners
??
started Python almost 6 years ago
Can I practice with you mcq for my final?
what kind of MCQs?
(multiple choice questions, I assume; I think I had "some" of that in the finals too, but they were not Python-specific)
when explaining a certain question, I usually try to provide multiple approaches of thinking about it
for this one, solution, that's simple to show correct but not necessarily simple to get to, is that o1.m2(4) will fail because o1._v doesn't exist
it maybe easy to find such solution in a simple task, but more difficult ones may require something more systematic
- when analysing methods for
Class1, we can write down pre- and post-conditions for each method
m1:
given: --
then: self._v is defined
m2:
given: self._v is defined
then: self._v is defined (and its new value is incremented by `n`)
o1 doesn't satisfy pre-conditions for Class1.m2, therefore calling it is invalid (thus may cause an error)
- other option is to think about instances of
Class1as being in one of two states
state 1:
self._v is undefined
m1 is defined; calling it transfers the object to state 2
state 2:
self._v is defined
m1 is defined
m2 is defined
Do you mind me adding you as a friend?
I don't add people as friends on this server
Why is the answer D and not B
I tried running the code and I was 16
But the answer key is D
value of fun2(5) is same as what fun2 returns
in case of missing return statement, it's same as return None
!e
def fun2(x):
res = 3 * x + 1
print(res)
w = fun2(5)
print(f'{w = }')
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 16
002 | w = None
as opposed to:
!e
def fun2(x):
res = 3 * x + 1
return res
w = fun2(5)
print(f'{w = }')
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
w = 16
for simple functions, that just transform value passed into them in some simple way, the following two things are almost identical:
def some_function(some_argument):
# do something with some_argument
return some_value
some_variable = some_function(some_input)
# do something with some_input
some_variable = some_value
the original example can be transformed like this:
first, introducing explicit return statement
def fun2(x):
res = 3 * x + 1
print(res)
return None
then inlining the function
res = 3 * x + 1
print(res)
w = None
thus value of w isn't depending on what x or res are
So the print statement inside inside the function wonโt print 16 ?
it will print 16, but it won't return it or assign it to w
Is return replaceable with print
So like we wonโt see the 16 on the output if we ran the code ?
the following won't print anything, but will assign 16 to w:
def fun2(x):
res = 3 * x + 1
return res
w = fun2(5)
w can later be used to do other calculations, or can be printed on its own, or just ignored
!e
def fun2(x):
res = 3 * x + 1
return res
w = fun2(5)
print(w)
print(w)
print(w)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 16
002 | 16
003 | 16
What about print inside fun2 instead of return
Will that give the same answer?
w = 16
!e
def fun2(x):
res = 3 * x + 1
print(res)
w = fun2(5)
print(w)
print(w)
print(w)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 16
002 | None
003 | None
004 | None
fun2(5) evaluates to what's returned
and, if fun2 has no return, it evaluates to None
the question is concerned about the internal state of the program instead of the output
print(w) is one of the ways to observe that state, but it exists even without printing
!e
x = 5
w = 3 * x + 1 # == 16
y = w * 2 # == 32
print(y)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
32
here, 16 is an intermediate value for calculations, but it's never present in the output
(stuff after # is just a comment, it doesn't influence the program logic)
for each variable name, variable inside a function has exactly one scope, which is either local, global or nonlocal
by default, without extra qualifiers, if variable is ever assigned to, it is assumed to be local
and it's local both when "reading" from the variable and "writing" to it
q = q + 1
^ ^----- fails because `q` is not assigned locally yet
|--------- makes `q` local
!e
q = 20
def fun4():
q = q + 1
fun4()
print(q)
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 4, in <module>
003 | fun4()
004 | File "/home/main.py", line 3, in fun4
005 | q = q + 1
006 | ^
007 | UnboundLocalError: cannot access local variable 'q' where it is not associated with a value
!e
q = 20
def fun4():
q_local = q + 1
fun4()
print(q)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
20
!e
q = 20
def fun4():
global q
q = q + 1
fun4()
print(q)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
21
this makes new local variable q_local (_local suffix does not mean anything), making q be treated as global (as this is the only scope it exists in)
this forces q to be global, overriding q = which normally makes q local
Why did we print here 20, and in the previous example there was an error
previous had error in the right side of the assignment
in both questions it assigns something to local q
but in this one, it can calculate the value, that it assigns, without an error
q inside the function and q outside the function aren't connected
(in both questions)
Why
assignment to a variable inside the function makes that variable be treated as local, i.e. existing only for as long as function call lasts
if that variable isn't present in global statement
I thought in the previous example, q = 20 was global so inside the function q = q +1 is basically q = 20 + 1
Oh OK
That's what causes the error ? That 'q' doesn't have a value in q = q + 1
q + 1 fails because local q is not yet assigned at that moment, yes
and q = is what causes it to look for local q instead of global
What do you mean 'q =' is what causes it to look for local
Isn't that the function itself? Like we're inside the function, we don't care about the q outside
!e
q = 20
def test():
print(q + 1)
test()
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
21
Oh
Why didn't we do the same in the 1st Question, using the outside-of-the-function q's value 20 inside fun4() q = q + 1
it applies same scope rules for all uses of the variable inside one function
i.e. both qs in q = q + 1 are treated as local
What is scope
place where variables are stored/visible in
two common ones are global scope and function scope
(unlike some other languages, Python doesn't have a block scope (code in {} in C))
We can't use .pop() with dictionaries?
Can I add you whenever I have another question ?
Iโm afraid I canโt find you again
problem isn't with being unable to call .pop() generally
the actual error would be NameError
because s is unbound
!e
fish = {"g": "Goldfish", "s": "Shark"}
fish.pop(s)
print(fish)
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | fish.pop(s)
004 | ^
005 | NameError: name 's' is not defined
!e
fish = {"g": "Goldfish", "s": "Shark"}
fish.pop("s")
print(fish)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'g': 'Goldfish'}
whereas here it provides .pop() with a specific key (a string "s")
list=["red", "green", "yellow"]
if(list.pop()):
print(len(list*2))
list_copy = list
else:
print(len(list))
print(list_copy[1])
What's is going on inside if() 2nd line
Whats is going to be stored
And it's that like a boolean expression?
if a list is not empty, calling .pop() on it causes it to remove and return the last element
in this case it would be "yellow"
where boolean is expected, non-empty strings are treated as True and empty strings are treated as False
!e
if "yellow":
print("this should be printed")
if "":
print("this should not be printed")
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
this should be printed
note for later: list_copy there isn't a copy of a list, it's a copy of a reference to the same list
Got bored. Made simple serialization that saves to image files
Also too lazy to use PIL, but i did use some protocol classes to layout the necessary functionality, wouldnt be hard to wrap the equivelant PIL classes
Was also debating having the read methods output a "result" type of some kind that let you do all the chained calls and just appended the output to a list.
@somber heath
helloo
can you help me about smth?
I am recently started making a ubisoft account creator that crates account and verify it self by an api which is api.mail.tm i dont know why but i encounter an error which is An error occurred dur...
i got an error idk how to fix it
@somber heath can you?
so cant you help me ๐
@summer kettle ๐
why cant i unmute
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
yes
ok will u hlp me in making game in unity
i have idea
ok
T~T
u know bacis cuase for coading chat gpt will
help
tell me honestly which do u think is better unreal engine or unity
or goddot
i dont know was not in option
@unique geyser ๐
where r u from
i m from india
today is 15 august
india got free from britishers today
do u know sfs
space flight simulator
it is madded in pytohn
i guess
do u know sfs
you need to see sfs
u will be fan of it
it is madded in python
a good game
what is ur real nam
plz tell
okey
i m very bad at speaking
rip headphones
my sis and mom
can i dm u
ok
have u tried making a miencraft server from python
i have
can u teach me how
to
code
text to speech
in python
plz
T~T
so what is ur specialty
what do u do in this server
ctrl+c and ctrl+v
.
how many yearls old r u
which class do u study in
yes
wjat
what
do u know genshin impact?
it is a beauty of python
oooooooooh
teach me
plz
plz
r u normal human or operator of this server or just like me
tell
tel
ooh

do u know import wbbrowser
or import time
he is not able to speak
parker
hlo
go to voice veryfication
channel
means?
he has
ooh
I am verified on discord not twitter! sad!
parker do u play gansin or miencraft
Gensin impact and minecraft
jejus also has verified on twitter
for8 $ who has to be veryfied
insteal u can get burger
spongbob is also veryfied on twitter
Henry Fischel is veryfied on twitter i m sure he is alive lets go and kill him
come with greanaders
at 9pm east
meet me at mars
tommrow
u play with girls
do u mean
ludo on bed
wait
r u spiderman
How can i learn Functional programming in python and practice @somber heath
he dosent teach
He teach only girls
print('/kill !a')
at night
ook
may be he has a secrate
who write sec-c instead of section c on paper
exam
parkeri have minecraft server
with custom datapacks
custom overworld custom end custom nether
i think functional programming looks cool and more pythonic but it sucks readability
oh new word pythonic
I don't play games!
ok u play with girls
parker can i dm u
i have to share some secrate
r u indina
indian
import (mod) as devloper
mod.set((Shaurya))
set.mod SHAURYA
L-systems
str.replace
str.maketrans
str.translate
I think u need to do ur homework
i did tha t early
2.4.8.16.32.64.128.256,512
and so on
parker can i dm u
plz
lzp
zl p
z lpz
lz p
z \
he left
parker died due to explosion of pc
T~T
he was a good man
T~T
rip parker
DM's opens for girls
which grade
ok
8th
and u ?
tell
tell
opal is saying that u r greay
but i said
i agree
I'll thank you to not put words in my mouth.
is spaming allowed in this server
same to u
brother
same to u
parker
i m going to make history
what does fuck means
everybody says fuck to me
be quiet like good boy!
"Fuck around and find out."
or
"If you spam, you will find out what happens."
Don't use too much discord and social media play with friends
u r a kid i will advice u enjoy ur time and make some memories
i m not a kid
life is really boring
u r 14yr old kid
just grow up do collage make gf do wiith gf make kids and teach kid and repat it again and again anda gain
do u know what does anda mean
in hindi
means u have did with ur gf
ok
ooooooooooooh
i knew it
u were wrong
i shaurya fatania challange u to pvp in miencraft
if u not accept it means u r
dust particles
tellllllllllll
tellllllllllll
i chalange u
u accept
or not
Collage (, from the French: coller, "to glue" or "to stick together";) is a technique of art creation, primarily used in the visual arts, but in music too, by which art results from an assemblage of different forms, thus creating a new whole. (Compare with pastiche, which is a "pasting" together.)
A collage may sometimes include magazine and new...
Hey how are you Opal?
good
wait you got two accounts?
no that's not the real opal
he is using voice changer
@somber heath is the real one
oh ๐
hey
we got to faaar
do you mind changing your profile picture
im not going to fight opal's battle for him, but he's said to me before that he doesn't like people taking the profile picture. I get that it's a little different but you are actively trying to confuse people.
It's not the same image, but it could conceivably be considered confusing.
yes
What is the meaning of opalmist and why u choose a pic of sunflower
hi
Ukraine.
Just curious
As to OpalMist, I just liked the two words together.
Ukraine?
ukraine is the largest producer of sunflower?
Might be.
i am brazilian
Cool!
maybe
r u from ukraine
No.
@somber heath working on any projects?
i can't streaming ;-;
DHCP server, dont know what that means....
oh
is there any project you are really proud of? Opal?
you have the source code?
No i will check it out
ig its too old i cant find them
Dynamic host configuration protocol?
can we create protocls in python?
idk.. opal any idea?
wtf these amazing, you did this with python?
LK99
super conductor at room temp discovered by south koreans
Hey ahp how are you
hello
if the code works, its good
well you cant expect a beginner to write clean, good code
ah i realized i need to be in this server for 3 days to be able to speak so i decided to quit
hmm you were here for a long time before..
@somber heath does it run minecraft?
@somber heath does it run minecraft?
@somber heath does it run minecraft?
@drifting phoenix ๐
๐
@velvet patrol ๐
Greetings! how can i get permission to talk in the channel?
Oh I see thank you
what are you guys up to right now?
It seems like itโs pretty much body doubling?
Itโs where people hang out as a form of holding each other accountable and being productive
Are you guys working on a project?
Cool!
How long have you guys been using python?
@vital mulch ๐
Dang thats super sick ! I just got back to coding. I went to a coding bootcamp in 2020 and I didnt feel like I learned anything. now I am trying to go the self tuaght rout so I can get a job as a software programming.
anytips for a noob like me?
@ionic garden ๐
mate I cant talk in the vc is it a muted vc?
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
btw I am zam currently learning python majoring in cs
Thank you! I am actually currently having problem with imposter syndrome I would say that thats my biggest hurtle for me, and that means alot thanks @somber heath
seems to be missing the start of the problem text
to keep the code in between 1 to 100
that should probably be if not while
agreed if statement
wait the problem stays
I used the if statement
I removed the while
and using if
only
If you are trying to go thru nums from 1- 100 I would sugguest a for loop
not a while loop @ionic garden
the question doesn't seen to ask to go through all numbers
only to process one input
@uncut meteor SRV
if thats the case shouldnt it be a short code just as long as its divisable by 2 == 0 its not wierd?
my only experience with SRV records was to have two separate Minecraft ports on the same host without making users input the port
@ionic garden Could you sent the link of the problem
@uncut meteor
bro can i ask a question
@uncut meteor
can i ask a question guys
would these headers work?
What do you use raspberry pi for?
would that work?
heres the link
2 factoral authentication
yeah it will bulk enable 50k ubi accounts 2fa
shhh
for sure im not gonna sell accounts that i grind in a game auto
๐
2 FA dang
@uncut meteor mate can u help me out a bit in here
@ionic garden I am looking in to it right now
with this prob
thanks mate
@uncut meteor i might be a bit stupid bc i created around 50k mail accounts on my domain name lol
on the left side is the problem
thats the whole
if its not divisible by 2 then its odd
using modulus
agreed
hi
does anyone know how to bypass the FunCaptcha thing using selenium/python wtv there is for free
yea but I just dont know why the code isnot running
what is it producing? for output?
The problem says it should be inclusive so it shoudl be 2<=n<=5 instead of 2<n<5
and also with the 5<n<20
does anyone know how to bypass the FunCaptcha thing using selenium/python wtv there is for free?
how do you guys use python mainly?
weirdly the code is right but
hackathon
saying that its not
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
it looks like you deleted some code the was already placed on before @ionic garden maybe that is it
wait that might be the case
matethanks
I did actually they were using dic
does anyone know how to bypass the FunCaptcha thing using selenium/python wtv there is for free??????
I dont know what even does that mean so I just remoivied it
if name == 'main':
n = int(input().strip())
see the previous answer
feel free to reach out anytime to me @ionic garden if I am able to help Ill try
how to bypass the FunCaptcha
how is it not violation of ToS?
its not for discord
and?
where does it say its breaking tos
crax, its a breach of ToS. please drop the subject and also not ask for help here.
it's breaking ToS of whatever site you're doing it on
fine
and ToS of FunCaptcha itself, if it exists
just joined today actually, I wanted join a community so ican dive deeper in to the code and surround my self with programmers so i can keep my self motiviated
Crax, whatever you are trying to do, great you wanna learn, however this learning process is not exactly ethical soooo i turn you attention to a new kid on the block "google"
then Duckduckgo
isnt taht worse man
no
ah ok
actually its pretty striaght to the piont
point
sometimes i have issues trying to find things that google brings up
so i guess thats a good thing
thanks
your welcome, again whatever your trying to do, IF its logical and not malice we would love to see it.
@echo garden what are the most important concepts to learn to become a software engineer?
Logic, algebra, various data concepts in matricies.
im new to python
a bit
i managed to code something
but
im stuck at the funcaptcha part
I see ok so just going off what @uncut meteor said how dose one become a better problem solver ?
iki just said
!warn @whole bear Stop asking for help with ToS breaking
:incoming_envelope: :ok_hand: applied warning to @whole bear.
bro
im not
asking
im just answering
create or find problems that can be rendered in code.
like Q/A?
more like the standard flow chart process of logical conclusions.
Yes or No, 1's and 0's
@keen tiger Corey Schafer.
@keen tiger I recommend code https://www.freecodecamp.org/
@keen tiger https://www.youtube.com/watch?v=XKHEtdqhLK8&t=7618s he's most informative and very detailed in this video, he gets better after about 3 to 5 mins
Python tutorial for beginners full course
#python #tutorial #beginners
โญ๏ธTime Stampsโญ๏ธ
#1 (00:00:00)โ Python tutorial for beginners ๐
#2 (00:05:57โ) variables โ
#3 (00;17;38โ) multiple assignment ๐
#4 (00:20:27โ) string methods ใฐ๏ธ
#5 (00:25:13โ) type cast ๐ฑ
#6 (00:30:14โ) user input โจ๏ธ
#7 (00:36:50โ) math functions ๐งฎ
#8 (00:40:58...
they teach python
You guys have lot of experience!
@keen tiger this one is really good https://www.udemy.com/course/100-days-of-code/
Python tutorial for beginners full course
#python #tutorial #beginners
โญ๏ธTime Stampsโญ๏ธ
#1 (00:00:00)โ Python tutorial for beginners ๐
#2 (00:05:57โ) variables โ
#3 (00;17;38โ) multiple assignment ๐
#4 (00:20:27โ) string methods ใฐ๏ธ
#5 (00:25:13โ) type cast ๐ฑ
#6 (00:30:14โ) user input โจ๏ธ
#7 (00:36:50โ) math functions ๐งฎ
#8 (00:40:58...
@keen tiger there ya go
she dosent teach html its just python
damn 12 hours
