#voice-chat-text-0

1 messages ยท Page 986 of 1

arctic ledge
#

Looking for df to look like this at the end

somber heath
#

!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"

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

Appleckkeo
somber heath
#

So I don't feel bad about showing you it.

umbral terrace
#

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)

pallid hazel
#

!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)

wise cargoBOT
#

@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]
wind raptor
#

!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)
wise cargoBOT
#

@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
willow lynx
#

df[df[df[Sky Color]==blue and df[Time of Day]==Noon and df[weather]==Thunder]['time of day']=''

zenith radish
#

git submodule foreach -q --recursive 'branch="$(git config -f $toplevel/.gitmodules submodule.$name.branch)"; git switch $branch'

pallid hazel
#

night

amber raptor
#

!e ```python
def add(a:int, b:int):
return a + b

print(add('LP', 8))```

wise cargoBOT
#

@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
amber raptor
#

!e ```python
def add(a:int, b:int):
return a + b

print(add('LP', ' Rabbit'))```

wise cargoBOT
#

@amber raptor :white_check_mark: Your eval job has completed with return code 0.

LP Rabbit
zenith radish
#

!e

def add(a:int, b:int):
  return a * b

print('x' + add('D', 30))
wise cargoBOT
#

@zenith radish :white_check_mark: Your eval job has completed with return code 0.

xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
dire kite
#

!e

def add(a:int,b:int):
    e = add.__annotations__
    return e['a'](a) * e['b'](b)
print(add('3','2'))
wise cargoBOT
#

@dire kite :white_check_mark: Your eval job has completed with return code 0.

6
serene fox
#

hello

#

how to get good at coding

#

I just started

#

and I'm lost

dire kite
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

serene fox
#

more lost than Ukraine

#

thanks

wind raptor
#

!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)
wise cargoBOT
#

@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
wind raptor
#

@arctic ledge

whole bear
#

Hello, @somber heath

#

I sense you are a philosopher lol

#

Yeah

#

Oh

#

Hello ghost

loud karma
#

moment when u forgot you are in voice chat and suddenly hear voices:

whole bear
#

lmao

#

Oh yeah

#

That is a bit strange

loud karma
#

๐Ÿ˜จ

whole bear
#

Yeah

loud karma
#

๐Ÿ™€

#

i like how people join voice chat for a short period and leaves

#

now im going to do the same

#

:)

frank nimbus
#

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; */
}
vocal coyote
#

@teal flower here

teal flower
#

What do I type

vocal coyote
#

since you cant speak you can write here

teal flower
#

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

drifting crystal
#

hello!

teal flower
#

Opal you see what I mean

drifting crystal
#

awkward silence

teal flower
#

Lol ๐Ÿ˜

drifting crystal
#

just for the laughs

teal flower
#

Oh true

drifting crystal
#

so

#

anyone start any new projects recently?

#

work on any pre-existing ones?

teal flower
#

????

whole bear
#

@teal flower based name

drifting crystal
#

whats a based name

teal flower
#

Idk

drifting crystal
#

ay lets go

teal flower
#

Oh my

whole bear
#

xD

drifting crystal
#

that guy a giga chad

whole bear
#

oh my, didn't know it

drifting crystal
#

lol

#

anyone play any games?

drifting crystal
#

ah nice

#

im too poor to buy an account

whole bear
#

F

drifting crystal
#

perks of being dumb and a 13 year old at the same time

whole bear
#

hahaha

drifting crystal
#

something happened to the vc why no one talking

teal flower
#

Idk ๐Ÿคทโ€โ™‚๏ธ

drifting crystal
#

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

drifting crystal
#

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

runic elk
#

hey bro how are you

#

?

wise cargoBOT
#

: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).

runic elk
#

seee this \\

drifting crystal
#

turtle?

somber heath
#

@cosmic lark Whoopsydoodle, you're a noodle. ๐Ÿ˜

runic elk
drifting crystal
#

i agree

#

lennox seems sketchy

#

lennox is a user

#

wouldnt wanna ping them

runic elk
#

lol

drifting crystal
#

neat

#

hm

#

how old are you guys

drifting crystal
#

tschuss

#

why hello zan

glass vector
#

@somber heath what api you use for your beatefull art

glass vector
drifting crystal
#

anyone working on any projects?

cosmic lark
#

wtf was that?

#

rules for emojis?

#

ewwwwww

drifting crystal
cosmic lark
#

nope

drifting crystal
#

anyone

#

alright

#

maybe send your message here? @sinful igloo

woeful salmon
#

๐Ÿค” i can barely tell its english

#

yeah

sinful igloo
#

Hi

#

I am sorry

#

This is new ear phones

somber heath
#

@sinful igloo You can stay in the voice chat, just maybe keep yourself on mute.

sinful igloo
#

I donโ€™t know how to handle

#

Who knows about Scikit-Learn

