#voice-chat-text-0

1 messages ยท Page 909 of 1

spice oracle
#

i have but like they aren't like background stuff

vast pawn
#

you'd be surprised what takes up resources just by coding normally

spice oracle
#

i only have these

#

but i'm gonna remove some stuff

vast pawn
#

The last one seems expensive

#

AI assisted development, sounds like it's running a model on your local machine

spice oracle
#

it's like normal vsc tho

vast pawn
#

yes, but it uses a machine learning model to assist your development

#

just because it says Visual Studio on it doesn't mean it doesn't use resources

#

and anything AI related is likely to use quite a lot of resources, comparatively

vast pawn
#

Ah right, must have misunderstood your comment then

#

but that would be my first thing to disable if you're having resourcing issues

#

๐Ÿ‘‹ LX and Lemon ๐Ÿ˜„

gentle flint
#

@icy axle

spice oracle
#

WAIT WAIT HLEP HELP HELP

#

MY VSCODE LANG IS CHINESE/JAPANESE

#

WTF

gentle flint
spice oracle
gentle flint
gentle flint
#

there you are

spice oracle
#

this is what i heard "<big word> nvidia <big word> encoder <big word>"

gentle flint
#

fast screen recording using nvidia

#

@spice oracle

spice oracle
#

gotcha

zenith radish
dense ibex
#

NvFBCToGLEnc.c

gentle flint
dense ibex
#

yes

gentle flint
#

nice

spice oracle
#

BRUH

brave steppe
#

Uh oh, what did that damm cat do tho @zenith radish

spice oracle
#

I F-ING HATE windows-key + L

brave steppe
gentle flint
#

I love how his commit is called WORKING

gentle flint
#

it's very useful

spice oracle
# brave steppe ?

you know like you can get some emojis with windows-key + ; but because of my keyboard i accidently click on L

#

bruh i locked my pc again

#

AGAIN...

icy axle
#

Gotta go, see you ๐Ÿ‘‹

spice oracle
#

weird silence

#

i always hated silence

#

hatted or hated ?

brave steppe
#

I'll brb lol

dusky lantern
#

whats he doing in vc?

spice oracle
brave steppe
spice oracle
dusky lantern
#

showing the ven newman diagram?

spice oracle
brave steppe
#

At least my music is still playing

spice oracle
#

12:52 here

brave steppe
#

Australia?

spice oracle
#

but gmt i think

#

my geography is shit

#

but i'm not in india just in case

gentle flint
spice oracle
#

bruh

spice oracle
gentle flint
#

ah

spice oracle
#

no wait

gentle flint
#

so middle of the night

spice oracle
#

windows time broken

#

pm

gentle flint
#

so middle of the day

spice oracle
#

i thought am was like for the morning not the midnight

gentle flint
#

it is

#

11 pm is in the evening

spice oracle
#

it's 12:54 midnight

gentle flint
#

then, at 12, it becomes morning

spice oracle
gentle flint
#

12:30 am is the same as 00:30 am

spice oracle
gentle flint
#

mhm

spice oracle
#

@brave steppe NOOOOOO]

#

JSUT NOOOOOO

#

JUST NOOOOOOOOOOOOOOOOOOOO

#

i hate ;

dusky lantern
#

???

brave steppe
gentle flint
spice oracle
#

i quit c# both because of Console and ;

brave steppe
#

Wait no that's not it

spice oracle
#

NOOOO

#

๐Ÿ˜ญ

#

bruh dced

gentle flint
#

@spice oracle you must be in iran then

#

it's the only place with that timezone I believe

spice oracle
gentle flint
#

hurrah, I remembered correctly

dusky lantern
#

whats better java or python

brave steppe
#

Python :p

dusky lantern
gentle flint
spice oracle
gentle flint
#

kotlin is simply usable java

spice oracle
#

i don't why

#

but i like js more than python

#

i really like syntaxes

#

what was that message that got deleted?, just curious

#

@gentle flint nope

zenith radish
spice oracle
#

i'm gonna read it dw

#

i really wanna stream, but i feel like, both i'm gonna get banned, and roasted

spice oracle
#

i forgot

#

๐Ÿคฆโ€โ™‚๏ธ ๐Ÿคฃ

gentle flint
spice oracle
#

give me perm lmao, don't

tidal salmon
#

I don't have a mic on this computer

#

but hi

spice oracle
#

yo

tidal salmon
#

@leaden comet "...and that's why Java is such a bad language for game development. Literally no one uses it for that. Except Minecraft... which is the most popular video game of all time. Fuck!" -my programming languages professor

#

gameflation

spice oracle
#

i don't like that face

spice oracle
spice oracle
#

@zenith radish why your status is "socks" ?

#

but like..

zenith radish
spice oracle
brave steppe
#

You need to braid it!

dire folio
#

my favourite knot

spice oracle
#

@strong arch DUDE CHILL HERE

spice oracle
#

your welcome

#

it is

#

but like

#

there is another list

#

brb

vivid palm
dire folio
#

only works with 2 of my ties though

spice oracle
vivid palm
#

does it have a name

dire folio
#

Eldridge knot

strong arch
spice oracle
#

bruh the size, my bad

brave steppe
#

*To be added to Discord's list that is

spice oracle
#

do you guys think it's wrong to use jakethedog as a name ?

brave steppe
#

Name for that?

spice oracle
#

@zenith radish since you know go, is go and js the same ? _sorry if i'm dumb _

gentle flint
#

no

#

they are separate and unrelated languages iirc

zenith radish
#

@spice oracle they're as far apart as can be ๐Ÿ˜„

#

they both use c-style syntax i guess

spice oracle
#

hmm

gentle flint
spice oracle
#

do cats have any problem with smoking ?

gentle flint
spice oracle
gentle flint
#

less

#

tho you still get glycerine deposits on everything

#

including in lungs

#

smoking cigarettes is really about as bad as you get

spice oracle
#

@strong arch i do know

#

here

#

@strong arch i do know how to make stuff since i have like 57 commands, and other stuff as well, but i don't think you can get every messages

leaden comet
#

!source clean

wise cargoBOT
#
Command: clean

Commands for cleaning messages in channels.

Source Code
spice oracle
#

oh yeah history

#

here

spice oracle
#

yeah that is good

#
async for message in channel.history(limit=100):
    # do what you want with it
#

hmm got it

#

yes ?...

gentle flint
#

@noble copper can you post the website

