#voice-chat-text-0
1 messages ยท Page 767 of 1
what means "intern" ?
so what he's coding right now?
ohhh thanks ok i see
Any starter project recommendations for a starter vs coder?
the new "cat" OS for music XD
!projects
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.
Ill put that on the list for sure
if you know it, you can use OOP for that
I can't think of anything else to do with FP
i have a one-liner
Kinda just waiting on upstream because of a new compiler release
that runs it with matplotlib
yeees the google game of life ^^
funny
langton ant
funny one also
it is a bit simpler
and also proved to be universal with some conditions
this runs the game of life :
(lambda N, P: (lambda f, i: P.show(__import__('matplotlib.animation', fromlist=['FuncAnimation']).FuncAnimation(f, lambda i: [i.set_array((lambda g:(lambda n:N.logical_or(n == 3, N.logical_and(g, n == 2)))((N.sum([N.roll(N.roll(g, y, 1), x, 0)for x in(-1, 0, 1)for y in(-1, 0, 1)if x | y], 0))))(i.get_array())), [i]][1], interval=0, blit=1)))(P.figure(), P.imshow(N.random.rand(200, 400) < .2,)))(__import__("numpy"), __import__("matplotlib.pyplot"))
one line ^^
i see 4 lines
I have to complete 50
and it is graphical
because of discord only
you can join them
yes
it is a "no player game"
what is cool is that we have better things than neural networks
we have algorithms that find patterns from properties
Python server ofc
Watz A Pythang?
I see. I am pretty new to discord.i see sentdex in the list
I've seen his videos on YouTube
did you heard about metacells ?
the cells of the game of life made with hundreds of game of life cells
exactly what you said : game of life in the game of life
the game of life, you don't play it
it is a simulation of a world with veeery simple rules
Yes like when you don't have people around
the universe of the GOL (game of life) is a grid
ohhh yes
you die
the rules are :
- 0 or 1 neighbours : you die
- 2 neighbours : you stay as you are
- 3 neighbours : you begin alive (birth or stay)
- more than 3 : you die
because buddhu asked for it
Yes I have seen few videos on YouTube
the only thing i know about the board game of life is because i put it at the beginning of my presentations aboug conway's one
i use this occasion to do self-promotion : i made a game about John Conway, it is here : https://www.oskarante2.duckdns.org/maths/jeu/conway/en/intro.html
I wish to talk
you'll be able to use voice once you meet the requirements ๐ it's worth the wait
it is quite short to meet them
hii gilly
..
...
....
should we stop?
probably
understanable have a great day
*understandable
if you understand it thats ok with me

What's this timer
that count down is giving me anxiety
oh
This is why I don't let emoji auto animate
LMFAO
What project should I do to get a job
you could probably abuse auto animate emoji if you put enough effort into it
plz elaborate
From Bo Burnham's comedy show What. His skit on combinations of words that people never say.
Bo Burnham's channel: https://www.youtube.com/user/boburnham
The comedy special: https://www.youtube.com/watch?v=ejc5zic4q2A
lol
i love him
who be that boy?
u gon' learn today
I also don't know abt him
what. I hope you enjoy it.
buy the CD here: https://itunes.apple.com/us/album/what./id773753940
or get my poetry book here: http://www.amazon.com/Egghead-Cant-Survive-Ideas-Alone/dp/1455519146
Thanks for watching!
Its 1 hr long!!!!
:)
lol
Can I call anyone
no
911 is free of cost
Hey, do any of you know any good antispam bots?
well that hurt
There's a random bot spamming virus links in another server
Ours?
no
Unable to convert 'antispam' to valid command, tag, or Cog.
!source [source_item]
Can also use: src
Display information and a GitHub link to the source code of a command, tag, or cog.
Oh for
It's for another server
Oh you specifically need one now gotcha
hello
Wow, it's already spammed 180 messages in a couple minutes
What?
someone was spamming in voice-chat-1 i think it was by mistake
What project management system you using for issues?
well i have a question
is Open cv better in C++ or Python?
because its giving me errors in python
#bot-commands !user
flattery
it's not always about you @rugged root lol
#bot-commands !Mr. Hemlock
#bot-commands !FunckyFizz
that's why there's modmail
#butt-commands
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
Ah
ohk i got it i need this command to run in bot-command channel
!user

