#voice-chat-text-1
1 messages Β· Page 88 of 1
collections.Counter```
!e py import string print(string.ascii_letters)
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
il be right back
File "<pyshell#1>", line 1, in <module>
Sequence.count(self, 'MHSSIVLATVLFVAIASASKTRELCMKSLEHAKVGTSKEAKQDGIDLYKHMFEHYPAMKKYFKHRENYTPADVQKDPFFIKQGQNILLACHVLCATYDDRETFDAYVGELMARHERDHVKVPNDVWNHFWEHFIEFLGSKTTLDEPTKHAWQEIGKEFSHEISHHGRHSVRDHCMNSLEYIAIGDKEHQKQNGIDLYKHMFEHYPHMRKAFKGRENFTKEDVQKDAFFVNKDTRFCWPFVCCDSSYDDEPTFDYFVDALMDRHIKDDIHLPQEQWHEFWKLFAEYLNEKSHQHLTEAEKHAWSTIGEDFAHEADKHAKAEKDHHEGEHKEEHH')
NameError: name 'self' is not defined```
!e py import collections print(collections.Counter('Apple and rhubarb.'))
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
Counter({'p': 2, ' ': 2, 'a': 2, 'r': 2, 'b': 2, 'A': 1, 'l': 1, 'e': 1, 'n': 1, 'd': 1, 'h': 1, 'u': 1, '.': 1})
@grave reef
@stuck bluff
!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.
Hello! Recently just got into Game Development, C# and Python, and figured this would be the best place for advice! Call me Red, Ben, I don't mind!
I got into that DevOps project I was talking about.
They said I will mostly be working with GCE and Kubernetes
@grave reef
!e py from collections import Counter from string import ascii_uppercase dictionary = {key:0 for key in ascii_uppercase} dictionary.update(Counter('Applesandoranges'.upper())) #dict.update operates on the lefthand dict in-place. print(dictionary)β
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
{'A': 3, 'B': 0, 'C': 0, 'D': 1, 'E': 2, 'F': 0, 'G': 1, 'H': 0, 'I': 0, 'J': 0, 'K': 0, 'L': 1, 'M': 0, 'N': 2, 'O': 1, 'P': 2, 'Q': 0, 'R': 1, 'S': 2, 'T': 0, 'U': 0, 'V': 0, 'W': 0, 'X': 0, 'Y': 0, 'Z': 0}
whats good
!e py class MyClass: def __init__(self): self.v = 5 print(len(dir(MyClass))) print(len(dir(MyClass())))β
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
001 | 26
002 | 27
!e
from collections import Counter
a = Counter('ABABABAHGAL')
print(a)
print(dict(a))```
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
001 | Counter({'A': 5, 'B': 3, 'H': 1, 'G': 1, 'L': 1})
002 | {'A': 5, 'B': 3, 'H': 1, 'G': 1, 'L': 1}
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
!e py class MyClass: def __len__(self): return 7 my_instance = MyClass() print(len(my_instance)) print(my_instance.__len__())
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
001 | 7
002 | 7
!e py print(len('abc')) print('abc'.__len__())
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
001 | 3
002 | 3
what u guys discussing??
!e py trans = str.maketrans('ACGT', 'TGCA') print('GATTAGA'.translate(trans))
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
CTAATCT
newSequence = ''
for symbol in sequence[::-1]:
newSequence += symbol
if symbol ==
```
!e py compliment = {'A': 'T', 'C': 'G', 'G': 'C', 'T': 'A'} print(compliment['A'] == 'T')
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
True
morning
!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!*
so i did this weird symbol:
</>
wait wait-
i struggle 5099900 times.
like this
AH HECK
yea
Β―_(γ)_/Β―
i start getting weird
ah
yea too much paragraphs.
Β―_(γ)_/Β―
@raw wren search their name with "bot discord"
How about now? π
Oh yeah π
Check out my office set up today:
Getting some vitamin D π
Ah, is that what that is?
'ello
It's strange getting used to this 'sun' thing ngl.
it's a scam tbh π
It probably is used in some traditional medicines π
It's not too bad when you use light mode.
Am I even a programmer?
This is true
π
I switched to 'onehalf'
oh?
Oh yeah. I think the company is Evergreen, and the Ever Given is one of its ships?
Yeah, it's definitely pleasing.
but you use the light one π
Well, right now I am...
I've always kind of wanted to use a fax machine, but have never had a reason to. They seem kind of fun tbh
wack
Did you see the people vs OJ tv show?
I'm thinking of that scene where the lawyer faxes a hand-written note to the court room π
Erm, it was a dramatisation a couple of years ago. On Netflix.
Ah right π
they couldn't even put a glove on a 2d piece of paper