spice oracle
#

i had this problem with pokemon apis as well, i downloaded every f-ing information, but i quit cause there was a lot of pokemons

#

pain

gentle flint
#

k

noble copper
spice oracle
#

btw if anyone needed help with dpy or discord bots, i'm happy to help here ๐Ÿ‘

gentle flint
#

thanks

#

that's literally a link to api docs

#

so what's the problem

spice oracle
#

no it's not gonna, but like you can use other forks as well,

#

edpy is currently the best, since it's not gonna need any new writing stuff

spice oracle
stuck furnace
#

Yes!

#

Tonnes of new features actually.

gentle flint
stuck furnace
#

Python 4.0

#

It's a Pydis exclusive.

gentle flint
#

4.0.0beta

spice oracle
#

@zenith radish just curious why do you have a hello kitty blanket

gentle flint
#

it's just kinda how he is

noble copper
gentle flint
#

k

stuck furnace
#

Ah, have you seen Beazley made his course materials free?

brave steppe
#

Oh, that's dope

stuck furnace
leaden comet
#

coupon code OCT2021FREE

stuck furnace
#

I heard my name ๐Ÿ‘€

#

Kakoune ftw!

spice oracle
#

it was live server if i remember correctly

#

yes

#

"terminal.integrated.defaultProfile.windows": "Command Prompt", for example

leaden comet
gentle flint
brave steppe
#

|

spice oracle
#

welp brb

#

ok i'm back

stuck furnace
#

No games!

#

Nah, it's ok at the weekend, I think ๐Ÿ‘€

spice oracle
#

what is this game

#

@brave steppe

brave steppe
#

Celeste

spice oracle
#

just wondering why is screen-sharing not available ?

strong arch
#
(await func()).field;
#
func().await.field;
gentle flint
spice oracle
#

i really feel like lemon is a scary and angry guy, not because he is the server owner, but he looks scary, sorry if that was offensive ๐Ÿคฆโ€โ™‚๏ธ

#

@dire folio can you send an screenshot

gentle flint
#

I know it says this is for vista

#

but the method hasn't changed

#

and this guide nicely explains how it works

dire folio
#

thanks

dire folio
brave steppe
#

๐Ÿ‘‹ see you all

#

Gotta get up in ~9 hours-ish

zenith radish
dire folio
paper tendon
#

trollololololo sounds

#

dude have lively sounds in di head

#

Go eat concrete is better then eating a Mac :)

#

what is the name of the platformer @leaden comet

dire folio
#

Celeste

paper tendon
#

platformers are boring

vivid palm
#

boo

dire folio
dense ibex
#

@vivid palm this is where I found scout today

dire folio
gentle flint
#

hi @somber heath

gentle flint
#

can't speak anymore cuz it's too late
so I'll type instead

#

serious doubt @zenith radish

leaden comet
#

alright, I'm crashing.

gentle flint
#

gn

somber heath
#

I shall make a language. It shall be called "Wall".

#

It shall be scalable.

gentle flint
#

I'm also going to bed

#

good night

#

@zenith radish

zenith radish
#

@gentle flint โค๏ธ

somber heath
#

I think any sort of particulate in the lungs is bad news.

#

Generally speaking.

#

Unless it's something like water or asthma medication.

#

and not to the point where you're drowning in either

dense ibex
#

!u

