#voice-chat-text-1
1 messages · Page 80 of 1
!e
n = 9
print(f'{n:02}')
@coarse jetty :white_check_mark: Your eval job has completed with return code 0.
09
wait lemme pull up the screenshot
html + css
wait could you type your question here
i cant here you good
What's the issue with it? Or what do you want to happen?
well i want to properly align my text to the right i cannot seem to get it correctly
text-align: right should work, if you apply it correctly
Have you tried that already?
no bro
Alright. Give it a shot and see how it goes
okay but should i do it in the body section or just for the paragraphs?
So, here's what the two options will do:
body: applies it to the entire document
only that paragraph: applies it to only that paragraph
I believe that text-align is inherited, so all elements on the page would have text-align: right. If you only apply it to the paragraph, that's the only one that'll be affected
What sounds like the right choice in this case?
Time for me to go to bed, but ping me if you have any issues with the right alignment and I'll have a look tomorrow
@misty sinew Why did you block me
.
I tried pandas for some basic data analysis
god, I can't figure out how or what dataset to use for different dataframes, other than bar/line plot
c++, returns 0 and 1 for true and false, I guess
The screen goes ON on the PC tonight
not a VScode to be seen
im in covid isolation
and it looks im in VIM
the time is going like a datetime.time
gotta close this thing
heaven know i tried```
it's the dream of blockchain
this one is single measurement
decentralization
I can't figure out how decentaralized methods, will ensure the enforcement of contracts
yes, they have to earn from them
Even if it is, a lot of human rights have been violated throughout history
this is cool
godamn, everyone is an expert in finance
i dont know what is hapenig
that's the job of miners, who themselves have cornered the market
it takes around 10 or so mins to verify a transcation

@formal kelp Is there a reason you're randomly joining and leaving over and over?
No, I’m amateur in finance
Whats a Financé
I am trying to learn myself, anyone has any idea on how bitcoin works, like what is the code, how does one transact and how do the brokers fit into the structure
we are going to ignore the military power of a government
except dogecoin
Mr. Hemlock, there has been much hype about blockchain, what do you think of the tech ?
@steep fiber the text seems to be in correct place but i want it so it's in the middle
It's not a new concept
I can't figure out, I have seen some people I respect say, blockchain might be the future, I don't have even knowledge on the topic, I am trying to understand it
@mild flume did you see it?
I did, that's really rad
Yea
I'm super impressed with how much work you've put into it
I have even made a server for this
And collected a lot of PhDs
I will DM you the link if you interested
Sure, I might look when I get time. Work has me pinned to the ground
Yep
nw hem i will come over in few weeks and show you what i have done
bye guys i didn't got anything what you guys were talking but it sounds interesting
bitcoin 😔
In this video I show you a common way that bitcoin transactions can be traced, and some methods to avoid your transactions being traced.
view bitcoin transaction history visually https://oxt.me/
₿💰💵💲Help Support the Channel by Donating Crypto💲💵💰₿
Monero
45F2bNHVcRzXVBsvZ5giyvKGAgm6LFhMsjUUVPTEtdgJJ5SNyxzSNUmFSBR5qCCWLpjiUjYMkmZoX9b3cChNjvx...
bitcoin is public
like the transaction
These crypto"currencies" are not currencies. It's absolutely a commodity
:o hi kutie
:O hi
:O
I really don't know why I kept going with that argument
I'm exhausted it
print("Hello, World!")
@dusky geyser
""
what about, CBDCs ?
chemical biological data center?
lol
no, Central bank digital currencies
what are your thoughts on untraceable currency like monero?
while true print("anything")
while True:
@dusky geyser If you're going to have quick questions like that it might still be better to either hop in one of the two code help voice channels or to use our help system. You can check out the #❓|how-to-get-help channel for more details about the latter
hahahaha
oh yeah talking about tkinter, is it better for coding GUI for android apps?
If you want a proper android app, python is not the correct language/tool
kivy can compile to android targets right?
Yep
okay
!p
pep_number
!pep <pep_number>
Can also use: get_pep, p
Fetches information about a PEP and sends it to the channel.
!user

Created: 4 years, 9 months and 10 days ago
Profile: @warm tendon
ID: 182894631921516545
Joined: 7 months, 15 days and 4 hours ago
Roles: <@&542431903886606399>, <@&463658397560995840>, <@&764802720779337729>, <@&267630620367257601>, <@&799041111573266503>
Total: 1
Active: 0
damn, it really is a slow day
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
Success!
wheee okay time to continue unpacking the house
👋
Numv = (input('enter the number of violations.....:'))
# numv letter checker
while True:
if Numv.isdigit(): # Checks if Name1 has only unicode characters
break # Breaks while loop
print("Please enter a number! Only numbers allowed") # Prompts them to try again
# numv letter checker
while True:
Numv = (input('enter the number of violations.....:'))
if Numv.isdigit(): # Checks if Name1 has only unicode characters
break # Breaks while loop
print("Please enter a number! Only numbers allowed") # Prompts them to try again
import webbrowser
webbrowser.open("https://www.disneyplus.com")
I need help to complete my program
I really wish i could help you but i just wrote my first script
lol
h
is it peaceful in here
hhihi
hiiii 🙂
👀
are you gilly like GRAND or gilly like GEM ?
oh look who came to follow
I'm just
gilly like grand like gilligan's island lolol
So very done
i know, hemlock
ok ok
lol
or for all my fellow harry potter fans, gillyweed
gallon
lOL
dang y'all left rabbit up there lOL
yes
KEKEKEKE
hello
i would rather be here with no heated arguments : /
oh bbl
shhhhh don't continue the argument here D:<
😔
Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences.
PS C:\> Invoke-Command -ComputerName dc02 -ScriptBlock {Get-Process| where {$_.ProcessName -like "spoolsv"}}
552 30 9192 27292 8.67 3124 0 spoolsv dc02``` @merry mica
cool
there is also enter-pssession -computername <name> where it just drops you into Remote Powershell session and leaves you there
Guys look i fond i hacking terminal
lmfao what
yea isn't it cool
heres my hacking terminal
it is clad cmd
cmdline, just no
no powershel
Greegret
awwwwww
cats are liquid
her name was tardar sauce
these photos on reddit today
dawwwwwww
pls need
2 pints of ice cream 😄
@raven orbit
T_T_T_T_T_TT
low five
no
me neither
lmao i don't have a car xD
oh you have a shoebaru / footsubishi too?
oui
nah
you just bored