#

My network is better

#

Maybe

#

Bcuz of rรฉgion override

#

Guys

drifting crystal
#

yea

sinful igloo
#

Who knows about some libraryโ€™s

#

Python

drifting crystal
#

for......?

sinful igloo
#

For a project

#

Scikit-Learn

#

A calculator

#

Is SicKit-Learn is an Library? A youtuber named Programming with Mosh Told there is one

drifting crystal
#

I don't think so I stand corrected

sinful igloo
#

Oops

#

I spelled it wrong

#

Scikit-Learn

sinful igloo
woeful salmon
sinful igloo
#

Oh thx

drifting crystal
#

Soo

#

yea

sinful igloo
#

Soo

#

Yea

#

Anyways

#

How is the weather

#

In your place

drifting crystal
#

so if i write 1 then 2 it'll auto generate 3-whatever

#

How is everyone today

sinful igloo
#

I am great

drifting crystal
#

Splendid

sinful igloo
#

Ok

#

Hello

drifting crystal
#

hello merge

sinful igloo
#

Who is talking?

drifting crystal
sinful igloo
#

Ok

runic elk
#

Ohh sorry for interupt

sinful igloo
#

My mom needs it now

drifting crystal
#

@woeful salmon how old are you???

sinful igloo
#

So needed the call

#

Ended

woeful salmon
#

!paste

wise cargoBOT
#

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.

woeful salmon
drifting crystal
#

I took a class on java and I don't really remember anything

#

that must have been painful

#

hello varun

crude vale
#

hello everyone

drifting crystal
#

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

arctic ledge
crude vale
#

any idea how one can get archived amazon product data?

cosmic lark
#

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?

woeful salmon
#

@zenith radish i'm working with spring, jsf and hibernate rn.... 4 config files + maven configuration + jsp tag libs

#

:x

drifting crystal
#

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

somber heath
cosmic lark
#

initially im just unpadding a padding thats all

somber heath
#

Or possibly just a reverse slice and iteration.

drifting crystal
#

dang it's 7 pm I gotta go study ugh being 13 sucks

cosmic lark
#

lmao

#
lmao[::-1]
#

?

#

chr(int)

#

thats it

#

yes

woeful salmon
drifting crystal
#

k gotta go, see (hear ๐Ÿ˜) you tommorow

runic elk
#

i have general question for you all why decimal number containing garbage ?

drifting crystal
#

wdym "containing garbage"

runic elk
#

like 0.37500000021736

drifting crystal
#

where did you get that number from

runic elk
#

just try to compute any decimal numbere

drifting crystal
#

!e

print(0.5 + 0.6)
wise cargoBOT
#

@drifting crystal :white_check_mark: Your eval job has completed with return code 0.

1.1
runic elk
#

in integer we have the capability write as much as big number you want but we have limits for float why?

pallid hazel
#

!e
a = 0.5054554
b = 0.2342344
print(round(a,2) + round(b,2))

wise cargoBOT
#

@pallid hazel :white_check_mark: Your eval job has completed with return code 0.

0.74
woeful salmon
runic elk
#

!e
num=27
epsilon=0.01
guess=num/2
numofguess=0

while abs(guess3 - num)>= epsilon:
numofguess+=1
guess=guess-(((guess
3)-num)/(3*(guess**2)))
print(str(num),numofguess,guess)

wise cargoBOT
#

@runic elk :white_check_mark: Your eval job has completed with return code 0.

27 7 3.000000081210202
runic elk
#

note there is garbage 81210202 so why was this printed?

woeful salmon
#

@zenith radish ^ another reason to hate java frameworks....

#

they use danger logging level for info

#

T-T

rugged root
#

Whhyyyyyyyyyyyy

woeful salmon
#

every time i run anything its red

#

and i think i did something bad but i get correct output

runic elk
#

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...

โ–ถ Play video
rugged root
#

Is he legit in there?

woeful salmon
#

that's what that character skin is called yeah

rugged root
woeful salmon
#

@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

rugged root
somber heath
#

Numpy and Numba.

rugged root
#

pyjion

#

Cython

#

pypy

pallid hazel
#

casio

zenith radish
#

!e

def fucking_python(a: int, b: int):
  return a*b

print("x" + fucking_python("d", 5))
wise cargoBOT
#

@zenith radish :white_check_mark: Your eval job has completed with return code 0.

xddddd
woeful salmon
#

!e

import dis

def fucking_python(a: int, b: int) -> int:
  return a*b

print(dis.dis(fucking_python))
wise cargoBOT
#

@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
rugged root
pallid hazel
#
rugged root
#

Oh so dumb thing

molten pewter
woeful salmon
#

@zenith radish

zenith radish
#

that should be default behaviour

molten pewter
#

ๆ–‡่จ€

rugged root
molten pewter
zenith radish
#

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...

woeful salmon
pallid hazel
#

