#voice-chat-text-0
1 messages ยท Page 759 of 1
you know why Hemlock's isn't here today?
What is the most appropriate resource, you would like to recommend for starting with python? @somber heath
.topic
Suggest more topics here!
'x%' % 3
The Python documentation on Python.org. Youtube tutorials are also good. Corey Schafer and sentdex chief among them.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!e
d = 'x%' % 33
print(d)
@fiery hearth :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ValueError: incomplete format
@fiery hearth
x = 123
print("hexadecimal value %x" % x)
!e
d = '%x' % 33
print(d)
@fiery hearth :white_check_mark: Your eval job has completed with return code 0.
21
!e
print("%x"% 15)
@wise glade :white_check_mark: Your eval job has completed with return code 0.
f
cause 33 in hex is 21
!e print(type('%x' % 33))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
<class 'str'>
!e
print(type(hex(33)))
@wise glade :white_check_mark: Your eval job has completed with return code 0.
<class 'str'>
hex() must return a string type
here too
what sound was that @fiery hearth ??
@craggy zephyr just me moving things
oh
its just a representation, everything's binary in essence
!e
print(type("%s %i %x" % (15,15,15)))
# `"%s %i %x"` this part is a string type, that's why
# it prints string
why is everyone suddenly Opalmist Fan club?
Also @dim wagon can we please keep this server PG-13
because OPALMIST
!otn a opalmist-fan-club
:ok_hand: Added opalmist-fan-club to the names list.
@tidal salmon wrong spelling
lowercase c
Syntax error: lowercase C
ok, power's back
hurrah
join the club
Don't look at me.
paying homage to opal today
OpalMist for Helper!
OpalMist for Helper!
LOL dafuq is going on ๐
opalmist day
ngl, this commotion woke me up
go to bed lol
I mean, I was supposed to
Although I've yet to decide if I want to catch the Nintendo Direct or not
Either way, I'll be hopping off to work on my site
See ya folks
is today opalmist appreciation day?
yes
๐ d'awww
JOIN THE CLUB OR YOU'RE NOT COOL
lol how do i join
set your nickname
is there an annual fee to join? LOL
nope
completely free
โ๏ธ light theme ๐คฎ
he's been through this before
accelerator ๐คฎ
It's getting serious
Dang, Opalmist getting the ultimate fanclub
yes, we need to work on our official fan name and fan chant LOL
I don't even imagine that my initiative became that big!!
yeah, you started it ๐
no, that's tomorrow
today is opalmist appreciation day
๐ฆ senpai doesn't love us.
lol what is the server icon
We need to change the server icon to OpalMist's profile pic
only true opalmist fans know
@commands.command()
async def verification(self, ctx):
embed = discord.Embed(title="**Verification**",
description="Please press the green check mark to verify yourself and to gain access to the rest of the server!",
color=0xa9d8ea)
embed.set_thumbnail(url="https://images.discordapp.net/avatars/736298326080618617/bd45b01b22769e88335524b55ac9be9b.png?size=512")
embed.set_footer(text=ctx.author)
embed.set_footer(text="Verification Module .py")
await ctx.send(embed=embed)
l ao
i like juive
i dribk juice
driba da lol kal uyowhrovh
j;ihukesrbvhjfi3oawekvar oewsjeilghd hsrijhujfgnbef gheoidkhgv
jhujhytghjnhy iujuweyhjfrwfgrwesd
jiujhyhy
jjjhyuiuyt54wsdfrtgfty
kiuhjkiuyhnjuygbnjuyg
lo9ikowe9f8u4few
o98765edfgbhji
okmnbgtyujwo4gfaf
fkwoef-9287652dw3f
gonna go eat, ttyl @somber heath
kk
Their own choice to be set as such, presumably.
would you recommend firebase for a web/app project?
probably true
yeah it probably is lel
And flutter is supporting dart
I see people doing cool apps
With flutter
But when it comes to web
It sucks
Yeah they are still working on it
i mean yeah its still in beta
I saw the code of react native
And I felt dart is simple
And faster for native mobile apps
hello?
Loading took some time
do you guys know about korea?
probably part of the cloud provider though
Did u built it
Ha
Try it out here: https://bubble-tasker.codemagic.app/
Sign up here for more videos: https://robertbrunhage.com/
โญโญโญ SUPPORT ME โญโญโญ
Patreon: https://www.patreon.com/join/RobertBrunhage
PayPal: https://www.paypal.me/RobertBrunhage
โญโญโญ CONNECT WITH ME ON SOCIAL MEDIA โญโญโญ
Twitter: https://twitter.c...
March 3 2021
There is dev seminar
May be they are releasing new stuff
for dart
I don't understand why google making so many languages
dart is amazing
Who knows discord.py, on join a server??
and python a bit
They also copied python
Like print()
Yeah
hmm yeah
Yeah
Top Ten Programming Languages ๐ฅ for 2019 based on your goals as a developer. https://medium.com/@jeffdelaney/top-ten-programming-languages-of-2019-a8dd5bc6f3bc
Learn more at https://fireship.io
๐ awesome video
great editing work
@thorny pulsar AHOY!
@thorny pulsar It sucks to be a 9-5 coder in a corporate environment! DON'T DO IT!
can u guys give me some advice
how many years is it for a doctorate in computer science
this is some serieus stuff
and its like 12 yrs i think
cus damn
i think it's alot
i'm from usa
im from ongengonen vilage
ahmm
@thorny pulsar its a sound board
inverse of HERO
yeah?
https://github.com/InZane84/WADdle-Plot-CLI My program
i think these days a little abstraction goes a long way
learn RUST
full memory safety
borrowing is too good
wow are you good at rust?
ah
write code using a faster language, or use pypy instead of the standard python interpreter
or see if you've made any big performance mistake, your code is most likely not slow because of python
true
when it get to calculation
big calculation i mean
It's a bit slower
right, theres no way any of us can help you without seeing your code
you might be able to use numpy
def prim_num(a ,b):
result = []
for i in range(a, b+1):
j = 2
check = 0
while j <= int(i**0.5):
if i % j == 0:
check += 1
break
j += 1
if check == 0:
result.append(i)
return result
This is a function to make a list of primary numbers
Sure will check it out
https://github.com/laundmo/multiton yo this is some cool stuff
hehe
is this based off the singleton oop pattern?
yes
@dusk burrow if you just need primes, theres libraries that are way faster than anything you could implement yourself. i recommend you check this one out:
!pypi primesieve
I'm still beginner so doing thinks my own way so much helpfull
right, but that means that it will be slow
you're not going to be able to write blazingly fast code while learning
Ah you're right broo even split and join function I made them from scrach
Ok broo thank you
@commands.command()
async def verification(self, ctx):
embed = discord.Embed(title="**Verification**",
description="Please press the green check mark to verify yourself and to gain access to the rest of the server!",
color=0xa9d8ea)
embed.set_thumbnail(url="https://images.discordapp.net/avatars/736298326080618617/bd45b01b22769e88335524b55ac9be9b.png?size=512")
embed.set_footer(text=ctx.author)
embed.set_footer(text="Verification Module .py")
await ctx.send(embed=embed)
@commands.Cog.listener()
async def
class Ban(commands.Cog):
def __init__(self, bot,):
self.bot = bot
@commands.command()
@commands.has_permissions(ban_members=True)
async def ban (self, ctx, member:discord.User=None, reason =None):
if member == None or member == ctx.message.author:
await ctx.channel.send("You cannot ban yourself")
return
if reason == None:
reason = "For being a jerk!"
message = f"You have been banned from {ctx.guild.name} for {reason}"
await member.send(message)
await ctx.guild.ban(member, reason=reason)
await ctx.channel.send(f"{member.mention} is banned!")
Traceback (most recent call last):
File "D:\Discord Bot Project\Bot 1\BotDiscord.py\bot2.py", line 34, in <module>
bot.load_extension('Cogs.ban')
File "C:\Users\Shahe\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 663, in load_extension
self._load_from_module_spec(spec, name)
File "C:\Users\Shahe\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 609, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'Cogs.ban' raised an error: TabError: inconsistent use of tabs and spaces in indentation (ban.py, line 8)
@commands.command()
async def verification(self, ctx):
embed = discord.Embed(title="**Verification**",
description="Please press the green check mark to verify yourself and to gain access to the rest of the server!",
color=0xa9d8ea)
embed.set_thumbnail(url="https://images.discordapp.net/avatars/736298326080618617/bd45b01b22769e88335524b55ac9be9b.png?size=512")
embed.set_footer(text=ctx.author)
embed.set_footer(text="Verification Module .py")
await ctx.send(embed=embed)
@commands.Cog.listener()
async def on_raw_reaction(self, ctx):
I am on linux
A decorator takes in a function, adds some functionality and returns it. In this tutorial, you will learn how you can create a decorator and why you should use it.
@commands.Cog.listener()
async def on_reaction_add(payload):
await discord.on_reaction_add(reaction=':white_check_mark:')
@left sierra what error does it give now
discord.ext.commands.errors.ExtensionFailed: Extension 'Cogs.ban' raised an error: TabError: inconsistent use of tabs and spaces in indentation (ban.py, line 8)
so you still didn't fix the problem I told you about earlier
mixing tabs and spaces
@commands.Cog.listener()
async def on_raw_reaction_add(payload):
I posted a link for you @left sierra
https://stackoverflow.com/questions/33974681/how-can-i-convert-tabs-to-spaces-and-vice-versa-in-an-existing-file
!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.
private int[] botValid() {
int[] bestMove = new int[2];
int utility = Integer.MIN_VALUE;
char[][] tempBoard = new char[3][3];
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
tempBoard[i][j] = temp.getBoard()[i][j];
}
}
System.out.println(temp.getOpen(temp.getBoard()));
for (int i = 0; i < temp.getOpen(temp.getBoard()).size(); i++) {
tempBoard[temp.getOpen(temp.getBoard()).get(i).get(0).intValue()][temp.getOpen(temp.getBoard()).get(i).get(1).intValue()] = temp.getIcons()[1];
int score = minimax(tempBoard, false);
if (score > utility) {
utility = score;
bestMove = new int[] {temp.getOpen(temp.getBoard()).get(i).get(0).intValue(), temp.getOpen(temp.getBoard()).get(i).get(1).intValue()};
}
tempBoard[temp.getOpen(temp.getBoard()).get(i).get(0).intValue()][temp.getOpen(temp.getBoard()).get(i).get(1).intValue()] = '_';
posScore = 0;
}
return bestMove;
}```
private int minimax(char[][] tempBoard, boolean max) {
if (temp.winner(tempBoard)[0] == 1) {
if (temp.winner(tempBoard)[1] == 1) {
posScore--;
return posScore;
} else {
posScore++;
return posScore;
}
} else if (temp.winner(tempBoard)[0] == 2) {
return posScore;
}
if (max) {
int bestScore = Integer.MIN_VALUE;
for (int i = 0; i < temp.getOpen(tempBoard).size(); i++) {
int[] move = new int[] {temp.getOpen(tempBoard).get(i).get(0).intValue(), temp.getOpen(tempBoard).get(i).get(1).intValue()};
tempBoard[move[0]][move[1]] = temp.getIcons()[1];
// temp.printBoard(tempBoard);
// System.out.println(temp.getOpen(tempBoard));
// System.out.println(i);
minimax(tempBoard, false);
tempBoard[move[0]][move[1]] = '_';
if (posScore > bestScore) {
bestScore = posScore;
}
}
return bestScore;
} else {
int worstScore = Integer.MAX_VALUE;
for (int i = 0; i < temp.getOpen(tempBoard).size(); i++) {
int[] move = new int[] {temp.getOpen(tempBoard).get(i).get(0).intValue(), temp.getOpen(tempBoard).get(i).get(1).intValue()};
tempBoard[move[0]][move[1]] = temp.getIcons()[0];
// temp.printBoard(tempBoard);
// System.out.println(temp.getOpen(tempBoard));
// System.out.println(i);
minimax(tempBoard, true);
tempBoard[move[0]][move[1]] = '_';
if (posScore < worstScore) {
worstScore = posScore;
}
}
return worstScore;
}
}```
@unreal swallow pretty sure that's not Python
hush
you'd probably be better asking that in a server specific to the language that's in
Java server is always dead silent because its a terirble language
then why are you asking for help in it lol
@commands.Cog.listener()
async def on_raw_reaction_add(payload):
discord.on_raw_reaction_add(message_id=811600946773098557)
Not my chocie to use Java
@gentle flint does that look good?
You have no clue how much time I've spent struggling through this
@commands.command()
async def verification(self, ctx):
embed = discord.Embed(title="**Verification**",
description="Please press the green check mark to verify yourself and to gain access to the rest of the server!",
color=0xa9d8ea)
embed.set_thumbnail(url="https://images.discordapp.net/avatars/736298326080618617/bd45b01b22769e88335524b55ac9be9b.png?size=512")
embed.set_footer(text=ctx.author)
embed.set_footer(text="Verification Module .py")
await ctx.send(embed=embed)
@commands.Cog.listener()
async def on_raw_reaction_add(payload):
!e
class MyClass:
def __init__(self):
self.my_list = []
def add_item(self, item):
self.my_list.append(item)
my_class = MyClass()
my_class.add_item(5)
print(my_class.my_list)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
[5]
!e
class MyClass:
def __init__(self):
self.my_list = []
def verification(self):
self.my_list.append("Verification")
def reaction(self):
if "Verification" in self.my_list:
print("You are verified")
else:
print("you are not verified")
my_class = MyClass()
my_class.reaction()
my_class.verification()
my_class.reaction()
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | you are not verified
002 | You are verified
got a meeting, see ya
there are some good docs online, have you tried reading or watching a video on it?
what didn't you understnad?
what don't you understnad?
what part?
In this video, we go over how to setup a discord bot in python using discord.py v1.0.1 (rewrite).
If you have any suggestions for future videos, leave it in the comments below.
GITHUB: https://github.com/Rapptz/discord.py
DOCUMENTATION: https://discordpy.readthedocs.io/en/latest/
OFFICIAL DISCORD.PY SERVER: https://discord.gg/r3sSKJJ
JOIN MY ...
dont watch this video
its not up to date
@whole bear #discord-bots is a good channel to ask in too
py -3 -m pip install -U discord.py
@whole bear use that
to download the discord.py pip
put that into cmd
pip install -U discord.py
loll