wise cargoBOT
#
jake (\_jake#0169)

hypesquad_bravery

User information

Created: <t:1580002257:R>
Profile: @dense ibex
ID: 670802831678373908

Member information

Joined: <t:1609774606:R>
Roles: <@&267630620367257601>, <@&585529568383860737>, <@&764245844798079016>, <@&764802720779337729>, <@&463658397560995840>, <@&542431903886606399>

Infractions

Total: 4
Active: 0

zenith radish
#

r5p[;'''''''''''''''''''''',m[''''''''''';;;;;;;;;;;;;;;;;7;8

somber heath
#

Yes, LP. That's your keyboard.

#

You use your fingers on it. Not your face.

tight anvil
#

hmmmm

haughty pier
#

!u

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

pliant slate
#

hi

#

hi

#

@somber heath man i have problem

somber heath
#

hm?

pliant slate
#

why i click enter i see nothing

#

like i shoud see enter something

#

w = int(input("enter something"))
q = int(input("enter something"))

def sum(a,b) :
return a + b

print(sum(w,q))

#

this my programm

somber heath
#

sum is actually a builtin function, so you shouldn't be creating a variable with the same name, overwriting it.

#

You have two inputs.

#

Are you pressing enter twice?

pliant slate
#

no

#

1 time

somber heath
#

!e py a = sum((1,2)) print(a)

wise cargoBOT
#

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

3
somber heath
#

Rude. I thought sum took * or one iterable.

#

!d sum

wise cargoBOT
#
sum

sum(iterable, /, start=0)```
Sums *start* and the items of an *iterable* from left to right and returns the total. The *iterable*โ€™s items are normally numbers, and the start value is not allowed to be a string.

For some use cases, there are good alternatives to [`sum()`](https://docs.python.org/3.10/library/functions.html#sum "sum"). The preferred, fast way to concatenate a sequence of strings is by calling `''.join(sequence)`. To add floating point values with extended precision, see [`math.fsum()`](https://docs.python.org/3.10/library/math.html#math.fsum "math.fsum"). To concatenate a series of iterables, consider using [`itertools.chain()`](https://docs.python.org/3.10/library/itertools.html#itertools.chain "itertools.chain").

Changed in version 3.8: The *start* parameter can be specified as a keyword argument.
somber heath
#

Only iterable. Okay.

cobalt dune
#

hallo

pliant slate
#

like i think sublime text have problem

#

i cant get why my cod is running bad

somber heath
#

Have you tried entering in one number, pressing enter, entering another number, then pressing enter?

#

Oh. Hm.

#

I see.

#

I just looked at your screenshot again.

#

Yeah, that's not your code that's the problem.

#

Something's gone weird.

pliant slate
pliant slate
#

you right

cobalt dune
#

can you open a console inside sublime? I know it's not solving the problem but it might solve it

whole bear
#

hmmmm

#

well

pliant slate
#

yes

whole bear
#

i so not use sublime

#

ok

#

we can

pliant slate
#

i can open console in sublime

#

e

#

yes 11

whole bear
#

nie

#

nice

pliant slate
#

are yoy indian?

whole bear
#

yse

#

i am a indian

#

my name suggest that

#

harsh 'pipaliya' clearly indian

#

lol

pliant slate
#

a lot of indian people are programmers i guess)

whole bear
#

true

pliant slate
#

its cuz you live in poor country which make you learn it and make big money

whole bear
#

wait

#

you also are a indian right

pliant slate
#

nope

#

russian

whole bear
#

ohh

#

ok

#

india isnt a poor country roday though

#

sry

#

keyboard is broke today so i keep makeing typos

#

lol

pliant slate
#

ok

whole bear
#

ill get a new keyboard today

pliant slate
whole bear
whole bear
#

lke

#

like

pliant slate
whole bear
#

dammn i hate typos

#

yeah

pliant slate
#

1900 is poor

whole bear
#

ok

pliant slate
#

man

whole bear
#

ok

#

compared to russia russi awins

#

8Wins

pliant slate
#

yeah

whole bear
#

ahhhh!!!

#

typos

#

sry

pliant slate
#

)

whole bear
#

i keep makeing typs

#

lol

#

*wins

#

ok

#

ok

whole bear
#

ok i gtg

#

bye

pliant slate
#

bye

whole bear
#

i need to have breakfast

#

why dont you guys take in the vc

#

voice channel

pliant slate
#

cuz i need to be here 3 days

whole bear
#

ok

pliant slate
#

i cant solve my problem(

whole bear
#

i can hlep you

#

wait

#

go to

pliant slate
#

maybe i need reinstall sublime text?

#

do you use sublime text?

whole bear
#

uhh

#

no

#

i use

#

pycharm

#

and vs code on ceratin situtation

#

also i f you want to unmute in vc then

#

go to bot channel

#

and typr in

#

!voceverify

wise cargoBOT
#

You are not allowed to use that command.

whole bear
#

see'

#

!voiceverify

#

!voiceverify

#

!voceverify

wise cargoBOT
#

You are not allowed to use that command.

somber heath
#

It's also a command for the voice verification channel, isn't it?

#

Or does it tell you to do it in here?

#

I can't see the channel anymore because I've passed the voice gate.

pliant slate
#

!voceverify

wise cargoBOT
#

You are not allowed to use that command.

pliant slate
#

i wanted to call somebody in dm who wanna help me with that

#

i mean solving my pb

#

maybe its proble, windows 11?

somber heath
#

You could try switching IDEs.

pliant slate
#

i will try)

pliant slate
#

i unistall interpreter in D disk and i see same shit)

gentle flint
#

@limber iron I love how you just randomly join voice chat after being inactive since March

stoic grail
#

Lol og's coming back

gentle flint
flat sentinel
#

vb

gentle flint
#

he's only sent 29 messages

stoic grail
whole bear
#

hey @native hazel

gentle flint
somber heath
#

Sweet and salty is fairly common in I think Indonesian food.

#

It's not exactly sweet.

#

May be.

#

"I'm better than all of you."

#

Isn't Moh the hardness rating for things?

gentle flint
somber heath
#

Like diamonds and stuff.

gentle flint
#

@verbal hemlock restarted client, it's still the case

#

I have this song stuck in my head

somber heath
#

By one person?

#

"Get a job!"
"This is my job! I'm a network technician! I'm stress testing!"

gentle flint
#

will they snap?

somber heath
#

Will it blend?

#

I rather suspect not.

#

Olive or otherwise?

#

Ah, yes. Olive oil lubricating our nuclear power plants.

#

Those rods don't slide up and down without help.

gentle flint
somber heath
#

We scan qr codes of locations.

#

We don't have personal qr codes that are scanned.

#

If our government were organised, vaccination proof would have been issued at location, but noo.

#

We have to navigate a degrading, byzantine abomination of a beaurocracy to get it

#

I've had my two, but no paperwork of value to show for it.

#

re: Base...45, was it? What's Government without the Kafkaesque and arbitrary?

#

"What's the weirdest possible way we could do this? Let's do it that way because lol."

gentle flint
#

Base45, yeah

#

they've also submitted an IETF draft for it

somber heath
#

People have been forging vax paperwork, here. So the police aren't even accepting official paperwork as proof. They want to only trust apps on people's phones bringing up a thing saying they're vaxed, which is arguably just as forgable.

gentle flint
#

time to try it

#

what shall I do

#

hmmm

zenith radish
coarse cape
#

sup LP ๐Ÿ‘‹

#

@wind raptor may i play with you?

#

ive had 1 year of chess xp

#

im still a noob tho

#

i left chess classes 3 months ago

#

im GladiatorX

#

in lichess

#

@zenith radish may i play with you after this mate?

#

or not?

zenith radish
coarse cape
#

@zenith radish thats me ๐Ÿ˜„

sinful igloo
#

Really good game

#

@zenith radish, Can I play the game with you

#

This game is nice dude

#

Btw Did you make this @zenith radish

#

Ok

#

Epic

#

Got to go

coarse cape
#

gg's

#

alright

#

yo im trash

zenith radish
#

nono it was good game

coarse cape
#

imma head out boys

sinful igloo
#

Why I canโ€™t hear anything

gentle flint
#

@sinful igloo we can all hear you

#

fix your audio

sinful igloo
#

I canโ€™t hear you

#

When I wear my headphones

coarse cape
#

yo im back

stuck furnace
#

Hello

coarse cape
#

heyyy

#

@zenith radish have you tried VSCode?

#

as an editor?

zenith radish
#

ye I used it for a while

coarse cape
#

oh

#

wasnt it good to use?

#

i mean it has tons of features

#

any reason that you switched to emacs/vim?

#

ive been thinking about it for a while now

#

ah

#

like emacs extension?

#

which gets the doom keybindings to vscode?

woeful salmon
#

you can with the command pallete but its still harder than just using vim binds ,etc

#

@slim shale look at github codespaces they are free rn too

slim shale
#

oh i'll check it out

coarse cape
#

its like vscode

#

but on a browser

woeful salmon
woeful salmon
#

you can connect to it through your vs code as well

coarse cape
#

@zenith radish - So are you rendering a GPU from a serverless instance or uhh from your native computer or an Amazon Instance kind?

gentle flint
#

@wintry pier could you mute yourself please

zenith radish
#

This is whatโ€™s stuck in my head

gentle flint
#

thank you

gentle flint
knotty karma
#

Hi

zenith radish
primal yacht
gentle flint
#

second one

primal yacht
zenith radish
gentle flint
#

een boom vol vogels

#

a tree full of birds

zenith radish
#

Medis pilnas paukลกฤiลณ

#

ล eลกios ลพฤ…sys su ลกeลกiais ลพฤ…syฤiais

#

sheshios zhasees soo sheshyays zhaseechyays

woeful salmon
zenith radish
#

ะŸะตั€ะตะทะฐะปะธะฒ ะฒะธะดะตะพ ะธะท ะผะพะตะณะพ ะธะฝัั‚ะฐะณั€ะฐะผะฐ ะฒ HD ะบะฐั‡ะตัั‚ะฒะต.
ะะฐ ะฒะธะดะตะพ ั‚ะฐะบ ะถะต ะฟั€ะธััƒั‚ัั‚ะฒัƒัŽั‚:
https://www.instagram.com/johngradei
https://www.instagram.com/tim_tkachenko_c

ะšะฃะŸะ˜ะขะฌ ะขะ ะ•ะš ะœะžะ–ะะž ะ—ะ”ะ•ะกะฌ:
https://satanenko.bandcamp.com/album/-

ะŸะžะกะ›ะฃะจะะขะฌ ะœะžะ™ ะ ะ•ะœะ˜ะšะก ะœะžะ–ะะž ะ—ะ”ะ•ะกะฌ:
https://soundcloud.com/repenie/animal-religion-gospod-iisus-khristos

ะœะพะน ะธะฝัั‚ะฐะณั€ะฐะผ/My...

โ–ถ Play video
rough trench
#

can someone help me with making an ATM

gentle flint
zenith radish
#

โ€ข ะ”ะ•ะ›ะะ™ ะ ะ•ะŸะžะกะข ะžะขะกะฎะ”ะ https://vk.com/lidamudota?w=wall-147725517_94262

โ€ข ะคะ ะ˜ะš ะŸะะขะ˜ - https://vk.com/freak.party

โ€ข ะŸะžะšะฃะŸะะ™ ะœะ•ะ ะง ะ—ะ”ะ•ะกะฌ - https://www.instagram.com/serioznyi_magazin4ik/

โ€ข ะœะพั ะณั€ัƒะฟะฟะฐ ะฒ ะฒะบ - https://vk.com/lidamudota?w=wall-147725517_94262

โ€ข ะœะพะน ะ˜ะฝัั‚ะฐะณั€ะฐะผ
https://www.instagram.com/kingofthesperma/

ะŸะะ ะ•ะะฌ ะšะžะขะžะ ะซะ™ ะŸะ˜ะกะะ› ะ“ะ˜ะขะะ ะฃ htt...

โ–ถ Play video
wise cargoBOT
#

Hey @rough trench!

Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:

โ€ข If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)

โ€ข If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:

https://paste.pythondiscord.com

zenith radish
rough trench
#
  1. The program should initialize with two variables, one called balance that starts with a float
    of 0, and one called otherBalance that also starts with a float of 0.
zenith radish
#
balance = 0.0
otherBalance = 0.0```
#

Ik ben een pannenkoek.

woeful salmon
#

just put "emacs is the next pandemic"

#

you're spreading it daily anyway

gentle flint
#

I need to go

#

bye LP

zenith radish
#

๐Ÿ˜ฆ

#

goobye @gentle flint

#

I miss you already

primal yacht
#
Vi

vi (pronounced as distinct letters, ) is a screen-oriented text editor originally created for the Unix operating system. The portable subset of the behavior of vi and programs based on it, and the ex editor language supported within these programs, is described by (and thus standardized by) the Single Unix Specification and POSIX.The original co...

zenith radish
coarse cape
#

sup peopleee ๐Ÿ‘‹

woeful salmon
#

wait anyone from france here?

rough trench
#

Using Python, create a program that will act as an ATM software.

  1. The program should initialize with two variables, one called balance that starts with a float
    of 0, and one called otherBalance that also starts with a float of 0
#

anyone know how to code that?

zenith radish
#

@rough trench

rough trench
#

ohh i didn't see that message sorry

coarse cape
#

LP, howz it been coming along? like the web thing you were making?

woeful salmon
#

i'mma go get some food brb

bronze quest
#

yes

zenith radish
#

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

smoky inlet
#

Added files

#

what's wrong?

zenith radish
#

evemu

smoky inlet
#

All changes in the file

gentle flint
#

hi lp

#

I'll be in vc in a bit

zenith radish
#

owo

gentle flint
#

uwu

#

joe_maverick
๐Ÿ‘—
๐Ÿงฆ

smoky inlet
#
from flask import Flask
from flask_login import LoginManager, login_user, UserMixin

app = Flask(__name__)
app.config["SECRET_KEY"] = "abcdef"
login_manager = LoginManager(app)


class User(UserMixin):
    def __init__(self, identificator):
        self.identificator = identificator

    def get_id(self):
        return self.identificator

    @staticmethod
    def load_user(user_id):
        user = User(user_id)
        return user


@login_manager.user_loader
def load_user(user_id):
    return User.load_user(user_id)


@app.after_request
def ar(response):
    print(response.headers)
    return response


@app.route("/")
def main():
    user = User(1234)
    if user is not None:
        login_user(user)
        return "Should be logged in"
    return "At first log in"
zenith radish
smoky inlet
#

print(response.headers["session"])

gentle flint
rough trench
#

the song sucks

vivid palm
spice oracle
#

hewwo

solemn hornet
spice oracle
#

bruh discord broken

zenith radish
rough trench
#
print("Welcome to Rayyan's ATM")
balance = 0.0
otherBalance = 0.0
def getBalance():
    return balance
def getOtherBalance():
    return otherBalance
#

iii) printBalances()
โ–  This should call getBalance() and getOtherBalance(), and print the returned values out with a dollar symbol and two decimal places (i.e., $10.99)

#

anyone know how to do this step?

#
print("Welcome to Rayyan's ATM")
balance = 0.0
otherBalance = 0.0
def getBalance():
    return balance
def getOtherBalance():
    return otherBalance
def printBalances():
gentle flint
#

!e

def myfunction(x):
    return x*3

print(myfunction(2))
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

6
gentle flint
#
def myfunction(x):
    return x*3

y = myfunction(2)
print(y)
#

!e

def myfunction(x):
    return x*3

print(myfunction(3))
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

9
gentle flint
#

@rough trench

#

gordon's, gnoss

rough trench
#
print("Welcome to Rayyan's ATM")
balance = 0.0
otherBalance = 0.0
def getBalance():
    return balance
def getOtherBalance():
    return otherBalance
def printBalances():
    balance1=getBalance()
    otherbalance1=getOtherBalance()
    print("Balance $",balance1)
    print("OtherBalance $",otherbalance1)
#

iii) printBalances()
โ–  This should call getBalance() and getOtherBalance(), and print the returned values out with a dollar symbol and two decimal places (i.e., $10.99) (Hint: you can use format() function here to print the returned values)