it just looks obsfucated to me

rugged root
#

!stream 185917727385321472

wise cargoBOT
#

โœ… @pallid hazel can now stream until <t:1646317992:f>.

cosmic lark
#

hi @rugged root

topaz thistle
#

hello

plain rose
#

hello

topaz thistle
plain rose
#

vim > sublime

#

vim superiority

cosmic lark
#

and here im reverse engineering sha256 hash "flawed algorithm"

#

xDDDDDDDDDDDDDDDDDD

#

yesssss

plain rose
#

hey does hemlock go hemlock whenever he speaks?

rugged root
#

Hell yes it does

woeful salmon
#

lemme tell you how to do it

plain rose
#

this is the slightest bit concerning

rugged root
#

It's great for sketching out SQL table diagrams and can help organize it all

rugged root
plain rose
rugged root
#

"Hey, I'M not the one who was speeding, Jesus is the one who took the wheel!"

plain rose
#

(raises hand)

rugged root
#

@fresh python What's your question?

plain rose
#

lol

#

im 4738 days old

#

well, closer to 4k

#

Does @whole rover ever join these vcs's?

rugged root
#

Computers are here

#

I'll be back later

primal yacht
plain rose
#

kahoot

wintry pier
#

@primal yacht c = ( a ** 2 + b ** 2 ) ** 1\2

#

c = a + b

plain rose
#

lets go

#

break time

primal yacht
#
(a ** 2) + (b ** 2) == (c ** 2)
wintry pier
#

yeah for trangles

primal yacht
wintry pier
#

no a * a = a ** 2

primal yacht
wintry pier
#

and () ** 0.5 = () * * 1 / 2

primal yacht
#

But is type(int_value ** int_value2) is float ?

plain rose
#

wait a sec who's Furious?

#

!e print(isinstance(10 ** 10, float))

wise cargoBOT
#

@plain rose :white_check_mark: Your eval job has completed with return code 0.

False
wintry pier
#

!e
type(pow(2, 2))

wise cargoBOT
#

@wintry pier :warning: Your eval job has completed with return code 0.

[No output]
primal yacht
primal yacht
viral ibex
#

Guys, someone know a third part lib for django roles?

#

I need to implement roles and permissions module for configure all the access

plain rose
#

(raises hand)

#

What benefits to Floridas economy is affected by it's proximity to water bodies?

viral ibex
#

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

tidal shard
viral ibex
#

each role can give you access to different features

primal yacht
tidal shard
# plain rose What benefits to Floridas economy is affected by it's proximity to water bodies?

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 ...

wise cargoBOT
#

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.

plain rose
#

wait you guys are married?

#

i still can't work part-time

primal yacht
zenith radish
#

DUUUUDE

primal yacht
#

I'll stay muted as I'm using this account here

#

nom noms time ^w^

plain rose
#

Does joe ever join these VC's?

primal yacht
#

Caramello Anthony -- @zenith radish

plain rose
#

not me joe, @whole rover

primal yacht
#

import regrets

plain rose
#

Y'all go to starbucks? - Sincerely, Tim hortons gang

tidal shard
primal yacht
#

The Coding Bin

plain rose
#

I'm listening to history being written right now

primal yacht
#

โ™ช The best, part, of waking up
Is Foldgers in your cup โ™ช

tidal shard
#

yeah I'll take that as a sign to make another cup of coffee

primal yacht
#

read: DIY is cheaper over time than Starbucks / etc.

tidal shard
primal yacht
#

as in brew the coffee at home / etc.

plain rose
#

Although, I only have lemonade in Tims, not coffee

#

I've been (Caffeine)sober for 2 years now

tidal shard
primal yacht
#

โ€ฆ what did Trump typo the "conference" as again?

tidal shard
#

covfefe

primal yacht
#

Legts go drink some covfefe >//w//<

plain rose
#

who needs coffee when you have concentrated insomnia

zenith radish
#

ร™wรš
sempai, could we grab some kลhi together sometimes? รบ//w//รน

plain rose
#

darn my break is over

zenith radish
#

kyaaa kimi make my kokoro go doki doki >w<

plain rose
#

i gotta get to class now

zenith radish
#

itterashai joe-sama! >w</

primal yacht
#

@rugged root what will Python ฯ€ have? โ€ฆ I hope it has some references to ฯ€ in the changelogs (for humors sake)

zenith radish
#

ฯ€thon

plain rose
zenith radish
#

ฮ ฮธon

plain rose
#

๐Ÿซ‚

primal yacht
zenith radish
#

well it'd be pronounced pthon

primal yacht
#

@rugged root -- i need to find that series of silly parodies

zenith radish
#

ฯ€ฮนฮธoฮฝ

plain rose
#

anyone here ever win a lottery or chance game?

#

other than Grade 7, no, no chance games

tidal shard
#

do video game rng drops count?