that was a bad idea to say that
you need to be 13+ to use discord
you need to be 13+ to use discord
you need to be 13+ to use discord
you need to be 13+ to use discord
stop spamming @dense ibex
im really sorry yall, im hella sleep deprived so thats why im so grouchy rn
we are informed about the situation. we will report it do discord as is our normal procedure
@dire folio you have muted role you cant talk
Ban incoming
!tempmute @dense ibex 4h Take this time to cool down, when an administrator tells you to stop spamming, you stop. Spamming "you need to be 13+ to use discord" does not help the situation whatsoever.
:incoming_envelope: :ok_hand: applied mute to @dense ibex until 2021-02-18 00:14 (3 hours and 59 minutes).
Oof
it is true, but we are still bound by our partnership with discord to follow discords rules
yes, and that is between you and discord to figure out, we will not remove you, only report it to discord
back?
yes, back
here is an example of a good main file
lol
guessing that wasn't just a me thing
it wasn't
@whole bear this is the code if you want to copy paste it
our internal keybase
import discord
# importing the general discord package
from discord.ext import commands
# importing the commands extension of discord.py
intents = discord.Intents.default()
intents.members = True
# defining the bots intents
bot = commands.Bot(command_prefx="!", intents=intents)
# creating our bot object
@bot.event
async def on_ready():
print(f"Logged in as {bot.user}\n({bot.user.id})")
# every time the bot starts, we print its info
bot.run("PASTE YOUR TOKEN HERE")
# running our bot
nope
uhh excuse me
At least I tried