#

@gentle flint is this correct for the question now?

gentle flint
#

!e

name = "John"
print(name)
print("Hi")
print(f"Hi {name}!")
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

001 | John
002 | Hi
003 | Hi John!
zenith radish
daring orbit
#

Hello all

inner iris
#

spice might be old but its still good

rough trench
#
print("Welcome to Rayyan's ATM")
balance = 0.0
otherBalance = 0.0
def getBalance():
    return balance
def getOtherBalance():
    return otherBalance
def printBalances():
   print(f"getBalance ${balance()}")
   print(f'{balance:.2f}')
   print(f"getOtherBalance ${OtherBalance()}")
   print(f'{OtherBalance:.2f}')
gentle flint
#

getOtherBalance()

#

print(f"OtherBalance ${getOtherBalance()}")

#

@rough trench I need to go, sorry

#

I suggest you ask someone else

rough trench
#
rint("Welcome to Rayyan's ATM")
balance = 0.0
otherBalance = 0.0
def getBalance():
    return balance
def getOtherBalance():
    return otherBalance
def printBalances():
   print(f"Balance ${getBalance()}")
   print(f'{balance:.2f}')
   print(f"OtherBalance ${getOtherBalance()}")
   print(f'{otherBalance:.2f}')
def deposit(money):
    balance=getBalance()
    balance+=money
    print("Money Deposit Successful")