Fax machines are surprisingly old
Hey mina
A method of sending documents over a phone line
Apparently Japanese companies are like the largest market for fax machines today
Because they all insist on using paper.
Film π
Have you seen inglorious bastards?
i think i have heard of it
thermal receipts!
never watched it though
brb
If an incense censor's sensor data is censored why is my foot covered in mayonaise?
Is anyone else having connection issues?
no
Or do I need to move closer to my router?
get a ethernet cable
I'm outside π
So we hanging out in vc-1 now lol
It's where everyone was when I got here
hi guys
whats the topic??
we don't have a topic right now
note the miliseconds
yeah its kind of all over the place
that is the most productive discussions π
@tawdry charm what are you doing rn?
posting gifs?
we could do with less gifs here please & thank you :)
delete it MED
there
thank you
ty
hahaha hi groovy
where is your bot tag did you take it off today?
nice name how did u think of it??
why you here btw?
lol
it was meant to be a joke cause robot
beep boop
bc??
I'm derping badly today
oh so bc= because??
Yep
if 'bc' == 'because':
print("Yep")
osu's better change my mind
exactly
one doesn't take arm strength
ive got strong ass fingers now tho
sdsdsdsds
see that was super fast
ya
I started with qe cause leaning in fps's but ive got a super small desk and its hard to use anything else
a
what about millennium?
You know, it's great developing for a business unit outside the development shop...
yes.
I feel like a coding cowboy
Nobody tells me what to do nor understands it...so nice
Also, vimtutor
my heroku app does not recognize my local timezone, it shows local timezone as UTC, how to configure my heroku app to recognize user's timezone??
who sent that?
i am using pytz library of python
Yeah, I also wouldn't like if if the community was too split into staff and non-staff.
that'd defeat the purpose of censoring huh
okey jeez....
if cog := self.bot.get_cog("ThisCog"):
# Do stuff with it
@wintry sinew π
h
h
while chunk := f.read(8):
...
I tend to read docs on a case-by-case usage scenario
Compilers: Principles, Techniques, and Tools is a computer science textbook by Alfred V. Aho, Monica S. Lam, Ravi Sethi, and Jeffrey D. Ullman about compiler construction for programming languages. First published in 1986, it is widely regarded as the classic definitive compiler technology text.It is known as the Dragon Book to generations of co...
one last thing @mild flume , for each loop that the walrus operator runs, will it be reset to the initial value or can it be altered in the loop and keep its new value
It resets at the top of the loop. So it re-evaluates it each time
!e
I = iter([1, 5, 2, 6, 7])
while element := next(I):
print(element)
@warm tendon :x: Your eval job has completed with return code 1.
001 | 1
002 | 5
003 | 2
004 | 6
005 | 7
006 | Traceback (most recent call last):
007 | File "<string>", line 2, in <module>
008 | StopIteration
e
lmao i was gonna do that but you beat me to it
tbh crisp worked terribly for me, but then again it was also unnecessary
laundmo what did you do
different langs have different uses
are you telling me i shouldnt make an operating system in js??!!
?
what vco said
make an OS in lua
computercraft
pretty sure there's a plugin for computercraft that lets you run micropython
aye, I think sals modded server had it but I could be wrong
That's a good point @golden marsh
tar -zxvf thing.tar.gz
Has everyone here heard about liveshare https://docs.microsoft.com/en-us/visualstudio/liveshare/
@misty sinew please reduce the amount of rubbing/rustling noise coming from your mic
Ok, fine
@misty sinew can you stop joining and leaving?
!voice @misty sinew
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
If you're wondering why you're muted 
@misty sinew please send 50 non-deleted messages to verify.
who wants play rocket
league
I'll be right back
what's mean send 50 non-deleted messages
!verify
!voice verify
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
:x: According to my records, this user already has a mute infraction. See infraction #30750.
:incoming_envelope: :ok_hand: applied mute to @misty sinew until 2021-03-30 15:09 (9 minutes and 59 seconds) (reason: burst rule: sent 9 messages in 10s).
@misty sinew No, you can't actually
Donβt.
In fact spamming will have me extend the amount of time it'll take for you to get verified by 2 weeks
From now
So I'm going to unmute you, but behave yourself
!unmute @misty sinew
:incoming_envelope: :ok_hand: pardoned infraction mute for @misty sinew.
β€οΈ
:/
(1) the pen is on the table
@misty sinew if you ever wanna do comamndline programs in python: https://pypi.org/project/blessed/
(2) i'm trying to speak on the channel
i'm not spamming
(3) it's so hard complete this quest
(4) i'm sure i'm not spamming
(5) i've completed 1/10 of the quest
(6) I-CAN-DO IT
(7) I'M DOING IT
(8) this is the 8th message i've sent
!tvban 481965351559757844 2w We've told you multiple times the correct way of getting verified. You do not seem to be listening or understanding. If you attempt to spam your way to voice verification again, you will be denied the privilege indefinitely
:incoming_envelope: :ok_hand: applied voice ban to @misty sinew until 2021-04-13 15:04 (13 days and 23 hours).
lol
Only if you're unwilling or unable to follow the rules
@golden marsh check this one
you're admitting it is a dictatorship :/
I think technically it's an oligarchy? But yes. Yes I am
i'm amazed
Why? It's simple, you follow the rules or you accept the consequences for not doing so
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Spamming is not allowed by the rules.
So to clarify, no, you weren't following the rules. And I even told you and warned you about it multiple times before I temp voice banned you
i'll wait 2 weeks, rightly so
just to say it, it's the 20th message :).
I NEVER GIVE UP
i didn't get it
every person who give up is a loser
i think i'm not a loser
(i think)
who can explain me variables?
i can't get them
I mean at this point give me one good reason not to just make it permanent
i want learn
What do you want to know about variables?
.
i know you're a good person
β€οΈ
Variables hold values and objects
alias for memory location, where your thing is stored
hackers π
π
i learned they are like drawers can hold, as you say, values and objects, but what is their meaning, i mean i can literally write every single value, OOOOOOOOOOHHHHHHHHHHHHHHH I GET THEM, I GET THEM BY MYSELF I'M A MISUNDERSTOOD GENIUS, IT'S MORE SIMPLE USE VARIABLES THAN WRITE EVERY SINGLE VALUE, thanks demm
They indeed act as drawers which can hold values and objects, by values, I mean, datatypes, like integers, floats, characters, strings, etc. By objects I mean complex data types (they are also called user defined datatype), they are instances of classes.
my question was what's the meaning of variables but i get it, what they are for I know
That's kind-of right. Although it's better to think of them as references to objects. Numbers, strings, dictionaries, lists, etc. are all objects. Objects exist on 'the heap', and a variable is like name given to an object so that you can access it. This is important when you consider that you can have two variables that refer to the same object.
variables literal meaning is something that can vary
For example, what do you expect the output of this code to be? ```py
xs = [1, 2, 3]
ys = xs
ys.append(4)
print(xs)
meaning you can change them, but you can make them constant which might confuse you?
!names
Well, thatβs huge, but worth a read
Especially Nedβs talk linked on the bottom
are they that important?
Variables?
Pretty essential yeah.
Btw, hey Vester π
Heyo π
@hushed spire chat 1 minecraft isn't a game, it's a life choice
my first mode was stoneblock 2
Well, doesn't that depend on programming language, for example, in python everything is an object and hence variables hold references whereas in languages like c or java, primitive datatypes are held as it is?
@prime phoenix any reason why you are spamming here?
it's like me, it is misunderstood genius
(i'm joking)
i think he/she spamming because is foreign, so it doesn't matter of ban
another time like me
!mute 821321017838010418 1d I'm not sure why you're spamming the moment you join, but.. don't.
Bad argument
Member "821321017838010418" not found.
Well they left
!tempmute DEATH 1y
has someone a free guide to learn informatics languages?
maybe with exercises
!voice verification
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Have been active for over 3 ten-minute blocks. This means you need to have sent your messages over a span of at least 30 minutes. DUDE IS IT REAL?
IT'S AN AGONY
you need to active for 10 mins x 3
it's also a minimum of 3 days
but if you received a voice ban earlier, it will be even longer than that. i think you're at 2 weeks
what this means, is that you can chill, relax, listen, ask questions, don't complain
it says i have to sent messages over a span of 30 minutes, it's means (50 messages)*(30 minutes waiting each one) = A LOT OF TIME TO WAIT
so i must wait to speak
yes
2 weeks because there's a ban..... . _ .
the 30 minutes is only the time range
in total you need 50 messages spread over a span of 30 minutes
I'VE COMPLETED THE QUEST OF 50 MESSAGES IN A CONVERSATION, I'M PROUD OF MYSELF
Mr. Hemlock i'm coming
i won't chill i'll plan my plan to conquer this server
a dictatorship can be won only from a dictatorship
this server ain't a kingdom or something?
sorry β¨ oligarchyβ¨
i'll create one
i'll remember it bro β€οΈ
Hemlock is my friendly enemy
i'll beat him with knowledge
WHY WAITING IS SO STRESSFUL
2-WEEKS
IT'S A LOT OF TIME
β¬ββ¬ γ( γ-γγ)
what did the baby corn say to the mama corn?
Where's my popcorn
i-want-talking-with-you-all-β€οΈ
how much time is 2 weeks
i don't want calculate it
BUT IT'S A LOT DUDES
i mean, try u to wait 2 weeks and tell me if it isn't an agony
did you get a vc ban
well you have to wait
it's too much time...
and why did you get ban
yea that is why you follow the rules
well have you learned your lesson
and aslo that is ban evasion
that is tos in disocrd
Terms of service
WHO READS TERMS OF SERVICE OF ANY APP?
it was a tempban iirc
many people
did u really read it
yes
I have
π€
mr. sherlock why I can't tag everyone in a message
well think about it for a sec
there's an option?
In the server settings, yeah
is there a spokesman from here to voice chat :3
i've to send a message
" I state, I am Italian, and here say a swear-word with "god" it's a big sin, my question is, why you all say "Oh my fuc*** god"? "
this is the message
hi all
hello bro
hello bro
how are you
nothing much
im doing some homework
i have a lot of bg noises from my end
why wont you talk in chat?
i mean in text-chat
fine then
nothing actually
whacha doing rn?
in which language you're developing your app?
not sure whats that but ok π
what app is it?
which country do yo live in?
Finland
no idea
look, now some ppl went to vc0
hah DIKtionary
hi guys I just woke up
def find_legendary(data):
line_list = [i.split(',') for i in data]
legendary_data = []
for item in line_list:
if 'TRUE' in item:
pokemon_name = item[1]
pokemon_number = item[0]
pokemon_generation = item[10]
for i in range(len(name):
print(f'{number[i]:<9}{name[i]:<25}{generation[i]:>11}')
legendary_data.extend([[pokemon_number, pokemon_name, pokemon_generation]])
return legendary_data```
Legendary Pokemon
Number Name Generation
144 Articuno 1
145 Zapdos 1
146 Moltres 1
150 Mewtwo 1
150 Mega Mewtwo X 1
150 Mega Mewtwo Y 1
243 Raikou 2
244 Entei 2
245 Suicune 2
Legendary Pokemon
Number Name Generation
multi lines
"""```
what type of code is that?
here is my colony coding </>
there is 1 Easter egg

it was an example
Ohhhh
@brittle valley donβt repeat to unmute
@final folio is voice spamming
should I ping admins?
Sorry my iPad is being weird
yeah right
Iβm just gonna delete discord and re download it
should I ping?
to who?
okey
<@&267628507062992896>
@final folio is voice spamming
I kept saying earlier to that guy to "just make a decision" but if its discord screwing up, I'm not suprised either
it randomly closed earlier today
For moderation stuff, you need to ping mods rather than admins
Or send a DM to the @crisp hazel bot
Your instruction was to send a DM to the @crisp hazel bot
Sorry--I misread
However I don't see them in a voice channel at the moment.
0h
Can you explain what you mean by voice spamming?
whenever im in one of the vc's, he keeps leaving and joining back
He explained that he was having technical difficulties with the Discord client.
ahh shit just had a nose bleed
damn bro
even now they freak me out
Guys I woke up
guys how do i get voice verified
cause its hard
it says u need to send minimum 50 msgs
i already sent i think, cause its been more than 5 days that i have been here
helo
Hello, i need some help with some arrays and getting some coordinates
yea?
@misty sinew do u play ches?
No
Ξ
Yes please
I do m i c h i g u n
i tried to google before but i found nothing
I have a text file, and i read x coordonates and y coordonates, and i want to create the points for that
i have the coordonates stored as x and y
and i want to have Xi[xi,yi]
i want to create it , instead of make.blobs function
for an AI and ML exercise
can i ask something
so on a GUI screen
anything
if you use tkinter you can use i think you can use grid function on a canvas screen
not on a GUI screen
can i call you to show you
Yes
#voice-verification ?
get non-deleted 50 messages
ok, its 7pm here, and if I don't go for a walk, my legs are gonna stop working
see you guys later π
Yo π
Double plus un-good
Yeah, we were talking about linguistic determinism
Same for William π
I mean as a term for anatomy π
Like, how did that happen?
I really want to use the word "y'all" because it seems kind of useful.
But I would sound ridiculous saying it as a Brit π
Needs southern accent
!voice @abstract hatch If you're wondering why you can't talk, check out this channel. That should tell you what you need to know
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
ah ok thanks for that π
No problem!
Oh hey, that's a bisk
And he's hiccuping
And it's far funnier than it should be
@fair heart Every time bisk hiccups
have a python question - not to interrupt the breathing conversation
lol pls interrupt
does anyone else have problems with pip3 install psycopg2
Wow, rude π
Were you there when I said it?
i usually resort to psycopg2-binary but I want to download the package for an aws lambda package
Nah
Ah, that's not a good sign.
I'm looking up persistent hiccups on WebMD and the prognosis isn't good...
Basically, you have cancer
omg lol
Flood control is an important issue for the Netherlands, as due to its low elevation, approximately two thirds of its area is vulnerable to flooding, while the country is densely populated. Natural sand dunes and constructed dikes, dams, and floodgates provide defense against storm surges from the sea. River dikes prevent flooding from water flo...
Schokland (Dutch pronunciation: [ΛsxΙklΙnt]) is a former island in the Dutch Zuiderzee, in the municipality of Noordoostpolder. Schokland was an elongated strip of peat land which ceased to be an island when the Noordoostpolder was reclaimed from the sea in 1942. It is now just a slightly elevated part of the polder, with a still partly intact r...
this is the place we went yesterday
which used to be an island
Bone conduction is the conduction of sound to the inner ear primarily through the bones of the skull, allowing the hearer to perceive audio content without blocking the ear canal. Bone conduction transmission occurs constantly as sound waves vibrate bone, specifically the bones in the skull, although it is hard for the average individual to dist...
anyone have any bot scripts for ps5?
want to buy one
I keep getting beat - lol just want to buy myself one
resellers
Ever wondered how to make a sneaker bot? You should watch this video!
Check us out at:
https://pythondiscord.com
https://discord.gg/python
look at the video
so sad
@mild flume I ctrl + c something in excel, it gets ctrl + v only one time
any way to paste it multiple times?
"So, everyone, this is Mrs. Hemlock."
"Hey, Mrs. Hemlock, it's lovely to meet you. Mr. Hemlock has told us so much about you. All good things. All good things..."
hemlock do you have any experience with aws and python? specifically deploying lambda packages?
π
Russian ovine affirmatives.
Caprine may refer to:
A goat-antelope
Caprine, norleucine, aminoacid
Ovicaprids, goats and sheep taken together in archaeology and paleontology
Caprine, an adjective that means "pertaining to or belonging to the subfamily Caprinae" (see goat-antelope, caprine arthritis encephalitis virus)
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.
You could always extract the first row and use a dictionary of key value pairs to more cleanly loop the information and place it in your output data structure. I've just found using positional array values doesn't lend well when you want to understand your code later.
someone knows flask and can help me <?
@solar wharf I personally don't but you might ask in #web-development. They'd be the folks to ask
I use it some
Great for testing out REST APIs and collecting from Webhooks
@unkempt rock Thank you
haha
Yeah, eventually I will have rights
I love Django
It's harder than flask
@olive sable Yeah, are you collecting bots that are online with Django?
their status and then sending messages
Yeah
not that complicated
haha
@olive sable sounds like a nice thing to build as an event driven architecture, good use case of queuing and priorities
@olive sable yeah, send your messages to Kafka and then handle things from there...
I wish I could talk lol
I have no idea what Kafka is
It's not a hard thing to do
it's a messaging system to handle the flow of diff informational messages
using what database? I am using postgres
I can wait
yesterday
flask
@elder wraith so what would u use to harvest webhooks?
FastAPI?
that's interesting
um...
So a webhook essentially is tripped by an event then hits an API
no, collection point
that's what I asked
I aggree
it's bloated af
Flask isn't as bad, but what you said is worth looking into for me
yeah...I'm dockerizing that now
It's a savage beast
from flask import Flask, jsonify, request
from flask_restful import Api, Resource
app = Flask(__name__)
api = Api(app)
class HelloWorld(Resource):
def get(self):
return {'data': 'Hello World'}
api.add_resource(HelloWorld, '/helloworld')
if __name__ == "__main__":
app.run(debug=True)
flask...easy mode
whats being streamed?
Oh it was us trying to help him figure out a pathing issue
Just dont google, at least use Duck jeje
So Ruffle project.
aww
if anyone has any experience with Django and wants to come help me out jump into Code/Help0
#voice-verification
NOW I AM BECOME DEV, HELLOER OF WORLDS!
ehre
so am i allowed to post the code here?
Yep!
with '''
use three `
!code
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.
num1 = int(input("Enter a number: "))
counter = 0
for i in range(1,num1+1):
print(i)
counter += 1
return counter
main()```
```py
print("Hello world!")
```
so i was wondering how i can just get counter without the main
code block no worky :/
like what does the return do in this case
i did exactly that
i know you can save a value with return
wait
what
can u explain it a little
like waht if i same the main function as a x variable
@gleaming crow I think you may have just met the requirements for voice-verification. Try it out in the #voice-verification channel.
really
return 1
var = a()
# var now holds a 1
a()
#but calling a() without putting it into a variable, just gets ignored```
You can talk now π
Try leaving and joining.
lol
var = main()
num1 = int(input("Enter a number: "))
counter = 0
for i in range(1,num1+1):
print(i)
counter += 1
return counter
counter = main()
#so its in var "counter"```
As long as it's not obscene or spammy.
code:
class struct(object):
def __init__(self,**k):[setattr(self,this,that)for this,that in k.items()]
def __getattr__(self,item):
if not hasattr(self,item):setattr(self,item,self.__class__())
return object.__getattr__(self,item)
def __call__(self,f):setattr(self,f.__name__,f);return f
def __lshift__(s,o):print(0)
cout = struct()
cout.__lshift__=print
print(cout.__lshift__)
cout << 1
expected output:
<builtin function print> 1
actual output:
<builtin function print> 0
Oh, you're trying to emulate C++'s cout?

!e ```py
@lambda c:c()
class cout:lshift=print
cout << "Hello World!"
@shrewd star :white_check_mark: Your eval job has completed with return code 0.
Hello World!
def a():
global var
var = var +1
a()
print(var) # var is now 11```
I legit need help with this struct class tho.
I want the dunders to work after the class statement not within it.
i.e. actual __setattr__ not this weird fake __setattr__ it's doing
Oh yeah, it's nice.
!e ```py
#this code is supposed to do what it looks like it should do but it doesn't
class struct(object):
def init(self,**k):[setattr(self,this,that)for this,that in k.items()]
def getattr(self,item):
if not hasattr(self,item):setattr(self,item,self.class())
return object.getattr(self,item)
def call(self,f):setattr(self,f.name,f);return f
cout = struct()
cout.lshift=print
print(cout.lshift) # confirm
cout << 1 # error here
@shrewd star :x: Your eval job has completed with return code 1.
001 | <built-in function print>
002 | Traceback (most recent call last):
003 | File "<string>", line 12, in <module>
004 | TypeError: unsupported operand type(s) for <<: 'struct' and 'int'
!e ```py
class f:pass
f.add=print
f+"Hello World!"
@shrewd star :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | TypeError: unsupported operand type(s) for +: 'type' and 'str'
That's the problem in a nutshell
pip install pygame
They're java build tools
im dum
Electron?
!e ```py
import ctypes # noooooooooooooooooooo
class struct:
def init(self,**k):[setattr(self,this,that)for this,that in k.items()]
def getattr(self,item):
if not hasattr(self,item):setattr(self,item,self.class())
return object.getattr(self,item)
def setattr(self,key,item):
hack=ctypes.py_object.from_address(id(self)+8)
if not hasattr(self,'gulag'):hack.value.gulag=hack.value
hack.value=type(hack.value.name,(hack.value,),{key:item})
def call(self,f):setattr(self,f.name,f);return f
def del(self):
if hasattr(self,'gulag'):ctypes.py_object.from_address(id(self)+8).value=self.gulag
cout = struct(lshift=print)
derp = struct(derp=None)
cout << dir(cout)
@hearty heath the ducksies ... so cute
Yep π
!e ```py
@lambda c:c()
class cout:lshift=print
cout << "this is c++ lol"
@shrewd star :white_check_mark: Your eval job has completed with return code 0.
this is c++ lol
This is the ultimate goal of this class:
from cursedutils.cursed import struct
struct._bootstrap(globals())
cout.__lshift__ = print
output.data.x = 3
output.data.y = 4
@lambda f: cout << f(output.data)
def main(data):
return data.x * data.y
assert 'data' not in dir(cout)
{
long i;
float x2, y;
const float threehalfs = 1.5F;
x2 = number * 0.5F;
y = number;
i = * ( long * ) &y; // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck?
y = * ( float * ) &i;
y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration
// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed
return y;
}```
Fast inverse square root, sometimes referred to as Fast InvSqrt() or by the hexadecimal constant 0x5F3759DF, is an algorithm that estimates β1ββx, the reciprocal (or multiplicative inverse) of the square root of a 32-bit floating-point number x in IEEE 754 floating-point format. This operation is used in digital signal processing to normalize a ...
LG IPS Monitors. So Real, it's scary!
To find out more about IPS visit our blog: http://www.lgblog.co.uk
#LG #IPS #Monitors
ruh oh
!e print(0x5f3759df)
@shrewd star :white_check_mark: Your eval job has completed with return code 0.
1597463007
Ill send files as soon as I beat the level I just made
I've had to add some check points..
can you hear me?
nope
i connected bluetooth headphones
i can hear you
but you cant hear me
nope cant hear you
sending game to you
k
ok uploading it now, I'll PM you a file.re download link
Sent!
can you not hear me ?
hi im back
british?
i want to continue coding museum
well i hate being extinct
it's dangerous
yet that makes me dead if i smell an extinct fog
im using headphones
what-
they've gone extinct or no?
i will play funky friday in roblox XD
yet i want to spit-alung-off-will speed-over-aheadless run.
really impossible
gg! won
that might be why
theres no image now!
IT DOESNT END
lol
kkk
i have to do extreme by-speed-along run
!e @ancient whale I made your discord... ```py
print (f"{57005:X}")
@shrewd star :white_check_mark: Your eval job has completed with return code 0.
DEAD
XD
Will do :)
#voice-verification
I guess I still have some requirements to first take care of.
New to this server
Ohhh definitely. Hoping to chatting one day
I started learning python last year
def find_legendary(data):
line_list = [i.split(',') for i in data]
legendary_data = []
for item in line_list:
if 'TRUE' in item:
pokemon_name = item[1]
pokemon_number = item[0]
pokemon_generation = item[10]
legendary_data.extend([[pokemon_number, pokemon_name, pokemon_generation]])
return legendary_data
def find_strength(data):
line_list = [i.split(',') for i in data]
gensix_data = []
line_list.pop(0)
for item in line_list:
if int(item[10]) == 6:
pokemon_name = item[1]
strength_sum = 0
for i in range(4,10):
strength_sum += int(item[i])
gensix_data.extend([[pokemon_name, strength_sum]])
return gensix_data
def find_ability(data):
line_list = [i.split(',') for i in data]
gen1_list = []
line_list.pop(0)
for i in range(len(data)):
line = data[i].rstrip().replace('[','').replace(']','').replace("'",'')
# .rstrip() removes any whitespace on the right side of the line
# .replace(a,b) replaces a with b
line_list = line.split(',') # Now create list of line elements
if line_list[10] == '1': # Then check to see whether Pokemon is Gen 1
gen1_list.append(line_list) # If Gen 1, append to gen1_list```
def main():
with open('pokemon_13.csv', 'r') as f:
data = f.readlines()
legendary_pokemon = find_legendary(data)
print('---------------------------------------------')
print(' Legendary Pokemon ')
print('---------------------------------------------')
print('Number Name Generation')
print('---------------------------------------------')
for item in legendary_pokemon:
print('{:<9}{:<25}{:>11}'.format(item[0],item[1],item[2]))
gensix = find_strength(data)
print('------------------------------------------------------------------')
print(' Pokemon Generation 6 Strength [* = 20 pts] ')
print('------------------------------------------------------------------')
for item in gensix:
points = item[1] // 20
strength = ''
for i in range(points):
strength += '*'
print('{:>24} {:<37}'.format(item[0], strength))```
for item in line_list:
if line_list[10] == '1':
pokemon_name = item[1]
pokemon_number = item[0]
pokemon_ability = item[12]```
for item in legendary_pokemon:
print('{:<9}{:<25}{:>11}'.format(item[0],item[1],item[2]))```
def find_ability(data):
gen1_list = []
line_list.pop(0)
for i in range(len(data)):
line = data[i].rstrip().replace('[','').replace(']','').replace("'",'')
# .rstrip() removes any whitespace on the right side of the line
# .replace(a,b) replaces a with b
line_list = line.split(',') # Now create list of line elements
for item in line_list:
if line_list[10] == '1':
pokemon_name = item[1]
pokemon_number = item[0]
pokemon_ability = item[12]
gen1_list.extend([[pokemon_number, pokemon_name, pokemon_ability]])
return gen1_list
```
pokemon_ability = item[12].rstrip().replace('[','').replace(']','').replace("'",'')
gen1_list = []
line_list.pop(0)
for i in range(len(data)): #????????????????????
line = data[i].rstrip().replace('[','').replace(']','').replace("'",'')
# .rstrip() removes any whitespace on the right side of the line
# .replace(a,b) replaces a with b
line_list = line.split(',') # Now create list of line elements
for item in line_list:
if line_list[10] == '1':
pokemon_name = item[1]
pokemon_number = item[0]
pokemon_ability = item[12].rstrip().replace('[','').replace(']','').replace("'",'')
gen1_list.extend([[pokemon_number, pokemon_name, pokemon_ability]])
return gen1_list ```
I have a broken teeth AAAAAAAA
@ancient whale
https://www.youtube.com/watch?v=7f8kahmsJ-s
Thought we would reproduce the animated visuals for the DALEK Meditation as it is so awesome.
The original made me laugh so much, a little bit of wee came out!
Enjoy!
PS. Please don't take this seriously, it's supposed to be humorous.
how old r u?
ok stop
letβs stop asking age questions
letβs just relax
you're not super young right?
kids lose their milk teeth
I will go stop talking
π
Kids laugh so much
i believe i could produce another kid just like you
who will not laugh
sorry i probably should not talk to a kid like that
my bad
I want to go to brazil π§π·
pog

that was some real nice music
xD
when the impasta is s** o**s!
lol
sus
buitit
sus red
@shrewd star what in da fuck u listening?
a tesseract
you can make this on paper too
yeah its rotating
but in the 4th dimension
you sussy
fun fact, its just rotating
its a 3d representation of a 4d figure
we actually can't see a 4d figure π
oo
that is displayed on a 2d screen
exactly ^
Your question mark is n
templeos superior language
lol
rip terry you will be missed
oh no my pc doesn't recognise my headphones
Guys
sad
Goodnight Iβm gonna sleep
the guy who made templeOS^
goodnight viz
In the late 2000s, a man begins relentlessly sharing his custom operating system, but when people take notice of the man's strange behavior, they become witness to the degradation of his mental state.
Twitter: https://twitter.com/FredInTheKnud
Patreon: https://www.patreon.com/fredrikknudsen
Video at 1:22:16 by FkeBld: https://www.youtube.com/w...
gn
yeah i have seen it
I will stay at call
i've heard of him, the legendary cod player himself
good for you
When an early YouTuber finds unexpected success and viewership, he struggles to maintain it as he gradually alienates both his viewership and his friends.
Patreon: https://www.patreon.com/fredrikknudsen
Twitter: https://twitter.com/FredInTheKnud
ye
One more question
this is some heavy stuff, oof
I will hide my device and listen
@ancient whale of what?
haha wtf
majestic
imagine that running around your house π
people seeing it
fakeCoin
realCoin
or coinFake
coinReal
starts with c
||βfakecoinβ||
||coin real and coin fake||
I thought you were going to sleep π€
Ok I gotta sleep
XD
lol
_____ = True
def ____(_):
______ = False
if _ in {2,3}:
return _____
elif _ < 2 or _ % 2 == 0 or _ % 3 == 0:
return ______
___ = 5; __=2
while ___**2 <= _:
if _ % ___ == 0:
return ______
___ += __;__ = 6 - __
return _____
you like cats?
jesus that looks scary O_O
Thats beautiful
and disgusting at the same time
dayum
__=(((_<<_)<<_)*_)
__import__(('c%'[::(([]!=[])-(()==()))])*((_<<_)+(()==()))%((__+(((_<<_)*_)+((_<<_)+((_*_)+(_+(()==())))))),(__+(((_<<_)*_)+((_<<_)+((_*_)+(_+(()==())))))),(__+(((_<<_)<<_)+(_<<_))),(__+(((_<<_)<<_)+((_*_)+(()==())))),(__+(((_<<_)<<_)+((_<<_)+(_*_)))),(__+(((_<<_)<<_)+((_<<_)+(_*_)))),(__+(((_<<_)<<_)+((_<<_)+((_*_)+(_+(()==())))))),(__+(((_<<_)*_)+((_<<_)+((_*_)+(_+(()==())))))),(__+(((_<<_)*_)+((_<<_)+((_*_)+(_+(()==()))))))))β```
π±
EW
wow
!e
_=((()==())+(()==()))
__=(((_<<_)<<_)*_)
__import__(('c%'[::(([]!=[])-(()==()))])*((_<<_)+(()==()))%((__+(((_<<_)*_)+((_<<_)+((_*_)+(_+(()==())))))),(__+(((_<<_)*_)+((_<<_)+((_*_)+(_+(()==())))))),(__+(((_<<_)<<_)+(_<<_))),(__+(((_<<_)<<_)+((_*_)+(()==())))),(__+(((_<<_)<<_)+((_<<_)+(_*_)))),(__+(((_<<_)<<_)+((_<<_)+(_*_)))),(__+(((_<<_)<<_)+((_<<_)+((_*_)+(_+(()==())))))),(__+(((_<<_)*_)+((_<<_)+((_*_)+(_+(()==())))))),(__+(((_<<_)*_)+((_<<_)+((_*_)+(_+(()==()))))))))β
@knotty solar :white_check_mark: Your eval job has completed with return code 0.
Hello world!
128 language Ouroborous quine
This is my pay code
--[------->++<]>-.[->+++<]>.+++++.-----------.+++++++++.+++++++++.+[->+++<]>++.+.--[--->+<]>-.--[->++<]>.--[->++<]>-.+.++[->+++<]>++.+++++.++++++.[->+++++<]>+++.+[--->+<]>+++.++[->+++<]>.>++++++++++..--[----->+<]>+.+++++.++++++.[---->+<]>+++.+[----->+<]>.------------.++++++++.+++++.++[++>---<]>.-----[->+++<]>.+++++.++++++.[---->+<]>+++.[->+++<]>+.--[--->+<]>---.-----------.----.+[->+++<]>.------------.+[->+++<]>.++++++++++++.-.+++++.+.[---->+<]>+++.+[->+++<]>.+++++.-------.--[--->+<]>---.[-->+++++<]>+++.++++++++++.-[--->+<]>--.--[--->+<]>---.-----------.--[--->+<]>-.--[->+++<]>-.++.-[->++++++<]>+.---------.-[->++++<]>-.>++++++++++.-[------->+<]>+.++.---------.+++++.++++++.+++[->+++<]>+.---[->+++<]>-.------.++[->++<]>.-[->+++++<]>++.+++++++..+++.[--->+<]>-----.---[->+++<]>.-[--->+<]>---.---.++++++.--------------.-[--->+<]>.+.+++++++.-[-->+++<]>-.>++++++++++.[------->+++<]>.-------------.[--->+<]>---.+.---.----.-[->+++++<]>-.[-->+++<]>.+++++++++++.>++++++++++.>--[-->+++<]>.
brainfuck code
of this ```c
#include <stdio.h>
int main(int argc, const char *argv[]) {
printf("Hello Wolrd!");
return 0;
}
!e ```py
import('ctypes').py_object.from_address(id(...)+8).value=type("wrapper",(object,),{'call':lambda s,f:f()})
@int
@...
class n:int=lambda s:69
@...
class cout:lshift=print
@...
class main:init=lambda s: cout << int.mul((n//10)*10,(n%10)-(True<<10**False))
@shrewd star :white_check_mark: Your eval job has completed with return code 0.
420
they already banned my 2 accounts
lol
I don't ask questions on so anymore
My last longest code...
its april fools btw, dont worry
#esoteric-python message
@ancient whale
i tried to make a brainfuck interpreter
this is what happened
who plays old school runescape here?
a=[0]
@lambda cls:cls(1)
class fibonacci(int):
def __repr__(s):
a.append(s.__class__(int.__add__((lambda i:print(int(i))or i)(a[-2]),a[-1])))
return int.__repr__(s)
a+=[fibonacci]
print (a) # in console: >>> a
@ancient whale you probably dont have java installed
!e ```py
print ([0x0for O in input("Hello World!")])
@shrewd star :white_check_mark: Your eval job has completed with return code 0.
[15]
Whatβs this code for py? <p style="text-align:left;">Left</p>
<p style="text-align:center;">Center</p>
<p style="text-align:right;">Right</p>
<p><a style="text-decoration:none;" href="//www.html.am">Link with no underline...</a></p>
<p style="text-decoration:underline;">Normal text with underline</p>
<p style="text-decoration:line-through;">Text with a line through the middle</p>
<p style="text-decoration:overline;">Text with an overline</p>
<p style="text-decoration:blink;">Blinking text (doesn't work on all browsers)</p>
<p style="text-indent:18px;width:200px;">The first line of this paragraph is indented by 18 pixels. Each subsequent line is not indented.</p>
<p style="text-indent:2.8em;width:200px;">The first line of this paragraph is indented by 2.8 em. An em defines the proportion of the letter width and height with respect to the point size of the current font.</p>
<p style="text-indent:35%;width:200px;">The first line of this paragraph is indented by 35% (i.e. 35% of the containing block - not this paragraph).</p>
<p style="text-indent:-8px;width:200px;">The first line of this paragraph is indented by a negative amount (-8 pixels). </p>
<p style="font-size:18px;color:orange;text-shadow:1px 1px 1px #666;">Drop shadow 1</p>
<p style="font-size:18px;color:orange;text-shadow:1px 1px 1px #000;">Drop shadow 2</p>
<p style="font-size:18px;text-shadow:4px 4px 4px #666;">Drop shadow 3</p>
<p style="font-size:18px;color:orange;text-shadow:4px 4px 8px #666;">Drop shadow 4</p>
<p style="font-size:18px;color:#fff;text-shadow:1px 1px 8px #000;">Drop shadow 5</p>
<p style="text-transform:capitalize;">capitalized text (also known as title case)</p>
<p style="text-transform:uppercase;">uppercase text</p>
<p style="text-transform:lowercase;">TALK QUIETLY</p>
<p style="text-align:left;">Left</p>
<p style="text-align:center;">Center</p>
<p style="text-align:right;">Right</p>
<p><a style="text-decoration:none;" href="//www.html.am">Link with no underline...</a></p>
<p style="text-decoration:underline;">Normal text with underline</p>
<p style="text-decoration:line-through;">Text with a line through the middle</p>
<p style="text-decoration:overline;">Text with an overline</p>
<p style="text-decoration:blink;">Blinking text (doesn't work on all browsers)</p>
<p style="text-indent:18px;width:200px;">The first line of this paragraph is indented by 18 pixels. Each subsequent line is not indented.</p>
<p style="text-indent:2.8em;width:200px;">The first line of this paragraph is indented by 2.8 em. An em defines the proportion of the letter width and height with respect to the point size of the current font.</p>
<p style="text-indent:35%;width:200px;">The first line of this paragraph is indented by 35% (i.e. 35% of the containing block - not this paragraph).</p>
<p style="text-indent:-8px;width:200px;">The first line of this paragraph is indented by a negative amount (-8 pixels). </p>
<p style="font-size:18px;color:orange;text-shadow:1px 1px 1px #666;">Drop shadow 1</p>
<p style="font-size:18px;color:orange;text-shadow:1px 1px 1px #000;">Drop shadow 2</p>
<p style="font-size:18px;text-shadow:4px 4px 4px #666;">Drop shadow 3</p>
<p style="font-size:18px;color:orange;text-shadow:4px 4px 8px #666;">Drop shadow 4</p>
<p style="font-size:18px;color:#fff;text-shadow:1px 1px 8px #000;">Drop shadow 5</p>
<p style="text-transform:capitalize;">capitalized text (also known as title case)</p>
<p style="text-transform:uppercase;">uppercase text</p>
<p style="text-transform:lowercase;">TALK QUIETLY</p>
!e @ancient whale this magical X thing makes your pc go... ```py
print (f"{57005:X}")