And I was just kidding when I said Griff wasnt a good guy. Relax.
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
yw lol
@uncut meteor, if i remake the repo, would you mind going through it and putting comments in for me?
nothing threre
do you have an IDE?
@whole bear that's what's called a REPL
you type in code, press enter, it executes the code
generally people will create a file instead with code and execute the file
no thanks
that takes time
and I have none
yet you are sitting in a discord vc rn
ahh alright, got it
@whole bear man is to woman as king is to queen
NLP relations are fascinating on dimensionality
yes, but I cant right now, we have an internal issue i need to look into
@whole bear can I help
you can ask in the help channel, #โ๏ฝhow-to-get-help has details on how you can claim your own help channel
ahh . thanks @gentle flint
glhf eivl
so @whole bear what is the question
ask away
you mean how to install it?
are you on Windows
well that looks fine
find a nice course on
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
and then go through the course you pick
she's a girl now
I have no idea what she may or may not have been before
perhaps she used to be a rabbit
sure is
colonize countries and exploit them for centuries ?
1
2
@molten bridge
4
@winter gyro
@molten bridge
7
8
@molten bridge
@winter gyro
11
@molten bridge
13
14
@sleek maple
...
Did I do it right?
So, bad to have Buzz as a nick i guess.. ^^
hula hoops
Hoopsaloops
Write-Host "Hello World"```
Console.Log("Hello World")
Write-host "Hello World"```
THERE IS ONLY ONE RIGHT ANSWER HERE
C# is for noobz