Created: 5 years, 4 months and 28 days ago
Profile: @rugged root
ID: 98195144192331776
Joined: 2 years, 9 months and 23 days ago
Roles: <@&542431903886606399>, <@&463658397560995840>, <@&764802720779337729>, <@&295488872404484098>, <@&267630620367257601>, <@&797891034906099752>, <@&587606783669829632>, <@&277914926603829249>, <@&267629731250176001>, <@&807415650778742785>, <@&267628507062992896>
Total: 13
Active: 2
Noted
sorry i am noob lmao
Bored
okay guys, I finally have the privileges to speak on VC. ill talk to you tomorrow!
Why not today
im currently busy on something
How do you play
ok sorry
What was that?
FunckyFizzBuzz
@rugged root told me it is not okay, listen to the moderator guys
bruh
Yeah, I just implemented an anti-spam bot
griff is looking really sus
It didn't do anything
@uncut meteor call an emergency meeting
idk
i think he wanna ban me
@warped saffron S A R C A S M
surprise mothe**uckr
dunno what to do
idc
What's fizzbuzz
I just need to know how to fix it
its a flavour of soda
!e
def fizz(num: int):
return "fizz" if not num % 3 else ""
def buzz(num: int):
return "buzz" if not num % 5 else ""
for each in range(1, 1):
print(f"{fizz(each)}{buzz(each)}" or each)
@olive hedge :white_check_mark: Your eval job has completed with return code 0.
001 | fizzbuzz
002 | 1
003 | 2
004 | fizz
005 | 4
006 | buzz
007 | fizz
008 | 7
009 | 8
010 | fizz
011 | buzz
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/wafayuzulo.txt
well, you should just have good problem solving skills
youtube helps
it's like common sense
its if elif else
!e
from typing import List, Union
def fizz_buzzer(n: int, first_divisor: int = 3, second_divisor: int = 5) -> List[Union[str, int]]:
return [
[
num,
[
"Fizz",
[
"Buzz",
"FizzBuzz"
]
[
num%first_divisor==0
]
]
[
num%second_divisor==0
]
]
[
not
num%first_divisor
or
not
num%second_divisor
]
for
num
in
range
(1,n)
]
print(fizz_buzzer(20))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
[1, 2, 'Fizz', 4, 'Buzz', 'Fizz', 7, 8, 'Fizz', 'Buzz', 11, 'Fizz', 13, 14, 'FizzBuzz', 16, 17, 'Fizz', 19]
Is there any majours that do focus on code?
ow.
!e ```python
for fizzbuzz in range(51):
if fizzbuzz % 3 == 0 and fizzbuzz % 5 == 0:
print("fizzbuzz")
continue
elif fizzbuzz % 3 == 0:
print("fizz")
continue
elif fizzbuzz % 5 == 0:
print("buzz")
continue
print(fizzbuzz)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | fizzbuzz
002 | 1
003 | 2
004 | fizz
005 | 4
006 | buzz
007 | fizz
008 | 7
009 | 8
010 | fizz
011 | buzz
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/azoxabohew.txt
!e print("hello world")
@glad spade :white_check_mark: Your eval job has completed with return code 0.
hello world
yup. math.
!e for fizzbuzz in range(1,51,1):
if fizzbuzz % 3 == 0 and fizzbuzz % 5 == 0:
print("fizzbuzz")
continue
elif fizzbuzz % 3 == 0:
print("fizz")
continue
elif fizzbuzz % 5 == 0:
print("buzz")
continue
print(fizzbuzz)
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | fizz
004 | 4
005 | buzz
006 | fizz
007 | 7
008 | 8
009 | fizz
010 | buzz
011 | 11
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/xamoyowini.txt
!e
for(i)in range(1,101):print(["FizzBuzz",["Fizz",["Buzz",i][i%3!=0]][i%5!=0]][i%15!=0])
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | Buzz
004 | 4
005 | Fizz
006 | Buzz
007 | 7
008 | 8
009 | Buzz
010 | Fizz
011 | 11
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/lujikocaje.txt
what is a fizzbuzz?
!e for fizzbuzz in range(15, 51, 1):
if fizzbuzz % 3 == 0 and fizzbuzz % 5 == 0:
print("fizzbuzz")
continue
elif fizzbuzz % 3 == 0:
print("fizz")
continue
elif fizzbuzz % 5 == 0:
print("buzz")
continue
print(fizzbuzz)
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | fizzbuzz
002 | 16
003 | 17
004 | fizz
005 | 19
006 | buzz
007 | fizz
008 | 22
009 | 23
010 | fizz
011 | buzz
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/ocilisajej.txt
@glad spade https://en.wikipedia.org/wiki/Fizz_buzz
Fizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz".
@feral willow You'll want to ask in here rather than in python general
ok, i have a lot to learn๐
def sleep(seconds: float):
import random
file_name = str(random.random())
try:
random._os.mkdir(file_name)
except:
...
cur_time = lambda: random._os.path.getatime(file_name)
update_time = lambda: random._os.rmdir(file_name) == random._os.mkdir(file_name)
start = cur_time()
while cur_time() < start + seconds:
update_time()
try:
random._os.rmdir(file_name)
except:
...
return
print("Y")
sleep(5)
print("A")
How do you code here
!e python for i in range(100):print(i%3//2*"Fizz"+i%5//4*"Buzz"or-~i)
As in the code blocks?
@whole bear :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | python for i in range(100):print(i%3//2*"Fizz"+i%5//4*"Buzz"or-~i)
003 | ^
004 | SyntaxError: invalid syntax
use !e
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
isnt it highly inefficient
feel free to try and do better
Shall do. I am quite confused on how to install a different python version so I can run a different python version as some packages do not work with Python3.9
!e def sleep():
@glad spade :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | def sleep():
003 | ^
004 | IndentationError: expected an indented block
!e ```python
for i in range(100):print(i%3//2*"Fizz"+i%5//4*"Buzz"or-~i)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | Fizz
004 | 4
005 | Buzz
006 | Fizz
007 | 7
008 | 8
009 | Fizz
010 | Buzz
011 | 11
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/uzusuxexex.txt
mutable-default-args
defaultdict
I don't understand why if_name needed the continue command?
@runic forum can you mute mic? background noise
!e import random random.rand(range(2,7))
@pine ledge :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | import random random.rand(range(2,7))
003 | ^
004 | SyntaxError: invalid syntax
sorry @olive hedge
no worries
what?
Uuugggg linked list caused me such a problem until I realised they were causing me a problem and I found deep copy
@uncut meteor can we crash the server by Infinite While loop?
DONT DO THAT! IT WOULD BREAK DISK0RD
ok
no, you can try in bot commands though
I am not able to write code
no, I dont wanna get banned
!e
print(0 is False)
print(0 == False)
@olive hedge :white_check_mark: Your eval job has completed with return code 0.
001 | <string>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
002 | False
003 | True
!e ```python
for i in range(1,101):print("Fizz"(i%3<1)+(i%5<1)"Buzz" or i)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | Fizz
004 | 4
005 | Buzz
006 | Fizz
007 | 7
008 | 8
009 | Fizz
010 | Buzz
011 | 11
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/aboboxufot.txt
snekbox is made for the abuse
@uncut meteor ohk
!e
import random
rand(0,1)?'fizz':'buzz'
@pine ledge :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | rand(0,1)?'fizz':'buzz'
003 | ^
004 | SyntaxError: invalid syntax
I suck at it
bruh
I am late on this but was this supposed to be SARCASM
I know little python
me too
The last thing I was reading documents of python because I failed python online test :(
I know the basic for loops and iterations and after that i started making projects in open cv
of facial detextion
It was for job
and i completed sentdex GTA 5 neural network series
There was like code and out put mcqs
!e ```python
def fizzBuzz(argument):
switcher = {
1: "1",
2: "2",
3: "Fizz",
4: "4",
5: "Buzz",
6: "Fizz",
7: "7",
8: "8",
9: "Fizz",
10: "Buzz",
11: "11",
12: "Fizz",
13: "13",
14: "14",
15: "FizzBuzz"
}
print (switcher.get(argument, "Invalid Number"))
fizzBuzz(10)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
Buzz
!e for num in range(1, 69):
if num % 3 is 0:
print("Fizz")
print(num)
@glad spade :white_check_mark: Your eval job has completed with return code 0.
001 | <string>:2: SyntaxWarning: "is" with a literal. Did you mean "=="?
002 | 1
003 | 2
004 | Fizz
005 | 3
006 | 4
007 | 5
008 | Fizz
009 | 6
010 | 7
011 | 8
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/ibekoyoduv.txt
!e
for i in range(50):
if i % 3 == 0 and i % 5 == 0:
print('fizzbuzz')
else:
if i % 3 == 0:
print('fizz')
else:
if i % 5 == 0:
print('buzz')
else:
print(i)
@honest token :white_check_mark: Your eval job has completed with return code 0.
001 | fizzbuzz
002 | 1
003 | 2
004 | fizz
005 | 4
006 | buzz
007 | fizz
008 | 7
009 | 8
010 | fizz
011 | buzz
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/qinizicega.txt
i just copied it from google and it is better
wym mines better
That was my first fizzbuzz program and it was written on a smartphone in Discord
ok you win i am NOOB
since 2019
From a theory standpoint I'm a beginner but I've been using it in my work for around 2 years
!e
def Val(v):
return repr(v)
Val('cd')
Val(4)
!e
def Val(v):
return repr(v)
Val('cd')
Val(4)
!e
def Val(v):
return repr(v)
Val('cd')
Val(4)
Damn
It doesn't edit code
Are you all teen-agers
so as this discord server is full of great python programmers, and that makes me question my life choices, will i ever get a girlfriend
Ok baby
how old are you?
Way too old
Debatable
well if this server was not been moderated you would have been roasted by 17 year-old kid
Let's just not bother flexing for the sake of acting "big"
No one cares
Enjoy the server, don't bicker
but as a teen i post picture and act cool to be accepted
Not here you don't
ok lets not talk about depression๐
ok
I have clinical depression and have been having to have it treated since 6th grade. Depression does not make you act like a douche
sorry dude. I didnt mean to hurt anyone sorry
sorry i will shut up๐
For context I'm 31, so I've been dealing with it quite a long time
whatever the case I wanna be cool coder like you all in this server
Then have fun, ask questions, etc.
so I see guys like you as inspiring
I'm glad! And you'll get there if you keep working at it
I am sorry to act like a child I will be more mature ๐
Our Rob or Ross (Red Dwarf reference)
|
what?
||snek||
She shedding?
you own that snake?
when you take Coding in Python too literally
Never seen them with that kind of coloring before
Is that real one?
๐
i love how pets take over owners' keyboards
It's where the love is
they probably think
not shedding, it is a piebald
He is that snake
Oh dope
Ita so scary
The Hoop Snake is a legendary creature of the United States, Canada, and Australia. It appears in the Pecos Bill stories; although his description of hoop snakes is the one with which people are most familiar, stories of the creature predate those fictional tales considerably. Several sightings of the hoop snake have been alleged along the Minne...
@olive hedge do they do something to take their venom out?
@olive hedge i dont know why but my mind is like, if I am ever gonna own a snake i will train it to choke others to death
Griff hey

i can do better
Do I know you Griff
sure
How
idk
Then I don't
ok
Hey @glad spade!
It looks like you tried to attach file type(s) that we do not allow (.jfif). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a, .csv.
Feel free to ask in #community-meta if you think this is a mistake.
no Gifs Jiffs or Griffs allowed
its better than this
well there are snakes that fly
and they live near water
I forget what species that is
so cute
None calls me
@olive hedge canada needs a hero it deserves
USA Junior needs a hero it deserves
hey USA already have Elon
they dont need any hero
you got the whole Avenger squad
Fonejacker - The Mouse Wants to Trap Humans; Subscribe for more: http://bit.ly/hattricksub
Fonejacker pretends to be a mouse and prank calls a pest control company to get a human trap.
The Mouse is a smart rodent who requires the regular help from local services.
Taking cold-calling to an artform, the Fonejacker is a man on a mission.
He's...
not watching
why should you not judge a book by its cover, If you can write good just spend some more time and make the cover good
i am judging books by its cover
kinda funny
Looking for a date
its 27th feb here
wrong channel?
what?
@olive hedge you are a teacher too?
@olive hedge i sleep in my online class, just saying
I've failed essentially every online course I've taken
Are there any dating servers
I just don't have the discipline for it.
This isn't the server for that
you can make a python program for that
its available on youtube
and github
And if you end up harassing our users asking them for dates, you will be banned
Oh, so ban evasion?
sound like a movie
It kind of does, actually
No I am not able to message the person
Ah, that's blocking
@pine ledge there is vsinder an extension for vscode
"The word"?
am i allowed? if not i will delete it
@glad spade hey where you live
Is it an offensive word?
idk
I mean the rule of thumb is, if you have to ask, you probably shouldn't
on Road i am homeless
๐
give me your ip then
@rugged root isnt that illegal?
that is tos
Not illegal, but highly inappropriate
yeah he can ddos my router
!warn 98195144192331776 Ily and you are a great mod
lol
:incoming_envelope: :ok_hand: applied warning to @rugged root.
!warn
What's happening
i found you a date
For giggles
@rugged root play the reverse card
yes
Nah
plz unmute
โค๏ธ
What's your question?
fuckk u
@rugged root do admins have power to unmute before 3 day
Thats mean
form now on i have the discord tos when im in a vc in here
!ban 776371199483183104 do not speak that way to anyone, let alone staff, goodbye
:incoming_envelope: :ok_hand: applied ban to @nocturne junco permanently.
:)
be respectable
Kids being kids
nah that's just plain disrespectful
I am kid but that kid was not respectable, @rugged root you are great
i feel like its flaterry
lmao
about 34 hours till my bday
nice
@tall latch happy bday in advanced
get old
Happy birthday
what is impostor syndrome
sus
i heard so much about it
are you from south india
@glad spade often you are employed or in a position that you feel like you don't qualify for
plz dont do that you might get banned
hey why did you ban my friend?
it's usually self-doubt and usually goes away after time in the role and actually achieving what you're being asked to achieve
ok, my whole life
you wanna get banned too??
The reason is listed in the ban
LOL
Fab, you do not speak for the moderation team, and I ask that you don't
S A V A G E
oh he sweared didnt see that sr
*swore
Not so much the fact that he swore, just that he did it at me out of nowhere with no reason
yeah swore
why are we correcting english lmao
@frozen geyser You'll likely have an easier time asking your question here in the server. And probably an easier time getting it answered by using our help system. See the #โ๏ฝhow-to-get-help channel for more details on that
cus one of the rules
so we can all learn and communicate without issues
:/
@spice arrow take a note you cant speak wrong to the Moderator.
they practically run the server
does this mean we cant talk python
My depression is talking toll on me
Sigh 
ill keep it in mind
listen to NF
nf??
okay a question, i live in Asia. not sure if this is a thing in US/Canada but universities dont teach us to develop real world codes. how do i get started? i have the basic knowledge. how do practice and master python
Torrent go brrrr
Write code.
we would appreciate if this discussion is left to moderators.
our goal is not to necessarily control the server, it is to keep this as a positive, respectful, and accepting place for all users.
suppress your depression and move on
@coarse bramble , create your own projects
yes we are
@flat sentinel You still have 2 days before you can re-verify
you do projects
ohk but this should be a rule, that no guy from random part of world can speak ill to moderator, they made such a cool server and its not right to see them getting that language
i know
like what kind of projects?
Just wanted to clarify, apologies
@coarse bramble anything that interests you, data science, ML, web dev, etc.
๐
well there are a lot of possibilities
well i made a hangman game that plays itself in unity
the only selfmade project i have
you can do automation and webscraping too
Your so rich
nice
who ??
okay
the rats
Bye
bbyee
Madhav you've very good name
thanks๐
no
@glad spade why did you block me
why you scared
i got ddosed by someone on dicord server
what is ddos
distributive denial of service
Essentially sending so many requests to an IP that it breaks
they ask you to stream your screen and gets your ip
So asking for someone's IP is rather rude and weird
i was scolded by my dad
and we needed to call our ISP to fix that
why do 14 year olds do that?
@rugged root yeah
when you click on debug it shows the ip
yes
oh thought you can only use ip address to track the location and hack into a device if the device is connected to a public wifi
now that i know what ddos is lemme check more about it
idk how that work but yeah it happens
your bot??
you're a bot??
yep
hey dont delete message
no
unless she is using pynput or selenium to automate that
guys i am scared there are 14 year old more smarter than me and they can just bully me
@rugged root ok sorry
well im scared there are people who know to use instagram and bully me
!pypi git
i dont know to use IG
!pypi git-python
!otn a i-dont-git-it
im trying to use selenium to make it use my discord
i tried to use it with whatsapp to get all the message info
but whatsapp need qr code scan every time to login
yeah but not using the user token stuff
It doesn't matter
They have clarified this previously
Which is why I'm telling you so that you don't potentially get you in trouble
It's made to be an automated site tester
It's not supposed to be used for automating going through a site other than your own for testing purposes
obviously i cant make tinder auto swipe as im not 18+
but im pretty sure im gonna make it in the future
??
i dont have my own site
Then selenium is not built for you
what the FUCK is a monad
!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.
i heard it can be used for scraping
i got interested in selenium when i saw aaron jack's video in which he automates tinder
how does color thing work @tiny socket
nice duck
@whole bear ask here or something
ello I need help extracting information from a csv file and then creating a curve from the points given in the file.
Source code: Lib/csv.py
The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. CSV format was used for many years prior to attempts to describe the format in a standardized way in RFC 4180. The lack of a well-defined standard means that subtle differences often exist in the data produced and consumed by different applications. These differences can make it annoying to process CSV files from multiple sources. Still, while the delimiters and quoting characters vary, the overall format is similar enough that it is possible to write a single module which can efficiently manipulate such data, hiding the details of reading and writing the data from the programmer.... read more
Pycharm code reformat made my amazing oneliner(check out my other gist) into this - no longer a one liner.py
A songification of that most holiest of Python Enhancement Proposals, the PEP 8.
Based on an idea by Daniel "Mr. Hemlock" Brown.
Written and performed by Leon Sandรธy, A.K.A. lemonsaurus.
Music and melody from Mad World by Roland Orzabal. This version was inspired by the version released by Gary Jules.
๐ Website: https://pythondiscord.com/ โ
๐ฌ ...
thanks
message = "bad name"
_ = "good name"
!e
Mess4ge = "name bad"
x <- 5
!e ```py
(:="walrus is amazing", print())
__ = "normal is boring"
print(__)
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
001 | walrus is amazing
002 | normal is boring
+------------+-------------------------------------------------+
| Example | Name |
+------------+-------------------------------------------------+
| twowords | flatcase |
| TWOWORDS | UPPERFLATCASE |
| twoWords | camelCase, dromedaryCase |
| TwoWords | PascalCase, UpperCamelCase, StudlyCase |
| two_words | snake_case, pothole_case |
| TWO_WORDS | SCREAMING_SNAKE_CASE, MACRO_CASE, CONSTANT_CASE |
| two_Words | camel_Snake_Case |
| Two_Words | Pascal_Snake_Case |
| two-words | kebab-case, dash-case, lisp-case |
| two|words | doner|case |
| TWO-WORDS | TRAIN-CASE, COBOL-CASE, SCREAMING-KEBAB-CASE |
| Two-Words | Train-Case, HTTP-Header-Case |
+------------+-------------------------------------------------+
Wrong
camel case nice D;<
!e ```py
(:="Train-Case-Best-Case", print())
__ = "\ncamelCaseworstCase"
print(__)
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
001 | Train-Case-Best-Case
002 |
003 | camelCaseworstCase
there we go
@uncut meteor I don't hear it at all :P.
I feel a need to add a period after typing :P. just because this looks so weird: ๐
!e ```py
def newadd(num):
return num.invert().abs()
print(newadd(9))
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
10
:p.
ห
||||
|
ยฌ <-- 6 shooter
^ ^
- -
..
==
ยฆยฆ yike ยฆยฆ
does anyone wanna be my test subject
its to test if my bot can dm anyone on discord as long as they got dms on
If anyone wants to join in on hanging out with cam let me know
how clean
@rugged root People were doing work on their house
@honest pier you could be orange ๐
Without context that sounded strange
how clean
nah you just have a strong jaw
fuck it, im wasting my money on this https://www.redbubble.com/i/sticker/Hyperlemon-by-PythonDiscord/38135403.EJUG5
can i join cam gang
orange ๐
cc @rugged root ^^
loll
Anyone know how to make pycharm stop double indenting everything?
Shift + Enter
No it's indenting twice for some reason
nvm
O that's cool
like when I hit tab once it's this size:
or depending on how hard that is to see xxxxxxxx (not actually a bunch of Xs but spaces)
is there a way to see how many more words i need to write to be able to share screen and talk?
@rugged root "I refuse" Land the plane I refuse.
Couldn't be me

wait you didn't get muted?
it is what it is
@honest pier now that you're not using Marie's Kondo pic anymore I'll use it. thx.
๐ค
i guess scope_data isn't defined :P
class Mod(commands.Cog):
def __init__(self, bot):
self.bot = bot
scope_data = {
"userTag": None,
"userId": None,
"channelId": None,
}
def stringCorrecting(strlist):
string = strlist[0]
for i in strlist:
string += f" {i}"
return string
@commands.Cog.listener()
async def on_message(self, message):```
it is
Mod.scope_data
class Mod(commands.Cog):
def __init__(self, bot):
self.bot = bot
scope_data = {
"userTag": None,
"userId": None,
"channelId": None,
}
def stringCorrecting(strlist):
string = strlist[0]
for i in strlist:
string += f" {i}"
return string
@commands.Cog.listener()
async def on_message(self, message):
server = self.bot.get_guild(server_id)
mess = message.content.lower().split(" ")
ctx = message.channel
author = message.author
founders = server.get_role(803748792859885628)
if mess[0]=="m?" and not author.bot:
if founders in author.roles:
if mess[1] == "scope" and len(mess) >= 3:
if mess[2] == "quit":
scope_data["userTag"] = None
scope_data["userID"] = None
scope_data["channelId"] = None
elif scope_data["userTag"] and scope_data["userID"] and scope_data["channelId"]:
fd8a25
fa8904
yo guys is there a way to change the value of a variable that is not defined in the function scope but is defined outside the function's scope without using global?
standard temperature and pressure ๐
The real me!
why... are you just orange?
why are you orange
. . . alright then
seems like orange to me ๐ค ๐ค ๐ค
urgh, i should go work on my research
๐
--Vector3
["#uservalue"] = {
[1] = {},
[2] = {},
[3] = {},
}
--CFrame3
["#uservalue"] = {
[1] = 1, --X
[2] = 3, --Y
[3] = 1, --Z
[4] = 23,
[5] = 23,
[6] = 43,
[7] = .,
[8] = 43,
[9] = 123,
[10] = 23,
[11] = 123,
[12] = 123
}
local table = {
["#CarPostion"] = CFrame.new("")
}
--Color3
["#uservalue"] = {
["R:1"] = {},
["G:2"] = {},
["B:3"] = {},
}
bbye
Strange Checksums The year is 2003. You work at the โStrange Squad,โ which is an investigative agency that solves problems that the police just don't have the tax funding to fix. One day, you find some things, and you realize that a new agent that was hired to install a backup generator a few day...
๐
@honest pier :white_check_mark: Your eval job has completed with return code 0.
[('e', 'f', 'w'), ('h', 'm', 'q'), ('w', 'd', 'g'), ('d', 'w', 's'), ('c', 'l', 'd'), ('l', 'g', 'b'), ('e', 'x', 'j'), ('e', 'w', 'i'), ('m', 'r', 'o'), ('f', 'e', 'h'), ('l', 'r', 'g'), ('y', 'f', 'd'), ('g', 'a', 's'), ('s', 'k', 'm'), ('l', 'c', 'o'), ('x', 'l', 'k'), ('z', 'q', 'f'), ('o', 'k', 'n'), ('y', 'i', 'b'), ('p', 'v', 'e'), ('v', 'l', 'b'), ('t', 'w', 'p'), ('v', 'j', 'l'), ('d', 'a', 'b'), ('p', 'y', 'l'), ('l', 'i', 'a'), ('g', 'y', 's'), ('h', 's', 'v'), ('t', 'q', 'g'), ('f', 'e', 'j'), ('o', 's', 'c'), ('f', 'j', 'y'), ('h', 'l', 'k'), ('v', 't', 'y'), ('p', 'k', 's'), ('s', 'm', 'e'), ('y', 'z', 'v'), ('v', 'k', 'z'), ('o', 'b', 'a'), ('d', 'w', 'y'), ('j', 'r', 'y'), ('y', 'l', 'c'), ('z', 'v', 'x'), ('d', 'b', 'q'), ('i', 'c', 'w'), ('g', 'd', 's'), ('h', 'p', 's'), ('h', 'u', 'b'), ('o', 'f', 'r'), ('w', 'p', 't'), ('h', 's', 'n'), ('w', 's', 'j'), ('c', 'm', 'g'), ('s', 'p', 'r'), ('l', 'd', 'r'), ('t', 'x', 'j'), ('x', 'f', 'd'), ('c', 'h', 'k'), ('c', 'z', 'q
... (truncated - too long)
Full output: too long to upload
@swift hawk type here
Why doesn't my MagicPython extension not change the syntax and leaves it the same? I'm VS Code
anyone have a fix??
๐
๐
i'll just write it in an editor
oop, read problem wrong. name has at least 4 letters, not 4
ยฏ_(ใ)_/ยฏ
๐
Finally have access to vc
Hello all
JK
in all the popes in history which one is similar to you
k, sorry
what about the playboy boy pope
wait a sec, are you a real pope or are you wearing a costume??
no
I am refering to Pope John XII(otherwise know as The simp)
he gave land to his mistress
https://en.m.wikipedia.org/wiki/The_Young_Pope Adult, but amazing.
The Young Pope is a drama television series created and directed by Paolo Sorrentino for Sky Atlantic, HBO, and Canal+. The series stars Jude Law as the disruptive Pope Pius XIII and Diane Keaton as his confidante, Sister Mary, in a Vatican full of intrigues. The series was co-produced by the European production companies Wildside, Haut et Court...
A little bit...different, too.
That exists?
wow
any heretics slain
yeah
but have you slain any
Can you turn on camera @tidal salmon I liked your face and your hat
I have a question
Does any of you have good recommendations for a good Arduino starter kit
Oh
no it is a micro controller
Hence "sort of."
now
now
how do u tell nope only when i talk ?
k
i think i have some problem i will leave
ya me too
@winged marsh Are you aware of how to pass the voice gate?
No
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
You qualify right now, unless something's up.
!projectgy
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.
!projectgy
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.
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
!e print("Hello World!")
@runic forum :white_check_mark: Your eval job has completed with return code 0.
Hello World!
can I also discuss HTML programming on this server?
bonjour!
can you share a link to the codewars question
from datetime import datetime, timedelta
def date_to_mins(d):
try:
return ((datetime.strptime(d, "%m/%d/%Y") + timedelta(days=1)).timestamp() - datetime.strptime(d.split("/")[-1], "%Y").timestamp()) // 60
except ValueError:
return -1
month, day, year = d[:2], d[3:5], d[6:]
month, day, year = d.split("/")
day, month, year = d.splite("/")
"4of Fo1r pe6ople g3ood th5e the2" -> "Fo1r the2 g3ood 4of th5e pe6ople"
helo
!project
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.
u reminded me a song
who watches or has watched Silicon Valley???
does anyone know what are the things a leveling discord bot need
i dont get it
what's even the point of this?
never gonna give you cry
never gonna tell a lie and hurt you down
never gonna gonny run around and desert you up
oh yeah that group...
!e print("KAM IS GOOD")
can someone give me a formula to gen exp
Wiggle sword at skeleton until skeleton stops hitting you.
ah what
Do you perhaps mean regular expressions?
something like exp = 5+random.randint(1,6)
Are you talking about progression curves?
The higher your level, the more exp you need to advance a level?
yeah
that one
hello everyone
hello vanallope
Hey
how're you all??
@somber heath how about add the exp for next level by 12
well you can ask vision to sing a song
def decimalToBinary(self, IP):
return bin(self.IP).replace("0b", "")
def clean_input (self):
IP = self.user.split('.')
first_octat = self.decimalToBinary(int(IP[0]))
How do i call the function below?
who is he๐
well idk y i really like opal's voice๐
cus its like jarvis
format(80, 'b') == '1010000'```
yeah๐
f'{80:b}' == '1010000'```
class IP():
def __init__(self, user):
self.user = user
def decimalToBinary(self, IP):
return bin(self.IP).replace("0b", "")
def clean_input(self):
IP = self.user.split('.')
first_octat = self.decimalToBinary(IP)
second_octat = f'{(int(IP[0])):o}'
15.2
second_octat = format(int(IP[1]), 'o')
Enter a IP> 15.3
['15', '3']
3
๐ฉ visual studio is heavy
as in heavy to get used to
Actually
I think its not
You had download several extensions then
It could be
So remove the useless extensions
no it runs fine
its just pain in the ass to use it faster than VSCode right now
not used to using it ๐
lol
@somber heath oh great
ok i will try bro @somber heath
@somber heath i know very less about this project and would not be able to expain it in text
thats why i wanted to stream and ask you for solution
still let me try
you can share screenshots too if you like
which looks like this when in raw
:incoming_envelope: :ok_hand: applied mute to @vestal halo until 2021-02-27 15:20 (9 minutes and 59 seconds) (reason: chars rule: sent 3110 characters in 5s).
!unmute @vestal halo
:incoming_envelope: :ok_hand: pardoned infraction mute for @vestal halo.
!paste Please use a paste for that
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.
sorted_list = fetched_list.sort(key=check)
Hey @vestal halo!
It looks like you tried to attach file type(s) that we do not allow (.json). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a, .csv.
Feel free to ask in #community-meta if you think this is a mistake.
thats good to hear @somber heath
Hey @vestal halo!
It looks like you tried to attach file type(s) that we do not allow (.text). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a, .csv.
Feel free to ask in #community-meta if you think this is a mistake.
def check(e): return e[3]
@tall latch share the error or screenshot of the error, that would help
I guess Opal's got it with the guessing game ๐
@somber heath
if t1.hour==20:
urlData = "http://api.openweathermap.org/data/2.5/weather?q=gilgit&appid=734819q2437u894"
jsonData = getResponse(urlData)
print(jsonData)
a1=str(jsonData["main"]["temp_min"])
a2=str(jsonData["main"]["temp_max"])
b =str(jsonData['weather'][0]['description'])
c =str(jsonData["main"]["humidity"])
in that container there are different file there are lists
I would suggest that you have more descriptive variable names.
and i want to define data from different lists
and to verify at each point that the data looks like what you think it is
based on location there are different blocks and i want them to show up in form of a1=str(jsonData["main"]["temp_min"]) type format
@somber heath
can you help me
โโ
@vestal halo As I said. Make sure you know what the data is at each point. Then, once you do, operate on it and so on.
@somber heath is it 28 there
ive sent you txt file in dm as i was not able to paste it here @somber heath
well duh..
I guess I'm having a bad brain day and I don't understand what you're trying to achieve.
0_o
I mean' how can it be 27 and sunday?
my birthday is valentines_day + valentines_day.day
wat ?
one of my friend's birthday is on 14 feb, we tease him a lot for it
imagine being born on 29 feb
valentines_day is on feb 14
so valentines_day.day is 14
i know two person with bday on valentines day
valentines_day.day = "14 Feb 23:59:59" imo
tease em, tease em to death ๐
@somber heath
ok, I promised myself, I'll take a 5 when it hits 9
brb
@tall latch im making a program which translates python to pesudocode
@tall latch type it
nice
lol
c.execute(f"SELECT * FROM user WHERE guildid = {guild.id} AND userid = {author.id}")
fetched_result = c.fetchall()
if len(fetched_result) != 0:
exp = randint(3, 9)
exp += fetched_result[0][3]
lvl = fetched_result[0][2]
if exp >= lvl*11:
lvl += 1
c.execute(f"UPDATE user SET exp = {exp} AND level = {lvl} WHERE guildid = {guild.id} AND userid = {author.id}")```
hey Opal, take a look
#voice-chat-text-1 message
seems fun
damn
def toJadenCase(string):
return " ".join(w.capitalize() for w in string.split())
!e
def toJadenCase(string):
return " ".join(w.capitalize() for w in string.split())
print(toJadenCase("hello gammers"))
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
Hello Gammers
!e
def toJadenCase(string):
return " ".join(w.upper() for w in string.split())
print(toJadenCase("hello gammers"))
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
HELLO GAMMERS
upper
!e ```py
def toJadenCase1(string):
return " ".join(w.capitalize() for w in string.split())
def toJadenCase2(string):
return string.title()
print(toJadenCase1("hello, world!\n"))
print(toJadenCase2("hello, world!"))
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
001 | Hello, World!
002 | Hello, World!
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
['Formatter', 'Template', '_ChainMap', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '_re', '_sentinel_dict', '_string', 'ascii_letters', 'ascii_lowercase', 'ascii_uppercase', 'capwords', 'digits', 'hexdigits', 'octdigits', 'printable', 'punctuation', 'whitespace']
!e ```py
def filter_list(l):
for thing in l:
if thing.is_alpha():
del l[thing]
print(filter_list([1,2,'a','b']))
!e
def filter_list(l):
l = list(map(str, l))
for thing in l:
if thing.is_alpha():
del l[thing]
print(filter_list([1,2,'a','b']))
!e
def filter_list(l):
l = list(map(str, l))
for thing in l:
if thing.isalpha():
del l[thing]
print(filter_list([1,2,'a','b']))
@sick cloud :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 7, in <module>
003 | File "<string>", line 5, in filter_list
004 | TypeError: list indices must be integers or slices, not str
hmmm
!e
def filter_list(l):
l = list(map(str, l))
for index, thing in enumerate(l):
if thing.isalpha():
del l[index]
print(filter_list([1,2,'a','b']))
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
None
Hello btw
>>> x = {'a': 'b'}
>>> x.keys()
dict_keys(['a'])
!e
x = {'a': 'b'}
for k in x.keys():
print(k)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
a
!d
!d str.isalpha
str.isalpha()```
Return `True` if all characters in the string are alphabetic and there is at least one character, `False` otherwise. Alphabetic characters are those characters defined in the Unicode character database as โLetterโ, i.e., those with general category property being one of โLmโ, โLtโ, โLuโ, โLlโ, or โLoโ. Note that this is different from the โAlphabeticโ property defined in the Unicode Standard.
ooo
def is_valid_walk(walk: list):
return True if len(walk) == 10 and walk.count('n') == walk.count('s') and walk.count('e') == walk.count('w') else False
!e ```py
def dec(fn):
print(fn)
@dec
def a():
pass
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
<function a at 0x7f338f9dc940>
!e ```py
a: list[int]
@faint ermine :warning: Your eval job has completed with return code 0.
[No output]
!e
!e ```py
def dec(fn):
print(fn)
@dec()
def a():
pass
@faint ermine :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | TypeError: dec() missing 1 required positional argument: 'fn'
!e
def dec(*args):
if not len(args):
def empty(*args, **kwargs):
...
return empty
else:
return args[0]
@dec()
def a():
pass
@uncut meteor :warning: Your eval job has completed with return code 0.
[No output]
!e ```py
from functools import partial
def dec(*args, **kwargs):
if len(args) > 0:
print(args[0], kwargs)
else:
return partial(dec, **kwargs)
@dec
def a():
pass
@dec(a=1)
def a():
pass
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
001 | <function a at 0x7f60f4efb3a0> {}
002 | <function a at 0x7f60f4efb3a0> {'a': 1}
!e
from functools import partial
def dec(*args, **kwargs):
if len(args) > 0:
print(args[0], kwargs)
else:
return partial(dec, **kwargs)
@dec
def a():
pass
@dec(1)
def a():
pass
@dec(a=1)
def a():
pass
@uncut meteor :x: Your eval job has completed with return code 1.
001 | <function a at 0x7f60ebed13a0> {}
002 | 1 {}
003 | Traceback (most recent call last):
004 | File "<string>", line 14, in <module>
005 | TypeError: 'NoneType' object is not callable
!e
from functools import partial
from typing import Callable
def dec(*args, **kwargs):
if len(args) > 0:
assert any(isinstance(arg, Callable) for arg in args), "You cannot pass positional arguments into this Decorator"
print(args[0], kwargs)
else:
print(type(args[0]))
return partial(dec, **kwargs)
@dec
def a():
pass
@dec(1)
def a():
pass
@dec(a=1)
def a():
pass
@uncut meteor :x: Your eval job has completed with return code 1.
001 | <function a at 0x7fbe80eee5e0> {}
002 | Traceback (most recent call last):
003 | File "<string>", line 17, in <module>
004 | File "<string>", line 7, in dec
005 | AssertionError: You cannot pass positional arguments into this Decorator
!e
number = {
1000: 'M',
900: 'CM',
500: 'D',
400: 'CD',
100: 'C',
90: 'XC',
50: 'L',
40: 'XL',
10: 'X',
9: 'IX',
5: 'V',
4: 'IV',
1: 'I'
}
def to_roman(n: int):
result = []
while n:
for i in number.keys():
if n >= i:
n -= i
result.append(number.get(i))
break
return ''.join(result)
print(to_roman(2032))
@terse needle :white_check_mark: Your eval job has completed with return code 0.
MMXXXII
Palindrome is a string that can be read in the same way in both left-to-right and right-to-left directions.```
can any of you know how to start??
Any examples?
1 2 3 4 5
**Sample Output**
Stable
**Explanation**
The power of every power ranger is less than the sum of powers of other power rangers. ```
1 2 3 4 100
**Sample Output**
SPD Emergency
**Explanation**
The power of the 5th power ranger (100) is not less than the sum of powers of other power rangers (1+2+3+4=10).```
!e
print("hello world")
@runic forum :white_check_mark: Your eval job has completed with return code 0.
hello world
how come you have syntax colors on your code?
!code