plain rose
zenith radish
#

ะŸ

#

ะค

tidal shard
plain rose
sweet lodge
#

๐Ÿ‘‹

plain rose
#

420 iq

sweet lodge
#

DLaaS?

#

Discord Logging as a Service

primal yacht
primal yacht
plain rose
#

@tidal shard's Humor scrape - 93% - joke "Why does everyone keep having brexit?"

sweet lodge
#

Huh. Interesting

primal yacht
#

@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".

rugged root
plain rose
#

oh fuck

sweet lodge
plain rose
#

i should not have visited that

sweet lodge
#

python.localhost best python

plain rose
#

yeah do not visit python . com

#

Gotta delete my search history now

primal yacht
#

Sometimes Wikipedia will help find the right one if Google / etc. does not

primal yacht
zenith radish
#

!e

a: tuple[str, int, float] = exec("""
def lol(a: int, b: int):
  return a*b

a: float = lol('D', 5)
print('x' + a)
""")
wise cargoBOT
#

@zenith radish :white_check_mark: Your eval job has completed with return code 0.

xDDDDD
primal yacht
#

I don't think exec returns a value

zenith radish
#

it doesn't matter apparently

primal yacht
#

For a strict type checker, it does.

sweet lodge
#

It's the best one

#

Super secure
Unhackable

terse needle
#

192.168.0.1 come get me

primal yacht
#

NOT local network -.-'

primal yacht
#

::1 come at me, sis

terse needle
#

!e

x = 10
y = 12
print(f"test {f'{x} {y}'}")
wise cargoBOT
#

@terse needle :white_check_mark: Your eval job has completed with return code 0.

test 10 12
tidal shard
#

gtg thanks

terse needle
primal yacht
#

!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))

wise cargoBOT
#

@primal yacht :white_check_mark: Your eval job has completed with return code 0.

001 | U+0010
002 | U+002F
003 | U+200B
plain rose
#

i gtg now i have math

#

cya

terse needle
#

hvm vs ghc for function composition

rugged root
pallid hazel
#

for i: -> blah

primal yacht
#

!e ```py
def is_even(value: None) -> None:
return not (value % 2)

print(is_even(1), is_even(2))

wise cargoBOT
#

@primal yacht :white_check_mark: Your eval job has completed with return code 0.

False True
terse needle
#

!e

def is_even(value: None) -> None:
    return not value % 2

print(is_even(1), is_even(2))
wise cargoBOT
#

@terse needle :white_check_mark: Your eval job has completed with return code 0.

False True
terse needle
#

& 1 is better than % 2

terse needle
zenith radish
#

!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)
primal yacht
#

!e ```py
is_even = (lambda i: ~i & 1)
print(is_even(1), is_even(2))

wise cargoBOT
#

@primal yacht :white_check_mark: Your eval job has completed with return code 0.

0 1
zenith radish
#

wait

#

I have a fucking genius idea

primal yacht
#
// Conversion errors if value is
// not convertable to an integer
const is_even = v => !(BigInt(v) & 1n);
const is_odd = v => !is_even(v);
pallid hazel
#

i say break it into 2 functions one for odd and one for even, just to give it more overhead and time comeplexity

plain rose
zenith radish
#

YES

rugged root
#

I am

zenith radish
rugged root
#

So unhappy

zenith radish
#

I AM SO HAPPY

plain rose
zenith radish
#

I MADE PYTHON GOOD

rugged root
primal yacht
plain rose
zenith radish
#