I'm right
Yes
console.log also for JavaScript
because python is python
cout << "Hello World"
shut
console.log() == print()
Push it to the limit is a l33T option on git
What
haha
print("Hello World")
python print('yeah')
print('Hello world')
!e
print("Hello World")
@gentle flint :white_check_mark: Your eval job has completed with return code 0.
Hello World
!e ```python
print('my name is john clicker')
@whole bear :white_check_mark: Your eval job has completed with return code 0.
my name is john clicker
Don't break my legs
๐
!e
print("hi "*5)
@gentle flint :white_check_mark: Your eval job has completed with return code 0.
hi hi hi hi hi
arms perhaps ?
Please don't
!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!*
Our album "Invisible People" is now available EVERYWHERE! http://www.pomplamoose.com
Buy Bust Your Knee Caps on iTunes :
https://itunes.apple.com/album/hey-its-pomplamoose/id531902468
or the The Everything Package direct from us
http://bit.ly/EverythingPomplamoose
Lyrics:
Jonny don't leave me,
You said you'd love me forever.
Honey believe me,...
!e import time
@jagged thorn :warning: Your eval job has completed with return code 0.
[No output]
An example bot for the discord.py channel. Contribute to ChiliPy/Example-Bot development by creating an account on GitHub.
!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.
SECOND HAND
// Printing With C method in C++
#include <cstdio>
int main(){
printf("Hello World");
}
!e ```py
print('Hello world!')
@jagged thorn :white_check_mark: Your eval job has completed with return code 0.
Hello world!
!e ```py
import time
print('Hello world! %s' %(time))
Would you not recommend pycharm?
Or anything like that?
?
Why do people keep leaving and joining
It's kinda annoying ngl
What is doing this
Reeee
Do it >;d
Slap me hard dad ;)
on the verge of ?
I want voice verify
wtf
yeah same here
Pluralsight Guides
Software @terse needle
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@jagged thorn *
That is rather cringe, __init__ bruv.
:(
what
It says in my logo
:incoming_envelope: :ok_hand: applied mute to @jagged thorn until 2021-02-17 21:32 (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).
"Of software"
Lol
Stop joking about html >:(
chances are that the regex didn't find a match
make a check before trying to index 0
or change your regex
> Pointer Left
< Pointer Right
+ Add 1 to current cell
- Remove 1 from current cell
[ Open loop
] Close loop
. Print cell value
, Input cell value
Can I DM you Griff?
very nice
Basicly I am using a script from someone else, and trying to run the script.. the scrip is made from version 2.7. So I don't really understand that much when it comes to the technical aspect of this script
Scrape finn.no bolig information. Contribute to qiangwennorge/ScrapeFinnBolig development by creating an account on GitHub.
This is the script
Thanks for looking into it
@zealous wave Literally? ๐
oof
Do you guys understand anything of the norwegian language ๐
"Where did it go?"
Yeah
I wanna learn norwegian
va fan
If you learn me Python I can learn you Norwegian
Where you guys from?
Sweden
Ahh
a bit via Swedish, but my Swedish is also not so good
I'm Dutch
Uhhhh unfortunately I'm a beginner
Ahh, are you able to understand the script and make it work?
Kjenner du godt til Python?
Chances are the site has changes so much the script will just keep throwing errors
Yeah, might need to update the information a bit?
Ja, typ
also, I doubt the ToS of the website allow scraping
Do you wan't to take on the challenge?
Changing to a different Python version and the site now has a completely different layout?
It's probably easier to rewrite from scratch.
I am not writing scripts for anyone.
Let alone ones which break ToS
it's not a challenge
it's you asking someone else to do your dirty work
Yes, that is correct. However if I knew how to do it then I would do the dirty work myself.. however I doubt that I will understand the script in order to find errors etc..
like I said, it's not finding errors
you'll probably need to redo the whole thing from scratch
A lot of high capacity USB sticks are scams btw.
Just so you know.
My aunt hates tea. I always forget and offer it to her. It's reflexive for British people to offer tea ๐
oof
Don't you constantly have to click on the 'accept cookie' button? @gentle flint
only after closing the browser
it temporarily saves cookies until all the browser windows are closed
Oh right. Some isolate the cookies per tab 
My (current and changing) build of dwm: https://github.com/lukesmithxyz/dwm
Get dwm: http://dwm.suckless.org
WEBSITE: https://lukesmith.xyz ๐โ๐
DONATE NOW: https://lukesmith.xyz/donate ๐ฐ๐๐๐ฏ
Every time you open Google, you get this:
I don't use google...
Use duckduckgo ๐ฆ
Yeah, I do, except when the results are useless ๐
well, it depends on the search terms you use
they're slightly different for duckduckgo
Google still has the edge on search quality
I can generally find my results with both
Although I prefer that they aren't personalised on duckduckgo.
For some reason duckduckgo doesn't find stackoverflow answers as well as google, which is not great for programming.
was acquired by US ad-tech company in 2019
Was it?
System1 was the name of the ad company
So it isn't safe anymore?
well, that depends on what they did, huh?
Oof
but it's sorta like asking zuckerberg to take care of signal
an example bot for the discord.py channel. Contribute to ChiliPy/example-bot development by creating an account on GitHub.
return (
not ctx.channel.overwrites_for(ctx.guild.default_role).view_channel
and ctx.channel.overwrites_for(ctx.guild.default_role).view_channel is not None
)
Want me to do that one too? ๐
bot = commands.Bot(command_prefix=commands.when_mentioned_or(PREFIX),
intents=intents,
allowed_mentions=allowed_mentions,
activity=discord.Game(name="Setting a Good Example"),
help_command=MyHelp())
Join the cult of lining up things with indentation: ```py
bot = commands.Bot(
command_prefix = commands.when_mentioned_or(PREFIX),
intents = intents,
allowed_mentions = allowed_mentions,
activity = discord.Game(name="Setting a Good Example"),
help_command = MyHelp(),
)
why is
ctag.write(f"""
{ntagc}
""")
easier than
ctag.write(str(ntagc))
or
ctag.write(f"{ntagc}")
!e ```py
import dis
dis.dis(str(1))
!e
import dis
dis.dis(f'{1}')
!e ```py
from timeit import timeit
def foo():
return str(1)
def bar():
return f"{1}"
print(timeit(foo)) # 1st is str()
print(timeit(bar)) # 2nd is f-string
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
001 | 0.40573474392294884
002 | 0.28019358310848475
!e
def test():
"""This is a useless function that will always return True"""
return True
print(test.__doc__)
@terse needle :white_check_mark: Your eval job has completed with return code 0.
This is a useless function that will always return True
thats really cool
made them red-white-blue for the Dutch flag (and my pfp)
if I get another I'll make it orange
what how, context?!
!otn a became-a-pepperess
or at least the server
!otn a became a pepperess
:ok_hand: Added became-a-pepperess to the names list.
thx lol
I dont get it, but there
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.
@bot.event
async def on_ready():
"""every time the bot starts, we print its info"""
print(f"Logged in as {bot.user}\n({bot.user.id})")
``` vs
@bot.event
async def on_ready():
# print bot info whenever it starts
print(f"Logged in as {bot.user}\n({bot.user.id})")
print bot info whenever it starts
def prim_num(a,b):
Hey guys!
chฤซlฤซ is a pepperess
hello
# import the discord package
import discord
import os
# Client (the bot)
client = discord.Client()
# event
@client.event
async def on_ready():
# functionality...
general_channel = client.get_channel(811789872636624917)
await general_channel.send("Hello!")
# run client on the server!
client.run(os.getenv("TOKEN"))
async def on_ready():
^
SyntaxError: invalid syntax
import asyncio
probably
what's your problem?
how do i make a macro
in python?
yes
and one that mimics the holding if the left mouse button
of\
of
it wont work?
I have no experience with macros\
i want it for roblox
yes
im too lazy to hold my mouse left button
left mouse
Check out Azure Mines [Nuclear Winter]. Itโs one of the millions of unique, user-generated 3D experiences created on Roblox. You're in charge of restoring an old mining facility back to its former glory.
Use the ore you uncover in the azure mines to rebuild your base. In this unique tycoon & mining game hybrid, all of your progress saves and l...
this is game
y cant u talk about macros
i just wanted it for roblox:/
i dont think on this game
its a clicker there is no fun
lol
ah yes 1 million mouse clicks
yes
no a macro
i alr have a autoclicker
it automates things for u
A macro in computer science is a rule or pattern that specifies how a certain input should be mapped to a replacement output. Applying a macro to an input is macro expansion. The input and output may be a sequence of lexical tokens or characters, or a syntax tree.
a pornhub bot?
alot of voice bots do it now
sharkboy and lava girl was a bad movie prove me wrong
because it leaches off nostalgia
it wasnt a good movie
just like there there new movie we can be heroes
When alien invaders kidnap Earth's superheroes, their children must team up and learn to work together if they want to save their parents and the world.
opinions are a crazy thing
no there not
there a bad thing
we must be more like a dictatorship
also how has it been 35 times in a row when it has only been out 16 years ago
the movie is so good that it transcends time
these are its 3-D's awards
also it didnt even get best movie of the year one time
lmfao
we can be heroes was quite decent but not good at all
i only enjoyed the beginning
the end was weird
discord.version_info
pip3 install discord.py
python3 -m pip install -U discord.py
async def on_ready():
^
SyntaxError: invalid syntax
# import the discord package
import discord
import asyncio
import os
# Client (the bot)
client = discord.Client()
# event
@client.event
async def on_ready():
# functionality...
general_channel = client.get_channel(811789872636624917)
await general_channel.send("Hello!")
# run client on the server!
client.run(os.getenv("TOKEN"))
pip install async
Because of that, your profile is hidden from the public. If you believe this is a mistake, contact support to have your account status reviewed.
@frozen jacinth
import sys
print(sys.version)```
"Writing SQL is 100% of my job."
Talking to people? Not your job.
Taking instruction? Not your job.
Coming in to work? Not your job.
All that exists is SQL. Forever.
@eternal bough
@whole bear where are you from?
Did you watch https://tubitv.com/movies/301349 ? I promise you will hate it especially 8:30+ minutes in, but without it I'm not sure whether I can explain certain truths
hi
what's this missing it's supposed to count up to the number i input
while True:
user = input('Number to count to\n')
for i in range(1,11):
print (i)
@whole bear
user = int(input('Number to count to '))
for i in range(1, user + 1):
print(i)
is that what ur looking for?
well good luck anyways
@ me if you need more help
yea?
it looks right thank you
yeah no problem!
i feel dumb xD i didn't think of writing it that way
you were thinking of a more complicated and logical approach but python works a little different than expected
its alright ull get used to it
good luck!
thank you i was only thinking about making it count p form user not adding the 1 the one simple mistake
you to xD
Hey @fiery basin!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
who tagged me
Hey @fiery basin!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
i can't attach code
send me dm
ok
import turtle
import math
import random
wn = turtle.Screen()
wn.bgcolor('lightgreen')
mypen = turtle.Turtle()
mypen.penup()
mypen.setposition(-300,-300)
mypen.pendown()
mypen.pensize(3)
for side in range(4):
mypen.forward(600)
mypen.left(90)
mypen.hideturtle()
player = turtle.Turtle()
player.color('blue')
player.shape('triangle')
player.penup()
speed = 1
player.speed(0)
goal = turtle.Turtle()
goal.color("Red")
goal.shape('circle')
goal.penup()
goal.speed(0)
goal.setposition(random.randint(-300, 300), random.randint(-300, 300))
def turnleft():
player.left(30)
def turnright ():
player.right(30)
def increasespeed():
global speed
speed += 1
def isCollition(t1, t2):
d = math.sqrt(math.pow(t1.xcor() - t2.xcor(), 2) + math.pow(t1.ycor() - t2.ycor(), 2))
if d < 20:
return True
else:
return False
turtle.listen()
turtle.onkey(turnleft, 'Left')
turtle.onkey(turnright, 'Right')
turtle.onkey(increasespeed, 'Up')
while True:
player.forward(speed)
if player.xcor() > 300 or player.xcor() < - 300:
player.right(180)
if player.ycor() > 300 or player.ycor() < -300:
player.right(180)
if isCollition(player, goal):
goal.setposition(random.randint(-300, 300), random.randint(-300, 300))
goal.forward(1)
delay = raw_input('Press Enter to finish')
where is the problem or what is the error
wrong one sorry
np
import turtle
import math
import random
wn = turtle.Screen()
wn.bgcolor('lightgreen')
mypen = turtle.Turtle()
mypen.penup()
mypen.setposition(-300,-300)
mypen.pendown()
mypen.pensize(3)
for side in range(4):
mypen.forward(600)
mypen.left(90)
mypen.hideturtle()
player = turtle.Turtle()
player.color('blue')
player.shape('triangle')
player.penup()
speed = 1
player.speed(0)
goal = turtle.Turtle()
goal.color("Red")
goal.shape('circle')
goal.penup()
goal.speed(0)
goal.setposition(random.randint(-300, 300), random.randint(-300, 300))
def turnleft():
player.left(30)
def turnright ():
player.right(30)
def increasespeed():
global speed
speed += 1
def isCollition(t1, t2):
d = math.sqrt(math.pow(t1.xcor() - t2.xcor(), 2) + math.pow(t1.ycor() - t2.ycor(), 2))
if d < 20:
return True
else:
return False
turtle.onkey(turnleft, 'Left')
turtle.onkey(turnright, 'Right')
turtle.onkey(increasespeed, 'Up')
while True:
player.forward(speed)
if player.xcor() > 300 or player.xcor() < - 300:
player.right(180)
if player.ycor() > 300 or player.ycor() < -300:
player.right(180)
if isCollition(player, goal):
goal.setposition(random.randint(-300, 300), random.randint(-300, 300))
goal.forward(1)
delay = raw_input('Press Enter to finish')
You guys realise there's a bunch of help channels you can use instead of the voice channel?
the keyboared bindings don't work
What?
in the code
This is not a help channel
You'll get more responses posting in any of the dedicated channels.
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 80-81: invalid continuation byte
I need helpppp
Hmm?
guys. why can't i turn on my microphone?
#voice-verification
oww. thx bro
No problem man
where are you from
Turkey, you?
i am turkฤฑsh too
Lol
xd
.
Go to https://expressvpn.com/casuallyexplained and find out how you can get 3 months free.
Knuckles is an echidna stop saying Sonic is a hedgehog you don't even know the lore guys did you even own a Dreamcast.
Big Merch:
โบhttps://www.casuallyexplained.com/
โบhttps://www.twitch.tv/casuallyexplained
โบhttps://www.facebook.com/CasuallyExplained/
โบ...
hello
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
read what it says @marsh yacht
no no I know these rules
for that reason
I am
typing there
lol
oic
Fire
awsome idea
hot water bottle
take bottle
fill with hot water
wrap bottle in towel
hold bottle
damn to like that lmao
my legs will be like slime
so that's bad idea
guys
which language is next to C++
C?
C++
C++ is next to itself?
Have you taken up Python, yet?
nope
soo
it is
right
give me any attention if you are talking to me any day
hold on son
Right or wrong doesn't enter into it, absent a specific need.
well... this is a hard question... It depends on what you want to do. If you want to learn a more mathemathics-like, you should try APL, or Haskell, il you wand to get into mind blowing stuff, try scala, if you want to to data science, try python, or R for statistics
@lyric trout why do you want to learn a new language ?
to do a new things or something like that
ok, so python is a quite good idea, Haskell also if you want to learn functionnal programming
I made C++ as the first one I learn because it is like the door to think as a programmer
but my advice is to spend time to learn 
right
i started with CASIO calculators BASIC ๐คฃ
so do you use vim ?
whaat๐
yes, i know... i was young
ok, so you are a good guy because you use
. You can simply activate the package vintage mode
it is a vim emulation
not the best...
oh okay
but i used ST for a while, and using vim made me like 2 or 3 times speedier
do you know basics of vim ?
actully...no๐
ok
so, you have 2 basic modes : the normal mode, and the insert mode.
in insert mode... you insert text
in normal mode, you type commands.
escape brings you back to normal mode, and i (in normal mode) puts you in insert mode
and the power of vim is that any adit action you could think of, you cas do it in few keys
so that makes your coding faster
yes
I liked that
if i want to delete the actual line, i press dd in normal mode
here you have the verb d, that means delete
the actual line
like y that is yank (copy)
you can guess yy
and then you have motion objects
so w is forward one word
so dw is delete next word
ohh
it has the same structure as the english language
so many shortcuts
26?
each key on the keyboard + most of upper case + most of ctrl-key
times any number
because, if you type, for example 2dd, this deletes 2 lines
10dd... 10 lines
and then . repeats the last command
just look at this video : https://www.youtube.com/watch?v=ggSyF1SVFr4
Learn all the basics you need to start editing text in vi or vim.
0:00 - Introduction
0:53 - edit a file in vim (vim filename.txt || vi filename.txt)
1:12 - how to quit vim (:q)
1:50 - saving files in vim, and other ways of exiting
2:12 - what are vim modes (ESC/i)
3:14 - how to delete a single line with vim (dd)
3:30 - how to delete multiple l...
thank you
im new
okay
I want another print screen like the last
without that file explorer window in front of it @cerulean river
oh ok
=== xdxdbotxd Buildpack URL
heroku/python
well, that's good
you need requirements.txt, setup.py, and Pipfile
@cerulean river
here's the detect script for your buildpack
ok
#!/usr/bin/env bash
# This script serves as the
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
# detector.
#
# A [buildpack](https://devcenter.heroku.com/articles/buildpacks) is an
# adapter between a Python application and Heroku's runtime.
# ## Usage
# Compiling an app into a slug is simple:
#
# $ bin/detect <build-dir> <cache-dir>
BUILD_DIR=$1
# Exit early if app is clearly not Python.
if [ ! -f "$BUILD_DIR/requirements.txt" ] && [ ! -f "$BUILD_DIR/setup.py" ] && [ ! -f "$BUILD_DIR/Pipfile" ]; then
exit 1
fi
echo Python
pretty sure that's the issue
cya
hello
we can't talk
you are studying on python?
C @kindred pebble
yes
thats to bad, but its just how discord handles it.
where you lying about when you turn 13? or is it just a few weeks until you do?
it's python not pyhton
try to contact discord with proof of your age once you turn 13 and ask if they can give you your account back
you might have to get help from your parent or legal guardian as well @whole bear
my son got his account back after he lost his for the same reason
yes, he is your age
and he also got his account disabled
we banned him from python discord
back before we used to ban people for beeing under age, we dont do that anymore
because we follow rules here
yes, that sums it up i think
i do understand, but you are soon
nope !
please dont talk like that
as I said earlier @whole bear it is possible to get your account back once your 13
you just have to contact discord trust and safety
bruh
they are great people to talk to as long as you are respectful and nice
we had different rules earlier
yes i remember, i meant when you contact discord support
i think this is the place to start
see a therapist
so once your 13, you can use that link to get your account back
am not kidding
and for what its worth, you can mention me by name to discord support
no worries, its a concatination of my first and last name
I have changed my name since when i created this
but my name was Eivind Larsen
!e
name = 'Eivind Larsen'.split()
print(str(name[0][:3] + name[1][0]).lower())
@dire folio :white_check_mark: Your eval job has completed with return code 0.
eivl
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
new accounts need to do some work to get voice verified though
!e name = 'Eivind Larsen'.split()
print(str(name[0][:3] + name[1][0]).lower())
@jagged thorn :white_check_mark: Your eval job has completed with return code 0.
eivl
@somber heath hey, I'll get mic in a sec
!e name = 'Eivind Larsen'.split()
print(str(name[0][3:] + name[1][:0]).lower())
@jagged thorn :white_check_mark: Your eval job has completed with return code 0.
ind
SQL
@meager lichen which company was it ?
ah okay ly bad
m
"what are your thoughts about being self taught soft eng."
am good
new arround here
@somber heath only python ? or other languages also?
nice, I did some Turbo Pascal myself ๐
!e python print('Hello, world')
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, world
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | World
002 | Hello
003 | None
where did none come from
!e print(print) -> None when you call the print
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
<built-in function print>
!e ```python
def my_function():
return 'Ooga!'
print('---')
my_function()
print('---')
print(my_function())
print('---')โ```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | ---
002 | ---
003 | Ooga!
004 | ---
ok
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
and what does () do
calling a function
ok
!e ```py
def printd(data):
print(data)
@zealous wave :warning: Your eval job has completed with return code 0.
[No output]
def my_print(text):
print(text)```
!e ```python
def starify(text):
print('' + text + '')
starify('Hello, world')```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
***Hello, world***
!e ```py
def starify(text):
print(f'{text}')
starify('Hello, world')
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
**Hello, world**
^ the best way
ok

