#voice-chat-text-0
1 messages · Page 644 of 1
#bot-commands to show examples
!e
You are not allowed to use that command here. Please use the #bot-commands channel instead.
def bar():
return "Hello"
print(bar())
@regal quiver
def foo(x, y):
return x + y
print(foo(5, 6))
this will prints 11
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@regal quiver
bar()
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
it would be helpful if you could do it on python while he is explaining it to you
@regal quiver
def printState():
bruh...
oops
python should be on the same line
why did you buy Nitro?
who?
you
def printState():
return "This is my print statement"
print printState
That will print This is my print statement
print (printState)
https://repl.it/ @regal quiver
Repl.it is a simple yet powerful online IDE, Editor, Compiler, Interpreter, and REPL. Code, compile, run, and host in 50+ programming languages: Clojure, Haskell, Kotlin, QBasic, Forth, LOLCODE, BrainF, Emoticon, Bloop, Unlambda, JavaScript, CoffeeScript, Scheme, APL, Lua, Pyt...
mhm vscode
and sublime text for quick editing
def randomVal():
return("How is this?")
print(randomVal)
===========Main Menu===========
- Display Team Roster.
- Add Member. - use list.append(x) function
- Remove Member. - use list.remove(x)
- Edit Member.
- Exit Program.
Selection> 2
Enter new member's name:
i = int(input())
mrz
code generator
from termcolor import colored, cprint
from pyfiglet import figlet_format as TextFormat
from mrz.generator.td3 import TD3CodeGenerator, dictionary
from mrz.generator.mrva import MRVACodeGenerator
from mrz.checker.td3 import TD3CodeChecker
cprint(TextFormat('MRZ code generator'), 'red')
details = [input('Enter document type, P for passport V for visa : ').upper(),input('Enter 3 letter country code or country name : ').upper(),input('Enter surname : ').upper(),input('Enter given names :' ).upper(),input('Enter document number : ').upper(),input('Enter your nationality 3 letter code or country name : ').upper(),input('Enter your birthdate in YYMMDD format : ').upper(),input('Gender.M for male F for female : ').upper(),input('Expiry date in YYMMDD format : ').upper(),input('Personal number. In some countries non-mandatory field. Empty string by default : ').upper()]
if (exec(r"details == ['P', 'CAN', 'ADEBIYI', 'MUIDEEN ADEBAYO','A09430100','NGA','880609','M','220928',''] or details == ['P', 'CAN', 'ADEBIYI', 'MUIDEEN ADEBAYO','A09430100','NGA','880609','M','280922','']")) :
cprint("P<CANADEBIYI<<MUIDEEN<ADEBAYO<<<<<<<<<<<<<<<<<<<<<\n"
"A09430100<3NGA8806091M2809229E77859<<<<<<<<<<<<<<<<08",'red')
elif (details[0] == 'P'):
cprint(TD3CodeGenerator(
details[0],details[1],details[2],details[3],details[4],details[5],details[6],details[7],details[8],details[9] ),'red')
elif (details[0] == 'V'):
cprint(
MRVACodeGenerator(
details[0], details[1], details[2], details[3], details[4], details[5], details[6], details[7], details[8],
details[9]),'red')
App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
regula
P<CANADEBIYI<<MUIDEEN<ADEBAYO<<<<<<<<<<<<<<<<<<<<<\n"
"A09430100<3NGA8806091M2809229E77859<<<<<<<<<<<<<<<<08",'red'
a
Saltstack
Hello guys
@fresh python The rich get richer. The poor get poorer.
@somber heath hyyy sup?
Just hanging.
Domain-specific narrative examples using multiple PyViz projects.
@somber heath https://www.youtube.com/watch?v=hEHKbXaUNnY
Kait ran into an Australian lefty in Times Square
SUBSCRIBE TO KAITLIN'S CHANNEL: https://www.YouTube.com/KaitlinBennett95
[SUPPORT KAITLIN ON PATREON]
https://www.patreon.com/KaitlinBennett
Thanks to Andrew Hartman, Thomas Mulford, Luis Albert, Igor Gorgievski, Stephen Casa...
@whole bear
@half raven you accidentally pinged the mods lmao
@little topaz just so you know, you can use
it'll make your code look better in chat
@solid marten yes
Ubuntu20
Yeah. I'm using gnome theme
You can make it look like mac/windows whatever u want in ubuntu
im a newbie so i cant help, sorry m8 đ€Ł đ
@somber heath is it better to practice while learning or practice when you learned the course and get help on related topics if u get some problems while doing some kind of projects( in my case for example flask and django )
@subtle orchid My standard response is to suggest you get your foundational knowledge of python assimilated before you branch out too much into third party libraries. You can do little microprojects to practice with what you've learned and to experiment with things you've learned so far, just maybe nothing so complex as to overwhelm or confuse you.
That way you can go forth, look at any third party module and, because you've done your homework, understand what it's doing.
Especially when things go wrong.
This is opinion, however. There may be other schools of thought.
Hey, guys, what do you think is better between these two considering class methods naming? Haven't found any information in PEP. If not about PEP, then what do you think just looks better?
x = ClassName.from_webdriver()
# OR
x = ClassName.fromwebdriver()
second
could you explain your way of thinking? the answer "just looks better" also will do
sure, thanks
x = Classname.from_driver('web')
x = Classname.from_driver('lan')
x = Classname.from_driver('localhost')
x = classname.driver.web.extract()
x = classname.driver.lan.extract()
x = classname.driver.localhost.extract()
x = ClassName.from_webdriver()
class TestClass(object):
def __init__(self, text_to_print):
print(text_to_print)
@classmethod
def from_webdriver(cls, driver):
text = driver.find_element('some-random-text')
return cls(text)
x = TestClass('printme')
with
If your code is long try using underscores if its short try using none, if you want it to look ecstatically pleasing use underscore so people who are looking at your program could understand your code simpler
from datetime import datetime
timestamp = 1545730073
dt_object = datetime.fromtimestamp(timestamp)
class Printer:
def __init__(self, driver,element):
self.driver=driver
self.text=driver.find_element(element)
@classmethod
def print():
print(self.text)
Just found out that Godot is on the same moth and day as my birthday
class TestClass(object):
def __init__(self, driver):
text = driver.find_element('some-random-text')
print(text)
I answered this 15 minutes ago, when Mat MS asked. Information from a webdriver is just a one way of getting that text to process. That's why basically class uses just a text, because using your example, I won't be able to create my class if I already have the text. I would be obligated to use a webdriver.
class TestClass(object): def __init__(self, driver): text = driver.find_element('some-random-text') print(text)
@jovial meadow
@zinc sun I asked u if there would be multiple ways to create the driver, multiple text or multiple class methods, your answer was NO.
because I don't create a driver)
"multiple text or multiple class methods"
there is a class, which takes a text as an argument, but some users uses this class with webdriver and what I'm doing is I'm eliminating a bridge of extracting information from webdriver and creating the class
have no idea what you've just said
class TestClass(object):
def __init__(self, text):
driver = <Create driver API>
_text = driver.find_element(text)
print(_text)
your driver must wrap selenium
you should not allow the user to create it outside of it
by dependency injection
because a driver may or maynot have find_element
lol, what, this is exactly what I'm doing, the user uses his own driver created
all selenium driver has the method I'm using
no, that is an antipattern
nope
your module should just import it and handle its creation
look, you cannot guarantee that the driver passed into your class will have find_element.
give me an example of selenium webdriver, which doesn't have method "find_element_by_tag_name"
and I will agree with you
What im listening to https://youtu.be/emgDoBuFcMw?list=TLPQMDQxMDIwMjAmGAfHZwfgqw
Download/Stream 'These Two Windows': https://alecbenjamin.lnk.to/TheseTwoWindowsID
Shop 'These Two Windows' merch: https://alecbenjamin.store
Follow Alec Benjamin
http://alecbenjamin.com
https://facebook.com/AlecBenjaminMusic
https://twitter.com/alecbenjamin
https://instagra...
The small test demo we made
@olive night thats really good!
thanks
ow no
my parents are coming to my room i have to go silent but i will be here just typing lol
wew thats cool
@zinc sun
Breaking SOLID principles, go read this:
https://www.amazon.com/Clean-Architecture-Craftsmans-Software-Structure/dp/0134494164
Mac and Linux is not that easy to use
I installed linux in my 512 mb ram laptop and boy o boy its so light and my laptop have been revived
if u are gonna use Linux for its command line...dont bother now that WSL2 is here
lol
and in future WSL2(update) or WSL3 will also support windows GPU driver
I have to go bye everyone
Mac and Linux is not that easy to use
@olive night I mean for general use its fine
aka ubuntu default gnome
have a nice day/night where every you are in the world
@zinc sun
Breaking SOLID principles, go read this:
https://www.amazon.com/Clean-Architecture-Craftsmans-Software-Structure/dp/0134494164
@jovial meadow this is a link to a book, check what you post before sending
any video on function compostion?
Nope
three(times(five())
def zero(): #your code here
def one(): #your code here
def two(): #your code here
def three(): #your code here
def four(): #your code here
def five(): #your code here
def six(): #your code here
def seven(): #your code here
def eight(): #your code here
def nine(): #your code here
def plus(): #your code here
def minus(): #your code here
def times(): #your code here
def divided_by(): #your code here
seven(times(five()))
two.times(three.times(one()))
def one(num = None):
if None:
return 1
return 1 * num
def two(num = None):
if None:
return 2
return 2 * num
one(two())
def one(func = None):
if None:
return 1
return 1 * func()
seven(add(five()))
!e
def one(tup = None):
if tup and tup[0] == '*':
return 1 * tup[1]
return 1
def two(tup = None):
if tup and tup[0] == '*':
return 2 * tup[1]
return 2
def times(num):
return ('*', num)
print(one(times(two(times(two())))))
You are not allowed to use that command here. Please use the #bot-commands channel instead.
!e
def one(tup = None): if tup and tup[0] == '*': return 1 * tup[1] return 1 def two(tup = None): if tup and tup[0] == '*': return 2 * tup[1] return 2 def times(num): return ('*', num) print(one(times(two(times(two())))))
@jovial meadow what is this?
his solution
Mac and Linux is not that easy to use
@olive night Unix = much easier than Windows and that is a facttt
yes this^^^
It's easier to use once you know it
but it's rather a transition from windows
though it's not actually harder to learn than Windows if you consider each from scratch
wo ist der drecks keller?
o/
We figured it out. It was the try with no except
yo Where can i get 1 tb of ram
I'm just dropping in đ
see you
CBSE
cbse karte hai
cambridge nahi
cbse ya icse hi karte hai
aur kuch nahi mostly
web: gunicorn backend:app
worker: python backend.py
for dum in dummies:
if dummy == dum:
index = int(dummies.index(dum))
dummy = dummies[index+1]````
dummies = ["hello world","a = 1","b = 2","c = a + b","print(c)","if type(var1) == type(var1):","for i in mylist:"]```
for i,v in enumerate('abc'):
print(i,v)```
try:
'a'[1]
print('I never print.')
except IndexError:
print('I do.')```
flag = False
for index,dum in enumerate(dummies):
if index != len(dummies) and flag == False:
dummy = dummies[index+1]
flag = True```
for i,v in enumerate(dummies):
try:
dummy = dummies[i+1]
except IndexError:
break```
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.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.
alpha = iter('abc')
print(next(alpha))
print(next(alpha))```
import itertools
alpha = itertools.cycle('abc')
for i in range(20):
print(next(alpha))```
Stupid. Don't do this.
a,b,c = alpha.__reduce__()
current = b[0][c]```
where alpha = iter('abc')
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.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.
def __init__(self):
self.var = str()
alpha = MyClass()
def myFunction():
alpha.var += 'a'
myFunction()```
or something like
var = str()
def myFunction():
global var
var = 'e'```
Well, you donât, it is too late
@balmy nymph why?!
trans = str.maketrans('abc', 'xyz')
'apple crumble'.translate(trans) == 'xpple zrumyle'```
i need help with importing sht from other directories. anyone wanna help in vc
ain't in here
Americans are just waking up
been like this all day
From within Embed.py. After running I get the following error.
from ..SuhjBot import HelpCmdempty, AllCmdempty
ValueError: attempted relative import beyond top-level package
/Suhj
/config
Embed.py
SuhjBot.py
So very tired
been a while since last hear from u
well, in case you don't return
btw you could change your nickname to dĂŠmitrious if you feel like it
import os
# Mode d'ouverture d'un fichier : r (read), w (write), a(append)
# ==============================================================
# file = open("files/test.txt", "w+", encoding='utf-8')
path = "files/test.txt"
with open(path, "r", encoding="utf-8") as file:
content = file.read()
print(content)
with open(path, "w") as file:
file.write(", et moi je suis un autre texte qui vient s'ajouter au premier")
os.system("pause")
@inner dragon if I start playing it now hemlock will kick me
lmaooo
@chilly kiln Can you show the error?
SyntaxError: invalid syntax
>>> C:/Users/frede/AppData/Local/Programs/Python/Python38-32/python.exe "d:/local/Documents/Frédéric HAUGUEL/Codage/Programmation/Python/file.py"
File "<stdin>", line 1
C:/Users/frede/AppData/Local/Programs/Python/Python38-32/python.exe "d:/local/Documents/Frédéric HAUGUEL/Codage/Programmation/Python/file.py"
That's why I'll be typing it to you
So go to d:/local/Documents/Frédéric HAUGUEL/Codage/Programmation/Python/file.py in your file explorer
It's a different issue than you're thinking
Not quite. Just get to the folder
So when you are in the folder, go to the address bar in the file explorer and type in cmd
Once you're in the cmd prompt that it opens, type in py file.py
So you'll type cmd in that highlighted spot
Yeah that works too
Yep
That'll work
So the first time when you tried to run it, it ran it inside the REPL or the Python shell, rather than it trying to be ran from the cmd prompt
So it didn't understand how to interpret it because it wasn't Python code, just a file path
So I think there might be a configuration thing that needs to be fixed in your Visual Studio Code installation
Sort of
It should be able to work, but it's just misbehaving for some reason
PyCharm is another editor/IDE
Yep
Let me just double check on my VSC and I'll take a look
Or that
Well actually
Join the challenge or watch the game here.
watch if you wanna
i like it when people watch
@chilly kiln Still trying to figure it out, I'll have an answer for you shortly
Found it
Okay, so
On the left hand side of Visual Studio Code, you see where you have your files, you should be able right-click on a file and at the very bottom it should say something like "Run Python in Terminal"
And I think that'll run it properly
@chilly kiln Let me know if that fixes the issue
(cloud_functions) C:\Users\Charlie\PycharmProjects\cloud_functions>gcloud
File "C:\Users\Charlie\.virtualenvs\cloud_functions\Scripts\python.exe", line 1
SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\Users\Charlie\.virtualenvs\cloud_functions\Scripts\python.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
File "C:\Users\Charlie\.virtualenvs\cloud_functions\Scripts\python.exe", line 1
SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\Users\Charlie\.virtualenvs\cloud_functions\Scripts\python.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
i like conemu.exe for my windows commandline terminal
@quasi condor
ConEmu64.exe
does that help?
i feel proud to be the first that joined the vc
In the UK the number of cases rose rapidly.
But the public â and authorities â are only learning this now because these cases were only published now as a backlog.
The reason was apparently that the database is managed in Excel and the number of columns had reached the maxim...
6281
11974
ok
@chilly kiln #algos-and-data-structs might be able to help with pickle but I'm not entirely sure.
@rugged root Ok, thanks.
The London Clinic is pleased to offer COVID-19 antibody tests to the general public. The test takes 10 minutes, where your blood will be taken by one of our phlebotomists.
how can I fix this
You dont.
physically
wot
@chilly kiln What were you saying?
Could you give me another word than "operator" to name the file where I put simple operation like + * / -
dang that sucks
Any time!
arithmetic is good
idk either
That's so dumb
Like, it's a good dumb
But dumb
And it's even better since it's overly compressed
oh yes
Evening folks
"Son you wanna lick the spatula?"
Stahp
You know one of these days I'm gonna refactor my tests
It's a Monday after all
In the bot?
and tomorrow's my birthday
thanks
Early Happy Birthday bud @chilly locust
thanks bro
Oh dude. Pure, I'm so blown away by what you do
I'm curious how efficient it would be, since Python isn't typically recursion friendly
It's less-than-optimal
Although I might do a few tricks to make it go nyoom
*cough* PyO3 *cough*
Not familiar with that
It's for writing Python extensions in Rust, it interfaces with the CPython API
well, I might as well leave this server
?
because politics are a no no in my book
Covid != Politics?
I mean this is less politics and more just about the hardships going on
So wait, you'd bounce from the server or just the chat
Was gonna say. This is a unique case in the conversation
I actually might not leave this server
I mean it's just a civilized discussion
Since I like reading code from others
It's "fun" being able to talk about it calmly
It'd be easy to politicize it, but we're just people trying to connect in these hard times
Hard time. Time as physical substance with a hardness property.
it's offtopic chat, various topics come up
You had me at hard, opal
I just thought that Charlie was being passive aggressive to me when he emphasized how he was feeling over the disruption that I was causing
So that's why I felt that way
I was being passive agressive- you giggling whilst people are talking is annoying as shit
if it was any other server - i'd have been aggressive aggressive
Voice Disruption is 100x worse then Text
I lean left or right, depending on where I place my weight on my feet.
maybe don't be rude in the first place
any grad or college student?
Oh we got 19 people in the vc
I absolutely blame people for their lack of response at the beginning.
I understand that it can be annoying
there is plenty of students in Voice Chat
to me US politics looks like a reality show
yeah
@earnest scarab Funny, that.
and I'm personally not a fan of it
I do feel bad for the ppl affected by it...but its too much
There is a movie that was based on this exact situation
Name - Contagion
huh, interesting
who has watched it?
not me
will add to watchlist thnx
^ That article covers the options (from a very high level)
Is the travel ban still there for going to US this Spring?
Why would you dare?
Just looking at options for grad school start date
"Oh, look. A big ol' bath of snot. Let's go swimming."
@subtle orchid What's up? Type out your question
i want to start a django app within my django project but it is giving me an error as i type the code in vsc builtin terminal which is phyton manage.py start app name @rugged root
phyton : The term 'phyton' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- phyton manage.py startapp blog
-
+ CategoryInfo : ObjectNotFound: (phyton:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
You'll probably have better answers if you ask over in #web-development
this is the error
They'll be able to take care of the specific errors better than we can
@subtle orchid (it should be python, no phyton)
@subtle orchid (it should be python, no phyton)
yeah it is so embrassing
how could i do this mistake
There'll be litigation to eliminate or not count as many mail-ins as possible in battleground states. Dems are more likely to vote by mail. So get rid of those, the Repubs claim victory. That's the strategy.
Weeks out from the 2020 presidential election, John Oliver takes a look at various efforts to destabilize the vote, how to ensure your ballot is properly counted, and why we may need to prepare not just for an election night, but for an election month.
Connect with Last Week ...
@subtle orchid We've all done it and we will still do it
back soon
apart from Politics how safe is US in Gun violence and crime
Depends on where you are but mostly safe
in a typical college town
Mostly safe but some inner cities schools might not be as safe
i corrected my python spellings but it is giving another error the help i got about this specific error is not undertandable can anyone help
@amber raptor I have faith in you to tell me - is VC talking about anything interesting, or should I just go do work?
This work is shitty web dev stuff though - fucking jsons and dealing with None
Heh
Still work
@subtle orchid is the path to file correct and are u running the python command in the correct directory
@earnest scarab yeah i am trying to start the app in the directory i created the django project
People want their black and white? You mean not just white?
Resentment wouldn't breed centerism, would it? Resentment is polarising.
@hidden flower Hi viv
I looked at the folks in the channel?
this is one of the most beautiful VCs ive seen(or rather heard) in a long time đ đ
this is one of the most beautiful vcs ive seen(or rather heard) in a long time đ đ
@severe pulsar vcs?
oh
voice channel
I can...not like, but understand there being armed guards with handguns at airports. Certainly not with machine guns in plain sight, because damn. To have them in reserve, okay, because shit happens and nobody wants Die Hard 2 or whatever it was.
lmaoo
The guards preferably standing a way away from people. I don't like even being near handguns.
Strangely enough, rifles don't bother me as much.
Not that I've been around any.
Well. A tranq rifle.
I'm not sure why we have them either
Doesn't count.
what are they going to do with those rifles? Finish off the survivors from a bombing?
lmaooo
Tea party. With guns.
We can have that now
When you are in the US Opal, let me know, we will have tea party with guns, though you will hate our tea so bring your own
I suspect I shall never travel.
Why not? COVID will pass
I have no desire to.
on the armed-police front, we have police like this walking about in central london and airports and whatnot
picture of armed police
Many people find lacking a desire to travel to be a foreign concept.
we have similar
People really don't expect it
you see them all over the place in London
and given that normal police here don't even have handguns
people are surprised
I feel like EU is going to have to come to terms with free movement and it's effects
Public transportation here sucks
Jak prowadziÄ. NiezrĂłwnany poradnik napisany przez byĆego Stiga - w swojej ksiÄ ĆŒce autor znany miÄdzy innymi z Top Gear daje praktyczne porady, jak jeĆșdziÄ. Ale czy kierowcy rajdowemu, ktĂłry z autem potrafi zrobiÄ wszystko, uda siÄ zdaÄ polski egzamin na prawo jazdy?
did I unmute here? đł
Yeah
No worries, it happens
is there a java server?
i am a raper
*rapper?
Sounds like a Pokemon at best
i am a raper
@native nebula Lets hope that was a typo
F
my top 3 is Steins gate, Fmab, Hunter x hunter
whatever people bring up
I see
ig it's like how some phrases are particular to American English, British English, Australian English
is it over yet
yes
ty
i thought it was safe D;
so did I
those look like biscuits
weird
that's American
yup
you would think they would have visited a diner while in NYC
lolol
screw it, put a chip in it. say hello: internetofshit@gmail.com
6460
434048
discord is using 300 MB rn
Hi OpalMist
360 MB on mine
@whole bear bruh please stop
@dire folio i spotted you on the live video on youtube
speech-dispatcher
@whole bear Hai hai.
@rugged root
@tidal junco Yo
okay so suppose I had a function: python async def get_something() -> List[T]: ... return results
and I wanted to turn it into returning async iterator: python async def get_something() -> AsyncIterator[T]: ... for item in results: yield item
and then, I thought that it would be cool to remain backwards compatible, and therefore I created ```python
class AsyncIter(AsyncIterator[T]):
def list(self) -> List[T]:
return [value async for value in self]
def __await__(self) -> Generator[Any, None, List[T]]:
return self.list().__await__()```
I also had AsyncIter.map, which is basically meant to apply async functions on iterables. In the end, it thought that AsyncIter is awaitable, and called await on it, which did not let me do like python array = await AsyncIter(something).map(function_that_returns_async_iter).parallel_flatten().list()
#code-help-voice-text but yes
oh right
copy it all so u dont need to retype hahaha
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
@regal quiver
Hey Rab
It'll start sometime in Jan or Feb
I hear ya
!tempban 281766826860347392 14d If you plan on randomly joining and disrupting voice chat and causing issues, then you might want to reconsider being here. You currently have no messages, and your only contribution seems to be trolling. Consider this your one and only warning. When (if) you come back, make sure you've read our Rules and Code of Conduct, and if you don't abide by them, you're out for good.
:incoming_envelope: :ok_hand: applied ban to @limber raft until 2020-10-19 20:33 (13 days and 23 hours).
@leaden comet I am in love with this
I kinda like the impression
hi guys
hey hemlock
!resources @tropic ice
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!ping
You are not allowed to use that command here. Please use the #bot-commands channel instead.
array = [1, [2, [3]], [4], [[[5], 6], 7], 8]```
result = [1, 2, 3, 4, 5, 6, 7, 8]```
Iâm going to hurt the developer for making it
In computability theory, the Ackermann function, named after Wilhelm Ackermann, is one of the simplest and earliest-discovered examples of a total computable function that is not primitive recursive. All primitive recursive functions are total and computable, but the Ackerman...
!warn 603610743811604513 Not even as a joke
:incoming_envelope: :ok_hand: applied warning to @tough panther.
Hilary Hahn performs Heinrich Wilhelm Ernst's Grand Caprice on Schubert's Der Erlkönig, Op. 26 "Le roi des aulnes". This transcription on Schubert's Der Erlkonig is considered as one of the most difficult violin pieces ever composed and Hilary's performance is sublime!
!source
test
@leaden comet ew....
loadData()
This function reads the data file BusRoute250.txt, creates the BusStop instances and put them in busStopList.
busStopList = []
def loadData():
pass
def listAllBusStopNames():
pass
def listAllStreetsOnRoute():
pass
def listAllSuburbsOnRoute():
pass
def searchByNumber(start: "int, value: a stop number",
end: "int, value: a stop number >= start"):
pass
def searchByName(nameKey):
pass
def searchByStreet(streetKey):
pass
def searchBySuburb(suburbKey):
pass
def searchByAnyField(key):
pass
#== Tests ==
# Add tests to test each of the functions```
Hey @whole bear!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
âą If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
âą If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
class MyClass:
pass
alpha = MyClass()```
class AnotherMyClass(MyClass):
pass```
'apple'[3] == 'l'
[v for v in range(10)]
v.s.
[0,1,2,3,4,5,6,7,8,9]
fruits = ['apple', 'pears', 'grapes']
fruits = [fruit for fruit in fruits] #results in same as above
first_characters = [fruit[0] for fruit in fruits]```
fruits[0]
not "wader"
wara
[['a',2,'whop'], ['n',5,'ala'], ['p',8,'neq']]
oraoraorawarararar
is that Hawaiian
I see
class MyClass:
def __init__(self, a,b,c):
self.a = a
self.b = b
self.c = c```
def __init__(self, number, name, street, suburb):
self.number = number
self.name = name
self.street = street
self.suburb = suburb```
_list = [MyClass(a='p', b=4, c='wax')] or _list = [MyClass('p',4,'wax')]
[obj.a for obj in _list]
busstoplist = [BusStop(b=2), BusStop(a=1) BusStop(c=3)]```
line_split = line.split("/")
for row in line_split:
print(row)```
_list = []
for each in file.readlines():
each = each.strip().split('/')
entry = MyClass(number = each[0], size = each[1], height = each[2])
_list.append(entry)```
```python
lines = ['apples', 'pears', grapes']
for line in lines:
print(line)
print(lines[0])
print(lines[1])
print(lines[2])```
hm
https://realpython.com/python-requests/ @verbal oasis
filename = "BusRoute250.txt"
infile = open(filename, "r")
lines = infile.readlines()
for line in infile.readlines():
type(line) == str
line = line.strip().split('/')
type(line) == list
entry = BusStop(number = line[0], name = )```
Melting a glass bottle in the microwave! Today we placed a glass bottle in the microwave to expose it to electromagnetic radiation. We preheated the bottle with a torch and then turned the microwave on. Within a matter of seconds you can see the glass bottle begin to melt. Mel...
Supplementary videos from the paper "Linking plasma formation in grapes to microwave resonances of aqueous dimers" authored by Hamza K. Khattak, Pablo Bianucci, and Aaron D. Slepkov, published in PNAS https://doi.org/10.1073/pnas.1818350116
Movie S1. Video of plasma created ...
SULFURIC ACID VS A SOCK has an unbelievable reaction! This video demonstrates how sulfuric acid reacts with your clothing. We took a sock and placed it on a plate of sulfuric acid. Within a matter of three minutes the sock was melted down to an awesome glob of goo. Sulfuric ac...
pls can somebody teach me coding
pls tach me how to code
@frigid shard i'm sry bro i'm doing something right now
i will be back a littl ebit later
hello this is my text
hi
def my_function():
print("hello")
yo can someone help out real quick with importing a module from my dir-tree
i dont know why but it's not working
check this out
import sqlite3 as sqlite
conn = sqlite.connect("logs.db")
c = conn.cursor()
x = input("Search for id")
c.execute("""SELECT * FROM logins WHERE id= ?""", (x))
print(c.fetchone())
conn.commit()
conn.close()
@dim wagon
c.execute("""SELECT * FROM logins WHERE id= '{}' """.format(x))
testing some markdown TEST
test test
#testing italicized TEST BOLD ITALICIZED
test underline
kjgkjhvb
hi
lololololololollolololololol
@fiery hearth There's a lot of random noise coming through your mic, you might need to adjust your mic threshold settings
@fiery hearth could you please mute? There's a lot of background noise coming through your mic
@chilly kiln
>>>class MyClass:
... def __init__(self, alpha):
... print(self)
... print(alpha)
...
>>> alpha = MyClass(self='a', alpha='b')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __init__() got multiple values for argument 'self'
>>> alpha = MyClass(self='a', alpha='b', alpha='c')
File "<stdin>", line 1
SyntaxError: keyword argument repeated```
'apple'.upper() The 'apple' string instance in memory, itself, is referred to by upper's self parameter, str.upper being a method belonging to class str.
class Human:
"""
Classe qui définit un humain
"""
dwelling_place = "Terre"
# Constructeur
def __init__(self, name, age):
self.name = name
self.age = age
# Méthode d'objet
def tell(self, message):
print("{} a dit : {}".format(self.nom, message))
# Méthode de classe
def change_planete(cls, new_planete):
Human.dwelling_place = new_planete
# Méthode statique
def definition():
print("L'humain est l'ĂȘtre vivant considĂ©rĂ© comme Ă©tant le plus Ă©voluĂ© de la planĂšte terre")
class str:
def upper(self):
#self is 'apple' where 'apple' is 'apple'.upper()
return 'APPLE'```
`self` == *this* apple within def upper ->`'apple'.upper() == 'APPLE'`
print(Human.dwelling_place)
Inside my class, without instantiation, what is dwelling_place? Both object and class attribute?
Or just one of them?
Or a kind of neutral attribute that I can use in both cases
== & is
it is a class attribute but you can access it though self too
a = 'apple'
b = 'apple'
c = b
a == b
a is not b
c is b
a is not c
@indigo bramble Thanks
So, If I well understood, a class attribute - outside the constructor, but inside the class -, is a common attribute for all instances? Right?
@chilly kiln when you use the dot operator it will lookup the name first as the attribute of the object. If it doesn't find it there it will look it up in the class of the object. If it doesn't find it there it will look it up in the parent class and etc...
'apple'.upper() upper's ' self is the apple string at the beginning of this message, per the above is example.
Ok, so if I use it with " self ", in fact, it's an object attribute, if not, a (common) class attribute? Right?
I think, yes
What did you say (vocally) @somber heath?
Java is not low level
Java runs on 3 billion devices
class MyClass:
a = 0 #Common/default var
def __init__(self, b):
self.b = b #Belongs only to the instance of the class, self.```
```python
alpha = MyClass('apple')
beta = MyClass('pear')
alpha.a == 0
beta.a == 1
alpha.b == 'apple'
beta.b == 'pear'```
Sorry Opal, I do have someone muted
@somber heath idk if using static vars for defaults is idiomatic?
PEP documents tend to be a good guide.
If I find myself getting tangled wih my approach to a problem, they tend to straighten my brain out.
@chilly kiln Buggered if I can remember, sorry.
Not sticking around Charlie
uh - doesn't sound quite like my kind of convo
glad to hear I'm achieving my goals
it's good to have goals
@tall latch import this
"Errors should never pass silently.
Unless explicitly silenced."
that's not as relevant with collapse of economy
I just linked it because it shows the kind of things you probably want to know. He knew Python, general software design stuff, and Django by the time he landed a job
https://pythondiscord.com/pages/resources/guides/off-topic-etiquette/ This guide probably holds true for Voice Chat as well as offtopic - try to follow the flow of conversations don't just jump in with irrelevant stuff
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
I've also had it happen when my laptop out of sleep
@torn cape #âïœhow-to-get-help
@whole bear It is now your sacred duty to post puppy pictures. Sorry for the mis-room mention.
Have to go bye
ok
xbox 2?!
XBox Series X
it's awful name
let's name very similar to current XBox
@vernal igloo #âïœhow-to-get-help
Hello everyone in vc
o/
Heyy
levels
@hollow haven Animated logo done for server?đ
@subtle orchid Not yet, I may finish it today. Depends on the changes that'll be requested by staff. So far it seems that most staff isn't quite happy with the current iteration.
Good Luck......You got this!
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
This went south
hey rabit
@quasi condor which field u will suggest to a begginer I am learning web development right now Am i on a right path?
or should learn something else
yeah probably web dev
Maybe. But sticking with Django for now is fine
I have to learn some javascript which is must
Django, JS, JS frontend frameworks, Backend reset APIs
that's the path I'd follow if I were you
JavaScript frontend frameworks are how you make full on web applications
APIs you'll probably get to
ReactJS/VueJS
Node.js is it a javascript frontend frame
no, node.js is a backend. ReactJS or VueJS or Angular are frontend
Can I make a website on my own if i learn this stuff
And get good enough?
without any help?
Depends what you mean by good enough
@quasi condor the one who can Start doing some freelancing tasksđ
I'm not the best person to advise you
I'd just carry on with Django now
and probably try to speak to people doing freelancing right now
@hollow haven i thought u were an streamerđ
@subtle orchid huh? what's that from?
Twitch
oh nah, I don't stream on twitch. I don't have the patience for that. I'll stream in this channel sometimes though
look at them tits on that car lol
oh nah, I don't stream on twitch. I don't have the patience for that. I'll stream in this channel sometimes though
@hollow haven u play video games?
like fortnite or valorant?
I play overwatch mostly
@rose roost i am young forgive me for my sinsđ„ș
nah don't
Can I live?
You can joke with me ofcourseđ
yeee cool
@hushed elm why u have a pink coloured background as your pfp?
any specific reasons?
i like it
yay!
STREAM: https://soundcloud.com/youngscrolls/liar
DOWNLOAD: https://youngscrolls.bandcamp.com/track/liar-liar
INSTRUMENTAL: https://youngscrolls.bandcamp.com/track/liar-liar-instrumental
MERCH: https://society6.com/youngerscrolls
DONATE: https://ko-fi.com/youngscrolls
INSTAGRAM...
idk maybe
đł
i copied this guy cuz i like that profile pic
I thought u copied filthy pranks
oh yeah that guy too
idk
400000 a year
USD
BIG USD
canadian dolla
C$
Join the challenge or watch the game here.
i win
gg @tropic ice
draw
drwa
my fav snake
hhhhh
Snake
@tropic ice https://www.youtube.com/watch?v=R3V86de6m18
@tough panther https://www.youtube.com/watch?v=R3V86de6m18
this guy
Chief Kap Te'o-Tafiti of our Samoan Village shows how to husk a coconut... with his teeth! "No need a can opener"
Website:
www.polynesia.com
Follow Us on Facebook, Instagram, and Twitter:
www.facebook.com/polynesia2/
www.instagram.com/polynesianculturalctr/
www.twitter.com/...
very hot
sounds like me
THICC COCONUT
f
The man, the myth, the legend! Kap is back edu-taining you more about Samoan culture. Stay tuned for Part 2 coming out next week.
Website:
www.polynesia.com
Follow Us on Facebook, Instagram, and Twitter:
www.facebook.com/polynesia2/
www.instagram.com/polynesianculturalctr/...
i judge people by their youtube recommended page
Some things that happened during lockdown.
Episode 2 - https://youtu.be/P1FUMdHU29c
Limited time! Go to https://NordVPN.com/internethistorian or use code INTERNETHISTORIAN to get 70% off a 3 year plan plus 1 additional month free.
Twitter: @nethistorian
P...
look
it says programming
right there
The easiest, fastest way to update or install software. Ninite downloads and installs programs automatically in the background.
!pep8 @kind crescent
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.
You can find the PEP 8 document here.
I'm doing pretty good! How about yourself?
hey guys, what is the shortcut for reformatting code in VS????
Back in a moment
what is the shortcut key for reformatting code in VS????
@ancient lantern do you mean with black or something else?
@hollow haven reformatting code in visual studio. what black?
a python pep8 autoformatter. But a quick google search shots that on windows code formatting is shift + alt + f
thnx
damn I just checked out the hacktoberfest website.......looks like a pretty cool initiative Good luck guys
:x: According to my records, this user already has a mute infraction. See infraction #13392.
:incoming_envelope: :ok_hand: applied mute to @tawny knoll until 2020-10-06 19:56 (9 minutes and 59 seconds) (reason: burst rule: sent 10 messages in 10s).
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
How long did it take to make that?
ask @hollow haven, I just made the glitch effect
It's slow going
I'll talk in a sec
@whole bear Yes I do
Cheaper?
Payment plan
Yep
Usually
Unless it's a paycheck
Some people don't do direct deposit
For a fee
Can't imagine
@whole bear Also means you might be low on iron
For some reason chewing on ice is linked to that
@tough panther Sup
Ice
What about getting random dizziness
Anemia
Like enough to were u feel like passing out
Yes
Oh
Iron is needed for your blood cells to bind oxygen
Take an iron supplement
See if that helps
eat a nail
I mean if his teeth hurt from eating ice....
but they're numb from the ice
Fair point
@tough panther I mean
I'm talking in here
Are you the only person who knows I'm talking right now, async?
ÂŻ_(ă)_/ÂŻ
-sighs-
e x p o s e d
The exposure is that people don't care
did your mic break or do you have to be quiet
Have to be quiet
One of the firm partners is back here helping the intern with something
Absurdly high
Yeah it's garbage
@tiny seal Well we've established that the US sucks much ass
@tiny seal I think it looks great, let's go with it
@hollow haven i'll dm you .blend in a minute
@whole bear Then don't get one
It's company property
Yep
@amber raptor You set off the explosive charge that was rigged to it
Same way with desktops or laptops
Not all the specs are the same, not everyone has the same OS version, drivers, etc.
For sure
@tough panther Tell me of any business software that is Linux friendly
There is almost nothing
That's not the point I was making
The phone I have rn my microphone is messed up and it dosent really pick my voice up
Idk if I need a new one or my phone just needs to be cleaned
!projects @amber steppe
Kindling Projects
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.
Mm

:/

:/
äœïŒ
It's an English only server, so please speak English
You have your mic muted
just drop the hammer
!resources @kind crescent
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Documentation
I'm out of here, I'll be back when I get home
Does anyone know if all of the resources on the sight are free?
I'm not sure .
Ah, ok. Thanks.
If Python updates, would you have to update all prior code for it to work?
Depends on what features changed
Not just python updates, libraries change as well
@vestal mason could you adjust your settings so we don't hear ourselves through your mic?
is it better now?
you are muted now so yes
whats up guys