!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");
""")
wise cargoBOT
#

@zenith radish :white_check_mark: Your eval job has completed with return code 0.

hello world
zenith radish
#

lads I fixed python

pallid hazel
#

!e
nlist = []
for i in range(1,100000000):
nlist.append(i)
print('Really Cool sleep function')

wise cargoBOT
#

@pallid hazel :warning: Your eval job timed out or ran out of memory.

[No output]
plain rose
#

lol

pallid hazel
#

bah

zenith radish
#

when I'm done with this meeting I'm gonna make a better python

plain rose
#

try 9999999 as a val

#

or 'i' * 99999999999999999

primal yacht
#

!e ```py
while True: ... # this better time out

pallid hazel
wise cargoBOT
#

@primal yacht :warning: Your eval job timed out or ran out of memory.

[No output]
plain rose
#

yeah timeout

primal yacht
#

Good. It times out very fast

rugged root
#

@olive hedge

plain rose
#

!e
for i in 'i' * 999999:

wise cargoBOT
#

@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
plain rose
#

oh man error

primal yacht
wise cargoBOT
#

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.

plain rose
#

!e```
list1 = []
for i in 'i' * 999999:
list1.append(i)
print(''\done)

#

fucking typo

zenith radish
#

I need Alec on this

plain rose
#

!e list1 = [] for i in 'i' * 999999: list1.append(i) print('done')

wise cargoBOT
#

@plain rose :white_check_mark: Your eval job has completed with return code 0.

done
zenith radish
#

how can I make a python import wrap everything that the interpreter runs

plain rose
#

#bot-commands time

zenith radish
#

I want to implement from __future__ import braces

primal yacht
#

there is a space AFTER !e but NOT before or after the py at the starting

plain rose
#

seriously would it be that hard to just highlight each color with it's corresponding word?

primal yacht
#

ah ... weighted random

#

I know this

#

You can do that easily with random.choices()

plain rose
#

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

#

:)

primal yacht
#
  1. sum up all the counts.
  2. 12 out of (#1) chance is red.
    ...
plain rose
#

mhmh

#

thanks

primal yacht
#

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

plain rose
#

mhm, interestong

#

ing*

rugged root
#

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 ...

olive hedge
terse needle
#

Roy G. Biv

primal yacht
#

Red Orange Yellow Green Blue Indigo Violet

#

!e ```py
while 1:if 1:pass

wise cargoBOT
#

@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
primal yacht
#

!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()

wise cargoBOT
#

@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
zenith radish
#

!ban @rugged root

sweet lodge
#

...

#

Thanks Discord

#

@zenith radish [0:4]

primal yacht
#
# initializer
value = 0
# conditional
while value < 10:
    print(value)
    if not value % 3:
        value += 1
    # post-loop
    value += 1
rugged root
#

!e

print("pam" in "spam")
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

True
primal yacht
#

muted as helicopter nearby irl

sweet lodge
#

I'm impressed

rugged root
#

HA

sweet lodge
#

Most people wouldn't be willing to admit they're spamming

#

Discord's self-awareness makes them a really good friend

rugged root
primal yacht
#

!e ```py
x = str.maketrans( { 10: '<LF>', 13: None } )
print(repr( """foo\r\nbar""".translate(x) ))

wise cargoBOT
#

@primal yacht :white_check_mark: Your eval job has completed with return code 0.

'foo<LF>bar'
primal yacht
#

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.

ivory stump
#

!e

for i in range(10):
    if i>5: break
else:
    print('aaa')
wise cargoBOT
#

@ivory stump :warning: Your eval job has completed with return code 0.

[No output]
ivory stump
#

!e

for i in range(10):
    pass
else:
    print('aaa')
wise cargoBOT
#

@ivory stump :white_check_mark: Your eval job has completed with return code 0.

aaa
primal yacht
#

!e ```py
import random
for x in range(10):
if not random.randint(0, 99): break
else:
x = -1
print(x)

wise cargoBOT
#

@primal yacht :white_check_mark: Your eval job has completed with return code 0.

-1
rugged root
#

Hmm, it's better but I still can't quite make out the buttons

primal yacht
#
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) {}
ivory stump
#

enumerate(map(str.strip,memes))

primal yacht
#

!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)])

wise cargoBOT
#

@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))
primal yacht
pallid hazel
#

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)
wise cargoBOT
#

@pallid hazel :white_check_mark: Your eval job has completed with return code 0.

001 | s
002 | p
003 | a
004 | m
carmine hearth
ivory stump
#

!code

wise cargoBOT
#

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.

carmine hearth
#

print('hello wolrld!)

carmine hearth
ivory stump
#

if you look at the embed it shows you what to type to make codeblocks

#

and if you want to run em use !e

carmine hearth
#

kddkdk !e

ivory stump
#

!e goes before the code

#

!e print('hi')

wise cargoBOT
#

@ivory stump :white_check_mark: Your eval job has completed with return code 0.

hi
carmine hearth
#

!e
print ('thanks')

wise cargoBOT
#

@carmine hearth :white_check_mark: Your eval job has completed with return code 0.

thanks
carmine hearth
#

@ivory stump thank you

molten pewter
plain rose
#

search up Delhi

#

London is just fine

#

what does Laminar flow mean in fluids?

molten pewter
carmine hearth
#

!e
from tkinter import *
from tkinter import ttk
from tkinter import messagbox
from random import randint

molten pewter
rugged root
#

tkinter won't work in our eval

#

Since it'd need to open a window

abstract schooner
#

Hey everyone how is it all going

rugged root
carmine hearth
rugged root
#

No

#

That's why I'm saying it wouldn't work

carmine hearth
#

Okay

abstract schooner
#

am tired had a long day am going back to uni on 5th so packing is left youknow

carmine hearth
#

I already wrote my code

#

I just wanted to check how it's going on here

abstract schooner
#

@zenith radish hey how are you

carmine hearth
#

@rugged root
Where can i see all the server commands?

primal yacht
#

I โค๏ธ my mouse.

abstract schooner
carmine hearth
quasi condor
#
Campbell Associatesโ€Ž | Dunmow,Essex, UK

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"

abstract schooner
#

@rugged root @quasi condor have you both ever tried vroid studio ??

rugged root
#

I'm unfamiliar with it

zenith radish
#

I have

#

You can export the models to unity it's lit

quasi condor
carmine hearth
#

Guys can someone help me

abstract schooner
abstract schooner
rugged root
#

Nothing really. Work has been my focus

#

And I'm not a programmer by trade

abstract schooner
#

oh understood what kind of work you busy with if i may ask ?

#

@quasi condor you should try elden ring you might like it

plain rose
#

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

abstract schooner
plain rose
#

i fricking swear, the UN needs a branch to study each simpsons episode to prevent world conflicts

#

๐Ÿง 

abstract schooner
#

undertaker

molten pewter
abstract schooner
#

why not be immortal never die

plain rose
#

gotta read the contract

abstract schooner
#

maybe our conscious could be immortal but physically dead long time ago @molten pewter

#

jack daniels it is

tidal shard
plain rose
abstract schooner
pallid hazel
#

i hear your going forward, but what about evolution in reverse

trail mural
#

Am I right in thinking some cancers are just cells that don't want to die...

primal yacht
#

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.

abstract schooner
#

@zenith radishidris elba

#

Brian Helgeland @tidal shard @quasi condor even he is good director

tidal shard
#

oh my bad he did the screenplay

abstract schooner
#

guys who would be your favorite comedian or stand up artist ??

primal yacht
rugged root
trail mural
#

Each time a cell divides, 25-200 bases are lost from the ends of the telomeres on each chromosome.

rugged root
#

Huh, I never knew that

trail mural
#

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...

quasi condor
#

go read it - great book

whole rover
#

I'm often rather busy though

plain rose
whole rover
#

a whole heap of fun

plain rose
#

oh man

#

adulthood is NOT fun

whole rover
#

i'm 18, lol

plain rose
#

adult

abstract schooner
#

joe you 18 ?? which uni >>

whole rover
plain rose
whole rover
#

University of Nottingham

plain rose
#

i sure have a lot of things to look forward to

abstract schooner
whole rover
#

โœ…

plain rose
#

nice

whole rover
#

wait

#

no

#

uhhhh

plain rose
#

it's not nice?

whole rover
#

@hollow haven what school year am I

plain rose
#

LMAO

whole rover
#

first year university

hollow haven
whole rover
#

freshman??

#

yeah okay

plain rose
#

lol

whole rover
#

but I saw 9th grade???!?

#

I'm in 9th grade???

abstract schooner
#

@zenith radish any good resource you know to study computer networks ?

hollow haven
#

9th grade is high school

#

you're uni, so freshman

whole rover
#

but google says 9th grade is freshman

hollow haven
#

freshman for high school

plain rose
hollow haven
#

we're lazy in the US and freshman can mean uni or high school

whole rover
#

okay I am in my first of 8 years at Nottingham

hollow haven
#

... 8 years???? you okay??????????

whole rover
#

4 year undergrad, 4 year postgrad

#

1 year of each spent in industry

hollow haven
#

๐Ÿ’€ RIP and good luck.

plain rose
#

I wanna go to college and uni, get a doctors degree, and work on 2 phds, is that unrealistic?

#

???

hollow haven
#

Why do you want a PhD?

whole rover
#

i mean over the span of your life probably not

plain rose
hollow haven
#

Do you want to be a professional researcher? If not, don't fucking do it.

whole rover
#

our doctoral school is pretty sweet

hollow haven
#

Make sure you get what that means. PhDs are a pretty miserable experience

#

cause it's a loooot of academic bullshit and politics

plain rose
#

why does this feel like something I'm going to regret in the future?

whole rover
#

the FP lab is nice, mixed reality is just cool shit, comp vision is neat, optimisation lab is the really cool shit

hollow haven
#

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

molten pewter
#

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...

hollow haven
#

Because to some degree academia is a zero sum game and people need some sort of exit strategy, even as a backup

whole rover
#

yea sandwich year hopefully acclimates to that

#

by the time I've finished I'll have spent 25% of the degree in industry

trail mural
#

How much land will still be arable?

#

Won't be just one factor

trail mural
#

bro just nuke the volcano

sweet lodge
#

Bastards

trail mural
#

๐Ÿฅฒ

shut olive
#

I am not voice verified yet. Does anyone want to help me with some code real quick?

quasi condor
zenith radish
tidal shard
#

somaek

abstract schooner
#

it looks ugly though

quasi condor
amber raptor
quasi condor
#

@whole bear message here rather than in DMs

#

and Cloudflare offers free key-value storage

#

Azure and AWS probably also offer it

amber raptor
#

Azure has Table Storage and CosmosDB along with MSSQL offerings

#

AWS has whatever

lyric pawn
#

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

molten pewter
lyric pawn
#

guys what do you recommend?

quasi condor
#

this is a market research problem - there's data involved, but the difficult things are the domain knowledge of understanding surveys and understanding markets

whole bear
#

Do Those Work?

lyric pawn
#

use your brain

whole bear
#

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

quasi condor
#

ฮ”

abstract schooner
#

how many type of functions we can use to exit a program in python ?? @zenith radish

zenith radish
#

no idea

#

I'm not a python user

quasi condor
#

docker search python-3.8

terse needle
#

Rabbit is corporate

#

I read this as VLM

#

window managers are bloat

rugged root
#

@quasi condor It was the sudden realization in your eyes, just before you start coughing

#

So funny

quasi condor
#

genuinely was thinking "am I about to stop breathing"

rugged root
#

And now the Hemlock heads home. See y'all in the car again

mortal crystal
#

drive safe mate

#

๐ŸŽ๏ธ

fierce fiber
#

windows suck!

mortal crystal
#

what are u using?

#

@fierce fiber

lyric pawn
#

mac is so much better for coding

#

than windows

fierce fiber
#

we cant just use a freaking gcc compiler in windows!!!

mortal crystal
#

(i don't btw)

lyric pawn
#

look at me

abstract schooner
#

even I use windows

amber raptor
#

And again, WSL is available

lyric pawn
#

who uses windows here?

fierce fiber
#

you cant just copy anything in wsl ( nor paste )

amber raptor
#

I use it 100% for work and home.

mortal crystal
fierce fiber
#

MAXXX F brainmon

cunning lake
fierce fiber
#

wsl is garbage

amber raptor
fierce fiber
#

That doesn't make sense

#

why windows is good

abstract schooner
#

@quasi condor degree does shape a lot of your knowledge and the way you go about towards programming that's my belief

lyric pawn
#

@zenith radish is a cyber security genius, thats all i know from listening to him

cunning lake
#

Some one know about a good songs to listen to while coding ?

stuck furnace
#

Yea it was mostly figuring out which side of the Sydney Opera House it was on.

#

๐Ÿ‘‹

lyric pawn
stuck furnace
#

You would, and you have in this very voice chat Charlie ๐Ÿ˜„

#

But that was a while ago ๐Ÿคทโ€โ™‚๏ธ

terse needle
zenith radish
#

my playlist

terse needle
#

literally the same taste as me

cunning lake
#

๐Ÿ™

terse needle
#

2000 metal rocks

zenith radish
#

this is a small subset of what I listen to though

terse needle
#

I thought I was the only person left listening to static x

cunning lake
#

nice

#

i lost my hearing my volume wase to high ๐Ÿ˜†

terse needle
terse needle
lyric pawn
#

charlie taught me Everything i know about social morality, hes the white gandhi

stuck furnace
#

I don't even remember seeing Sesame Street in the UK ๐Ÿค”

lyric pawn
#

@frosty garnet yea hes talking about andrew callaghan

stuck furnace
#

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:

frosty garnet
lyric pawn
#

@molten pewter im disgusted with you

#

how have you not watched channel 5 with andrew callaghan

terse needle
#

got my GCSE physics mock paper tomorrow

#

can't wait

stuck furnace
#

ยฏ_(ใƒ„)_/ยฏ

#

!stream 588068033415741525

wise cargoBOT
#

โœ… @molten pewter can now stream until <t:1646348710:f>.

stuck furnace
terse needle
#

I should really start revising for my GCSE's but I can't really bring myself to revise

stuck furnace
#

Welcome LizardSpiral ๐Ÿ‘‹

#

๐ŸŽ‰

ivory stump
#

the questions im revising off have glaring mistakes in them

#

i am well prepared

terse needle
quasi condor
stuck furnace
#

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 ๐Ÿ‘€

terse needle
#

gorgeous

#

very varied colour scheme

stuck furnace
#

Although the Barbican was really fun to play hide and seek in as a child ๐Ÿ˜„

terse needle
#

still disgusting

stuck furnace
terse needle
#

just a grey misery

#

it's only nice when you see all of the green

stuck furnace
#

Yeah I do agree though

#

Although the National Theatre looks pretty cool from the right angle:

terse needle
#

I agree

#

I like the unique architecture

abstract schooner
#

i feel weird pain in my chest for some reason idk why

molten pewter
#

rs/furio/pelican-themes/pure'..

onyx granite
#

@molten pewter type! and keydown tab

glass vector
#

my bad @quasi condor

onyx granite
#

u dont need type everything

glass vector
#

does any1 know if it is possible to print a basic txt file using python? and how?

slender jasper
#

how long does it usually take to get assistance in the help chats? Im new

onyx granite
#

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.๐Ÿ˜ข

quasi condor
onyx granite
#

@molten pewter I think you need this plugin

quasi condor
#

the people in VC are generally there to chat about offtopic stuff or to work on their own projects

onyx granite
#

It can start a file service on your machine

wintry pier
#

!e
print("hello")

wise cargoBOT
#

@wintry pier :white_check_mark: Your eval job has completed with return code 0.

hello
somber heath
#

Cassowary.

#

Also see: Emu.

wintry pier
#

Hi

#

@terse needle

#

Networking

cyan palm
#

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

wise cargoBOT
#
Command Help

!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!*

cyan palm
#

!eval

wise cargoBOT
#
Command Help

!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!*

cyan palm
#

!wow

celest haven
#

Hello

abstract schooner
#

guys what should I use for antivirus on my windows

#

pls guide

somber heath
#

Linux.

abstract schooner
#

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

mortal crystal
#

is it like dark souls?

abstract schooner
#

yes yes

#

its by fromsoftware

#

the creator of dark soul

#

its repack is already out so ya

mortal crystal
#

ELEMENTARY

wintry pier
#

!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")

wise cargoBOT
#

@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'}
wintry pier
#

another if the function break down

mortal crystal
#

yeast

rugged tundra
#

!voice

wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

pallid hazel
pallid hazel
#

opal, for all things.. race, sex, age, etc

somber heath
pallid hazel
#

anyways, gn

drifting crystal
#

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

somber heath
#

Rekorderlig

shell bobcat
#

what are we talking about?

#

hi

shell bobcat
#

true

undone idol
#

!e ```py
import math
a = math.factorial(23)
b = math.factorial(41)
c = math.factorial(29)
d = math.factorial(37)
print(ac, bc)

wise cargoBOT
#

@undone idol :white_check_mark: Your eval job has completed with return code 0.

228577379063395778964892338453378050021130240000000000 295779278402837662492380893391898113380438769051120935764211269632000000000000000
undone idol
#

!e py import math a = math.factorial(23) b = math.factorial(41) c = math.factorial(29) d = math.factorial(37) print(a**2)

wise cargoBOT
#

@undone idol :white_check_mark: Your eval job has completed with return code 0.

668326769467589022464821184293345689600000000
undone idol
#

!e ```py
import math
a = math.factorial(23)
b = math.factorial(41)
c = math.factorial(29)
d = math.factorial(37)
print(c**2)

wise cargoBOT
#

@undone idol :white_check_mark: Your eval job has completed with return code 0.

78176755153939869305210274200729021751146846355456000000000000
undone idol
#

!e ```py
import math
a = math.factorial(23)
print(a2425262728293031323334353637383940412425262728292425262728293031323334353637)

wise cargoBOT
#

@undone idol :white_check_mark: Your eval job has completed with return code 0.

6091380958271165294340139910605755337809404176787965272819499008000000000000000
sand fractal
#

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...

wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

2
pallid hazel
#

!e
arr = [10, 5, 3, 2, 4, 2, 3, 5, 6]
set1 = list(set(arr))
print(set1)
print(list(set(arr)))

wise cargoBOT
#

@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]
somber heath
#

@dense steeple Turn on Krisp.

dense steeple
#

I have that

paper tendon
#

Hey German vehicle in Australia ๐Ÿ™‚ @somber heath

cosmic lark
#

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

honest pier
#

2**32 is not magic, it still does mod

cosmic lark
#

hmmm, found out the hard way

#

!e

print(123456 % 2**32)
wise cargoBOT
#

@cosmic lark :white_check_mark: Your eval job has completed with return code 0.

123456
cosmic lark
#

xDDDDDDD

honest pier
#

!e print (123456 % 123457)

wise cargoBOT
#

@honest pier :white_check_mark: Your eval job has completed with return code 0.

123456
honest pier
#

@cosmic lark

cosmic lark
#

!e

print(1234567890 % 2**32)
wise cargoBOT
#

@cosmic lark :white_check_mark: Your eval job has completed with return code 0.

1234567890
cosmic lark
#

hmmmmmmmmmm

honest pier
#

do you understand what mod does?

cosmic lark
#

!e

print(6104161309 % 2**32)
wise cargoBOT
#

@cosmic lark :white_check_mark: Your eval job has completed with return code 0.

1809194013
cosmic lark
#

yes got it

#

makes sense

honest pier
#

!e
print(1234567890 % 1234567891)

cosmic lark
#

it puts out the remainder

#

ik

wise cargoBOT
#

@honest pier :white_check_mark: Your eval job has completed with return code 0.

1234567890
weary zephyr
#

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

honest pier
#

then you understand why that happens

cosmic lark
#

yes

#

i just didnt add the two numbers before doing that

#

my bad

somber heath
wise cargoBOT
#

@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
pallid hazel
#

they should change that to, int too bookoo

tidal shard
somber heath
#

Maybelline Keyboards. Because you're worth it.

#

Now with real skin feel!

rugged root
tidal shard
regal bolt
#

Hello, what's the subject

somber heath
#

Kerberds.

#

Or keyboards.

rugged root
woeful salmon
#

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

woeful salmon
rugged root
#

Never

#

Two reasons