#voice-chat-text-0
1 messages ยท Page 986 of 1
!e py text = "Applecakes" trans = str.maketrans({"a": "k", "s": "o"}) result = text.translate(trans) print(result)You'd probably get in trouble for doing it this way, because it doesn't really "show your work"
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Appleckkeo
So I don't feel bad about showing you it.
char = input()
char = char.replace('i','1')
char = char.replace('a','@')
char = char.replace('m','M')
char = char.replace('B','8')
char = char.replace('s','$')
char = char + "!"
print(char)
!e
import pandas as pd
filters = {
"Happy": {
"Sky Color" : ["blue"],
"Time Of Day" : ["Noon","Twilight"],
"Weather" : ["Clear"]
},
"Terrible": {
"Sky Color" : ["Red"],
"Time Of Day" : ["Night"],
"Weather" : ["Thunder"]
},
"Okay": {
"Sky Color" : ["Grey"],
"Time Of Day" : ["Twilight"],
"Weather" : ["Overcast"]
}
}
df = pd.DataFrame.from_dict(filters, orient='index').reset_index()
print(df)
@pallid hazel :white_check_mark: Your eval job has completed with return code 0.
001 | index Sky Color Time Of Day Weather
002 | 0 Happy [blue] [Noon, Twilight] [Clear]
003 | 1 Terrible [Red] [Night] [Thunder]
004 | 2 Okay [Grey] [Twilight] [Overcast]
!e
import pandas as pd
filters = {
"Happy": {
"Sky Color" : ["blue"],
"Time Of Day" : ["Noon"],
"Weather" : ["Clear"]
},
"Terrible": {
"Sky Color" : ["Red"],
"Time Of Day" : ["Night"],
"Weather" : ["Thunder"]
},
"Okay": {
"Sky Color" : ["Grey"],
"Time Of Day" : ["Twilight"],
"Weather" : ["Overcast"]
}
}
df = pd.DataFrame.from_dict({
"Sky Color" : ["blue","blue","Red","Grey","blue"],
"Time Of Day" : ["Noon","Noon","Night","Twilight","Twilight"],
"Weather" : ["Clear","Thunder","Thunder","Overcast","Clear"]
})
df["Type of Day"] = ""
for happy in filters["Happy"]:
df.loc[df[happy].isin(filters["Happy"][happy]), "Type of Day"] = "Happy"
for terrible in filters["Terrible"]:
df.loc[df[terrible].isin(filters["Terrible"][terrible]), "Type of Day"] = "Terrible"
for okay in filters["Okay"]:
df.loc[df[okay].isin(filters["Okay"][okay]), "Type of Day"] = "Okay"
print(df)
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
001 | Sky Color Time Of Day Weather Type of Day
002 | 0 blue Noon Clear Happy
003 | 1 blue Noon Thunder Terrible
004 | 2 Red Night Thunder Terrible
005 | 3 Grey Twilight Overcast Okay
006 | 4 blue Twilight Clear Okay
df[df[df[Sky Color]==blue and df[Time of Day]==Noon and df[weather]==Thunder]['time of day']=''
git submodule foreach -q --recursive 'branch="$(git config -f $toplevel/.gitmodules submodule.$name.branch)"; git switch $branch'
night
!e ```python
def add(a:int, b:int):
return a + b
print(add('LP', 8))```
@amber raptor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | File "<string>", line 2, in add
004 | TypeError: can only concatenate str (not "int") to str
!e ```python
def add(a:int, b:int):
return a + b
print(add('LP', ' Rabbit'))```
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
LP Rabbit
!e
def add(a:int, b:int):
return a * b
print('x' + add('D', 30))
@zenith radish :white_check_mark: Your eval job has completed with return code 0.
xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
!e
def add(a:int,b:int):
e = add.__annotations__
return e['a'](a) * e['b'](b)
print(add('3','2'))
@dire kite :white_check_mark: Your eval job has completed with return code 0.
6
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!e
import pandas as pd
filters = {
"Happy": {
"Sky Color" : ["blue"],
"Time Of Day" : ["Noon", "Twilight"],
"Weather" : ["Clear"]
},
"Terrible": {
"Sky Color" : ["Red"],
"Time Of Day" : ["Night"],
"Weather" : ["Thunder"]
},
"Okay": {
"Sky Color" : ["Grey"],
"Time Of Day" : ["Twilight"],
"Weather" : ["Overcast"]
}
}
df = pd.DataFrame.from_dict({
"Sky Color" : ["blue","blue","Red","Grey","blue"],
"Time Of Day" : ["Noon","Noon","Night","Twilight","Twilight"],
"Weather" : ["Clear","Thunder","Thunder","Overcast","Clear"]
})
for row in df.itertuples():
for key in filters:
for i, filt in enumerate(filters[key]):
if row[i+1] not in filters[key][filt]:
break
else:
df.at[row.Index, "Type of Day"] = key
df["Type of Day"] = df["Type of Day"].fillna("")
print(df)
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
001 | Sky Color Time Of Day Weather Type of Day
002 | 0 blue Noon Clear Happy
003 | 1 blue Noon Thunder
004 | 2 Red Night Thunder Terrible
005 | 3 Grey Twilight Overcast Okay
006 | 4 blue Twilight Clear Happy
@arctic ledge
moment when u forgot you are in voice chat and suddenly hear voices:
๐จ
Yeah
๐
i like how people join voice chat for a short period and leaves
now im going to do the same
:)
I don't know why my before element is on the top. I wan't it to place it at the back of the text. It might be because of position absolute used by me in my code. Help me!!
.landingSect h1{
font-size: 6rem;
position: relative;
z-index: 18;
}
.landingSect h1::before{
font-family: 'work sans';
letter-spacing: .9rem;
position: absolute;
top: 50%;
color: #1a5a6e86;
left: 50%;
transform: translate(-50%, -50%);
content: 'ishant';
text-transform: uppercase;
font-size: 10rem;
/* opacity: 0.2; */
}
figured out guys
@teal flower here
What do I type
since you cant speak you can write here
Oh
Iโm learning python
Iโm good thank
You
How are you
Yes
Nice
Lovely
Where are you from
Same here
Yeah true
How long you been programming for
Do you work in IT
Oh yeah
Iโm in tafe at the moment
Doing a cert 4 information technology
Learning python Ana SQL
What do you do
Well you add me as a friend
Ok ๐
How old are you
You very interesting human
You have a family
I mean kids I donโt have a family
So you have a special one
Wife or partner
Youโll find someone ๐
Oh really
Do you believe in vaccines
I donโt believe it exists
There is no virus itโs just the government
๐
?
Opal
Yeah
hello!
Opal you see what I mean
Lol ๐
just for the laughs
Oh true
????
@teal flower based name
whats a based name
Idk
ay lets go
Oh my
xD
that guy a giga chad
oh my, didn't know it
F
perks of being dumb and a 13 year old at the same time
hahaha
something happened to the vc why no one talking
Idk ๐คทโโ๏ธ
yay about me update
i have lost my donut can anyone help me find it
its somewhere in my about me
pls im hungry
ping me if you find it
@somber heath do you mind helping me
I have lost my donut
It's somewhere in my about me
That's pretty good
Crap i hear boss music and my mothers footsteps
Better run while i have the chance
:incoming_envelope: :ok_hand: applied mute to @cosmic lark until <t:1646312289:f> (9 minutes and 59 seconds) (reason: discord_emojis rule: sent 24 emojis in 10s).
seee this \\
turtle?
@cosmic lark Whoopsydoodle, you're a noodle. ๐
lol
really random question but am curious ๐
tschuss
why hello zan
@somber heath what api you use for your beatefull art
hi
anyone working on any projects?
guess you got muted for emoji spam
nope
^^^
anyone
alright
maybe send your message here? @sinful igloo
@sinful igloo You can stay in the voice chat, just maybe keep yourself on mute.
I donโt know how to handle
Who knows about Scikit-Learn
My network is better
Maybe
Bcuz of rรฉgion override
Guys
yea
for......?
For a project
Scikit-Learn
A calculator
Is SicKit-Learn is an Library? A youtuber named Programming with Mosh Told there is one
I don't think so I stand corrected
This is the name
Oh thx
I am great
Splendid
hello merge
Who is talking?
noodle reaper
Ok
Ohh sorry for interupt
My mom needs it now
@woeful salmon how old are you???
!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.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
I took a class on java and I don't really remember anything
that must have been painful
hello varun
hello everyone
Here's the thing with me: I read ONE PAGE on a programming language every Saturday, then say "I've learned (language name)". The next day I would wake up not knowing how to declare a variable in the language
Yes, you are
This is god mode dictionary skills. Thank you. I am going to try to implement this solution for my problem. I appreciate you
any idea how one can get archived amazon product data?
suppose i have a byte array, of a certain length and i wanna remove the last character after each iteration and see what the character value or the int is , how should i implement it?
asking here cuz #python-discussion is bloated
@zenith radish i'm working with spring, jsf and hibernate rn.... 4 config files + maven configuration + jsp tag libs
:x
A few months ago I took a break from python to make games in unity, when I came back I got a headache on why if !var == 1 was giving me a syntax error
This sounds like a job for subscription and slicing.
initially im just unpadding a padding thats all
Or possibly just a reverse slice and iteration.
dang it's 7 pm I gotta go study ugh being 13 sucks
india
lmao
lmao[::-1]
?
chr(int)
thats it
yes
๐ 30% of this server is us indians so kinda expected
same
k gotta go, see (hear ๐) you tommorow
My heart goes out to you ;D
i have general question for you all why decimal number containing garbage ?
wdym "containing garbage"
like 0.37500000021736
where did you get that number from
just try to compute any decimal numbere
!e
print(0.5 + 0.6)
@drifting crystal :white_check_mark: Your eval job has completed with return code 0.
1.1
in integer we have the capability write as much as big number you want but we have limits for float why?
!e
a = 0.5054554
b = 0.2342344
print(round(a,2) + round(b,2))
@pallid hazel :white_check_mark: Your eval job has completed with return code 0.
0.74
๐ thanks..... also one of my dependencies seems to have log4j behind it so i'm also gonna have to check if its the fixed version or not
!e
num=27
epsilon=0.01
guess=num/2
numofguess=0
while abs(guess3 - num)>= epsilon:
numofguess+=1
guess=guess-(((guess3)-num)/(3*(guess**2)))
print(str(num),numofguess,guess)
@runic elk :white_check_mark: Your eval job has completed with return code 0.
27 7 3.000000081210202
note there is garbage 81210202 so why was this printed?
@zenith radish ^ another reason to hate java frameworks....
they use danger logging level for info
T-T
Whhyyyyyyyyyyyy
every time i run anything its red
and i think i did something bad but i get correct output
https://www.youtube.com/watch?v=JnTa9XtvmfI if you want to complete!
Learn Linear Algebra in this 20-hour college course. Watch the second half here: https://youtu.be/DJ6YwBN7Ya8
This course is taught by Dr. Jim Hefferon, a professor of mathematics at St Michael's College.
๐ The course follows along with Dr. Hefferon's Linear Algebra text book. The book is available for free: http://joshua.smcvt.edu/linearalgebr...
Is he legit in there?
Did you know that there are many uses of quadratic equations in daily life? It plays a very important role in the survival of human beings. Sometimes people solve the equations but they are not aware because it comes in naturally. Every field that involves the calculation of speed, area or determining profit has to [โฆ]
@zenith radish ๐
btw i take back 1 of the things i said before atan is a trig function :x arc tangent... i always use it when working with coordinates so i totally forgot
lmao
its not in linear algebra
Quadratic equations are actually used in everyday life, as when calculating areas, determining a product's profit or formulating the speed of an object.
Numpy and Numba.
casio
!e
def fucking_python(a: int, b: int):
return a*b
print("x" + fucking_python("d", 5))
@zenith radish :white_check_mark: Your eval job has completed with return code 0.
xddddd
!e
import dis
def fucking_python(a: int, b: int) -> int:
return a*b
print(dis.dis(fucking_python))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | 4 0 LOAD_FAST 0 (a)
002 | 2 LOAD_FAST 1 (b)
003 | 4 BINARY_MULTIPLY
004 | 6 RETURN_VALUE
005 | None
@woeful salmon this is what i read on it,
https://squareboat.com/blog/advantages-and-disadvantages-of-python
There is a multitude of programming languages used for application development across the world. Each has its specific features as well as the pros and cons. One of the most favored programming languages today is Python. Do you know what is python good for?Python has become one of the few languages that hold relevance in the present, as well as ...
@zenith radish
that should be default behaviour
ๆ่จ
The Chengdu Pterodactyl I (Chinese: ็ฟผ้พ-1; pinyin: Yรฌlรณng-1), also known as Wing Loong, is a Medium-Altitude Long-Endurance (MALE) unmanned aerial vehicle (UAV), developed by the Chengdu Aircraft Industry Group in the People's Republic of China. Intended for use as a surveillance and aerial reconnaissance platform, the Pterodactyl I is capable of...
it just looks obsfucated to me
!stream 185917727385321472
โ @pallid hazel can now stream until <t:1646317992:f>.
hi @rugged root
hello
hello
can someone give me a help in #help-avocado ?
and here im reverse engineering sha256 hash "flawed algorithm"
xDDDDDDDDDDDDDDDDDD
yesssss
hey does hemlock go
whenever he speaks?
Hell yes it does
lemme tell you how to do it
this is the slightest bit concerning
https://editor.ponyorm.com/ This is really awesome
It's great for sketching out SQL table diagrams and can help organize it all
Hell of a ping
"Hey, I'M not the one who was speeding, Jesus is the one who took the wheel!"
(raises hand)
@fresh python What's your question?
lol