def withdrawl(money):
    balance=getBalance()
    balance-=money
def transfer(money):
    balance+=otherBalance
    print("Money has been transferred from balance to otherBalance")
    
while True:
        print("""Please select from the following
              1. balance
              2. otherBalance
              3. balance & otherBalance
              4. Deposit money into balance
              5. withdraw money from balance 
              6. transfer money from balance to otherBalance
              7. Exit""")
halcyon flare
#

selection = input()

loud raptor
rough trench
#
balance = 0.0
otherBalance = 0.0
def getBalance():
    return balance
def getOtherBalance():
    return otherBalance
def printBalances():
   print(f"Balance ${getBalance()}")
   print(f'{balance:.2f}')
   print(f"OtherBalance ${getOtherBalance()}")
   print(f'{otherBalance:.2f}')
def deposit(money):
    balance=getBalance()
    balance+=money
    print("Money Deposit Successful")
def withdrawl(money):
    balance=getBalance()
    balance-=money
def transfer(money):
    balance+=otherBalance
    print("Money has been transferred from balance to otherBalance")
    
while True:
        print("""Please select from the following
              1. balance
              2. otherBalance
              3. balance & otherBalance
              4. Deposit money into balance
              5. withdraw money from balance 
              6. transfer money from balance to otherBalance
              7. Exit""")
        selection = input("Please enter a number for the corresponding option you would like to use: ")
        
        if selection in ('7'):
            break
        if selection in ('1'):
            print("Your total balance is", balance)
        elif selection in ('2'):
            print("Your total otherBalance is", otherBalance)
        elif selection in ('3'):
            print(balance , otherBalance)
        elif selection in ('4'):
            total = float(input("How much would you like to deposit: "))
            print(balance + total)
        elif selection in ('5'):
            total2 = float(input("How much would you like to withdrawl: "))
            print(balance - total2)
        elif selection in ('6'):
            total3 = float(input("How much money would you like to transfer: "))
            print(balance - total3)
            print(otherBalance + total3)
#

You must write appropriate function calls in the program when the user selects a
Call getBalance() to print the balance, call getOtherBalance() to print otherBalance, call printBalance() to print both balance and otherBalance, call deposit(money) to deposit money into balance, call withdraw(money) to withdraw money from balance and call transfer(money) to
transfer money from balance to otherBalance

strong arch
#

if selection == '7':

