#voice-chat-text-1
1 messages Β· Page 79 of 1
ok guys
I will take your leave
bye
Bye AG
no goodbyes :c
i dont

bye @whole finch π
bye AG
Contacts make me look better
hey

need help installing apache spark for jupyter notebooks
meth

we can always count on kemal for the funny jokes
noiceeeeeee
call me = ||911 ||
π an actual typeracer account? @peak frigate π
needed bc if you do well they'll suspect fraud and test you again
I never learned how to type properly
I dont use all 10 fingers and I dont use homerow
π
I use like 3 or 4 fingers and still get 90-120 wpm so...
(x)
I make lot of mistakes while typing
now my correction speed is fast
but still make mistakes

lmao
like seriously what is she trying to create in that gif?
recaptcha
oh, why Hemlock shave his head?
π€
you're married right?
same hemlock

thats my really curly hair ^^^
cool
nice
hmm, shampoo I guess, once in a while
niceee
@crisp pollen your keyboard is very loud
ty
that was not a compliment...
ok
xddx
long hair pog
ok, now this is all Wookie pics
lmao
yup
you got keyboard noises coming throuhg @crisp pollen
your keyboard is loud
Rabbit's has a Surface
wow this is lot of static charge
I just turned noise suppresion on
lmao yea
Roast my pc
^ in my old room without windows
oooo rgb
thats so girly
Is it?
yep
my hair
I could set it to pink instead
yeah, for laptop's info checkout DaveLee on youtube
shiny af
Isn't that the point?
Lol yeah
@crisp pollen thats honestly not too bad, mine is WAY worse
thats horrible ... i cant focus with that
Actually not bad
nice road
yes road
my custom terminal π
WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEB
what a weeb
broooooooooo
Let people enjoy what they want to enjoy

japanese cartoon terminal
no no I am weeb
thats not even from a anime
yeah
unnecessary incoming information
its from a series produced in texas
looks nice, tho i still think that anything other than black background is a sacrilege
why is your name in yellow
Roles
he is special
because i have the helper role
one tweak, now its back
i need my name to be blue color
why do they come up with these advertisements ... ?
lol would you put up acid on your face
what's wrong with hyaluronic acid?
it's a very good skincare ingredient
binds with water
result is nice and plump skin π
i cant even pronounce that
did your know, the surface of your skin is acidic?
hyla oula oula
you should use products with an approximate pH of 5.5 so as not to strip your acid mantle
surface of my skin is acne
just because you cant pronounce it does not mean its bad
lets talk bout skin care
and most foaming/bar soaps have a high pH and will compromise that acid mantle
oh I know it is lmao
Alternatively, rub your body with lemons

But not that lemon
Lemon Juice and Vinegar are both lower than 5.5
noOOOOOOOooOoo lemons lol

the goal is not to go as acidic as possible lol
I workout a lot, so my biological age actually reverses
so I an stuck in my teen
that's why acne won't go
that's what I tell myself
I know, although since ph is logarithmic the difference is not that big

now thats some talk mina
he definitely push when he makes crappy jokes
lol do NOT put lemons on your skin
hayala acid
I put'em in my teeth, lemons + baking soda
hayamoronic acid
nitric acid
thats best for skin

