#off-topic-lounge-text
1 messages · Page 7 of 1
I went Python -> JS -> CS -> Go (I forget most of it) -> Rust
I think we've got a BBC Micro in the attic 😄
The British Broadcasting Corporation Microcomputer System, or BBC Micro, is a series of microcomputers and associated peripherals designed and built by Acorn Computers in the 1980s for the BBC Computer Literacy Project. Designed with an emphasis on education, it was notable for its ruggedness, expandability, and the quality of its operating syst...
Fun fact, this was the inspiration for the Raspberry Pi
I think so anyway, that might not be right 😄
Heading off cya 👋
Cya @cold lintel
What is it shared book?
i need help @primal bison plz
@obtuse nebula can you help idk why this isn't outputting anything
bro i use rasp berry pi
i love rasp berry i build my first cctv camera using raspberry pi zero w
it was amazing and fun! 😛
@unborn sorrel i'm trying to be like you 
Question about the voice channels: Do people ever use them for remote body doubling? (aka just sitting semi-quietly on a meeting for focus and concentration purposes.)
The Coding Train
Hi
hi
I literally opened discord to do this and saw your message by chance lol
To answer your question, I do it and I guess many others also do it
import discord
hey there
whats up?
import random
def game(comp, you):
if comp == you:
return None
elif comp == "s":
if you == "w":
return False
elif you == "g":
return True
elif comp == "w":
if you == "g":
return False
elif you == "s":
return True
elif comp == "g":
if you == "s":
return False
elif you == "w":
return True
print("Computer's Turn: Snake(s),Water(w),Gun(g)?")
option=['s','w','g']
comp = random.choice(option)
you=input("Your's Turn: Snake(s),Water(w),Gun(g)? ")
game(comp, you)
print(f"Your's choice {you}")
print(f"Computer's choice {comp}")
if game(comp, you) == None:
print("Its a tie")
elif game(comp, you):
print("You Win")
else:
print("You Lose")
hello guys, its a snake water gun game, I want to add "Do you want to play again option", So what to do?
#❓|how-to-get-help
#❓|how-to-get-help might be better
hey i wan to learn python
One of the thing you need to always remember
Can someone please explain why the output of this is 0.01?
if m == -1:
return n
pw = n * power(n, m+1)
return 1/pw
print(power(10, -4)) ```
hello everyone I am a python beginner I am locking for someone can help me to create a diagram and web application with django or flask the Idea of the project is ready template and DNS as well just I need help in backend I want to make website with sign up form that take data from user and store it to create new web page special for patient profiles.
ur voice is bass boosted like fire
yes plz
manly vibes
True, that euro accent coming through lol
I dont want to talk about it
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!video
!video
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
def power(n, m):
if m == 0:
return 1
elif m > 0:
return n * power(n, m-1)
else:
return 1 / (n * power(n, -m-1))
print(power(10, -4))
Thank you, I've understood my mistake since yesterday
!e
print(1 + True)
@frank oar :white_check_mark: Your 3.11 eval job has completed with return code 0.
2
!e
print(1 + 5>=5)
@frank oar :white_check_mark: Your 3.11 eval job has completed with return code 0.
True
!e
print(1 + (5 >=5 ))
@frank oar :white_check_mark: Your 3.11 eval job has completed with return code 0.
2
!e
"A" in True
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | "A" in True
004 | TypeError: argument of type 'bool' is not iterable
!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!
!code
you using python
because math library would be perfect for this
or you could construct a potential circle around a point to find the distance
using
😮 ?
!code
!video
!video
hello
hello
Hello
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@unborn sorrel Om mani padme hum!
Could I stream today? I have some typescript stuff I'm working on
Sure 🙂
!stream 500168097852948482
✅ @opaque tusk can now stream until <t:1684601365:f>.
In this video we make and evaluate several hard drives that we didn't want. Drawing some inspiration from vexing current events, we find that creative, structured thought on adjacent (but frivolous) problems is a sort of digestive act, and one that is ultimately laxative.
Paper, source code, ringtones (and for a limited time, the data and viewe...
Hey guys !
Is anyone free to guide me on some in inexplicable happenings in python ?
and I am sorry if I bother anyone.
Help
jessie, we have to cook 💀
@tender tangle 👋 haven't seen you in a while
i also don't take any days off but i mostly have enough time to play games at the end of the day and chill so i don't see it as an issue
@buoyant kestrel https://en.wikipedia.org/wiki/Thistle,_Utah
Thistle is a ghost town in Spanish Fork Canyon in southeastern Utah County, Utah, United States. During the era of steam locomotives, the town's primary industry was servicing trains for the Denver and Rio Grande Western Railroad (often shortened to D&RG, D&RGW, or Rio Grande). The fortunes of the town were closely linked with those of the railr...
:incoming_envelope: :ok_hand: applied timeout to @tiny sorrel until <t:1684785771:f> (10 minutes) (reason: attachments spam - sent 8 attachments).
The <@&831776746206265384> have been alerted for review.
!unmute
user
!untimeout <user> [pardon_reason=None]
Can also use: unmute
Prematurely end the active timeout infraction for the user.
!unmute 651523982364770325
:incoming_envelope: :ok_hand: pardoned infraction timeout for @tiny sorrel.
yo why cant i talk
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!stream 158020687850766338
✅ @manic tiger can now stream until <t:1685123594:f>.
i cant talk
Hi there
hi
hi
hi
anybody here can help me with webscraping
what do u need help with
Hello everyone, I am new to python. I am trying to run a program through the terminal window, but I'm not sure how to access it. it's currently located on my desktop in a folder called python_work
may someone assist?
Hello
I might help you, what's your problem?
can we talk?
Yea I'm all ears
do static and dynamic polymorphism exist in Python 3, insofar as there is a diffrence?
!rule 2.3
The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.
!rule 13
:x: Invalid rule indices: 13
!rule 11
:x: Invalid rule indices: 11
!rule 10
!name 3
:incoming_envelope: :ok_hand: applied timeout to @mellow cedar until <t:1685647777:f> (10 minutes) (reason: mentions spam - sent 15 mentions).
The <@&831776746206265384> have been alerted for review.
hello everyone !
I am hayd...
a Python professional programmer
and I hope to be useful
more than 3 year programming in Python
and I created a programming language that called strike I as extension for my frame work
that is morsaFM now you can get morsaFM beta 1.2 from this link:
https://haydarali0980.wixsite.com/fpu-group
hey @atomic phoenix
i need help
yeah the domain thing
i just want a domain
if impossible
me not here
The Trojan Horse was a wooden horse said to have been used by the Greeks during the Trojan War to enter the city of Troy and win the war. The Trojan Horse is not mentioned in Homer's Iliad, with the poem ending before the war is concluded, and it is only briefly mentioned in the Odyssey. But in the Aeneid by Virgil, after a fruitless 10-year sie...
@winter vortex hey!
i don't have voice verification :DDD
yeah, it sa-bee-nah
Definitely not Sabrina!
nice to meet you all

ohhh, i wanna tea now too
well,,,, i code
sometimes :DDD
i'm a undergrad student and my major is international business, but my minor is CS
so yeah, i was looking for some cool community to join and talk about programming sometimes

do you work? or study? or else?
cool cool cool
oh okay!
LOL
@faint trout cool profile pic and name
ty
@night lily could you help me with a programming problem
Much is possible.
im having issues where it not breaking a in range loop
Can you post your code?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
im trying to make a coordinates array to begin making an ulm spiral
also I put the print(n) to test, it goes over the limit and seems to reset which I dont understand why
no worries
Maybe if I had the computer open, so, sorry. I would suggest...something different.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
hmm
hey
here's today quote "Love is like a fart ..if you push it too much ...it's probabily crap "
You know, I don't hate that
:)
Today I was working on a plant identifier app
python , flask , ml
umm it's for android and ios
umm they using react native for frontend
@trail shard "Return the stone"
what stone?
@trail shard that episode of courage the crowldy dog
"pathar lauta do" .... now you remember ?
i don't remember that episode courge was stuff of my nightmares i just remember my nightmares about it now
ohh
i can still remember worm coming in my dreams in a scene of courage the dog and me falling in an infinitely deep pit
along with the old lady and the man
@buoyant kestrel we don't have plant description data ... so whenever the plant is scanned it returns the Scientific name and we ask chat gpt to give us the description XD
they make me remember of my grandma and my late grandpa . Now i just feel sad remembering about that show
also we are storing the data ... so if they search another time ..it directly fetch from the database
!code
i also suggest wiki api ...but they were like "Nope ...you are intern ... we don't listen to intern" ;-;
.... and ChatGPT is a better option in their eyes?
ye
meh they have to pay for it also ...should have use wiki api
no no
umm .. i would one day
!voice
#voice-verification !voiceverify in there
Gotta dc then rejoin in order for the perm to kick in
Or swap between channels
It's weird
i prefer tea
I like tried 10-20 times in amazon... i am still receiving rejection mail
@gloomy lily is DSA is must ?
data structure and algorithm
cause i am really scare of it
!stream 425201093929205780
✅ @trail shard can now stream until <t:1686069612:f>.
@trail shard you can look for a startup
you will get to learn a lot form there
and i be honest during this recession period ...getting job in india has gone much tougher now
@gloomy lily daam.... i am getting like 125$ / month
basically nuts
ye it is
though i got selected at mnc ..but they have onboarding on around july
have to survive till then
meh
i don't think it will be like "future changing "
Do we remember what happened to google glass?
they just vanished
apple did make gaming consoles back in the days
microsoft phone was good ... very good optimised ..too bad they abandon them soon
Were there stage lights?
@gloomy lily do microsoft's office have slides ?
@buoyant kestrel 📖🍌
I think the average person would say, "Well, the company has to make money, doesn't it?" because people are dull and credulous.
A company has to make money in order to pay their workers
@gloomy lily
@atomic phoenix sup
They do have good marketing I’ll give them that. But until they actually prove their claims, it’s all a pipedream.
They talk a damn good game
yeah lets hope that all the dreams come true 😄
@obtuse nebula
@buoyant kestrel
@atomic phoenix hi
how can i activate this voice thingy
do .!voiceverify
and itll tell you
@short lark ha, it's a scam from @crisp pecan
do it in the voice verification chat
!voice @primal bison @short lark 👇
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
So, not a scam.
wdym scam
!voice
!e
code
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
nice
hey
programming, wanna join?
hi
Hi
@buoyant kestrel Can you verify me for streaming? I'm in the live coding voice
✅ @winter tusk can now stream until <t:1686772740:f>.
Sorry, was reading something for work
How do you feel? 😌
anyone here that codes in python up for a little challenge?
Haha that sounds pretty accurate 😂 Do you think you’ll continue with cybersecurity stuff?
Hey guys, I have a question once again, and this might be the last one.
https://paste.pythondiscord.com/foharozutu
I get interaction failed errors every time I press the claim button, can you help me?
!voiceverify
@buoyant kestrel Can I streaming perms for live coding?
Whatcha working on?
I'm testing out Haven's rattlescript bs. I'm just making a terminal game that actually involves a character called hemlock lol
✅ @winter tusk can now stream until <t:1686840319:f>.
Thanks!
!stream 817757858480783371 4h
✅ @winter tusk can now stream until <t:1686854874:f>.
@calm bay How long does it usually take you to crank out a ray tracer
Depends on how "completed" you want it to be, if you want just a sphere with some super basic shading then maybe a day or two
Otherwise one could argue I'm still working on my big one...
anyone up for an EDA project? (please say yes my projects due in two days)
my docstrings are closer in color to my strings, but they're slightly different
using x = Parent::field
oh my vs code has docstrings same color as comments
pycharm is string and docstring
but i think professional is slightly different string color for docstring
oi
wym lol
like filler names?
OOHH
i use stars and stuff
@quasi stratus
alternatively, use the lesser known names of greek or roman gods
for example, Selene in place of Luna
im too new to talk
gimme 3 days probably
ye i gotchu at 200%
isort .
im here
is discord.py still deprecated or did someone step in place of danny?
haven't used that in forever
ay nice
ye they're doing some discord bot stuff in vc so i was curious
oi chris, if you've got an rtx card, nvidia broadcast allows you to filter out noise from other speakers on your own machine
yeye
ah i feel ya
rip
self.bot in other parts of the class
that inherits from the class Cog
*args, **kwargs super
yeye
so if you set stuff in the base of the class, you don't need self to define.
but you need to use self to access it. methods by default take self as their first argument
you can use @robust fossil on a method to make it not use self
i just realized did i ping a person with that name? lmao
oops sorry
Mindful, can you show how can we swap hierachy with composition for the dog-animal example ?
oh that's copilot
yeye
i was gonna do that but just didn't look when i typed
oh if you do \ before @, it breaks how it looks but still pings iirc
kinda silly
@dull anvil
but ye backticks should do it
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
solarized 😌
Mindful
Can you show how can we swap hierachy with composition for the dog-animal example ?
@classmethod```
Transform a method into a class method.
A class method receives the class as an implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:
```py
class C:
@classmethod
def f(cls, arg1, arg2): ...
``` The `@classmethod` form is a function [decorator](https://docs.python.org/3/glossary.html#term-decorator) – see [Function definitions](https://docs.python.org/3/reference/compound_stmts.html#function) for details.
A class method can be called either on the class (such as `C.f()`) or on an instance (such as `C().f()`). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.
don't class methods take in a cls as their first arg?
yeye
but if you wanna use nothing, you'd use a staticmethod decorator instead
so it's just only the arguments you'd use, and not access the class
any parameters you wanna require, you throw in dunder init @void torrent
so because name and agae are there, they're required
dunder is double underscore
instead of writing init
__init__
had to do a ton of backslash for that one lol
what i meant
lol
also chris, could you show using *args, **kwargs for the super call and not even needing to throw those as params for the Cat and Dog inits?
since Animal has name and age required
it has its pros and cons
if i'm inheriting a class that has a ton of required parameters in some method, i'd rather not have to deal with keeping up with all of them
ah that works too
lemme find a quick example in a recent project
ah here
so like in my django model, i'd override the save method of a model like ```py
def save(self, *args, **kwargs):
self.full_clean()
super().save(*args, **kwargs)
yeye
i had something uglier prior, but fortunately past me made it much less so lol
lmao all js is hacked in
How does inheritance work in JavaScript? How to use abstract classes and how to use class mixins.
gotta make use of them cores
oh showing getters and setters maybe?
in classes
property decorator and property name.tter
beans are cheap
chicken + rice
beef + potato
pork + buns
radish?
ah
oi chris wyd
also instant coffee is the best
especially adding in shakes and all that
chai as in tea
lol
legit tho dates are nature's candy
me
yessir
lol
yeye
bro why is chandelier balancing so hard
hey
it is
you can get pretty decent quality instant coffee as well
is it not just dehydrated coffee?
i typically brew my coffee but i really do enjoy the taste of my instant coffee
the thing is it's not as big a thing in the states since most americans have special made coffee brewers
whereas the rest of the world typically uses kettles so tea and instant coffee are easier
i feel like the straw thing is bs
cause like, you drink it to taste it
and you kinda want it on your tongue for that
at that point, just take caffeine pills
i don't
coffee's barely got calories lmao
pycharm is zen 🥁
which problem is this chris?
hi
How much harder is leetcode than say 100 to 200 level problems in Project Euler?
Hello
hi
is anybody there
im enjoying time with the misses
and toying around with the discord customization options
hiii
we are watching "Chills" on Youtube
my mic is supressed
oh ok
yeah
it is red
mic button
i am not bleeding 😂
where are you from?
russia?
i like russian people
me and the miss's are watching the "chills" video he put out today that is apparently a 3 Hour marathon
of all of his material edited to just show the cool stuff with not much of a wait for the next
englsih hindi marathi and punjabi
but idk any coding languages 😭
noooo 🤣
hmhm but i am talking about real languages not programming languages
hm
both
😂
🤣 @winter tusk
?
nothing wrong ping
i said i tagged the wrong person
what?
no 😂
i am sleepy
its 5:09 am here
is anyone a cs engineer from you guys?
nice
where do you work? @winter tusk
nah i wanna be ece engineer
😂
what are you talking about @pliant prairie
its not boring
ece
electrical and electronics engineering
😂
no
here its electronics
who did electrical engineering?
me
any questions
what job do you get after graduation
i mean what is the type of work you do in your career
arent you a boy?
i know it
80 ohms is less resistance
bye
No, a higher ohm rating doesn't mean more volume. In fact, it's quite the opposite: headphones with a higher impedance (measured in ohms) require more power to deliver high audio levels.
In simple terms, impedance is the measure of the resistance a device gives to the flow of electric current. High-impedance headphones are typically used in professional settings like studios, where they're connected to high-power amplifiers that can easily overcome the resistance. These high-impedance headphones tend to provide a higher level of audio quality, which is crucial in such professional settings.
On the other hand, low-impedance headphones are designed to be used with devices that have weaker amplification, like smartphones, portable music players, and laptops. These devices don't have the power necessary to effectively drive high-impedance headphones, so they're better suited to headphones with lower ohm ratings.
To summarize, higher ohms (impedance) doesn't mean more volume; instead, it indicates that the headphones need more power to reach their potential volume. Without adequate power from an amplifier, high-impedance headphones might actually sound quieter than their low-impedance counterparts when used with typical consumer electronic devices.
@pliant prairie @next cargo @slow wind I am watching you on Voice chat. What would recommend for someone starting out for learning how to code in python?
I signed up for udemy Been taking online courses I have read a couple books as well
I just saw that there was alot of free learning content online
datacamp
can someone help figure this out.
im having issues with my code saying it has "object has no attribute" but the code I am trying to learn off of is almost the SAME
i dont get it.
hello i need help in my program of building a roulette table
here is the code
import random
name = input("Hello please tell us your name: ")
print(f"Hello Mr {name} welcome to the roulette table")
print("Insert 100 bucks to play")
table = ['RED', 'BLACK', 'GREEN']
choice = random.choices(table, k=1, weights=[18, 18, 2])
colour = choice
if colour == 'BLACK':
print("You owe the roulette table 100 bucks because it landed at black")
elif colour == 'RED':
print('You owe the roulette table 100 bucks because it landed at red')
elif colour == 'GREEN':
print("Congratulations you won 7000 bucks")
hmmm
!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.
@vague compass
Thx
Hey all, can we move over to one of the regular VC's for OT?
were at 48th and main? didn't you know weve invaded
sudo sh -c "echo nameserver 8.8.8.8 > /etc/resolv.conf"
?user
what are you needing help with?
well, i dont know anything about coding, i make music and i have 50 tracks that i want to arrange together based on how well they work sonically and how well they transition, i tried to use chatgpt to write a code for me i went somewhere with it sort of but it kept giving me errors so i was wondering if somebody can walk me through getting it to work
can you post the code and errors?
sure give me a moment
ok
@craggy elbowi can hop on a vc and stream it if thats better for you
cant use mic tho
can you dm call would be easier
most def
WSGIApplicationGroup %{GLOBAL}
View open-vm-tools in the Fedora package repositories. open-vm-tools: Open Virtual Machine Tools for virtual machines hosted on VMware
vmware-vmblock-fuse.service
@sinful salmon https://www.youtube.com/watch?v=_WOKRaM-HI4
In the past, Security-Enhanced Linux (SELinux) had a reputation of being hard to configure and maintain. Often, Linux admins would turn it off. But SELinux is an important part of a broad security strategy. It’s now a foundational part of important technologies, such as Linux containers, and supports security and scalability in container offerin...
Hey guys, is anyone familiar with COPAAL approach (Corroborative Paths) for knowledge graph fact-checking?
tyoooooooooooooo
!e
a = [1, 2, 3, 4]
b = [6, 7]
print(i for i in zip(a, b))
@next cargo :white_check_mark: Your 3.11 eval job has completed with return code 0.
<generator object <genexpr> at 0x7f14c343c110>
!e
a = [1, 2, 3, 4]
b = [6, 7]
print([i for i in zip(a, b)])
@next cargo :white_check_mark: Your 3.11 eval job has completed with return code 0.
[(1, 6), (2, 7)]
!e
a = [1, 2, 3, 4]
b = [6, 7]
print([i for i in itertools.zip_longest(a, b)])
@next cargo :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 3, in <module>
003 | print([i for i in itertools.zip_longest(a, b)])
004 | ^^^^^^^^^
005 | NameError: name 'itertools' is not defined
!e
import itertools
a = [1, 2, 3, 4]
b = [6, 7]
print([i for i in itertools.zip_longest(a, b)])
@next cargo :white_check_mark: Your 3.11 eval job has completed with return code 0.
[(1, 6), (2, 7), (3, None), (4, None)]
@atomic phoenix
dictionary comprehension @graceful gale
from itertools import zip_longest
from string import digits
class Solution:
def addStrings(self, num1: str, num2: str) -> str:
as_num = {
s: i
for i, s
in enumerate(digits)
}
carry = 0
stack = []
for s1, s2 in zip_longest(
reversed(num1),
reversed(num2),
fillvalue="0",
):
n1, n2 = as_num[s1], as_num[s2]
carry, sum_ = divmod(n1 + n2 + carry, 10)
stack.append(str(sum_))
if carry:
stack.append(str(carry))
return "".join(reversed(stack))
i want that can we customize the traceback in python.....???????
refer this log.error(f"Traceback:\n{traceback.format_exc()}")
Is it me who is not able to hear anything or is it just a stream without any voice/narration bits?
@peak lion hello
@unborn sorrel it looks like you're mixing python with c++?
oh i didn't realize rust used the import keyword
print('Hi kids!')
👋
guys is it even worth learning Python or not because AI will just replace me? I think I'm going to give up coding the AI is just better message me if i'm wrong
@unborn sorrel is that regular expression syntax matching?
I modified IDLE's syntax highlighter and added stuff for a custom IDE project I did awhile back. :D
:incoming_envelope: :ok_hand: applied timeout to @ivory marten until <t:1688042178:f> (10 minutes) (reason: mentions spam - sent 7 mentions).
The <@&831776746206265384> have been alerted for review.
huh
??
!unmute 959798020919144548
:incoming_envelope: :ok_hand: pardoned infraction timeout for @ivory marten.
right, pinging a ton of people like that will automute, keep that in mind haha
thanks
ok
hello all of you
hey
that will be it
morning
no idea
thanks im actually 1
good to know
maroloccio HOW MANY TABS ARE THERE
ok
link?
i am in
again
was this question or statement
request
go again pls
acccepted
@atomic phoenix are you coming
i don't get this
i got kit
share your code @atomic phoenix
it was mulitplication with pi
yeah i got that part
but i was doing with 3.14 instead
and the rounding part i lost
would like another one
@manic tiger are you in
no
ko
come in
@atomic phoenix are you joining us
does it show my result there
it crashed at my end
what is it
my score percentage i was asking
i got it
this game hates me
i got all the testcases riht
i get it stop kidding me
I gtg
what is this
!stream 1103046110509006970
✅ @primal bison can now stream until <t:1688142704:f>.
✅ @primal bison can now stream until <t:1688144179:f>.
<t:1688145060:F>
:incoming_envelope: :ok_hand: applied timeout to @barren canopy until <t:1688162427:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
!unmute 690191470715601158 @barren canopy I'm unmuting you, but keep in mind, if you're spamming to be able to get past the voice gate, you will be voice banned for a longer period of time. Engage meaningfully, you'll get there.
:incoming_envelope: :ok_hand: pardoned infraction timeout for @barren canopy.
alr thanks
Why would you share ur key, hope its not the real one
if m1 == '+' or m1 == '-' or m1 == '/' or m1 == '*':
print ()
else:
print ('invalid input')
continue
if m1 in '+-/*':
do stuff
!e for op in ['+', '-', '*', '/']: print(op)
@opaque tusk :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | +
002 | -
003 | *
004 | /
!past
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
HEy guys
i just run into this mojo programing language
feels like python , but they claming it's 35X faster
ahh
ohh
@pliant prairie :white_check_mark: Your 3.11 eval job has completed with return code 0.
[1, 2, 3, 4, 5, 6, 7, 9]
you know by seeing these sheeps .. i just remember there is a festival called Eid Al-Adha on the day before yesterday where they sacrifise poor sheeps ;-;
Build with Visual Studio Code, anywhere, anytime, entirely in your browser.
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
<generator object merge at 0x7fe9413fc9e0>
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
1 2 3 4 5 6 7 9
!e
print("world hello")
@azure matrix :white_check_mark: Your 3.11 eval job has completed with return code 0.
world hello
does it also import ?
!e
import numpy as np
arr = np.array( [[ 1, 2, 3],[ 4, 2, 5]] )
print("Array is of type: ", type(arr))
@azure matrix :white_check_mark: Your 3.11 eval job has completed with return code 0.
Array is of type: <class 'numpy.ndarray'>
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Package Version
002 | ----------------- ------------
003 | anyio 3.7.0
004 | arrow 1.2.3
005 | async-generator 1.10
006 | attrs 22.2.0
007 | beautifulsoup4 4.12.2
008 | contourpy 1.0.7
009 | cycler 0.11.0
010 | einspect 0.5.16
011 | fishhook 0.2.8.post10
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/idupazidek.txt?noredirect
i dont know
!e
import kivy
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text='Hello world')
if __name__ == '__main__':
MyApp().run()
@azure matrix :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | import kivy
004 | ModuleNotFoundError: No module named 'kivy'
hehe was checking what it will show if i tried this gui based library
@dull anvil :warning: Your 3.11 eval job has completed with return code 0.
[No output]
maybe theres the full SWROTS in gifs 😂