halcyon flare
#
if selection == '1':
            print("Your total balance is", getBalance())```
sage dirge
#

Bubbly, you sound almost exactly like JQ quintel

#

@trim saffron

#

the creator of regular show, voice of mordecai

rough trench
#
while True:
        print("""Please select from the following
              1. balance
              2. otherBalance
              3. balance & otherBalance
              4. Deposit money into balance
              5. withdraw money from balance 
              6. transfer money from balance to otherBalance
              7. Exit""")
        selection = input("Please enter a number for the corresponding option you would like to use: ")
        
        if selection in ('7'):
            break
        if selection == ('1'):
            print("Your total balance is", getBalance())
        elif selection == ('2'):
            print("Your total otherBalance is", getOtherBalance())
        elif selection == ('3'):
            print(printBalances())
        elif selection == ('4'):
            total = float(input("How much would you like to deposit: "))
            print(deposit())
        elif selection == ('5'):
            total2 = float(input("How much would you like to withdrawl: "))
            print(withdrawl())
        elif selection == ('6'):
            total3 = float(input("How much money would you like to transfer: "))
            print(transfer())
trim saffron
#
def deposit(money: float)
somber heath
#

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

somber heath
#

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

halcyon flare
#

The next method for a linked list Iterator object will require ฮ˜(n) steps in the worst case because it must include a loop to iterate from the head of the list to the the current position.

balmy carbon
#

can i takj

somber heath
balmy carbon
#

yeah

#

i have to write many woed

#

in the chat

#

i try got muted

#

because

somber heath
#

Use your sentences. ๐Ÿ˜

balmy carbon
#

sentance\

#

MeA sublime_T_Boy โ€” 09/28/2021
ok
CodingInMyVeins โ€” 09/28/2021
you should swich to vc0 i guess
MeA sublime_T_Boy โ€” 09/28/2021
hlo
brother
PureEvil โ€” 09/28/2021
@round prawn
Monker โ€” 09/28/2021
ยฟ
Monker โ€” 09/29/2021
Image

halcyon flare
#

The Queue is an appropriate ADT for implementing an "undo" feature.

strong arch
#
fn3(fn2(fn1(x)))
f |> fn1 |> fn2 |> fn3
somber heath
#

!e py a = 0 b = a.__add__(1).__mul__(5).__truediv__(3) print(b)Ha.

wise cargoBOT
#

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

1.6666666666666667
stuck furnace
#

Heyy, what you guys talking about? ๐Ÿ‘€

strong arch
balmy carbon
#

Can you guys disable voice verify

rough trench
#
while True:
        print("""Please select from the following
              1. balance
              2. otherBalance
              3. balance & otherBalance
              4. Deposit money into balance
              5. withdraw money from balance 
              6. transfer money from balance to otherBalance
              7. Exit""")
        selection = input("Please enter a number for the corresponding option you would like to use: ")
        
        if selection == ('7'):
            break
        if selection == ('1'):
            print("Your total balance is", getBalance())
        elif selection == ('2'):
            print("Your total otherBalance is", getOtherBalance())
        elif selection == ('3'):
            print(printBalances())
        elif selection == ('4'):
            total = float(input("How much would you like to deposit: "))
            print(deposit(total))
        elif selection == ('5'):
            total2 = float(input("How much would you like to withdrawl: "))
            print(withdrawl(total2))
        elif selection == ('6'):
            total3 = float(input("How much money would you like to transfer: "))
            print(transfer(total3))
stuck furnace
#

Erm, this?

balmy carbon
#

I just wanna talk i donโ€™t want text

stuck furnace
#

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

balmy carbon
#

So annoying

rough trench
stuck furnace
#

I guess engineering is more tangible than programming.

#

Yeah, same ๐Ÿ˜„

#

Yep @wild oxide

#

What would you like to stream?

#

Nahhh ๐Ÿ˜„

#

๐Ÿ‘€

#

Subversion?

#

Are you guys excited for the release of Python 3.10? ๐Ÿ˜„

#

We're streaming the release.

#

A couple of pretty big things.

#

Structural pattern matching is the big one.

#

Ah, you should have come to our pattern matching event ๐Ÿ˜„

#

But yeah, tune in at... sometime later today https://www.youtube.com/watch?v=AHT2l3hcIJg

Python 3.10 is set to be released on 4 October 2021. Join us live in our Python 3.10 Release Stream with Pablo Galindo, CPython Core Developer and Python 3.10 Release Manager, and Leon Sandรธy.

Links:

โ–ถ Play video
#

5PM UTC

#

Yep

#

Erm, paste your code, click save, then copy the url.

trim saffron
sage dirge
#

am i good to join and ask a quick question? its just something small i wanna get out of the way

rough trench
#
print("Welcome to Rayyan's ATM")
balance = 0.0
otherBalance = 0.0
def getBalance():
    return balance
def getOtherBalance():
    return otherBalance
def printBalances():
   print(f"Balance ${getBalance()}")
   print(f'{balance:.2f}')
   print(f"OtherBalance ${getOtherBalance()}")
   print(f'{otherBalance:.2f}')
def deposit(money):
    balance=getBalance()
    balance+=money
    print("Money Deposit Successful")
def withdrawl(money):
    balance=getBalance()
    balance-=money
    if balance == (0):
        print("Money is withdrawn successfully")
        print("Invalid input! Money entered should be greater then zero and less then or equal to balance")
def transfer(money):
    global balance
    balance+=otherBalance
    print("Money has been transferred from balance to otherBalance")
    
while True:
        print("""Please select from the following
              1. balance
              2. otherBalance
              3. balance & otherBalance
              4. Deposit money into balance
              5. withdraw money from balance 
              6. transfer money from balance to otherBalance
              7. Exit""")
        selection = input("Please enter a number for the corresponding option you would like to use: ")
        
        if selection == ('7'):
            break
        if selection == ('1'):
            print("Your total balance is", getBalance())
        elif selection == ('2'):
            print("Your total otherBalance is", getOtherBalance())
        elif selection == ('3'):
            print(printBalances())
        elif selection == ('4'):
            total = float(input("How much would you like to deposit: "))
            print(deposit(total))
        elif selection == ('5'):
            total2 = float(input("How much would you like to withdrawl: "))
            print(withdrawl(total2))
        elif selection == ('6'):
            total3 = float(input("How much money would you like to transfer: "))
            print(transfer(total3))
#

anyone know I can make it where when the person is depositng money the number can't be negative or 0

#

and if they do they'll get an invalid message

sage dirge
trim saffron
#

if money < 0 or money == 0:

halcyon flare
#

if money <= 0

trim saffron
#

check this out

#

@haughty pier

haughty pier
whole bear
#

hello everyone

haughty pier
#

@wild oxide we were reviewing the deque c code in the above link

#

@wild oxide your voice is kinda muffled so @-me directly here if you're talking to me.

dire kite
mild agate
digital valve
#

can someone help me with a python code

grim adder
digital valve
#

ok

tawdry void
#

hello

somber heath
#
Emu

The emu (Dromaius novaehollandiae) is the second-largest living bird by height, after its ratite relative, the ostrich. It is endemic to Australia where it is the largest native bird and the only extant member of the genus Dromaius. The emu's range covers most of mainland Australia, but the Tasmanian, Kangaroo Island and King Island subspecies b...

#

Casuarius is a genus of birds in the order Casuariiformes, whose members are the cassowaries. It is classified as a ratite (flightless bird without a keel on its sternum bone) and is native to the tropical forests of New Guinea (Papua New Guinea and Indonesia), Aru Islands (Indonesia), and northeastern Australia.Three species are extant: The mos...

vital rampart
#

yeah

#

hello

#

hello

#

yeha it seems like iw ont bee able to spek

#

i need 50 messages

#

where are you from?

#

ahhhhh and whta brings you to the server

#

i seee

#

are you emplloyed?

#

oh yeah

#

lemme pull it up

#

ii wish i could steaam it

#

can i dm picures of them to you

somber heath
#

!code

vital rampart
#

i seee

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.

somber heath
#

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

vital rampart
#

i don tthin kim allowed to show my homework haha

#

im working with tuples

somber heath
#

!d tuple

wise cargoBOT
#

class tuple([iterable])```
Tuples may be constructed in a number of ways:

โ€ข Using a pair of parentheses to denote the empty tuple: `()`

โ€ข Using a trailing comma for a singleton tuple: `a,` or `(a,)`

โ€ข Separating items with commas: `a, b, c` or `(a, b, c)`