im 4738 days old
well, closer to 4k
Does @whole rover ever join these vcs's?
Computers are here
I'll be back later
https://trulyergonomic.com/ergonomic-keyboards/best-truly-ergonomic-mechanical-keyboard/ @tidal shard That's the keyboard I have
c = (a * a + b * b) ** 0.5
```^ That one?
yeah for trangles
also ... looks wrong
no a * a = a ** 2
I know that
and () ** 0.5 = () * * 1 / 2
But is type(int_value ** int_value2) is float ?
@plain rose :white_check_mark: Your eval job has completed with return code 0.
False
!e
type(pow(2, 2))
@wintry pier :warning: Your eval job has completed with return code 0.
[No output]
Desktop? [Ctrl]+[R]
Web? refresh button on browser
Mobile? exit VC, swipe off recent apps, reopen Discord, rejoin VC (if was in VC)
just did, it's gone
#BlameDiscordSinceAnOlderServerSideUpdate
Guys, someone know a third part lib for django roles?
I need to implement roles and permissions module for configure all the access
(raises hand)
What benefits to Floridas economy is affected by it's proximity to water bodies?
Imagine a role called idk publisher, normal user and admin
the users who had the publisher or admin role they will be allow to upload posts
like photos or videos
and the normal user only see those posts
Contribution of Fishing and Seafood Products in Florida in 2013: (11,965 jobs; $565 million)
each role can give you access to different features
.bm
Expensive there because it keeps getting destroyed, and yet it is still sought out after for retiring people
Florida is a state located in the Southeastern region of the United States. Florida is bordered to the west by the Gulf of Mexico, to the northwest by Alabama, to the north by Georgia, to the east by the Bahamas and Atlantic Ocean, and to the south by the Straits of Florida and Cuba; it is the only state that borders both the Gulf of Mexico and ...
Hey @plain rose!
It looks like you tried to attach file type(s) that we do not allow (.jfif). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
Kฤ aลก darau su savo gyvenimu? :(
โบลฝaidimo tinklapis: sr nฤra :D
โซDaina per video: The Price is Right, Extended Theme
Kevin MacLeod ~ Scheming Weasel (faster version)
DUUUUDE
Does joe ever join these VC's?
Caramello Anthony -- @zenith radish
not me joe, @whole rover
import regrets
Y'all go to starbucks? - Sincerely, Tim hortons gang
we have Tim Hortons here in the Philippines - I kinda prefer it over Starbucks
The Coding Bin
nice
I'm listening to history being written right now
โช The best, part, of waking up
Is Foldgers in your cup โช
yeah I'll take that as a sign to make another cup of coffee
read: DIY is cheaper over time than Starbucks / etc.
definitely. I took the middle path by buying myself a capsule coffee machine
as in brew the coffee at home / etc.
Although, I only have lemonade in Tims, not coffee
I've been (Caffeine)sober for 2 years now
Caffeine sober at 13 years old. I dunno whether I should be happy or sad
โฆ what did Trump typo the "conference" as again?
covfefe
Legts go drink some covfefe >//w//<
who needs coffee when you have concentrated insomnia
รwร
sempai, could we grab some kลhi together sometimes? รบ//w//รน
darn my break is over
kyaaa kimi make my kokoro go doki doki >w<
i gotta get to class now
itterashai joe-sama! >w</
@rugged root what will Python ฯ have? โฆ I hope it has some references to ฯ in the changelogs (for humors sake)
ฯthon
if monty the ฯthon has it, the docs will too
ฮ ฮธon
๐ซ
py-theta-on ?
well it'd be pronounced pthon
@rugged root -- i need to find that series of silly parodies
ฯฮนฮธoฮฝ
anyone here ever win a lottery or chance game?
other than Grade 7, no, no chance games
do video game rng drops count?
yes
then yes
nice
๐
ugh cant copy at a specific time on mobile โฆ I hope this works โฆ 5:54
https://youtu.be/2pZ2ji1tlgY?t=354
DISCLAIMER: I did not make this video this was completely made by orangefoot.com
@rugged root you had to remind me of this long segment
@tidal shard's Humor scrape - 93% - joke "Why does everyone keep having brexit?"
Huh. Interesting
@olive hedge Microsoft Edge is also Chromium-based, just like Google Chrome & Brave (Brave being the worst).
And it might be software updates and / or a horrible anti-virus / etc. (like McAfee / Symantic) removing Google Chrome due to "Incompatibilities".
oh fuck
FAKE NEWS!1!
i should not have visited that
python.localhost best python
Sometimes Wikipedia will help find the right one if Google / etc. does not
I don't think .localhost is a proper TLD
!e
a: tuple[str, int, float] = exec("""
def lol(a: int, b: int):
return a*b
a: float = lol('D', 5)
print('x' + a)
""")
@zenith radish :white_check_mark: Your eval job has completed with return code 0.
xDDDDD
I don't think exec returns a value
it doesn't matter apparently
For a strict type checker, it does.
It is
It's the best one
Super secure
Unhackable
192.168.0.1 come get me
NOT local network -.-'
::1 come at me, sis
!e
x = 10
y = 12
print(f"test {f'{x} {y}'}")
@terse needle :white_check_mark: Your eval job has completed with return code 0.
test 10 12
gtg thanks
!e ```py
UNICODE_TEMPLATE = 'U+{{:0{:d}X}}'
nums = (0x10, 0x2f, 0x200b)
tmpl = UNICODE_TEMPLATE.format(4) # Save the dummy code
for i in nums:
print(tmpl.format(i))
@primal yacht :white_check_mark: Your eval job has completed with return code 0.
001 | U+0010
002 | U+002F
003 | U+200B
hvm vs ghc for function composition
for i: -> blah
!e ```py
def is_even(value: None) -> None:
return not (value % 2)
print(is_even(1), is_even(2))
@primal yacht :white_check_mark: Your eval job has completed with return code 0.
False True
!e
def is_even(value: None) -> None:
return not value % 2
print(is_even(1), is_even(2))
@terse needle :white_check_mark: Your eval job has completed with return code 0.
False True
& 1 is better than % 2
because I said so
!e
def is_even(value: bool) -> tuple[bool, bool, bool]:
return exec(
f'for i in range({value}, -2, -2):\n'
f' sleep(1)'
f' if i == 0:\n'
f' print("even")\n'
f' break\n'
f' if i < 0:\n'
f' print("odd")\n'
)
is_even(19)
!e ```py
is_even = (lambda i: ~i & 1)
print(is_even(1), is_even(2))
@primal yacht :white_check_mark: Your eval job has completed with return code 0.
0 1
okay I'm satisfied with this
wait
I have a fucking genius idea
// Conversion errors if value is
// not convertable to an integer
const is_even = v => !(BigInt(v) & 1n);
const is_odd = v => !is_even(v);
i say break it into 2 functions one for odd and one for even, just to give it more overhead and time comeplexity
what's the -> tuple[bool, bool, bool] supposed to do?
YES
I am
nothing, that's the point
So unhappy
I AM SO HAPPY
alr backt o math
I MADE PYTHON GOOD
@pallid hazel this correct?
Supposed to be broken type hinting.
alr
!e
def good_python(a: int):
exec(a.replace("{", ":").replace("}", "").replace(";", "").replace("fn", "def"))
good_python("""
fn println(a: str) {
print(a);
}
println("hello world");
""")
@zenith radish :white_check_mark: Your eval job has completed with return code 0.
hello world
lads I fixed python
!e
nlist = []
for i in range(1,100000000):
nlist.append(i)
print('Really Cool sleep function')
@pallid hazel :warning: Your eval job timed out or ran out of memory.
[No output]
lol
bah
when I'm done with this meeting I'm gonna make a better python
!e ```py
while True: ... # this better time out
no idea
@primal yacht :warning: Your eval job timed out or ran out of memory.
[No output]
yeah timeout
Good. It times out very fast
@olive hedge
!e
for i in 'i' * 999999:
@plain rose :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | for i in 'i' * 999999:
003 | ^
004 | IndentationError: expected an indented block after 'for' statement on line 1
oh man error
!code -- see bot message
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.
I need Alec on this
!e list1 = [] for i in 'i' * 999999: list1.append(i) print('done')
@plain rose :white_check_mark: Your eval job has completed with return code 0.
done
how can I make a python import wrap everything that the interpreter runs
#bot-commands time
I want to implement from __future__ import braces
there is a space AFTER !e but NOT before or after the py at the starting
seriously would it be that hard to just highlight each color with it's corresponding word?
no dis is for my math, and i don't wanna open pycharm rn, it'll make my meeting lag
ooooh
but.....
i have a very good idea now
thanks
:)
- sum up all the counts.
- 12 out of (#1) chance is red.
...
as shown in your info
but you already have 30 total (as shown before the colors and it does sum up to that) so 12/30ths chance for a red
Boids is an artificial life program, developed by Craig Reynolds in 1986, which simulates the flocking behaviour of birds. His paper on this topic was published in 1987 in the proceedings of the ACM SIGGRAPH conference.
The name "boid" corresponds to a shortened version of "bird-oid object", which refers to a bird-like object. "Boid" is also a ...
Roy G. Biv
@primal yacht :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | while 1:if 1:pass
003 | ^^
004 | SyntaxError: invalid syntax
!e ```py
Genshin Imapact - Daily Login - Get UTC+8 time & date
import datetime
OFFSET = datetime.timezone(datetime.timedelta(hours=8))
def f(n: int, d: int = 2, /) -> str:
assert type(n) is int and type(d) is int and d > 0
return '{{:0{:d}d}}'.format(d).format(n)
def flop(offset: datetime.timezone = OFFSET) -> None:
dt: datetime.datetime = datetime.datetime.now(tz=offset)
print('{}-{}-{} {}:{}'.format(f(dt.year, 4), f(dt.month), f(dt.day), f(dt.hour), f(dt.minute), f(dt.second)))
if name == 'main':
print(datetime.datetime.now(tz=OFFSET))
flop()
@primal yacht :white_check_mark: Your eval job has completed with return code 0.
001 | 2022-03-04 01:40:22.123621+08:00
002 | 2022-03-04 01:40
!ban @rugged root
# initializer
value = 0
# conditional
while value < 10:
print(value)
if not value % 3:
value += 1
# post-loop
value += 1
!e
print("pam" in "spam")
@rugged root :white_check_mark: Your eval job has completed with return code 0.
True
@zenith radish
muted as helicopter nearby irl
HA
Most people wouldn't be willing to admit they're spamming
Discord's self-awareness makes them a really good friend
!e ```py
x = str.maketrans( { 10: '<LF>', 13: None } )
print(repr( """foo\r\nbar""".translate(x) ))
@primal yacht :white_check_mark: Your eval job has completed with return code 0.
'foo<LF>bar'
If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters (strings of length 1) to Unicode ordinals, strings (of arbitrary lengths) or None. Character keys will then be converted to ordinals.
!e
for i in range(10):
if i>5: break
else:
print('aaa')
@ivory stump :warning: Your eval job has completed with return code 0.
[No output]
!e
for i in range(10):
pass
else:
print('aaa')
@ivory stump :white_check_mark: Your eval job has completed with return code 0.
aaa
!e ```py
import random
for x in range(10):
if not random.randint(0, 99): break
else:
x = -1
print(x)
@primal yacht :white_check_mark: Your eval job has completed with return code 0.
-1
Hmm, it's better but I still can't quite make out the buttons
line_pattern = re.compile('(.*?)(\r?\n|$)')
for mo in line_pattern.finditer(code_str):
print(mo.groups())
LOLCODE is an esoteric programming language inspired by lolspeak, the language expressed in examples of the lolcat Internet meme. The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University.The language is not clearly defined in terms of operator priorities and correct syntax, but several func...
range( 0, stop, 1 )
range( start, stop, 1 )
range( start, stop, step )
// range(0, 10, 1)
for (let i = 0; i < 10; ++i) {}
// range(-10, -1, -1)
for (let i = -10; i > -1; --i) {}
// range(0, 101, 10)
for (let i = 0; i < 101; i += 10) {}
enumerate(map(str.strip,memes))
!e ```py
class A:
def getitem(self, x, /): return type(x), x
a = A()
print(a[0])
print(a[:])
print(a['foo':'bar':'baz'])
print(a[(1,2):(3,4)])
@primal yacht :white_check_mark: Your eval job has completed with return code 0.
001 | (<class 'int'>, 0)
002 | (<class 'slice'>, slice(None, None, None))
003 | (<class 'slice'>, slice('foo', 'bar', 'baz'))
004 | (<class 'slice'>, slice((1, 2), (3, 4), None))
re.finditer(line_pattern, code_str)
@zenith radish
I needed a short break, this code was inspired by @rugged root
!e
import string
test_keys = string.ascii_lowercase
test_values = []
for i, v in enumerate(test_keys):
test_values.append(i)
res = {test_keys[i]: test_values[i] for i in range(len(test_keys))}
def test(n):
for k, v in res.items():
if int(n) == v:
return k
wee = ['18', '15', '0', '12']
for i in wee:
v = test(i)
print(v)
@pallid hazel :white_check_mark: Your eval job has completed with return code 0.
001 | s
002 | p
003 | a
004 | m
How can i send a message like this?
!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.
print('hello wolrld!)
I didn't understand ๐
if you look at the embed it shows you what to type to make codeblocks
and if you want to run em use !e
kddkdk !e
@ivory stump :white_check_mark: Your eval job has completed with return code 0.
hi
!e
print ('thanks')
@carmine hearth :white_check_mark: Your eval job has completed with return code 0.
thanks
@ivory stump thank you
!e
from tkinter import *
from tkinter import ttk
from tkinter import messagbox
from random import randint
Hey everyone how is it all going
Good, you?
Can i open a window in a discord server?
Okay
am tired had a long day am going back to uni on 5th so packing is left youknow
@zenith radish hey how are you
@rugged root
Where can i see all the server commands?
I โค๏ธ my mouse.
am using the same mouse
I hate my mouse ๐๐
A lightweight, handheld device that allows users to measure air quality.
With 28 different sensors that are interchangeable in the field, user is able to measure exactly what they need to easily and quickly.
โApplications:
โข Indoor & outdoor air quality
โข Personal exposure studies
โข Health & Safety
โข Checking air pollution "hotspots"
@rugged root @quasi condor have you both ever tried vroid studio ??
I'm unfamiliar with it
Guys can someone help me
yes Its very fun my prof gave me some work on it
Bro right now what you doing in sense working on any project or something
oh understood what kind of work you busy with if i may ask ?
@quasi condor you should try elden ring you might like it
wait a sec, the python logo on python.org is blue and yellow like the ukraine flag, as if they support ukraine... So now there TWO things that've predicted the future so far, the simpsons and python.org

@zenith radish did mention that few days back , ik that's amazing
i fricking swear, the UN needs a branch to study each simpsons episode to prevent world conflicts
๐ง
undertaker
These are lists of the 100 known verified oldest people sorted in descending order by age in years and days.The oldest person ever whose age has been independently verified is Jeanne Calment (1875โ1997) of France, who lived to the age of 122 years and 164 days. The oldest verified man ever is Jiroemon Kimura (1897โ2013) of Japan, who lived to th...
why not be immortal never die
the queen made that deal, but there was a loophole, she could live forever BUT still have an aging body
gotta read the contract
maybe our conscious could be immortal but physically dead long time ago @molten pewter
jack daniels it is
how would you store your mind?
black label for me
Sequel coming soon: Cyberpunk 2077
Idk it was just a thought
i hear your going forward, but what about evolution in reverse
Am I right in thinking some cancers are just cells that don't want to die...
yes
Did I just think up of something along the lines of "Fast and the Furious" and then add in Jackie Chan's (Lee's) sidekick in the "Rush Hour" movies? ...
Like put him in a street racer's car ... I wonder how well that character would be .... in humor.
@zenith radishidris elba
Brian Helgeland @tidal shard @quasi condor even he is good director
I have not seen his films except Taking of Pelham 123
oh my bad he did the screenplay
guys who would be your favorite comedian or stand up artist ??
I don't exactly know.
But for family friendly, totally Jeff Dunham.
good choice
Each time a cell divides, 25-200 bases are lost from the ends of the telomeres on each chromosome.
Huh, I never knew that
When the telomere becomes too short, the chromosome reaches a โcritical lengthโ and can no longer be replicated.
I think there is over 1000 years of tech entertainment if we just ceased to exist today...
Down Out in the Magic Kingdom
https://www.gutenberg.org/files/8086/8086-h/8086-h.htm
go read it - great book
The solution? Ducktape
yeah
I'm often rather busy though
with what?
lol, university (taught), university (coursework), my job, pydis stuff, research
a whole heap of fun
i'm 18, lol
adult
joe you 18 ?? which uni >>
nice
University of Nottingham
i sure have a lot of things to look forward to
freshman year ?
โ
it's not nice?
@hollow haven what school year am I
LMAO
first year university
you're a freshman you fucking pleeb
lol
@zenith radish any good resource you know to study computer networks ?
but google says 9th grade is freshman
freshman for high school
snippets...
we're lazy in the US and freshman can mean uni or high school
okay I am in my first of 8 years at Nottingham
... 8 years???? you okay??????????
๐ RIP and good luck.
I wanna go to college and uni, get a doctors degree, and work on 2 phds, is that unrealistic?
???
Why do you want a PhD?
i mean over the span of your life probably not
๐
Do you want to be a professional researcher? If not, don't fucking do it.
yes i do
our doctoral school is pretty sweet
Make sure you get what that means. PhDs are a pretty miserable experience
cause it's a loooot of academic bullshit and politics
why does this feel like something I'm going to regret in the future?
the FP lab is nice, mixed reality is just cool shit, comp vision is neat, optimisation lab is the really cool shit
My big recommendation is to make sure you get industry experience before going into academia, make sure you're not perpetually stuck in the ivory tower with no idea how like... most industry operates
films where Bruce Willis doesn't play Bruce Willis: Moonrise Kingdom, Over the Hedge, Fast Food Nation, Assassinations of a high school president, Lay the Favorite, Rock the Kasbah...
Because to some degree academia is a zero sum game and people need some sort of exit strategy, even as a backup
yea sandwich year hopefully acclimates to that
by the time I've finished I'll have spent 25% of the degree in industry
bro just nuke the volcano
๐ฅฒ
I am not voice verified yet. Does anyone want to help me with some code real quick?
somaek
@whole bear message here rather than in DMs
and Cloudflare offers free key-value storage
Azure and AWS probably also offer it
guys what other forms of qualitative and quantitative analysis could i do?
ive done surveys and telephone conversations
a month from now
im trying to get to understand the feasibility of a technology in a new sector
Generate phone numbers(include cell phone, telephone numbers) of all states(areas) and cities from the United States, United Kingdom, Canada, Germany and China, Japan.
guys what do you recommend?
this is a market research problem - there's data involved, but the difficult things are the domain knowledge of understanding surveys and understanding markets
Do Those Work?
No
For Google
Bruh
Well I Know That There Is Some Websites That Have A Phone Number Generator Or Whatever It Is And They Work
But I Can't Find A Google Account Phone Number Generator Thing So I Can Make My Tool Auto Make Google Accounts For Me
Oh It's Not Like A Website I Was Thinking It Was
ฮ
how many type of functions we can use to exit a program in python ?? @zenith radish
@quasi condor It was the sudden realization in your eyes, just before you start coughing
So funny
genuinely was thinking "am I about to stop breathing"
And now the Hemlock heads home. See y'all in the car again
windows suck!
ubuntu

we cant just use a freaking gcc compiler in windows!!!
look at me
even I use windows
Those 3 C++ developers will cry
And again, WSL is available
who uses windows here?
you cant just copy anything in wsl ( nor paste )
I use it 100% for work and home.
i have one on my room, and i love the fact that you can ventilate the house with them

MAXXX F 

wsl is garbage
So are C developers
@quasi condor degree does shape a lot of your knowledge and the way you go about towards programming that's my belief
@zenith radish is a cyber security genius, thats all i know from listening to him
Some one know about a good songs to listen to while coding ?

Yea it was mostly figuring out which side of the Sydney Opera House it was on.
๐
furyo recommended this to me... https://www.youtube.com/watch?v=F6zMHVnQ2DM
Provided to YouTube by Entertainment One Distribution US
Light Heist ยท Chief Keef
The GloFiles (Pt. 2)
โ Glo Gang/ RBC Records
Released on: 2018-05-11
Auto-generated by YouTube.
You would, and you have in this very voice chat Charlie ๐
But that was a while ago ๐คทโโ๏ธ
People criticise me for listening to metal and programming but we all have our own tastes
tell those critics to shove it
my playlist
literally the same taste as me
๐
2000 metal rocks
this is a small subset of what I listen to though
I thought I was the only person left listening to static x
yeah spotify embeds on discord suck
charlie taught me Everything i know about social morality, hes the white gandhi
I don't even remember seeing Sesame Street in the UK ๐ค
@frosty garnet yea hes talking about andrew callaghan
lmaooooo
The UK has like 5 "terrestrial" channels:
- BBC 1 and 2
- ITV
- Channel 4
- Channel 5
Although I don't think the distinction matters anymore ๐ค
This sums up the content on Channel 5:
A funny sketch by Mitchell and Webb about a boy with an arse for a face. That Mitchell and Webb Look coming soon to BBC 2
DISCLAIMER: ALL RIGHTS BELONG TO THE BBC. I DID NOT PRODUCE THIS VIDEO.
@molten pewter im disgusted with you
how have you not watched channel 5 with andrew callaghan
An excellent round of chess here to demonstrate how the game should be played to it's full potential.
NOTE: Not my video, it was sent to me via E-mail. I have no idea who made it, or if it is copyrighted or not? If you do own the copyright, and beleive this is infringement, please contact me and I will remove it.
got my GCSE physics mock paper tomorrow
can't wait
โ @molten pewter can now stream until <t:1646348710:f>.
What topics does it cover? ๐
I should really start revising for my GCSE's but I can't really bring myself to revise
discrete math mock tomorrow ๐
the questions im revising off have glaring mistakes in them
i am well prepared
I wish you the best of luck ๐
Oh I remember the discrete math module ๐
GL!
I'm the same, but too shy/unreliable to actually commit to working on a project with someone else ๐
I'm just worried my code would be shit
gorgeous
very varied colour scheme
Although the Barbican was really fun to play hide and seek in as a child ๐
still disgusting
Yeah I do agree though
Although the National Theatre looks pretty cool from the right angle:
i feel weird pain in my chest for some reason idk why
rs/furio/pelican-themes/pure'..
@molten pewter type! and keydown tab
my bad @quasi condor
u dont need type everything
does any1 know if it is possible to print a basic txt file using python? and how?
how long does it usually take to get assistance in the help chats? Im new
hi guys, if you want to learning front-end development, I can teach you.
But I come from China, my English is not good, you have to put up with it.๐ข
generally you want to go through the text help system - see #โ๏ฝhow-to-get-help
@molten pewter I think you need this plugin
the people in VC are generally there to chat about offtopic stuff or to work on their own projects
It can start a file service on your machine
!e
print("hello")
@wintry pier :white_check_mark: Your eval job has completed with return code 0.
hello
hello
I have to send msgs
50
How are you
What are you guys doing
hmmmm
yea]\
each and every thing will be effected by that
!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!*
!eval
!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!*
!wow
Hello
Linux.
dude right now i cant just switch to linux so meanwhile i have to use windows could you suggest
@mortal crystal @cunning lake
you all should play elden ring its really sweet
is it like dark souls?
yes yes
its by fromsoftware
the creator of dark soul
its repack is already out so ya
ELEMENTARY
!e
doc = {1: "hello", 2: "bye", 3: "good"}
def find(name, n = 0):
n = n
if n == len(doc):
pass
else :
doc[n] = name
n += 1
find(name, n)
print(doc)
find("hello")
@wintry pier :white_check_mark: Your eval job has completed with return code 0.
001 | {1: 'hello', 2: 'hello', 3: 'hello', 0: 'hello'}
002 | {1: 'hello', 2: 'hello', 3: 'hello', 0: 'hello'}
003 | {1: 'hello', 2: 'hello', 3: 'hello', 0: 'hello'}
004 | {1: 'hello', 2: 'hello', 3: 'hello', 0: 'hello'}
005 | {1: 'hello', 2: 'hello', 3: 'hello', 0: 'hello'}
another if the function break down
yeast
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
are you trying to over complicate it?
opal, for all things.. race, sex, age, etc
Hm.
anyways, gn
good morning!
a million years later: hex code
I've written a hello world in x86 assembly
anyone have any pets
I have a pet rock
Rekorderlig
true
!e ```py
import math
a = math.factorial(23)
b = math.factorial(41)
c = math.factorial(29)
d = math.factorial(37)
print(ac, bc)
@undone idol :white_check_mark: Your eval job has completed with return code 0.
228577379063395778964892338453378050021130240000000000 295779278402837662492380893391898113380438769051120935764211269632000000000000000
!e py import math a = math.factorial(23) b = math.factorial(41) c = math.factorial(29) d = math.factorial(37) print(a**2)
@undone idol :white_check_mark: Your eval job has completed with return code 0.
668326769467589022464821184293345689600000000
!e ```py
import math
a = math.factorial(23)
b = math.factorial(41)
c = math.factorial(29)
d = math.factorial(37)
print(c**2)
@undone idol :white_check_mark: Your eval job has completed with return code 0.
78176755153939869305210274200729021751146846355456000000000000
!e ```py
import math
a = math.factorial(23)
print(a2425262728293031323334353637383940412425262728292425262728293031323334353637)
@undone idol :white_check_mark: Your eval job has completed with return code 0.
6091380958271165294340139910605755337809404176787965272819499008000000000000000
A rain of animals is a rare meteorological phenomenon in which flightless animals fall from the sky. Such occurrences have been reported in many countries throughout history. One hypothesis is that tornadic waterspouts sometimes pick up creatures such as fish or frogs, and carry them for up to several miles. However, this aspect of the phenomeno...
@whole bear :white_check_mark: Your eval job has completed with return code 0.
2
!e
arr = [10, 5, 3, 2, 4, 2, 3, 5, 6]
set1 = list(set(arr))
print(set1)
print(list(set(arr)))
@pallid hazel :white_check_mark: Your eval job has completed with return code 0.
001 | [2, 3, 4, 5, 6, 10]
002 | [2, 3, 4, 5, 6, 10]
@dense steeple Turn on Krisp.
Hey German vehicle in Australia ๐ @somber heath
I don't follow.
python is weird i can proove in just one step
(3577398618 + 2526762690 + 0 + 0).to_bytes(4, 'big')
will give error
but
((3577398618 + 2526762690 + 0 + 0) % 2**32).to_bytes(4,'big')
will give the correct output
why does this happen?
sorry i thought when u modulo a number by 2**32 u get the same number
but in this case its a different number
weird
no, that's not how it works
2**32 is not magic, it still does mod
@cosmic lark :white_check_mark: Your eval job has completed with return code 0.
123456
xDDDDDDD
!e print (123456 % 123457)
@honest pier :white_check_mark: Your eval job has completed with return code 0.
123456
@cosmic lark
!e
print(1234567890 % 2**32)
@cosmic lark :white_check_mark: Your eval job has completed with return code 0.
1234567890
hmmmmmmmmmm
do you understand what mod does?
!e
print(6104161309 % 2**32)
@cosmic lark :white_check_mark: Your eval job has completed with return code 0.
1809194013
!e
print(1234567890 % 1234567891)
@honest pier :white_check_mark: Your eval job has completed with return code 0.
1234567890
if python had 32 bit ints then 2^32 would be larger than any int, so modulo-ing by 2^32 would give you the same number
but
python's ints arent 32 bits, they can be as large as your memory can hold
then you understand why that happens
!e py a = int("FFFFFFFF", base=16) print(a) b = a.to_bytes(4, "big") print(b) (a+1).to_bytes(4, "big") #Ruh roh
@somber heath :x: Your eval job has completed with return code 1.
001 | 4294967295
002 | b'\xff\xff\xff\xff'
003 | Traceback (most recent call last):
004 | File "<string>", line 5, in <module>
005 | OverflowError: int too big to convert
yep got that one
Hello, what's the subject
i took it out regardless of it being clean or not... idk me as a child found a small but heavy black ball fascinating
๐ that sounds every inappropritate without context now that i read it so
context old non-optical mice
hemlock when are you getting this