house & wilson 4eva
akward silence
just in a ditch lol
lmfao
OH MY GOD
poor dr. seuss
dr. seuss, and the day before that was mr. potato head
Wait, what about mr. potato head?
matel put out a statement that changed the name of mr. potato head
to just potato head
was... that like... controversial?
I mean the only difference between the two was just a nose change
exactly!
Yes, Social Conservatives lost their shit because they could
just like those nutters got angry about Land & Lake Icon change
Am I wrong?
"being dicks" =>"being criminals"
It's not criminal when it's government sponsored 
just because it's immoral doesn't make it illegal 🙃
i mean you tried that League of Nations after WWI to prevent future wars...
we knew how that turned out...
Woodrow Wilson, the president of USA made that
but gilly... the oil
Excuse me, are the voice channels 1&2 meant for help as well or is that the chill area?
@agile sun for chillin'
alright 👍
netflix also
lol no netflix
!e import netflix
@royal saffron :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'netflix'
okay so no netflix then 😂
das riiight. lol
@stark saddle to picking those dates for PyDis
robot or rawbit
also me: The Catholics don't get enough shit
The Archdiocese of New Orleans said Catholics should avoid the Johnson & Johnson vaccine "because of its extensive use of abortion-derived cell lines."
as a lapsed catholic, the vatican can suck it.
Hemlock:
I attended like 3 roman catholic mass-thingies. Shit was weird
@elder wraith
LMAO
@elder wraith 🐰 why are you doing this?
lolololol Go
@peak frigate Is it working??
yeah, you just need to tab away really fast
Why not?
@elder wraith not sure
oooh
@peak frigate
@steep fiber I just thought you might want to be included in a ping war
I'm good thanks
rejected 😦
you forgot to @autumn raft
:ok_hand: Added rejected-by-vester to the names list.
lmao petttyyyy
Advice from Rabbit: unittests are for people who don't have confidence in your code
See, I'm ready for management 😛
😔
Gotta get you a raise Rab
well hello there
👀
here is my ootd
why did you send us your tinder profile pic
color coordinated and everything
mmmmm banana bread is ready
send images 👀
Wife made Banana pudding last night
!warn 98195144192331776 IT IS NOT PRONOUNCED "JIFF!"
:incoming_envelope: :ok_hand: applied warning to @mild flume.
I learned java for some... weird course and I have since forgotten literally everything
I built a websocket chat room thing and that's all I remember
i had 2 classes so far in java
@warm tendon are you gonna check out kotlin?
maybe in a bit
rust is too awesome right now
maybe i'll just learn all the jvm langs 😔
😔
lelelelel
za blanza
i can smell the photo
ofc you can't, you block head!!!
bruh
looks delicious 😋
may i have one delivered to my house?
you're lucky @mild flume, im way shorter than you
about 5'10 i think
HA
!otn a calculus-for-cinnabons
:ok_hand: Added calculus-for-cinnabons to the names list.
We're entering an exciting new phase of #VisionaryPhotography with the #HUAWEIP40 Series.
Find out more about our latest smartphone here: https://bit.ly/HUAWEIP40Series
wonder why they decided to use radar for that
Hello people
C# .NET Java - Which programs are fastest?
x = 0
newlist = []
number = 0
while x < 1 :
number = number + 1
grade = int("Enter number " )
print("that is a valid grade"+str(grade))
if grade != 0:
newlist.insert(1, grade)
else :
x = x + 1
number = number - 1
print (str(newlist))
print (number)
can some one help me?
I need the number for this code to be integer only
i have no clue how to do it
you should request help in the code help tab next time
ik know how to fix it
you should make use of a module like for example math
if you still cant find a solution, i can help you in voice chat if you want?
pm me if you need help @misty sinew
yeah i realy could use your help with this code
Enter a word: programming
Number of characters: 11
The substring from index 4 to 6: ra
The substring starting at index 2: ogramming
The first time an 'm' occurs is at index: 6
The last time an 'm' occurs is at index: 7
The character at index 4: r
Every third character starting at the 2nd letter: rrmg
how do we do the last output
hi
from string import ascii_lowercase as al
def moving_shift(s, shift):
def char(s: str, shift):
shift = shift
for char in s:
print(char)
print(al.index(char.lower()))
yield al[len(s)%al.index(char.lower())]
shift += 1
return ''.join(char(s, shift))
def demoving_shift(s, shift):
pass
car
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
!e
from string import ascii_lowercase as al
print(al)
@charred creek :white_check_mark: Your eval job has completed with return code 0.
abcdefghijklmnopqrstuvwxyz
!e
print(''.join([chr(i) for i in range(97, 123)])) # lowercase from a-z
@random minnow :white_check_mark: Your eval job has completed with return code 0.
abcdefghijklmnopqrstuvwxyz
letterPer = len(encoded_string) // 4
end = len(encoded_string) % 4
i think my internets gone
5000ms
I know math.h and stdio.h are both built in to C
yeah do another link
How can input text with requests? my code: ```
from lxml import html
import requests
page = requests.get('https://www.e-klase.lv')
tree = html.fromstring(page.content)
ekalse = tree.xpath('/html/body/div[8]/div[3]/aside/div[1]/div[2]/form/div[1]/input')
ekalse.send_keys('eskristers05')
Can someone help with this?
wtf happened ?

I dm'd the bot
The HTTP 418 I'm a teapot client error response code indicates that the server refuses to brew coffee because it is, permanently, a teapot. A combined coffee/tea pot that is temporarily out of coffee should instead return 503. This error is a reference to Hyper Text Coffee Pot Control Protocol defined in April Fools' jokes in 1998 and 2014.
the funny number™️
I told you im going to be silent @steep fiber
datetime.datetime.fromtimestamp(int(first_login)).strftime('%A-%Y-%m-%d-%H:%M:%S')
!docs datetime.datetime.fromtimestamp
classmethod datetime.fromtimestamp(timestamp, tz=None)```
Return the local date and time corresponding to the POSIX timestamp, such as is returned by [`time.time()`](time.html#time.time "time.time"). If optional argument *tz* is `None` or not specified, the timestamp is converted to the platform’s local date and time, and the returned [`datetime`](#datetime.datetime "datetime.datetime") object is naive.
If *tz* is not `None`, it must be an instance of a [`tzinfo`](#datetime.tzinfo "datetime.tzinfo") subclass, and the timestamp is converted to *tz*’s time zone.... [read more](https://docs.python.org/3/library/datetime.html#datetime.datetime.fromtimestamp)
File "C:\Users\jakea\Desktop\StatPixel(Stixel)\bot\cogs\overall.py", line 47, in overall
datetime.datetime.fromtimestamp(int(first_login)).strftime('%A-%Y-%m-%d-%H:%M:%S')
OSError: [Errno 22] Invalid argument
!e
import datetime
print(datetime.datetime.fromtimestamp(0))
@random minnow :white_check_mark: Your eval job has completed with return code 0.
1970-01-01 00:00:00
!e ```py
import datetime
print(datetime.datetime.fromtimestamp(-15).strftime('%A-%Y-%m-%d-%H:%M:%S'))
@steep fiber :white_check_mark: Your eval job has completed with return code 0.
Wednesday-1969-12-31-23:59:45
!e
import datetime
print(datetime.datetime.fromtimestamp(-100).strftime('%A-%Y-%m-%d-%H:%M:%S'))
@charred creek :white_check_mark: Your eval job has completed with return code 0.
Wednesday-1969-12-31-23:58:20
!e
import datetime
print(datetime.datetime.fromtimestamp(-10000000000000).strftime('%A-%Y-%m-%d-%H:%M:%S'))
@random minnow :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | ValueError: year -314918 is out of range

!e ```py
print(type("hello"))
@steep fiber :white_check_mark: Your eval job has completed with return code 0.
<class 'str'>

1501699721543
!e ```py
import datetime
print(datetime.datetime.fromtimestamp(1501699721543).strftime('%A-%Y-%m-%d-%H:%M:%S'))
@steep fiber :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | ValueError: year 49556 is out of range
@commands.command()
async def overall(self, ctx, *, user=None):
if user is None:
await ctx.send("**Invalid Username please use !overall `IGN`**")
else:
# Grabs the users UUID with IGN
async with aiohttp.ClientSession() as session:
async with session.get(f"https://api.mojang.com/users/profiles/minecraft/{user}") as response:
print('UUID Grabbed')
user_info = await response.json()
uuid = user_info['id']
async with aiohttp.ClientSession() as session:
async with session.get(
"API KEY"
f"{uuid}") as response2:
print('Connected To Achievements API')
api_info = await response2.json()
async with aiohttp.ClientSession() as session:
async with session.get(
"API KEY"
f"{uuid}") as response2:
print('Connected To Player API')
api_info = await response2.json()
name = api_info["player"]["displayname"]
karma = api_info["player"]["karma"]
karma = ("{:,}".format(karma))
rank = api_info["player"]["newPackageRank"]
first_login = api_info["player"]["firstLogin"]
ctx.send(first_login)
datetime.datetime.fromtimestamp(int(first_login)).strftime('%A-%Y-%m-%d-%H:%M:%S')
Python 3.9.1 (default, Feb 6 2021, 06:49:13)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.time()
1614973994.4717448
>>> 1614973994>1501699721543
False
!e ```py
import datetime
first_login = 1501699721543
print(datetime.datetime.fromtimestamp(int(first_login)).strftime('%A-%Y-%m-%d-%H:%M:%S'))
@steep fiber :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | ValueError: year 49556 is out of range
C:\Users\jakea\Desktop\StatPixel(Stixel)\bot\cogs\overall.py:48: RuntimeWarning: coroutine 'Messageable.send' was never awaited
ctx.send(first_login)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Ignoring exception in command overall:
Traceback (most recent call last):
File "C:\Users\jakea\Desktop\StatPixel(Stixel)\venv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\jakea\Desktop\StatPixel(Stixel)\bot\cogs\overall.py", line 49, in overall
datetime.datetime.fromtimestamp(int(first_login)).strftime('%A-%Y-%m-%d-%H:%M:%S')
OSError: [Errno 22] Invalid argument
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\jakea\Desktop\StatPixel(Stixel)\venv\lib\site-packages\discord\ext\commands\bot.py", line 902, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\jakea\Desktop\StatPixel(Stixel)\venv\lib\site-packages\discord\ext\commands\core.py", line 864, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\jakea\Desktop\StatPixel(Stixel)\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: OSError: [Errno 22] Invalid argument
like this?
async with aiohttp.ClientSession() as session:
async with session.get(f"https://api.mojang.com/users/profiles/minecraft/{user}") as response:
print('UUID Grabbed')
user_info = await response.json()
uuid = user_info['id']
async with session.get(
"API KEY"
f"{uuid}") as response2:
print('Connected To Achievements API')
api_info = await response2.json()
async with session.get(
"API KEY"
f"{uuid}") as response2:
print('Connected To Player API')
api_info = await response2.json()
!e ```py
import datetime
first_login = 1501699721543 / 1000
print(datetime.datetime.fromtimestamp(int(first_login)).strftime('%A-%Y-%m-%d-%H:%M:%S'))
@steep fiber :white_check_mark: Your eval job has completed with return code 0.
Wednesday-2017-08-02-18:48:41
It's quite a long function tbh.
what error
it won't replace anything if it cannot find it
@charred creek :warning: Your eval job has completed with return code 0.
[No output]
oh fair
class Foo:
def _bar():
...
Jake, I think you can select and de-dent multiple lines.
@raw wren Here's an example of how you can use helper methods in discord.py https://github.com/python-discord/sir-lancebot/blob/c2f25187ef20e82c67cc0298c16837fd18c1a8ec/bot/exts/evergreen/fun.py#L60-L73
!src
!e
locals()["test"] = 5
print(test)
@charred creek :white_check_mark: Your eval job has completed with return code 0.
5
@misty sinew
Is that usually enough for you?
Yeah, seems like it's more than enough for me:
That's pretty nice!
I have like text files and that's it.
Ah, nice
I use Spotify and Netflix for media 😄
Didn't realise they were a non-profit...
Suddenly went quiet 👀
no u
Just hope the Japanese guy doesn't have a sense of humour 😄
they have a great work ethic
Does anyone here use an external trackpad?
I think that would be good for editing.
Anyone want to play binary search again? 😄
On the moon?
They have their own time-zone system...
Oh yeah, and the light will be constantly changing right? Editing nightmare...
I laughed Hemlock 😄
?
idk none
@hushed galleon what are you even talking about?
i didnt hear your convo while deafened
I teach a moral psychology class, and we spend part of the first day discussing the trolley problem, which is a frequently used ethical dilemma in discussions of morality. When I was teaching this class in the fall of 2016, I returned home after the first day of class and was playing trains with my son. I thought it would be interesting to see h...
you mean digital data?
@hushed galleon by who?
@charred creek well technically you don't own your phone cause it's made by the manufacturer
can anyone explain me what do NGROK do and why it allow TCP but not UDP
@charred creek you wanna hear something cool
you can never enter in a black hole
it will take infinite time
yes time slows near black hole
can you guys help me
i want to know what to write in terminal to update pillow package
@boreal stratus
:(
pip install [package] --upgrade
laund, I got a question
oof luna it no work
what's the error
Ah i got it thanks
i was using pyautogui.displayMousePosition() in the wrong way
sorry
plus luna
hmm nvm ill see
i want to add a picture in the same folder
as my program
my use
and luna
when i use the pyautogui click function
does it need to be in quotation marks or no?
no idea
well i will try both and see what happens lol
but if you learn it, other languages will come easy
ty
ye
@charred creek Someone said that a robot controls its body their body is theirs as a argument for the data thing but are body's can do things without are control so?
.avatar
not valid
how do you indent entire blocks of code in pycharm?
write the same line in google
wdym
rude
in sublime its' ctrl+]
does npm has some rivalry with macbooks
best of luck
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: sudo apt-get install g++ build-essential
RHEL users please run: yum install gcc-c++ and yum groupinstall 'Development Tools'
Alpine users please run: sudo apk add python make g++
i have downloaded command line tools form mac
while keyboard.is_pressed('q') == False:
if i do this
the program will do something while i press it? or
oof
idk how to put it in words
Hmmm
if i do sys.exit()
after that line of code
will the program stop?
ahhh okay
oh i see
while not keyboard.is_pressed('q'):
yeah thats easier to understand
keyboard.is_pressed('q') --will-become---> True or False
lel
!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.
im srry
this server is good i dont want ban :¦
bitcoin mining on laptop?
its not possible now
the difficulty is like 20-30 nonces
my laptop would explode
lel
ok :(
_>
yeah i wont now...
im srry
im using random module
all randomly timeed
the clicks oof
well we cant discuss about it im srry
ye
Griff, you saw my code yesterday ?
It's fine, I am pasting a link can you take a look and suggest where I can improve upon ?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
no worries, just where I could keep it simple
yeah, yeah
def set_data(data,num):
def set_data(data,num):
data.reset_index(inplace=True)
data['Close'] /= data['Close'][0]
data = data['Close']
return data
def set_data(data,num):
data.reset_index(inplace=True)
data['Close'] /= data['Close'][0]
return data['Close']
def set_date(start_year, end_year):
end_dates = pd.date_range(start=f'{start_year}', end=f'{end_year}', freq='Y')
end_year -= 1
start_dates = pd.date_range(start=str(start_year), end = f'{end_year}', freq='YS')
return [start_dates, end_dates]
I did not know of this
def final_data (data):
final_df = pd.concat(data, axis=1)
return final_df
def final_data(data):
return pd.concat(data, axis=1)
the data was stuck in while loop and I had to add/concat it
yeah, It's fine. I want the code to be optimal (about your criticism)
while loop_number > 0:
what does saving your file as pyw do?
!e
for i in reversed(range(10)):
print(i)
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | 9
002 | 8
003 | 7
004 | 6
005 | 5
006 | 4
007 | 3
008 | 2
009 | 1
010 | 0
yeah, no I just started with while loop
.
start -= 1
I was trying it on something else and then it was just left there by mistake
chart comparison
hello
chart comparison?
Hello :)
Hello
Do there any problems with python
The code is fine, right
hello
Hello
oof
I will show you, what I had done yesterday
ok
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
yeah
what programm is that
but you'll have to collect them in a dictionary this way
what it do
the package takes in datetime format only
because you can't for loop variable definition
!e
for num in range(2007, 2021):
print(f"{num},1,1 - {num},12,31")
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | 2007,1,1 - 2007,12,31
002 | 2008,1,1 - 2008,12,31
003 | 2009,1,1 - 2009,12,31
004 | 2010,1,1 - 2010,12,31
005 | 2011,1,1 - 2011,12,31
006 | 2012,1,1 - 2012,12,31
007 | 2013,1,1 - 2013,12,31
008 | 2014,1,1 - 2014,12,31
009 | 2015,1,1 - 2015,12,31
010 | 2016,1,1 - 2016,12,31
011 | 2017,1,1 - 2017,12,31
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/iwuboxuvut.txt
!e
my_dates = [f"{num},1,1 - {num},12,31" for num in range(2007, 2021)]
print(my_dates)
@charred creek :white_check_mark: Your eval job has completed with return code 0.
['2007,1,1 - 2007,12,31', '2008,1,1 - 2008,12,31', '2009,1,1 - 2009,12,31', '2010,1,1 - 2010,12,31', '2011,1,1 - 2011,12,31', '2012,1,1 - 2012,12,31', '2013,1,1 - 2013,12,31', '2014,1,1 - 2014,12,31', '2015,1,1 - 2015,12,31', '2016,1,1 - 2016,12,31', '2017,1,1 - 2017,12,31', '2018,1,1 - 2018,12,31', '2019,1,1 - 2019,12,31', '2020,1,1 - 2020,12,31']
dictionary with same variable names as keys
!e
from datetime import date
dates = zip(*[(date(num,1,1), date(num+1,12,31)) for num in range(2007, 2021)])
print(dates)
for start, end in dates:
print(f"{start} => {end}")
!e
print(dir(zip([1],[2])))
list(zip(
!e
from datetime import date
dates = zip([date(num,1,1), date(num+1,12,31) for num in range(2007, 2021)])
print(dates)
for start, end in dates:
print(f"{start} => {end}")
!e
from datetime import date
dates = zip([(date(num,1,1), date(num+1,12,31)) for num in range(2007, 2021)],[(date(num,1,1), date(num+1,12,31)) for num in range(2007, 2021)])
print(dates)
for start, end in dates:
print(f"{start} => {end}")
@charred creek :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | dates = zip([date(num,1,1), date(num+1,12,31) for num in range(2007, 2021)])
003 | ^
004 | SyntaxError: invalid syntax
lol
!e
from datetime import date
for start, end in (date(num,1,1), date(num+1,12,31) for num in range(2007, 2021)):
print(f"{start} => {end}")
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | 2007-01-01 => 2008-12-31
002 | 2008-01-01 => 2009-12-31
003 | 2009-01-01 => 2010-12-31
004 | 2010-01-01 => 2011-12-31
005 | 2011-01-01 => 2012-12-31
006 | 2012-01-01 => 2013-12-31
007 | 2013-01-01 => 2014-12-31
008 | 2014-01-01 => 2015-12-31
009 | 2015-01-01 => 2016-12-31
010 | 2016-01-01 => 2017-12-31
011 | 2017-01-01 => 2018-12-31
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/butupokaba.txt
!e
from datetime import date
for start, end in [(date(num,1,1), date(num+1,12,31)) for num in range(2007, 2021)]:
print(f"{start} => {end}")
this bot is so cool
@charred creek :white_check_mark: Your eval job has completed with return code 0.
001 | 2007-01-01 => 2008-12-31
002 | 2008-01-01 => 2009-12-31
003 | 2009-01-01 => 2010-12-31
004 | 2010-01-01 => 2011-12-31
005 | 2011-01-01 => 2012-12-31
006 | 2012-01-01 => 2013-12-31
007 | 2013-01-01 => 2014-12-31
008 | 2014-01-01 => 2015-12-31
009 | 2015-01-01 => 2016-12-31
010 | 2016-01-01 => 2017-12-31
011 | 2017-01-01 => 2018-12-31
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/atakadomat.txt
Any way I could concatenate the resulting dataframes, without having to appending them to a list
final_list.append(new_data)```
it returns only the close column from the dataframe
brb
!e
from datetime import date
print(date.today().year)
@charred creek :white_check_mark: Your eval job has completed with return code 0.
2021
I can't hear anything
!e
import pandas_datareader.data as data
import pandas_datareader as reader
import pandas as pd
import matplotlib.pyplot as plt
from datetime import date
data_frames = []
for start, end in [(date(num, 1, 1), date(num+1, 12, 31)) for num in range(2007, 2022)]:
data = data.DataReader('CL=F', 'yahoo', start, end)
data.reset_index(inplace=True)
data['Close'] /= data['Close'][0]
data.rename(columns={'Close' : f"{num}_close"}, inplace=True)
dataframes.append(data[f"{str(start.year)[-1]}"]) # Get the last digit of the year
joined = pd.concat(data_frames, axis=1)
joined.plot(y=[
f"{i}_close" for i in range(7, 22)],
kind="line",
title="Brent Crude",
xlabel="Days",
ylabel="Change %",
xlim(0, 250),
figsize(12, 8)
)
plt.legend('')
plt.style.use('dark_background')
plt.show()
1 min
!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!*
oof
!e
import keyboard
import sys
while not keyboard.is_pressed('q'):
x = 0
sys.exit
@frail umbra :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'keyboard'
datas.rename(columns={'Close' : f"{num}_close"}, inplace=True)
num ??
just to classify the various years
in columns
yeah
import pandas_datareader.data as data
import pandas_datareader as reader
import pandas as pd
import matplotlib.pyplot as plt
from datetime import date
data_frames = []
for start, end in [(date(num, 1, 1), date(num+1, 12, 31)) for num in range(2007, 2022)]:
data = data.DataReader('CL=F', 'yahoo', start, end)
data.reset_index(inplace=True)
data['Close'] /= data['Close'][0]
num = str(start.year)[-1]
data.rename(columns={'Close' : f"{num}_close"}, inplace=True)
dataframes.append(data[num]) # Get the last digit of the year
joined = pd.concat(data_frames, axis=1)
joined.plot(y=[
f"{i}_close" for i in range(7, 22)],
kind="line",
title="Brent Crude",
xlabel="Days",
ylabel="Change %",
xlim(0, 250),
figsize(12, 8)
)
plt.legend('')
plt.style.use('dark_background')
plt.show()
!e
import sys
sys.exit(-1)
@charred creek :warning: Your eval job has failed.
A fatal NsJail error occurred
'module' object is not subscriptable```
datas.append(data[f"{str(start.year)[-1]}"]) # Get the last digit of the year
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
yep, still the same error
import pandas_datareader.data as data
import pandas_datareader as reader
import pandas as pd
import matplotlib.pyplot as plt
from datetime import date
data_frames = []
for start, end in [(date(num, 1, 1), date(num+1, 12, 31)) for num in range(2007, 2022)]:
dr = data.DataReader('CL=F', 'yahoo', start, end)
dr.reset_index(inplace=True)
dr['Close'] /= dr['Close'][0]
identifier = f"{str(start.year)[-1]}_close" # Get the last digit of the year
dr.rename(columns={'Close' : identifier}, inplace=True)
dataframes.append(dr[identifier])
joined = pd.concat(data_frames, axis=1)
joined.plot(y=[
f"{i}_close" for i in range(7, 22)],
kind="line",
title="Brent Crude",
xlabel="Days",
ylabel="Change %",
xlim(0, 250),
figsize(12, 8)
)
plt.legend('')
plt.style.use('dark_background')
plt.show()
I was thinking of the Racnoss
give it a min, my net is slow and had to had to change dataframe name a couple of times
joined = pd.concat(data_frames, axis=1)```
data_frames, supposed to be a list, right ??
it's just an api
pip install pandas-datareader
how can i join the staff meeting 😢
my bad, I guess it's a hyphen
i gtg
bye ✌
eyb
just to have a common column on which they can concatinate
it adds an index of range(0,end)
import pandas_datareader.data as data
import pandas as pd
import matplotlib.pyplot as plt
from datetime import date
data_frames = []
for start, end in [(date(num, 1, 1), date(num+1, 12, 31)) for num in range(2007, 2022)]:
dr = data.DataReader('CL=F', 'yahoo', start, end)
dr.reset_index(inplace=True)
dr['Close'] /= dr['Close'][0]
identifier = f"{int(str(start.year)[-2::]):0>2}_close" # Get the last digit of the year
dr.rename(columns={'Close' : identifier}, inplace=True)
data_frames.append(dr[identifier])
joined = pd.concat(data_frames, axis=1)
joined.plot(y=[
f"{i:0>2}_close" for i in range(7, 22)],
kind="line",
title="Brent Crude",
xlabel="Days",
ylabel="Change %",
xlim=(0, 250),
figsize=(12, 8)
)
plt.legend('')
plt.style.use('dark_background')
plt.show()
:0>2
voice keeps getting disconnected
Sorry, an unexpected error occurred. Please let us know!
TypeError: cannot unpack non-iterable bool object
what were you saying ?
!e
print(f"{1+1:0>2} {2+2:0>3} {32+1:0>2} {12+1:0>2}")
Sorry, an unexpected error occurred. Please let us know!
TypeError: cannot unpack non-iterable bool object
!e
one = 1
two = 2
big = 32
large = 48
print(f"{one:0>2} {two:0>3} {big:0>2} {large:0>2}")
Sorry, an unexpected error occurred. Please let us know!
TypeError: cannot unpack non-iterable bool object
still running
@stuck bluff ^ can you see an error with that
my eval command
works in my IDE
yep
!e
print(f"{0.3:.5f}")
Sorry, an unexpected error occurred. Please let us know!
TypeError: cannot unpack non-iterable bool object
okay so this one worked
@last parcel Is there a bug on the PythonBot? ^
It doesn't like F-string formatting... ?
Yep yep, we got alerted
We are currently pushing a fix
No worries, thanks for bringing that up
haha

!e python import sys print(sys.version)
Sorry, an unexpected error occurred. Please let us know!
TypeError: cannot unpack non-iterable bool object
!e
print("Test")
Sorry, an unexpected error occurred. Please let us know!
TypeError: cannot unpack non-iterable bool object
!e
print()
Sorry, an unexpected error occurred. Please let us know!
TypeError: cannot unpack non-iterable bool object
Did I do it?

Please be me
I want to be the breaker of Python
@last parcel ???
interesting
Sorry, an unexpected error occurred. Please let us know!
TypeError: cannot unpack non-iterable bool object
!e
print("Test")
@charred creek :white_check_mark: Your eval job has completed with return code 0.
Test
!e
import sys
sys.exit(-1)
@charred creek :warning: Your eval job has failed.
A fatal NsJail error occurred
!e
print(1)
@formal bane 1.8 pvp mechanics are jus for people who are trash at the game
they jus spam click
unlike 1.16 mechanics
which u have to use skill
THATS CRAP
im sorry
thats not tru
THATS SO RIDICULOUS
im currently in minecraft
you have to agree
1.8 u jus spam click
in 1.16 u have to jump
time your click
they have to click
SKILL?
t
15 clciks per second
axes can disable shields
listen
to strafe
and
jitter click
is skill
to jitter click
and jump
and make sure
its not
you dont die is skill
you strafe in 1.16 too
whats ur poin
AXES DISABLE SHIELDS
sow me a vid then
show me
ahh nvm then
You can find my code here: https://github.com/ForbiddenKJ/BubbleSortVis
To create a custom study, you will need to write a custom study function. To help you get started, each time you create a new Advanced Custom Studies source code file, it will contain a template function, with which you can use as your study function. The name of this function is scsf_SkeletonFunction.
anyone can explain this ?
There are so many options, I am just generating
reupping this
Best of Marilyn Manson: https://goo.gl/5Z3C5t
Subscribe here: https://goo.gl/iK9UwZ
Music video by Marilyn Manson performing The Beautiful People. (C) 1999 Nothing/Interscope Records
#MarilynManson #TheBeautifulPeople #Vevo
Follow Gorillaz online:
http://gorillaz.com
http://facebook.com/Gorillaz
http://twitter.com/GorillazBand
https://instagram.com/gorillaz
Stream Gorillaz on Spotify: http://bit.ly/1kvIyPR
Official Video for the Gorillaz track Feel Good Inc., performed live at the MTV EMA's.
ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to over 80 supported destinations you can choose from.ShareX supports many ways to capture or record your screen. The main capture methods are: F...
.
!e ```py
import random
random.randint(0,129)```
@unborn prairie :warning: Your eval job has completed with return code 0.
[No output]
!e ```py
import random
print(random.randint(0,129))```
@unborn prairie :white_check_mark: Your eval job has completed with return code 0.
37
!e ```py
import random
print(random.randint(0,129))```
@unborn prairie :white_check_mark: Your eval job has completed with return code 0.
30
!e ```py
import random
print(random.randint(0,129))```
@unborn prairie :white_check_mark: Your eval job has completed with return code 0.
120
Victor Mono is a free programming font with semi-connected cursive italics and symbol ligatures.
well imma go now cyall
!source
@glossy sequoia
Is there a known way to get answers in google forms?
hello
!e
import random
print(random.randint(0,129))
@short oracle :white_check_mark: Your eval job has completed with return code 0.
110
!e
import os
print(os.cpu_count())
@short oracle :white_check_mark: Your eval job has completed with return code 0.
2
@short oracle :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | for _ in range(100)
003 | ^
004 | SyntaxError: invalid syntax
@short oracle :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print(█)
003 | ^
004 | SyntaxError: invalid character '█' (U+2588)
!e
for _ in range(100):
print(chr(2588))
@short oracle :white_check_mark: Your eval job has completed with return code 0.
001 | ਜ
002 | ਜ
003 | ਜ
004 | ਜ
005 | ਜ
006 | ਜ
007 | ਜ
008 | ਜ
009 | ਜ
010 | ਜ
011 | ਜ
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/iqoqahipoj.txt
import time, numpy
n = 999999
def measure_time(funktion):
t0 = time.time()
funktion()
t1 = time.time()
return float(t1 - t0)
var = 0
def calculate_pi():
global var, pi
for i in range(n):
sol = (i + 1) ** (-2)
var += sol
pi = (var * 6) ** .5
return pi
t = measure_time(calculate_pi)
print(f"Calculated PI: {pi}")
print(f"Actual PI: {numpy.pi}")
print(f"Difference between both: {abs(numpy.pi - pi)}")
print(f"Computing time: {t}")
!e ```py
import time, numpy
n = 999999
def measure_time(funktion):
t0 = time.time()
funktion()
t1 = time.time()
return float(t1 - t0)
var = 0
def calculate_pi():
global var, pi
for i in range(n):
sol = (i + 1) (-2)
var += sol
pi = (var * 6) .5
return pi
t = measure_time(calculate_pi)
print(f"Calculated PI: {pi}")
print(f"Actual PI: {numpy.pi}")
print(f"Difference between both: {abs(numpy.pi - pi)}")
print(f"Computing time: {t}")
@stoic bluff :x: Your eval job has completed with return code 1.
001 | File "<string>", line 19
002 | pi = (var * 6) .5
003 | ^
004 | SyntaxError: invalid syntax
oh damn
!e ```py
import time, numpy
n = 999999
def measure_time(funktion):
t0 = time.time()
funktion()
t1 = time.time()
return float(t1 - t0)
var = 0
def calculate_pi():
global var, pi
for i in range(n):
sol = (i + 1) (-2)
var += sol
pi = (var * 6).5
return pi
t = measure_time(calculate_pi)
print(f"Calculated PI: {pi}")
print(f"Actual PI: {numpy.pi}")
print(f"Difference between both: {abs(numpy.pi - pi)}")
print(f"Computing time: {t}")
@stoic bluff :x: Your eval job has completed with return code 1.
001 | File "<string>", line 19
002 | pi = (var * 6).5
003 | ^
004 | SyntaxError: invalid syntax
again
!e
import ast
center_point = ast.literal_eval(input("Enter the center point\n"))
radius = input("Enter either the radius or the diameter (enter `r=' or `d=')\n").replace(" ", "").strip()
if radius[:2] == "r=":
radius = radius[2:]
elif radius[:2] == "d=":
radius = radius[2:]/2
else:
quit()
radius = ast.literal_eval(radius)
print(f"{radius:g}^2 = (y + {center_point[0]:g})^2 + (x + {center_point[1]:g})^2")
@rain hinge :x: Your eval job has completed with return code 1.
001 | Enter the center point
002 | Traceback (most recent call last):
003 | File "<string>", line 3, in <module>
004 | EOFError: EOF when reading a line
Linked list hell
@charred creek hey how is my nickname
<c://./globalroot/device/condrv/kernelconnect>
@mild flume griff still has video role 👀
👀
I need help with CMU CS Academy, can anyone help? pls DM
why
!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.
look
ok
heyy
how are you, man?
what are you guys talking about?
whats the hot-topic
uh
idk anything about it
oof
same
lel
is it like random topic
not MAN topolgy
ik mesh and star topology
yes
routers
absol
mesh bus
,star
yes
dayum i have to revise
geez peace out bye
good night
@mild flume Bare skin rug.
I know I've seen that one before
you missed drugs
"narcotics" as hank calls it
I'm not sure if the other parts of the show fall within rules but we're just discussing what the show was about, which doesn't encourage any negative behaviour 🙂
Hey

😔
See ya Laundo 👋
no one wants to watch me sloppily slap together slow code
My work presentation!
That's my I can;t talk
whats that

my mic
👀
for my headset
thats nice lel
But yeah, I think I'll have to use another dataset to show off numpy and scipy's eqn fitting
It's even nicer when it's plugged into my headset
But what I want to do is have pressure-time data of natural but noisy process. Get a rough equation for it, then use sympy to pull the derivative of it, and then plot the derivative eqn over a numerical calc of the derivative
Sounds like some fun maths
Apparently Adam and Jamie didn't get on 😄
snake knot?
Jamie kind of hated working with Adam.
is it snake
What a dirty rat.
luckily i ran it on wine in OSX
no
other server
i just hope they didn't steal my files :/
like Ave mariya??