โ€ข Using the [`tuple()`](https://docs.python.org/3.10/library/stdtypes.html#tuple "tuple") built-in: `tuple()` or `tuple(iterable)`...
vital rampart
#

this problem is more so math i think

#

drawing a polygon

#

i ahve more information

#

let me pull itup

#

okie

#

oh yeah i heard numpi is something i needed

somber heath
#

!e ```py
import numpy as np

alpha = np.array([1,2,3])
beta = np.array([2,3,4])
print(alpha-beta)```

wise cargoBOT
#

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

[-1 -1 -1]
vital rampart
#

ahh

#

the thing about the problem is i dont know what theyre particualrly asking

#

haha

#

what are fractals again?

somber heath
vital rampart
#

loloks

#

like a butt

#

oh yeah

#

in loop

#

in the inside

#

wow you sound like a professor

#

you seem full of wisdom

#

any kangaroos show up at your front door waiting fight

#

WHAT

#

really

#

thats so crazy

#

your lobsters

#

are something else

#

oh yeaah im gonna figure out what a kink is

#

ok im taking vector calculus and have taken linear algebra

#

ohhh

#

i think i maay get it

#

this is quite easy

#

they aalready give you rthte formulas

somber heath
#
>>> x0, y0 = 1,2
>>> x1, y1 = 3,4
>>> xv,yv = x1-x0, y1-y0
>>> v = -yv, xv #I assume this is right and they don't mean v = -yv, -xv
>>> v
(-2, 2)```
#

So this is a bit like writing

#
>>> x0 = 1
>>> y0 = 2```etc
#

It's called packing and unpacking.

#

!e a, b = 1,2,3

wise cargoBOT
#

@somber heath :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ValueError: too many values to unpack (expected 2)
somber heath
#

!e a,b = 1,2

wise cargoBOT
#

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

[No output]
somber heath
#

!e a, b = "A"

wise cargoBOT
#

@somber heath :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ValueError: not enough values to unpack (expected 2, got 1)
somber heath
#

I could write each thing on its own line, but I don't need to.

vital rampart
#

wiat

#

is this the kink function?

#

im confused

somber heath
#

I've just walked through the specified v = in the first image example you gave

vital rampart
#

i see

somber heath
#

The "perpendicular direction"

vital rampart
#

can you help explain numpy usuage to me agian

#

i havent touched on it

somber heath
#

Sure.

vital rampart
#

in aa long time

somber heath
#

So numpy can store things in n-dimensional arrays.

#

!e py import numpy as np arr = np.array([1,2,3,4,5]) print(arr.shape) #What "shape" does this array have? print(arr.ndim) #How many dimensions does this array have?

wise cargoBOT
#

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

001 | (5,)
002 | 1
somber heath
#

There we go.

#

So here, it shows that the first dimension has a size of 5.

#

It's a tuple, because we might have more than one dimension.

#

!e py import numpy as np arr = np.array([0,0,0]) for i in range(5): arr += [1,2,3] print(arr)

wise cargoBOT
#

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

001 | [1 2 3]
002 | [2 4 6]
003 | [3 6 9]
004 | [ 4  8 12]
005 | [ 5 10 15]
vital rampart
#

can i not do this without numpy

gentle flint
#

hi guys

vital rampart
#

aalright thxx

somber heath
#

!e py import numpy as np arr = np.array([1,2,3]) print(arr * 5)

vital rampart
#

so i should probably use numpy for

wise cargoBOT
#

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

[ 5 10 15]
vital rampart
#

my code

#

whats teh difference between numpy array and list

#

wait

#

what methods does numpy arraay haave

#

and why would i use it

#

for my project

#

aadd and subtractin gis easier?

#

iseee

#

damn

#

for coordinatres

#

waht data structure

#

should i use

somber heath
#

!e ```py
import numpy as np
import math

def unit_vector(degrees):
radians = math.radians(degrees)
return math.sin(radians), math.cos(radians)

#Imagine we're at point 0,0
position = np.array([0,0], dtype=float)

#We want to travel 100 units
magnitude = 100

#along a heading of 32 degrees
uv = np.array(unit_vector(32), dtype=float)

position += uv * magnitude

print(f"{position = }")```

wise cargoBOT
#

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

position = array([52.99192642, 84.80480962])
somber heath
#

Each element of uv, the unit vector, gets multiplied by the magnitude, 100.

#

Here, resulting in our final position.

vital rampart
#

oh mana

#

so do you think you can help me on the fucntion

#

im still kinda confusde

#

haha

#

lemme take a shot at it

somber heath
#

So that's how numpy arrays are handy for positional values.

#

So you can do this with lists, but there's a bunch of subscription you need to do

#

Numpy is better.

#

brb

vital rampart
#

kk

#

im baacak

somber heath
#

Okay.

#

So. Now that my head's on straighter.

#

How long have you been doing Python?

vital rampart
#

uh i took two community classes over the usmmer

#

but im in college now

#

so everything is blank

#

lOL

somber heath
#

Right.

vital rampart
#

do you think i can dm you my stuff if you dont mind

somber heath
#

In this Python Beginner Tutorial, we will start with the basics of how to install and setup Python for Mac and Windows. We will also take a look at the interactive prompt, as well as creating and running our first script. Let's get started.

Mac Install: 1:25
Windows Install: 5:44
Installs Complete: 8:37

Watch the full Python Beginner Series he...

โ–ถ Play video
vital rampart
#

i don tfeel comfortable putting the probelm and code in public

#

since im scaared i maay get in trouble

#

or somehting

#

"cant shaare code"

somber heath
#

I'm not going to do your work for you, but I can certainly show you things about Python and ways you can use it that may be relevant to your crafting your own solutions to given problems.

vital rampart
#

my thought process

#

is to inptu all the formula for these varaiables

somber heath
#

Mhm.

vital rampart
#

i need to find this anad initialiZe it

somber heath
#

A function would be a good thing to use.

#

You would have to decide how you're going to feed the parameters to the function.

#

Are they all individual? x0, y0, x1, y1? Or are they p and q?

vital rampart
#

indiviudal

somber heath
#

Okay.

#
def func(a,b,c,d):
    ...```
vital rampart
#

my parameters are arleready given

#

which is p0

#

aand p1

somber heath
#

Ah. Yes.

#

Okay, so, amending my earlier question.

#

But you could still form p and q within the function from the function arguments.

#

e = np.array([a,b])
f = np.array([c,d])

#

Subtracting the elements of one from the elements of the other becoming rather easy after that.

#

Have you covered subscription?

#

Retrieval of an element by its index?

#

!e py a = [1,2] print(a[0]) a[0] = 3 print(a)

wise cargoBOT
#

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

001 | 1
002 | [3, 2]
vital rampart
#

Subscription?

somber heath
#

Subscription is to refer to an object by its index in an object.

vital rampart
#

Oh yeah

#

Ofc

somber heath
#

!e print("Apple"[0])

wise cargoBOT
#

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

A
somber heath
#

Index 0 of "Apple" is "A"

vital rampart
#

P0[1]

#

Is x0

#

Point

#

Oh

#

Fuck

#

So obvious

#

Iโ€™m dumb

#

Iโ€™m just tired

#

This makes it easier

somber heath
#

!e py a,b = 1,2 a,b = b,a print(a,b)

wise cargoBOT
#

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

2 1
somber heath
#

Here's a nifty way to swap things.

#

Here's another way you can swap things using subscription.

#

!e py a = [1,2] a[0],a[1] = a[1], a[0] print(a)

wise cargoBOT
#

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

[2, 1]
vital rampart
#

is the paramer a list

somber heath
#

p0 is comprised of two elements.

#

Those being x0 and y0

vital rampart
#

i acces x0

#

by p0[0]

#

right

somber heath
#

Correct.

vital rampart
#

ohhh

#

p0 = (x0, y0)

somber heath
#

Yep.

vital rampart
#

tthese are twp constanats

#

wait

somber heath
#

Well..

vital rampart
#

this is easy

somber heath
#

If they're in a function, they're variables at this point.

#

Welcome to things clicking.

#

It's a nice feeling, isn't it?

#

Python has no true constants.

#

You can have SCREAMING_SNAKE_CASE variables that point to values that you can treat as constants

#

But it's not enforced.

vital rampart
#

i think i just havent used my brain in awhile

somber heath
#

The variables can be pointed at some other object easily.

#

Python doesn't stop you.

vital rampart
#

high school was 1 1/2 years in qurantine

#

adn now im in college

#

i particularly need python because i hoep to become a quaant trader

somber heath
#

!e ```py
import math
PHI = (1 + math.sqrt(5)) / 2

print(PHI)```

wise cargoBOT
#

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

1.618033988749895
vital rampart
#

waitt

#

alright now thaat im addign rrays

#

you kno what

#

imma do it manuaally

#

ahha

somber heath
#

Because all of the world's problems can be solved using linear regression to predict future events. ๐Ÿ˜

somber heath
#

So yeah. As I said. You don't have to use numpy arrays, but once you have a handle on them, they can make your life a little easier for some operations.

vital rampart
#

i probably should use numpy arrayas but im not to ofamailair

#

THIS PROBLEM

#

IS SO EASY

#

WHAT AM I EVEN DOIN

#

why is my brain so slow

somber heath
#

Once you have the language to apply to the problem, the problem is less of a problem.

vital rampart
#

problems like these

#

you can break apart

#

yeahah

#

im gonna be here alot more

#

its fun

somber heath
#

Breaking things apart is often a good way to manage all the bits of pieces flying around.

vital rampart
#

wait

#

how would i multiply

#

by aa constant

#

lets saya i haave corrdiantes

#

cana i just do .25(x,y)

#

given x and y aare constaanats

#

.25*x

#

will have to do

#

gotta do it maanually

somber heath
#

!e py import numpy as np arr = np.array([1,1], dtype=float) arr /= 4 print(arr)

wise cargoBOT
#

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

[0.25 0.25]
vital rampart
#

i dmed you a pic of my code

somber heath
#

I won't have got it.

vital rampart
#

can you look aaat it to see if it would work

vital rampart
#

or where i can optimize it

#

oh yeha you need to aadd me

somber heath
#

I have a preference against that in general.

#

Otherwise its

xy = [1,1]
xy[0] /= 4
xy[1] /= 4```
vital rampart
#

oh shit

#

eaacah point is tuple

somber heath
#

Or py xy = [1,1] xy = [v/4 for v in xy]But that can have disadvantages overwriting the list.

vital rampart
#

so i would use ()

#

parentheess right

somber heath
#

I'm using lists, here.

#

But...yeah.

#

I was using lists where I was because they're easier to manipulate the elements within them.

#

Lists are mutable. Tuples are not.

vital rampart
#

ahhh

#

i see

#

i love life rn

#

seems like im figuring it out

#

mindset wise lol

somber heath
#

!e py a = [1,2,3] #List b = 1,2,3 #Still a tuple a[0]=4 b[0]=4

wise cargoBOT
#

@somber heath :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 | TypeError: 'tuple' object does not support item assignment
somber heath
#

In order to update b, I would have to point b at a new object.

#

Rather than modify the existing object that it points to.

#

Which is what I did for a.

#

I edited the list object in memory, itself, that a points to.

#

You try that with tuple objects in memory and they complain.

#

!e ```py
a = [1,2,3]
b = (1,2,3)
aa = a
bb = b

a[0] = 4
b = (3,2,3)

print(a)
print(b)

print(a is aa)
print(b is bb)```

wise cargoBOT
#

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

001 | [4, 2, 3]
002 | (3, 2, 3)
003 | True
004 | False
somber heath
#

a is aa. The list is the same list object as before, even though it's not equal to what it was before.

#

But for b, the new tuple is not the same tuple as the original

#

!e ```py
a = []
b = []
c = a

print(a == b) #True. The two lists are equal to one another. They're both empty lists.
print(a is b) #False. But they're not the same list
print(c is a) #True```

wise cargoBOT
#

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

001 | True
002 | False
003 | True
willow lynx
#

Hi

#

I am sick anaemic and dying

#

:'(

#

I really like python discord

#

I am sorry I just had to say to people

#

I wrote this with all my strength

#

My immunity is attacking me

somber heath
#

๐Ÿ˜Ÿ

whole bear
#

i am fine man

#

what about u

#

actually i wanted to implement a type checker for python code

#

any idea on how to do that

#

ya

wind raptor
#

!e

s = "string"
print(isinstance(s, str))
wise cargoBOT
#

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

True
woeful salmon
# whole bear ya

why not just use mypy or something if you're making an extension

whole bear
whole bear
woeful salmon
#

you could do something similar to vs code where you prompt the user to install it in their python environment