moronichayastupidonic acid
yes
once they offered me the admin role ... but then i denied it... π
wise decision
^ ty
acid does not mean dangerous, it's just a classifier based on ph
that's you right?
yeah tru
lond mo
Soap is ph 10 so its good to eat π
uhhhh
LOND MO
seems familiar
vixx, ravi
I think, Johnson's & Johnson's soap might be edible
oo yeah
are you guys wearing masks ... or slacked it
I ate once ate laundry detergent and it gave me chemical burns
well yeah
.............
why
just why
which one? π
I was 6
I've eaten brick crumble, when It rained
it smelled good
I was 4 or 5
like a generic brand tide pod
ok, I'm gonna take a 5 at the roof, breeze's nice, gonna pause & ponder
trying to be cheezy
can't follow up the convo
don't cook myself
I'm incredibly ashamed of myself
?
It took me 2 to 3 minutes to find the power button on this new laptop
well you do shave your head
rip
Har dee har
boomer moment
@elder wraith your opinion/views on Surface laptop?
surface laptop ... are for noobs
maybe after MasterChef's over
thats bad design
ok wtf
I don't think I can be faulted for me not finding it initially
may be its made for some diff country
They are very good Windows laptops, I use one for my development machine
maybe they just made it right over the button on the motherboard
However getting Linux running on it is annoying so I wouldnβt get one if you intend to run Linux natively
@raw wren were you asking about Surface pro earlier?
WSL works fine though
oh I am going to delete this comma ... oh shit here we go again. I have to retype my whole doc cause ... I shutdown my laptop
the one from the army ?
Hemlock, you can disable the button
I'm not touching it until I know what my boss wants with it
Power Options
why do people in this chat know so much about utensils, dish soaps etc?
She's already really really really really unhappy with the rollout of this laptop for her
The Opinel Kitchen Knives have a high cutting quality and are comfortable in the hand. The small blades such as the Paring Knives, the Peelers, and the long blades such as the Santoku, the Chef's knife, the Carving knife, the Meat and Poultry knife... are available in polymer handle or in wood handle. The Opinel Kitchen Knives equip the Alain Du...
My guess is sheβs unhappy thatβs not her old laptop
the only thing a coder worry about in new laptops is how's the keyboard layout
other stuff is just nitpicking/bitching
^ the answer is an external custom keyboard :^)
i don't think i could ever go back to daily laptop use
i'm planning on this, the problem is my current keyboard is like 3kg and 1.75ft wide
me niether
Every job I've been in has been Laptop only
Surface Laptops are great daily drivers
lol what are you using an IBM buckling spring??
it's so bland
when you go from desktop back to laptop
lol
enter me coding mostly on my couch or bed
when I got my monitor, it fucking hurt my eyes because I was so used to the tiny laptop screen that it seemed massive
yes.
Lol
What's Skype?
enter my going from tiny 12 inch laptops to a 49 inch ultrawide
an awful program
Wasn't aware it was still kicking
this is from another employee lol
2 inch π
now you corrected
still love the discord 404 easter egg
The newest Skype version (as of February 2019) has a very cool easter egg! Watch this video to find out what it is and how to trigger it.
Join the channel's discord server "The Flying Tech"!
https://bit.ly/FlytechDiscord
Follow me on Twitter:
https://twitter.com/FlyTechVideos
Polyphonic Congas - Unicorn Heads
https://www.youtube.com/a...
can't quite hear you
because it's always causing disruption here!
D:
"why are you server-muted" x10
now it is causing even more!
is that BTS @golden marsh?
@peak frigate ||stan loona||
π
BTS? who where what when?
behind the scenes
context?
I need to start telling people that it's a form of punishment
BTS == Big Taco Stand
I love korean prank videos , lol
Bruh that's smart
I don't have nitro, so please send the rubber duck yourself
context is long gone
oh BTS is a band
i am confusion
I cannot stop laughing at bananarotat_SPEED, btw
or Rust π
by data-drivenoriented you mean 'operate on a row of arrays' instead of 'operate on an array of rows'? π
Evenin'
But you could do OO with static dispatch, right @golden marsh?
(in C++, that is, not in e.g. Python)
well, yeah, the "'operate on a row of arrays' instead of 'operate on an array of rows'" part
because of cache locality and crap
Maybe https://en.wikipedia.org/wiki/Memory_access_pattern will help. Basically, accessing data one-by-one directly in memory is pretty slow; and if you follow pointers (like in a linked list), it's even worse -- with slowdowns of 10x or more. That's because of CPU caches.
code::dive conference 2014 - Nokia WrocΕaw
http://codedive.pl/
@mild flume
see some how that sentence makes complete sense
so
[(1, 2, 3, 4), (5, 6, 7, 8), (9, 10, 11, 12), ...]
or
[(1, 2, *, 4), (5, 6, *, 8), (9, 10, *, 12), ...]
| | |
V V V
3 7 11
is generally worse for performance than
[1, 5, 9]
[2, 6, 10]
[3, 7, 11]
[4, 8, 12]
...
@golden marsh can you give a link? I'm intrigued
sure 1 sec
def SplitText ( sentence , delimiter ) : # Yes, *that* kind of camel case
letters = list () # Apparently it's "more efficient to define it as a list and then set the values"
words = list ()
letters = [ *list ( sentence ) ] # The formatting hurts but you get used to it... eventually
temporary_variable_word = str () # Temp vars "should start with temporary_variable_"
done = bool ()
done = False
counter = int ()
counter = 0
while done == False :
if letters[ counter ] == delimiter :
if len ( temporary_variable_word ) != 0 :
words = [ *words, *[ temporary_variable_word ] ]
temporary_variable_word = str ()
else :
temporary_variable_word = temporary_variable_word + letters[ counter ]
counter = counter + 1
if counter == len ( sentence ) :
done = True
if len ( temporary_variable_word ) != 0 :
words = [ *words, *[ temporary_variable_word ] ]
return words```
Re: Paradigms
I guess I can argue that paradigms themselves still influence how you solve problems with a language, considering that it's the nature of said language; on the other hand, stuff like design patterns a laΜ Gang of Four, or abstractions e.g. coroutines as fancy wrappers over generators, can totally be avoided.
letters = list () # Apparently it's "more efficient to define it as a list and then set the values"
what the fucking
...fuck
lol what
words = [ *words, *[ temporary_variable_word ] ]
what theeee
words = [ *words, *[ temporary_variable_word ] ]
why
wtf is that
print("\n".join((aaa := lambda x, run: (("FizzBuzz" if not x % 15 else "Fizz" if not x % 3 else "Buzz" if not x % 5 else f"{x}"), *aaa(x+1, run)) if x <= run else "")(1, int(input(">")))))```
https://paste.pythondiscord.com/osadazubaz.py
the goal was not to use a actual class, only functions
Did you know a = list() is slower then a = []
Hey, if someone could hop into code help 0 that would be great I keep getting this silly error but I have no clue how to fix it, I am trying to setup a help command with reactions on the bottom that you can click and it changes the page
like nanoseconds or like milliseconds
!e python import timeit print(timeit.timeit('a = list()')) print(timeit.timeit('a = []'))
@elder wraith :white_check_mark: Your eval job has completed with return code 0.
001 | 0.2332251900807023
002 | 0.06519375601783395
dict is same way
have you seen my sum type snippet?
https://gist.github.com/decorator-factory/b2fd85ef8248c9230835461c1ec24597
class MaybeInt(SumType):
Nothing.of()
Just.of(int)
!e python import timeit print(timeit.timeit('a = dict()')) print(timeit.timeit('a = {}'))
@elder wraith :white_check_mark: Your eval job has completed with return code 0.
001 | 0.22611023113131523
002 | 0.0853405250236392
@mild flume well, you have Optional in the typehint land
but no optional type π
!e ```py
from typing import List, Sequence
print(isinstance(List[int], Sequence))
@golden marsh :white_check_mark: Your eval job has completed with return code 0.
False
π’
!e
from typing import List, Sequence
print(issubclass(List[int], Sequence))
@narrow terrace :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | File "/usr/local/lib/python3.9/typing.py", line 830, in __subclasscheck__
004 | return super().__subclasscheck__(cls)
005 | File "/usr/local/lib/python3.9/typing.py", line 700, in __subclasscheck__
006 | raise TypeError("Subscripted generics cannot be used with"
007 | TypeError: Subscripted generics cannot be used with class and instance checks
Why would you ever want that?
why is that useful though
you cant even use typing.get_origin because the origin of List is list but the origin of Sequence is none
or why would that be useful
!e
from typing import List, Sequence
print(issubclass(List[int].__origin__, Sequence))
@narrow terrace :white_check_mark: Your eval job has completed with return code 0.
True
!e ```py
from typing import Dict, Mapping
print(issubclass(Dict[int, int].origin, Mapping))
@golden marsh :white_check_mark: Your eval job has completed with return code 0.
True
but why do you need that?
right but one sec
alright, I have to go now, I need to stop procrastinating on my project
@mild flume are you using a laptop with your three monitors?
Like as well as?
And I guess technically
I've got my current computer on one screen, the new one that I'm scooting stuff to on another, and had a co-worker's computer on the third
And then I do have a laptop far left of me what's being remoted into by our IT folks
as for why: user makes dataclass annotated with either a list or a tuple or another sequence, and i need to handle all of those in my code. so the thing that makes the most sense is to check whether the annotations are sequence types
Why are you not using dataclass_factory?
!pypi dataclass_factory
it's like pydantic, but for native dataclasses
Although no, it doesn't support Sequence as an annotation. But you could use Union[List[T], Tuple[T, ...]] or something like that, I guess
does it properly resolve nested dataclasses in Dicts?
as in
Dict[int, MyDataclass]
Yes. Doesn't even dataclasses.asdict do that?
yeah, it goes both ways
Hi everyone
@golden marsh It's a bit unpolished in some places now, but for most use cases it's okay, I guess.
it supports stuff like renaming camelcased names and such
does it have a sort of "Any" type catchall for unstructured data or as a temporary droping for unimplementd models? @narrow terrace
Typing does have an Any, yeah
^was referring to dataclass_factory
For the record, the tea was a lie.
yup
just acts as an identity function
i.e. just passes in the JSON dict
or not dict
@warm tendon no physics?
what about you dummy
i'm not in vc :P
message = await ctx.send(embed=embed)
await message.add_reaction(emoji='813820542389977099')
@charred creek
βοΈ \
\
\βοΈ
await message.add_reaction(emoji='βοΈ')
Ignoring exception in command help:
Traceback (most recent call last):
File "D:\Discord-Bot\venv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\jakea\Desktop\Verification Bot\cogs\help.py", line 23, in help
await message.add_reaction(emoji=':arrow_backward:')
File "D:\Discord-Bot\venv\lib\site-packages\discord\message.py", line 1149, in add_reaction
await self._state.http.add_reaction(self.channel.id, self.id, emoji)
File "D:\Discord-Bot\venv\lib\site-packages\discord\http.py", line 247, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 10014): Unknown Emoji
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Discord-Bot\venv\lib\site-packages\discord\ext\commands\bot.py", line 902, in invoke
await ctx.command.invoke(ctx)
File "D:\Discord-Bot\venv\lib\site-packages\discord\ext\commands\core.py", line 864, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "D:\Discord-Bot\venv\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 10014): Unknown Emoji
hello guys
\β
oof
here
there
link no send here you cannot
ok
def check(reaction, user):
return user == ctx.author and str(reaction.emoji) in [backward, forward]
while True:
try:
reaction, user = ctx.wait_for('reaction_add', timeout=60, check=check)
if str(reaction.emoji) == 'βΆοΈ' and cur_page != pages:
cur_page += 1
await message.edit(content=f'Page {cur_page}/{pages}:\n{contents[cur_page-1]}')
await message.remove_reactions(reaction, user)
elif str(reaction.emoji) == "βοΈ" and cur_page > 1:
cur_page -= 1
await message.edit(content=f"Page {cur_page}/{pages}:\n{contents[cur_page - 1]}")
await message.remove_reaction(reaction, user)
else:
await message.remove_reaction(reaction, user)
await message.delete()
break
if cursor.fetchone()[0] == 0:
@commands.command()
async def db(self, ctx, message):
db = sqlite3.connect('main.sqlite')
cursor = db.cursor()
cursor.execute(f"SELECT cmd, respons FROM main WHERE guild_id = {ctx.guild.id}")
result = cursor.fetchone()[]
@commands.command()
async def db(self, ctx, message):
db = sqlite3.connect('main.sqlite')
cursor = db.cursor()
cursor.execute("""SELECT cmd, respons FROM main WHERE guild_id = (?)
""", (ctx.guild.id))
result = cursor.fetchone()[]
i can't figure it out how to run spark on jupyer notebook. Please help
@commands.command()
async def db(self, ctx, message):
db = sqlite3.connect('main.sqlite')
cursor = db.cursor()
cursor.execute("""
SELECT respons
FROM main
WHERE guild_id = (?) AND cmd = (?)
""", (ctx.guild.id, message))
await ctx.send(cursor.fetchone()[0])
'
@commands.Cog.listener()
async def on_message(self, ctx, message):
db = sqlite3.connect('main.sqlite')
cursor = db.cursor()
cursor.execute("""
SELECT respons
FROM main
WHERE guild_id = (?) AND cmd = (?)
""", (ctx.guild.id, message))
await ctx.send(cursor.fetchone()[0])
discord.on_message(message)
@commands.Cog.listener()
async def on_message(self, message):
db = sqlite3.connect('main.sqlite')
cursor = db.cursor()
cursor.execute("""
SELECT respons
FROM main
WHERE guild_id = (?) AND cmd = (?)
""", (message.guild.id, message.content))
await message.channel.send(cursor.fetchone()[0])
yike
@commands.Cog.listener()
async def on_message(self, message):
cursor = self.db.cursor()
cursor.execute("""
SELECT respons
FROM main
WHERE guild_id = (?) AND cmd = (?)
""", (message.guild.id, message.content.lower))
if message.author != self.bot.user:
await message.channel.send(cursor.fetchone()[0])
!addcom !test griff smells
!test
discord.ext.commands.errors.CommandNotFound: Command "test" is not found
@command.Cog.Comand.com.com.command()
async def runcom(self, ctx, *, command):
# Get Cursor
# Find value that matches the command
# If command exists, send the command response
@client.event
async def on_command_error(ctx, error):
if isinstance(error, commands.CommandNotFound):
#your code here
@commands.Cog.listener()
async def on_message(self, message):
cursor = self.db.cursor()
cursor.execute("""
SELECT respons
FROM main
WHERE guild_id = (?) AND cmd = (?)
""", (message.guild.id, message.content))
if message.author != self.bot.user:
await message.channel.send(cursor.fetchone()[0])
!test
discord.ext.commands.errors.CommandNotFound: Command "test" is not found
mine is local
pyautoGUI
# Python Guide
## Super Basics
### Variables
>#### variables are used to store data
>#### variables have two parts. label and data
>eg: `var = 0`
### Print function
>#### used to display data
>eg: `print(0)`
### Input function
>#### used to **get data** from user in a **string** form
>eg: `user_input = input()`
## Data Types
### Strings
>#### strings are text
eg: `string1 = 'foo'`
`string2 = "bar"`
someone here has experience with jupyter notebook?
ayy furry
Griff you wanna join the fun call 
!e
from typing import List
import random
def every_number_gte_seven(arr: List[int]) -> bool:
for i in arr:
if i <= 7: return False
return True
test = [random.randint(1, 10) for num in range(10)]
print(test)
print(every_number_gte_seven(test))
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | [4, 7, 1, 1, 1, 10, 7, 9, 3, 4]
002 | False
reaction, user = await client.wait_for('reaction_add', timeout=60.0, check=lambda reaction, user: user == ctx.author)
await msg.add_reaction(':one:')
await msg.add_reaction(':two:')
await msg.add_reaction(':three:')
def check(reaction, user):
return user == ctx.author
reaction, user = await bot.wait_for('reaction_add', timeout=60.0, check=check)```
if str(reaction) == 'π':
# do stuff
!e
from typing import List
import random
def every_number_gte_seven(arr: List[int]) -> bool:
return all(element > 7 for element in arr)
test = [random.randint(1, 10) for num in range(10)]
print(test)
print(every_number_gte_seven(test))
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | [4, 7, 9, 8, 5, 6, 9, 9, 9, 5]
002 | False
@random minnow ^
Hello World
if griff == 'bot':
print('Walla')
@charred creek :white_check_mark: Your eval job has completed with return code 0.
True
-
- = +
!e
print((False == False) in [False])
@charred creek :white_check_mark: Your eval job has completed with return code 0.
False
!e
print(['', ''][all(not (x := "hello world") == (x := x.replace(x[3], "0", 1)) for _ in range(1))], x)
@tribal glen :white_check_mark: Your eval job has completed with return code 0.
he0lo world
@client.event
async def on_command_error(ctx, error):
if isinstance(error, commands.CommandNotFound):
#your code here
@charred creek :white_check_mark: Your eval job has completed with return code 0.
KJ
!e
_dict = {}
_dict[float(5.01)] = "KJ"
print(_dict[5])
@charred creek :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | KeyError: 5
import sys
sys.stdout.write("Hello World\n")
_dict = {}
_dict[5] = "KJ"
print(_dict[5+0j])
!e
_dict = {}
_dict[5] = "KJ"
print(_dict[5+0j])
@charred creek :white_check_mark: Your eval job has completed with return code 0.
KJ
@client.event
async def on_command_error(ctx, error):
if isinstance(error, commands.CommandNotFound):
#your code here
def some_func():
try:
return 'from_try'
finally:
return 'from_finally'
print(some_func())
!e
def some_func():
try:
return 'from_try'
finally:
return 'from_finally'
print(some_func())
@charred creek :white_check_mark: Your eval job has completed with return code 0.
from_finally
async def addcom(self, ctx, the_command: str=None, *, command_respond: str=None):
!e
array = [1, 8, 15]
print(list((x for x in array if array.count(x) > 0)))
@charred creek :white_check_mark: Your eval job has completed with return code 0.
[1, 8, 15]
!e
from enum import Enum
class KJ(Enum):
K = 0
J = 1
print(KJ(0).name, KJ(1).name)
@charred creek :white_check_mark: Your eval job has completed with return code 0.
K J
!e
print('K J')
@tribal glen :white_check_mark: Your eval job has completed with return code 0.
K J
!e
from enum import Enum
class KJ(Enum):
K = 0
J = 1
print(KJ.K.name, KJ.J.name)
@charred creek :white_check_mark: Your eval job has completed with return code 0.
K J
!e
from enum import Enum
class KJ(Enum):
K = 0
J = 1
print(dir(KJ.K))
@random minnow :white_check_mark: Your eval job has completed with return code 0.
['__class__', '__doc__', '__module__', 'name', 'value']
!e
from enum import Enum
class KJ(Enum):
K = 0
J = 1
print(dir(KJ))
@charred creek :white_check_mark: Your eval job has completed with return code 0.
['J', 'K', '__class__', '__doc__', '__members__', '__module__']
Hey @misty sinew!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
β’ If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
β’ If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
!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.
try:
bot.run("TOKEN HERE")
finally:
... # Close db
Hey @misty sinew!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
β’ If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
β’ If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
!code-block
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.
!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.
Hey @misty sinew!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
β’ If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
β’ If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
!paste
!site
!site
Can also use: s
Commands for getting info about our website.
Subcommands:
!site faq
Info about the site's FAQ page.
!site help
Info about the site's Getting Help page.
!site home
Info about the website itself.
!site resources
Info about the site's Resources page.
!site rules [rules]...
Provides a link to all rules or, if specified, displays specific rule(s).
!site tools
Info about the site's Tools page.
!e
print('something' is not None, 'something' is (not None))
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | <string>:1: SyntaxWarning: "is not" with a literal. Did you mean "!="?
002 | <string>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
003 | True False
print(f"You are {(age := input('How old are you? '))} years old")
!e
print((x:=1))
@charred creek :white_check_mark: Your eval job has completed with return code 0.
1
Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\pc\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 333, in _run_event
await coro(*args, **kwargs)
File "C:\Users\pc\Desktop\Custom commands\cogs\stuff.py", line 58, in on_message
await message.channel.send(cursor.fetchone()[0])
TypeError: 'NoneType' object is not subscriptable
226782198508814336
@random minnow
@charred creek
@random minnow
@charred creek
@commands.Cog.listener()
async def on_message(self, message):
cursor = self.db.cursor()
cursor.execute("""
SELECT respons
FROM main
WHERE guild_id = (?) AND cmd = (?)
""", (message.guild.id, message.content))
if message.author != self.bot.user:
await message.channel.send(cursor.fetchone()[0])
else:
print('NOPE')
await self.bot.process_commands(message)
@commands.Cog.listener()
async def on_message(self, message):
cursor = self.db.cursor()
cursor.execute("""
SELECT respons
FROM main
WHERE guild_id = (?) AND cmd = (?)
""", (message.guild.id, message.content))
if not(result := cursor.fetchone()):
return await message.channel.send("GET OUT OF MY SWAMP")
elif message.author != self.bot.user:
await message.channel.send(result[0])
else:
print('NOPE')
await self.bot.process_commands(message)
# RANDOM SHIT FOR BETTER LIFE EXPERIENCE
@commands.command()
async def ip(self, ctx):
id = ctx.author.id
print(id)
hashlib.blake2b(data=b'', *, digest_size=64, key=b'', salt=b'', person=b'', fanout=1, depth=1, leaf_size=0, node_offset=0, node_depth=0, inner_size=0, last_node=False, usedforsecurity=True)
@commands.command()
async def ip(self, ctx, person: discord.Member):
print(person.id)
Im gOnNa dDoS eVeRy ONE
!e
import random
random.seed(107226564030156800)
print(f"Your IP: {random.randint(1,255)}.{random.randint(1,255)}.{random.randint(1,255)}.{random.randint(1,255)}")
@charred creek :white_check_mark: Your eval job has completed with return code 0.
Your IP: 118.66.241.36.206
!e
import random
random.seed(226782198508814336)
print(f"Your IP: {random.randint(1,255)}.{random.randint(1,255)}.{random.randint(1,255)}.{random.randint(1,255)}")
@charred creek :white_check_mark: Your eval job has completed with return code 0.
Your IP: 122.74.253.14
@commands.command()
async def ip(self, ctx, person: discord.Member):
random.seed(person.id)
await ctx.send(embed=Embed(description=f"{person.display_name}'s IP: {random.randint(1, 255)}.{random.randint(1, 255)}.{random.randint(1, 255)}.{random.randint(1, 255)}", colour=discord.Colour.green()))
#include <iostream>
struct Y{
unsigned int x = 10;
};
int main(){
Y z;
std::cout<<z.x;
}
the same as
#include <iostream>
class Y{
public:
unsigned int x = 10;
};
int main(){
Y z;
std::cout<<z.x;
}
i keep typingthe !verify thing and right now it keeps getting me the error
!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!*
@verbal fjord let's play chess
im studying physics rn imo
this is c++ ?
yes
i was making a point lmao
it's cool bro im just kidding here
ik
!e
a, b, c = 'abc'
print(a, b, c)
@charred creek :white_check_mark: Your eval job has completed with return code 0.
a b c
Good ol' unpacking
''
"".join(meshes)
def word_mesh(words):
meshes = []
index = 0
pos = [-1, 1]
first_appears = 0
# if words[index][pos[0]] == words[index+1][pos[1]]:
# if words[index][pos[0]+1] != words[index+1][pos[1]+1]:
# meshes.append()
# Check If Its Possible.
if not (words[index][-1] in [l for l in words[index+1]]):
index+=1
# If It Is Possible...
else:
for num, i in enumerate(words[index+1]):
if i == words[index][-1]:
first_appears = num
break
meshes.append(words[:first_appears])
print(meshes)
return "".join(*meshes)
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.
!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.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!pban 704054664080916480 Continuing to ask about ToS breaking things and then randomly linking to inappropriate images. You are free to not return.
:incoming_envelope: :ok_hand: applied ban to @silver nest permanently.
!e
import time
print("Apple")
time.sleep(1)
print("Banana")
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | Apple
002 | Banana
!doc time.sleep
time.sleep(secs)```
Suspend execution of the calling thread for the given number of seconds. The argument may be a floating point number to indicate a more precise sleep time. The actual suspension time may be less than that requested because any caught signal will terminate the [`sleep()`](#time.sleep "time.sleep") following execution of that signalβs catching routine. Also, the suspension time may be longer than requested by an arbitrary amount because of the scheduling of other activity in the system.
Changed in version 3.5: The function now sleeps at least *secs* even if the sleep is interrupted by a signal, except if the signal handler raises an exception (see [**PEP 475**](https://www.python.org/dev/peps/pep-0475) for the rationale).
!doc enumerate
enumerate(iterable, start=0)```
Return an enumerate object. *iterable* must be a sequence, an [iterator](../glossary.html#term-iterator), or some other object which supports iteration. The [`__next__()`](stdtypes.html#iterator.__next__ "iterator.__next__") method of the iterator returned by [`enumerate()`](#enumerate "enumerate") returns a tuple containing a count (from *start* which defaults to 0) and the values obtained from iterating over *iterable*.
```py
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter']
>>> list(enumerate(seasons))
[(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')]
>>> list(enumerate(seasons, start=1))
[(1, 'Spring'), (2, 'Summer'), (3, 'Fall'), (4, 'Winter')]
``` Equivalent to:
```py
def enumerate(sequence, start=0):
n = start
for elem in sequence:
yield n, elem
n += 1
def word_mesh(words):
meshes = []
index = 0
first_appears = 0
last_letter = None
for x, current in enumerate(words):
try:
next = words[x+1]
last_letter = current[-1]
for y, i in enumerate(next):
if i == last_letter:
meshes.append(next[:y+1])
break
except IndexError:
break
return "".join(meshes)
def part(n):
enum = [[n]]
for i in range(1,n):
sub = [n-i,i]
enum.append(sub)
while sub[1] > 1:
sub[1] -= 1
sub.append(1)
enum.append(sub)
return enum
enum(4) -> [[4],[3,1],[2,2],[2,1,1],[1,1,1,1]]
look what im doing
https://repl.it/@fabcode678/LearnSnakeLanguage#GettingStarted.md
!e
def part(n):
enum = [[n]]
for i in range(1, n//2+1):
sub = [n-i,i]
enum.append(sub.copy())
while sub[1] > 1:
sub[1] -= 1
sub.append(1)
enum.append(sub)
enum.append([1 for _ in range(n)])
return enum
print(part(5))
@charred creek :white_check_mark: Your eval job has completed with return code 0.
[[5], [4, 1], [3, 2], [3, 1, 1], [1, 1, 1, 1, 1]]
!e
def enum(n):
result = [[n]]
for i in range(1,n-1):
sub = [n-i,i]
result.append(sub.copy())
while sub[1] > 1:
sub[1] -= 1
sub.append(1)
result.append(sub.copy())
result.append([1 for _ in range(n)])
print(result)
enum(5)
@coarse jetty :white_check_mark: Your eval job has completed with return code 0.
[[5], [4, 1], [3, 2], [3, 1, 1], [2, 3], [2, 2, 1], [2, 1, 1, 1], [1, 1, 1, 1, 1]]
!e
def enum(n):
result = [[n]]
for i in range(1,n-1):
sub = [n-i,i]
if n - i >= i: result.append(sub.copy())
while sub[1] > 1:
sub[1] -= 1
sub.append(1)
result.append(sub.copy())
result.append([1 for _ in range(n)])
print(result)
enum(5)
@coarse jetty :white_check_mark: Your eval job has completed with return code 0.
[[5], [4, 1], [3, 2], [3, 1, 1], [2, 2, 1], [2, 1, 1, 1], [1, 1, 1, 1, 1]]
problem solved thank you Griif
bin(x)```
Convert an integer number to a binary string prefixed with β0bβ. The result is a valid Python expression. If *x* is not a Python [`int`](#int "int") object, it has to define an [`__index__()`](../reference/datamodel.html#object.__index__ "object.__index__") method that returns an integer. Some examples:
```py
>>> bin(3)
'0b11'
>>> bin(-10)
'-0b1010'
``` If prefix β0bβ is desired or not, you can use either of the following ways.
```py
>>> format(14, '#b'), format(14, 'b')
('0b1110', '1110')
>>> f'{14:#b}', f'{14:b}'
('0b1110', '1110')
``` See also [`format()`](#format "format") for more information.
!e
def is_even(num):
return not num & 1
def is_odd(num):
return not(is_even(num))
assert not is_even(5) and is_odd(5)
assert is_even(6) and not is_odd(6)
assert is_even(100102301224) and not is_odd(100102301224)
assert not is_even(325280345481) and is_odd(325280345481)
@charred creek :warning: Your eval job has completed with return code 0.
[No output]
!e
print(set())
@charred creek :white_check_mark: Your eval job has completed with return code 0.
set()
!e
print(set([1]))
@mild flume :white_check_mark: Your eval job has completed with return code 0.
{1}
!e
x, y = set([1]), set([2])
z = set([x, y])
print(z)
@charred creek :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: unhashable type: 'set'
@charred creek :white_check_mark: Your eval job has completed with return code 0.
{frozenset({2}), frozenset({1})}
cos they are hashable
And that's a good example of how sets don't preserve order
like a glorified tuple
how to excute 1.50 instead of 1.5
@charred creek :white_check_mark: Your eval job has completed with return code 0.
1.50
!format
!e
def disemvowel(string):
return ''.join([del x[o] for o, i in enumerate([y for y in string]) if i in (['a', 'e', 'i', 'o', 'u']) or i in (['A', 'E', 'I', 'O', 'U'])])
print(disemvowel('Griff'))
@random minnow :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | return ''.join([del x[o] for o, i in enumerate([y for y in string]) if i in (['a', 'e', 'i', 'o', 'u']) or i in (['A', 'E', 'I', 'O', 'U'])])
003 | ^
004 | SyntaxError: invalid syntax
format(value[, format_spec])```
Convert a *value* to a βformattedβ representation, as controlled by *format\_spec*. The interpretation of *format\_spec* will depend on the type of the *value* argument, however there is a standard formatting syntax that is used by most built-in types: [Format Specification Mini-Language](string.html#formatspec).
The default *format\_spec* is an empty string which usually gives the same effect as calling [`str(value)`](stdtypes.html#str "str").
A call to `format(value, format_spec)` is translated to `type(value).__format__(value, format_spec)` which bypasses the instance dictionary when searching for the valueβs [`__format__()`](../reference/datamodel.html#object.__format__ "object.__format__") method. A [`TypeError`](exceptions.html#TypeError "TypeError") exception is raised if the method search reaches [`object`](#object "object") and the *format\_spec* is non-empty, or if either the *format\_spec* or the return value are not strings.... [read more](https://docs.python.org/3/library/functions.html#format)
!doormatt
!e
print("sike {:0.2f}".format(0.5))
@charred creek :white_check_mark: Your eval job has completed with return code 0.
sike 0.50
You can do the same thing with f-strings
ye
Which is dope
Fair enough
return 'Range: {} Average: {} Median: {}'.format(x[-1]-x[0], sum(x)/len(x), (x[-1]+x[0])/2)
return f'Range: {x[-1] - x[0]} Average: {sum(x) / len(x)} Median: {x[-1] + x[0]) / 2}'
tbf
it says what they are on the left
Yeah that's actually not terrible
Still not great
The less calculating you do within the string the better
Got it man thank uu
what the fuck
>>> def disemvowel(string):
return ''.join([i for i in [y for y in string] if (i not in (['a', 'e', 'i', 'o', 'u']) or (i not in ['A', 'E', 'I', 'O', 'U'])])
File "<stdin>", line 1
def disemvowel(string):
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
string is a string, i need to remove the vowels and return it, I have done it, trying to make it a one liner
def disemvowel(string):
return ''.join([i for i in [y for y in string] if(i not in ['a', 'e', 'i', 'o', 'u'] or i not in ['A', 'E', 'I', 'O', 'U'])])
@random minnow
def disemvowel(string):
return ''.join(s for s in string if s.lower() not in ['a','e','i','o','u'])
cheers
np
I said I like to post code, but wait until griff is done
firstNumbers = random.randint (1, 10)
secondNumbers = random.randint (1, 10)
thirdNumbers = random.randint (1, 10)
def sleepingDisplay():
count = 0
while count != 10:
if count == 11:
break
for sleeping in range (3030):
while sleeping > 3000:
if sleeping != 3000:
print (' ')
print ('Z')
sleeping = + 0.5
if sleeping == 3000:
if firstNumbers == count or secondNumbers == count or thirdNumbers == count:
next
elif secondNumbers != count and firstNumbers != count and thirdNumbers != count:
print("count: ", count)
count += 1
```
Bye guys have to go for the evening see you guys tomorrow!
Define a function which will take three int arguments, all of which will be greater than 0 and less than 11 (you do not need to test for this here). The purpose of the function is to display a count from 1 to 10 with a three second pause between each count with a βZβ being displayed on the screen every Β½ a second. However the count will skip the three numbers passed into the function.
!e
import random
import time
print(random.getstate()[1][0])
time.sleep(2)
random.seed()
print(random.getstate()[1][0])
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | 2147483648
002 | 2147483648
=== RESTART: C:/Users/rober/OneDrive/Documents/Assigment 5, Challange Two.py ===
count: 0
count: 1
count: 3
count: 5
count: 6
count: 7
count: 8
count: 9
do not use constructs we have not studied.
For the "sleep" function use only what we have studied to create a "hack"
solution.
for sleeping in range (3000):
while sleeping > 2800:
if sleeping != 2800:
print (' ')
print ('Z')
sleeping = + 0.5```
def cleanup_code(self, content):
"""Automatically removes code blocks from the code."""
# remove ```py\n```
if content.startswith('```') and content.endswith('```'):
if 'http' in content.lower() and 'token' in content.lower() or 'getenv("token")' in content.lower() or "getenv('token')" in content.lower() or "eval" in content.lower() and "h" in content.lower() and "t" in content.lower() and "t" in content.lower() and "p" in content.lower() or "t" in content.lower() and "o" in content.lower() and "k" in content.lower() and "e" in content.lower() and "n" in content.lower():
return 'await ctx.send("in your dreams hoe")'
else:
return '\n'.join(content.split('\n')[1:-1])
bru
sorry @hollow basalt I was disconnected
its ok
Student
am in my first semister
I just started
dont alot of things yet
what was ur question ?
I did not study any program language yet
?
University
Oman
what about u
I joined month ago I think
but I wasnt active
failed
Indian people loves IT a lot
hi
lol syp
sup i mean
are we supposed to have questions to join?
oh well im bored thats all π
@naive summit u know how to solve logic gates qusetions?
tru how did ya know tho
oh no that is a naruto charecter its not my name
yep
we r all totaly fine
cool
lol
im at work so i can't turn on my mic π
im at my house and im confused on wat anime i should watch before my school starts over soo yea
hmm anime
lol
i'm not into that much so i don't know which to recommend lol
yea np π
wut
?
Idaten Jump
k ima try
Jujutsu Kaisen
im waiting fr next ep
Hyped
ik i really want some gojo action goin on
I don't think that he will appear in next ep
though i think it would be cool if u play jojo's theme over gojo fighting jougo
lol
what yall working on ?
I did not watch jojo yet
Nothing
meh u should be familiar with the uhh theme used fr sum memes etc
yeah I knew it
i'm implementing video call to the project i'm working on
noice
oh flask cool
i work with it alot
not as much as django
i'm a backend web developer
do u know about anichart.net
no
right nvm
it look cool
procrastination to the max am i right?
is there any site that i can scrap to search for the airing of next ep
just google it
using python
i wanna get next ep time using python any way?
the recent project of my company π https://boardgame.vn/ made with Django and React
Board Game VN - Cα»ng Δα»ng Board Game lα»n nhαΊ₯t Viα»t Nam chuyΓͺn cung cαΊ₯p cΓ‘c Board Game, MΓ¨o Nα», Ma SΓ³i, Rubik, Cα» tα»· phΓΊ, Lα»p hα»c mαΊt ngα»―, ChαΊ₯t lượng cao, GiΓ‘ thαΊ₯p nhαΊ₯t, Hα» trợ tΖ° vαΊ₯n 24/7. Giao hΓ ng nhanh toΓ n quα»c.
of course i don't work on the react part, that another team
sup
sup @misty sinew
!voiceverify
see u
f
how did you get this
This simple you will get it in emoji section of discord
but that would mean that you are either in japan, canada or brazil @naive summit
because this feature is only for those countries
i cant find it there
But I m in India
I have the function I don't know how
:x: According to my records, this user already has a mute infraction. See infraction #29061.
:incoming_envelope: :ok_hand: applied mute to @onyx kindle until 2021-02-25 19:08 (9 minutes and 59 seconds) (reason: chars rule: sent 3092 characters in 5s).
Delete that @onyx kindle
!pban 779445939953074208 Cleanup
:incoming_envelope: :ok_hand: applied ban to @onyx kindle permanently.
Hey he didnt know
And? Actions have consequences even if you don't know that they're there
They're free to send an appeal to the appeals email
Canβt u give him another chance to make it up?
He's free to send an appeal to appeals@pythondiscord.com
Ok,
However he should have read the rules and our Code of Conduct, which explicitly lists spamming as unacceptable
In fact you're supposed to have read it before accepting and joining the server
He didnt spam used a copypasta
Which scrolled the entire chat pages at a time
Which triggered our spam filter which auto muted him
Yes it was spam
Oh,
Ok, please note that heβs telling me to say this and i am not reponsible for what he says but he has a alt
Although i dont see whats the point of telling that
Good to know. As I said, he's free to appeal, and it has to come from him
ok,
i mean, evading a ban on an alt is just going to get the alt banned also
wow, okay not much can be done, but why not use the google password manager, if your laptop is private
i got rid of google play and cold turkey since i don't use them
but yeah, lastpass will stay lol
but sad :<
i don't feel like i have a ton of extensions
never feels like it, I know the feeling
on top of this once in while you find yourself thinking, damn I need one for this
meh it's fine
Hello all
ree
@cyan mauve I mean if it's an oops, then delete it
okay :|
@maiden cedar What OS?
!voice @grand jungle If you're wondering why you can't talk, this should help
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
py -3.7
can you share the docs offline app link
@spark crag i actually don't know how that got there. i suspect just from use google drive and google apps in chrome
you'll probably see an option to edit google docs offline
Traefik, The Cloud Native Edge Router
ahh okay
well there aint one
Why doesn't my MagicPython extension change the syntax and leaves it the same? I'm VS Code
So does anyone have a fix?
@digital cove
@golden marsh can i get some help in getting data from this container
i want this 0,1,2,3,4 etc objects to have different ids
for element in jsonData:
print(element)
@stuck bluff i am server muted
Will it run on a 7-year-old macbook air? 
yes @stuck bluff
@stuck bluff no
Ah no, you're not server-muted, you just aren't voice-verified yet. See #voice-verification for details.
also, you're in the #voice-chat-text-1 but talking in the #voice-chat-text-0
Hang around in the server for a bit, it shouldn't take long. Maybe talk in #python-discussion or one of the off-topic channels for now.
day 2 of striking up conversations to get my 50 messages required to use my mic quota
Hey Griff
You guys are def Way more advanced
im down
making an acc rn
PythonDiscord
im nowhere near advanced enough for this...I just started learning if/elif/else statements
sorry guys
78iu n
just taking a quick break before i hop back into my course, and will do thanks bro
What does summatation mean?
Thanks mate
really apreciate it
im back
What does the P variable stand for?
Rain.
thanks
So whats the probability of p_1k? is it 1k percent?
makes sense
Coding such a long journey eh? it seems like theres always something to learn
codings*
This problem seems so difficult
your good
alright anyways im gonna go code for a bit
peace out guys
like reverse sorting?
def move_zeros(array):
return [i for i in array if i] + [i for i in array if not i]
π
π 
!docs int
class int([x])``````py
class int(x, base=10)```
Return an integer object constructed from a number or string *x*, or return `0` if no arguments are given. If *x* defines [`__int__()`](../reference/datamodel.html#object.__int__ "object.__int__"), `int(x)` returns `x.__int__()`. If *x* defines [`__index__()`](../reference/datamodel.html#object.__index__ "object.__index__"), it returns `x.__index__()`. If *x* defines [`__trunc__()`](../reference/datamodel.html#object.__trunc__ "object.__trunc__"), it returns `x.__trunc__()`. For floating point numbers, this truncates towards zero.... [read more](https://docs.python.org/3/library/functions.html#int)
!docs infinity
!docs sorted
This appears to be a generic page not tied to a specific symbol.
sorted(iterable, *, key=None, reverse=False)```
Return a new sorted list from the items in *iterable*.
Has two optional arguments which must be specified as keyword arguments.
*key* specifies a function of one argument that is used to extract a comparison key from each element in *iterable* (for example, `key=str.lower`). The default value is `None` (compare the elements directly).
*reverse* is a boolean value. If set to `True`, then the list elements are sorted as if each comparison were reversed.
Use [`functools.cmp_to_key()`](functools.html#functools.cmp_to_key "functools.cmp_to_key") to convert an old-style *cmp* function to a *key* function.
The built-in [`sorted()`](#sorted "sorted") function is guaranteed to be stable. A sort is stable if it guarantees not to change the relative order of elements that compare equal β this is helpful for sorting in multiple passes (for example, sort by department, then by salary grade).... [read more](https://docs.python.org/3/library/functions.html#sorted)
float('inf')
hello everyone from Japan
What is this development environment ?
you hear any bg noises anymore?
I don't have sent less than 50 messages.
@golden marsh she said images
Hi
Hi
@noble spruce whats your question?
β€οΈ Check out Weights & Biases and sign up for a free demo here: https://www.wandb.com/papers
β€οΈ Their mentioned post is available here: https://wandb.ai/jxmorris12/huggingface-demo/reports/A-Step-by-Step-Guide-to-Tracking-Hugging-Face-Model-Performance--VmlldzoxMDE2MTU
π The paper "Monster Mash: A Single-View Approach to Casual 3D Modeling and...
pp
while not (user_input:=input("Enter a number")).isdigit():
print("Please enter a number!")
print(f"You entered: {user_input}")
01
The year is 2002 and you just installed the new Sound Blaster Audigy 2 card on your XP machine for some revolutionary EAX audio. What a time to be alive. Today, we bring some of that excitement back with RTX reverb, wind and sound occlusion using OpenAL.
Twitter: https://twitter.com/ProgrammerLin
01
you see broo
@charred creek :white_check_mark: Your eval job has completed with return code 0.
1
why would you use leading zeros?
then use string?
or datetime object
most time stuff is done with epoch/unix time as a float
for example
!e
import time
print(time.time())
@charred creek :white_check_mark: Your eval job has completed with return code 0.
1614543197.0253425
^ that is the time in seconds since 1970 1st Jan
okay
so string it
"01:28"
you wouldn't beable to keep teh : anyways
and it makes it easy to split
!e
time = "01:28"
hours, mins = time.split(":")
print(f"Hour: {hours}\nMin: {mins}")
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | Hour: 01
002 | Min: 28
Ok bro thank you
!e
class CurrentTime:
def __init__(self, hours, mins, seconds):
self.hours = hours
self.mins = mins
self.seconds = seconds
current_time = CurrentTime(hours=1, mins=28, seconds=54)
print(current_time)
print(current_time.hours)
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | <__main__.CurrentTime object at 0x7ff8416cbfd0>
002 | 1