I will know the perfect girl that fits to be my GF when she answer with gif of general grievous saying "General Kenobi" to my Hello There message when a match happen on tinder 😂
guess this will never happen
Trust only in the force and this will happen

😦
[[0 for i in range(row)] for j in range(row)]
Thanks again 🙂
hi i need help
can someone help me with an issue i did multithreading on making post/get requests but the ram usage goes crazy
i used threadpool executer
and the request i was using the httpx
i also got recommended asyncio but didn't understand the usage of it tbh
will get into that thank you maam
i've seen many .exe python written projects works the same way with like 105 ram usage
10%*
mine goes to 99% with time
trying now hope it works thank u for ur ideas
Hi
Is there anyone who has experienced segment fault on linux
Thank you for your reply. Yes, I deployed my selenium app on Amazon EC2(amazon linux 2 AMI) but google-chrome is not working properly.
When run "google-chrome --version", I get getfault
Can you give me some advice from your experience.
How do you fix it before?
Thank you. It seems you have a rich experience in python. I will try according to your guide.
Is there no matter on me to send DM when I have a problem?
Sure, Sorry to ask that.
<- filtered by two sum
Python is a great language, with a few... cursed exploits. While a lot of implementation details make it easier to work with, they also lead to quirks - quirks which can be exploited for fun (and profit?). Whether it's variables, match statements, type hinting, imports, or even just trying to fit everything on one line, this talk has more than a...
from typing import List
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
mp = {}
return next(([mp[target-num],i] for i, num in enumerate(nums) if target - num in mp or (mp.__setitem__(num, i) and False)), [])
class Solution:
def isSubsequence(self, s: str, t: str) -> bool:
if not s:
return True
i = 0
j = 0
while( i < len(s) and j < len(t) ):
# they are equal a=ab
if(s[i]==t[j]):
print(f"{s[i]} = {t[j]}")
i+=1
j+=1
else:
#we look for a match of j
j+=1
return i == len(s)
hi
@unborn sorrel ping when back
hi
i can't speak
i should send 50 message
Can i send a message here or it will be spam
ok
Sorry my language is not good
i will find why to translate voice in descord
wow @atomic phoenix
good
continue, you can do it
i am arabic @pliant prairie
Gtg byee
ایرانی هستی ؟؟؟
سلام محمود
یه ایرانی پیدا کردم
@old root
@calm bay عه سلام
دوتا ایرانی
@shadow ivy to ham irani hasti ?
4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.
I am thru a book called python distilled , just trying to refresh my python knowledge , anyone would be interested if i share and go thru ?
!rule english
4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.
!voiceverify
.
how can i talk here
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Don't lie
If you are Not an iranian person
How you know the Finghlish typing ???
yeah hi
sorry
so how can i speak
no
my mic is restrikted
discord is restrikting it in the channel
i like discord
wait
Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:
• You have been on the server for less than 3 days.
• You have sent less than 50 messages.
• You have been active for fewer than 3 ten-minute blocks.
that is why
Can you solve this real interview question? Sum of All Odd Length Subarrays - Given an array of positive integers arr, return the sum of all possible odd-length subarrays of arr.
A subarray is a contiguous subsequence of the array.
Example 1:
Input: arr = [1,4,2,5,3]
Output: 58
Explanation: The odd-length subarrays of arr and their sums a...
he copypasted too
cause strg + c and strg + v is cool
Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:
• You have been on the server for less than 3 days.
• You have sent less than 50 messages.
• You have been active for fewer than 3 ten-minute blocks.
i have to be more than 3 days on the server and at lest sent 50 msg
yes
whoever sayd that that is true
can somewone hit this guy
ok is there no mod in this chat
you should be carful too
and i still wanna hit you
i'm not iranian nor do i speak persian
but i've been asked that enough to know what it means
ok he just sayd the f word
i want to learn python language
not much, just checking in with my coding bros
there's a method to being funny, what that method is I have no idea
names?
alcohol tends to help tho, both for the person telling the joke and the person recieving it
True
hi sup
@pliant prairie you are leader/owner of this server?
fair
I just started learning coding few days ago any beginner advice?
me also
@pliant prairie face reveal?
does anyone know how google sheets works
just joking
how can I talk?
Because for some reason people want their stuff done in google sheets 😦
no I mean in the voice chat
I'm having an issue to understand why a string is not printed where it should.
Specificly, title_left and title_right
Generating output:
if style == 'header':
left_border = f"{theme.color_fg}{theme.color_bg}{theme.header_left}"
right_border = f"{theme.color_fg}{theme.color_bg}{theme.header_right}{cat.reset}"
#center = theme.filler * (width - 2*len(right_border))
elif style == 'title':
left_border = f"{theme.color_fg}{theme.color_bg}{theme.title_left}"
right_border = f"{cat.reset}{theme.color_fg}{theme.color_bg} {theme.title_right}{cat.reset}"
#center = theme.filler * (width - 2*len(right_border))
elif style == 'print':
left_border = f"{theme.color_fg}{theme.color_bg}{theme.border_left}{cat.reset}"
#center = (width - 2 * len(theme.border_left)) // 2 * 2 * " "
right_border = f"{theme.color_fg}{theme.color_bg}{theme.border_right}{cat.reset}"
Output:
╔═ASPIRE by (sea/sri-arjuna) TODO TIME ═╗
╔═Hello World None```
output screenshot?
!e
print("hi"[::-1])
print("".join(reversed("hi")))
@unborn sorrel :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ih
002 | ih
class ParsedField(BaseModel):
name: str
value: str
inline: bool = True
class ParsedEmbed(BaseModel):
title: Optional[str]
description: Optional[str]
colour: Optional[int]
fields: Optional[List[ParsedField]]
def get_asset_embeds(path: str) -> List[Embed]:
json_data = parse_json(path)
embeds: List[Embed] = []
parsed_embeds: List[ParsedEmbed] = []
for embed in json_data["embeds"]:
try:
parsed_embeds.append(ParsedEmbed(**embed))
except ValidationError as e:
raise RuntimeError(
f"There was a problem with parsing the embeds for asset {path}: {e}"
)
for parsed_embed in parsed_embeds:
embed = Embed(
title=parsed_embed.title,
description=parsed_embed.description,
colour=parsed_embed.colour,
)
if not parsed_embed.fields:
embeds.append(embed)
continue
for parsed_field in parsed_embed.fields:
embed.add_field(
name=parsed_field.name,
value=parsed_field.value,
inline=parsed_field.inline,
)
embeds.append(embed)
return embeds
solved by now, thank you 🙂
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
@plain acorn so you'll do full stack development?.
An apparent pattern that breaks, and the reason behind it.
Summer of math exposition: https://3blue1brown.substack.com/p/some3-begins
Learn more at https://some.3b1b.co/
Help fund future projects: https://www.patreon.com/3blue1brown
An equally valuable form of support is to simply share the videos.
For the long-time viewers among you, if this s...
for anyone curious this is what is needed to produce a dimensional environment
z
hi
@dire maple Code for your problem:
import os
import discord
from discord.ext import commands
from config import message_module
import datetime
import pytz
class messageModule(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_message(self, message):
print("{} in {}: {}".format(str(message.author), message.guild.name, message.content))
file = open('log.txt', 'a')
print(date_today_PST)
file.write(f'{date_str}, {time_str} \n')
file.write("{} in {}: {}\n".format(str(message.author), message.guild.name, message.content))
file.close()
await self.filter_message(message)
@commands.Cog.listener()
async def on_ready(self):
print("Message Module Online")
async def filter_message(self, message):
if message_module:
filter_words = ("Hello", "Hola", "hello", "hola", "Hi", "hi", "spamW")
for word in filter_words:
if word in message.content:
await message.delete()
file = open('log.txt', 'a')
file.write(f'{date_str}, {time_str} \n')
file.write("{}'s message in {} was deleted \n".format(
str(message.author), (message.guild.name)))
file.close()
return
date_today_PST = datetime.datetime.now(pytz.timezone('UTC'))
date_str = date_today_PST.strftime("%m/%d/%Y")
time_str = date_today_PST.strftime("%H:%M:%S")
if not os.path.exists('log.txt'):
open('log.txt', 'w+').close()
Intents = discord.Intents().all()
client = discord.Client(intents=discord.Intents.all())
command_prefix = ("Echo", "echo")
bot = commands.Bot('/', intents=Intents)
bot.add_cog(messageModule(bot))
@cosmic falconDesign a system to efficiently store and retrieve a large number of key-value pairs, optimizing for both time and space complexity.
@primal bisonGiven a string, find the longest palindromic substring within it efficiently.
babad - bab
swift @cosmic falcon?
I kinda like swift
you talking about the swift that apple uses?
or a different swift
Yeah Swift that Apple uses
nah I'm done, not worth my time
na come back man
we can go in a different call
join back @calm bay we're in a different call
@heavy crane you online
this looks nice
MojoResult MojoSetMessageContext(
MojoMessageHandle message,
uintptr_t context,
MojoSerializeMessageFunction serialize_message,
MojoDestroyMessageFunction destroy_message,
MojoFinalizeMessageFunction finalize_message);
``` the function signature can work with
that
Alvaro Ramirez Rossello this is one of the authors for mojo compile
lol
lol
it's legit lying and i dont know what to do
it only depends on the time u join
i do not know
you're a new member
what does that mean why doesn't it say that
u have to be here for awhile
i've been here the required 3 days
it used to say that i've not been here long enough
but now it just says lies
:(
give it awhile probably
that's weird
talk in the vc chat
@primal bison Foo.__dict__
my mics suppressed, i just joined ._.
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
@primal bison https://pep8.org/
@calm radish so for example, if i search up code on a sitefor something and i study and copy it, that is better for studying than a youtube video?
Yes because you’re beingtold the answer vs someone learning it on your own and understanding the pitfalls in a more nuanced manner
currently making a bot that analyzes a video and checks the youtube AbuseReportReasons and rates it out of 10 to see if it would get taken down
weird asf
I like that idea man
Good luck on that and try to expand on it after you get your initial goal completed
i need help
Step 1: Accept a number from the user. Convert it into an integer and then store it in a variable num
how do i write this code?
why the big text?
accepted_number = int(input("input number"))
num = input("Number: ")
digit_mapping:{
"One": "1"
"Two": "2"
"Three": "3"
"Four": "4"
"Five": "5"
"Six": "6"
"Seven": "7"
"Eight": "8"
"Nine": "9"
"Ten": "10"
}
number = ""
for ch in num
number += digit_mapping.get(ch) + " "
10's not a digit
and 0 is
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
What resources do you have for learning algebra in Python?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Just youtube, i really need some encouragement & more resources! I have trouble with matrices, logs & piece wise functions..
If anyone knows of any great resources for learning algebra in python, i will be in debt to u this is tough stuff ._.
@primal bison if you know Hindi . Go to YouTube and search for 'code with Harry' there you can see the python playlist. It's very good for a beginner.
Oki
interesting
Hi everyone
BRUH 💀
How do u do?
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
imagine adding Chromify Colors
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@hoary plinth
hey
I need at least 50 messages to talk with you people!
so, I will starting writing hjahahhaha
how do i not have 50 msgs yet
is anyone good with flask and sqlalchamey
no sorry
