#voice-chat-text-0

1 messages · Page 987 of 1

woeful salmon
#

why not xD

whole bear
#

Flat

molten pewter
rugged root
#

I don't like the trackballs that use the middle or index fingers

somber heath
#

Self respect?

rugged root
#

And I don't like the staggered keys

rugged root
whole bear
molten pewter
#

it is still in NY

woeful salmon
#

o-o

molten pewter
#

they also tour, and there are other non-improve everywhere groups.

quasi condor
rugged root
#

@woeful salmon Dis one

trail mural
#

Hi Noodle 🙂

woeful salmon
#

this doesn't

woeful salmon
molten pewter
# quasi condor

perhaps we should talk to car companies about including air sensor in new EV sales, that send data to government repositories.

quasi condor
#

Tesla and Rivian would probably love it

#

although the problem is they're incentivised to generate bad data

#

that exaggerates things

molten pewter
#

maybe...

somber heath
#

Yoghurt yoga. Don't ask.

quasi condor
#

so they're definitely incentivised to say "look, the outside is going to kill you, you need a car with one of our filters"

rugged root
somber heath
#

I thought you said goat yoghurt. @rugged root

rugged root
#

Goatgurt

woeful salmon
#

Goatyard

molten pewter
#

So many cloudflare authentication error's

quasi condor
#

I have never seen that before

#

are you using a cookie blocker? That shouldn't be it, but technically could be

woeful salmon
cosmic lark
#

@rugged root wanna see a python weird result?

rugged root
#

Of course

woeful salmon
woeful salmon
rugged root
cosmic lark
#

come to voice-1 maybe? its a weird i need to stream

rugged root
#

This is in pygame

#

It just made me happy

tidal shard
#

oh rectangle

#

I thought the other rect

woeful salmon
#

yeah pygame method to get rect from surface

rugged root
#

I'll look in a sec, dead

cosmic lark
#

sure

rugged root
#

Trying to get a program resolved

cosmic lark
woeful salmon
#

sure

somber heath
#

Preauxgramme.

rugged root
#

!stream 411031233364099072

wise cargoBOT
#

✅ @cosmic lark can now stream until <t:1646406662:f>.

quasi condor
#

@molten pewter I'm in a work meeting for an hour, then I need to do something quickly, do you want to work on datawebsite then?

molten pewter
#

yup

woeful salmon
#

crossplatform?

#

:x

sand kayak
#

f(x) = mx + b, but m is -./-1

sturdy panther
#

What's a datawebsite?

whole bear
#

Imaginary number is when you times by i

molten pewter
#

a website that has data on it

whole bear
#

4+3i is an imaginary number

sturdy panther
#

B-But.. every website transmits data!

sand kayak
#

x^2+x+1 = 0

woeful salmon
#

@zenith radish did you make a repo for the webrtc thing btw? 🙂

whole bear
#

Y=b+mx where x is i

sturdy panther
#

Math is weird. Maths is better!

woeful salmon
zenith radish
#

Do you feel like doing the thing?

woeful salmon
#

sure! 🙂

sand kayak
#

Real numbers: from -oo to oo
Imaginary numbers: from -oo(i) to oo(i)
Complex numbers: numbers in the form a + bi, where a and b belong to the real numbers.

zenith radish
#

Lemme brush my teeth and put some clothes on and let's do it!

#

Actually let's have fun and start making the discord clone 😄

zenith radish
#

@woeful salmon you'll have to help me with the python aspects of it 😄

woeful salmon
#

sure 🙂

zenith radish
#

lets goooo

woeful salmon
#

vc 1?

sturdy panther
#

Weight loss plan: Join Team Rocket, and blast off again to the moon!

rugged root
#

I don't know how I feel about that

sturdy panther
#

You can feel patriotric!

sand kayak
#

BUT! You can also write a complex number in the form a(eᵇᶥ)

#

where 'e' is the Euler Constant

whole bear
#

a*(e^bi)

sand kayak
#

Pronounced as Oil-er

tidal shard
sand kayak
#
 πi
e  + 1 = 0
pallid hazel
#

e = mc**2

rugged root
#

Euler was Swiss

#

It's pronounced like Oiler

tidal shard
#

Ever been to Oirope?

sand kayak
#
 πi
e   = -1 <=> ln(-1) = πi
whole bear
#

e^(i🥧) + 1 = 0

rugged root
#

I'm so mad

#

Installers evade me

sand kayak
#

logarhytme naturel

whole bear
#

ln is log_e

#

yea?

sweet lodge
rugged root
#

No I finally found it

#

Just mad at myself

wind raptor
rugged root
#

py -m pip install checkfactory

sweet lodge
#

I had to get a Zebra printer driver yesterday
To download the driver, I had to create an account.
On the account form, email, phone, company, size of company, address, were all required

#

And copy/paste was disabled

whole bear
sweet lodge
#

Which also broke autofill

rugged root
whole bear
rugged root
#

CheckFactory is for printing out MICR checks through Quickbooks

sweet lodge
whole bear
rugged root
#

And no, it's not a Python library

sweet lodge
rugged root
#

That would be terrifying as a Python lib

#

Honestly

sturdy panther
#

There is a level between bachelor and masters?

rugged root
#

I never knew that honestly

whole bear
rugged root
#

It's still weird to me that you can skip a Master's and go straight to a PhD

whole bear
floral remnant
#

I mean in medical school you can move from a B.S. straight to a 4 year post graduate MD. Is there a tech equivalent degree?

sand kayak
#

my engine so far

#

it doesn't run yet, i'm still writing the assembler and emulator

rugged root
#

Still here, just trying to wrap up some stuff that has me hiking across the office

rugged tundra
rugged root
#

I'm upset for not thinking of this pun earlier. Avocado's Number

terse needle
#

I think we should change server location to USA East imo, currently in the netherlands and I think I am the only person here from europe

#

wonder who was here first lmao /s

rugged root
#

Yeah, he was SAS

tidal shard
rugged root
#

Edward Michael "Bear" Grylls (born 7 June 1974) is a British adventurer, writer, television presenter and businessman. Grylls first drew attention after embarking on a number of adventures, and then became widely known for his television series Man vs. Wild (2006–2011). He is also involved in a number of wilderness survival television series in...

rugged tundra
runic elk
#

for i in range(10):

so my i start from 0 and runto 9

rugged root
#

Right

primal yacht
#
range(stop) # start=0, step=1
range(start, stop) # step=1
range(start, stop, step)
mortal crystal
rugged root
#

!stream 588068033415741525

wise cargoBOT
#

✅ @molten pewter can now stream until <t:1646413465:f>.

primal yacht
#
if step > 0:
    conditional = (lambda value, stop: value < stop)
elif step < 0:
    conditional = (lambda value, stop: value > stop)
else:
    ... # error is raised

value = start
while conditional(value, stop):
    yield value
    value += step # negative step still works
tidal shard
runic jewel
#

@wind raptor how can i check if a number is dividable by 3 in a range of 100 and then find the sum of all the numbers that are dividable ?

#

i can do the 1st part but not the 2nd

#

i tried appending them to a list but than what

#

it sounds easy but holy moly

sweet lodge
runic jewel
#

i solved it

#

yeah

#

didnt know about the BUILT IN SUM FUNCTION

sweet lodge
#

Yep

sweet lodge
runic jewel
#

do a for loop if num % 3 == 0:

#

append it to a list

#

then use the sum on the list

#

i got stuck on the list part and didnt know what to do i just had a list of numbers

dry light
#

can i get help in Code/Help

sweet lodge
#

!eval

print(sum(i for i in range(1, 101) if i % 3 == 0))
wise cargoBOT
#

@sweet lodge :white_check_mark: Your eval job has completed with return code 0.

1683
sweet lodge
#

It works!

tidal shard
#

👋

sweet lodge
#

👋

tidal shard
#

reverse-shenanigans lol

sweet lodge
#

Wait... that's illegal

tidal shard
#

In Soviet Russia, vincent wave you!

rugged root
#

@ionic ferry Sorry, coworkers back here chatting

runic jewel
#

thank you for being there 😊

rugged root
#

So when it comes to Async stuff, everything has to be a part of the broader async event loop

#

Any async functions have to be called and added into the loop as coroutines. So what was the part you were asking about getting information out?

#

👍

#

Yarp

#

Love that guy

sweet lodge
#

@green bone

#

Crap

rugged root
#

fixerror

sweet lodge
#

@fix error#1642

#

hah

runic jewel
#

whats the difference between async and threading

rugged root
#

!stream 440959117717274624

wise cargoBOT
#

✅ @vocal coyote can now stream until <t:1646415184:f>.

sweet lodge
# runic jewel whats the difference between async and threading

Let’s take a simple analogy; you have a friend, and you decided to make dinner together.

Async is when you say to your friend, “You go to the store and buy pasta. Let me know when you get back, to make dinner together. Meanwhile, I’ll prepare sauce and drinks.”

Threading is, “You boil the water. I’ll heat the tomato sauce. While the water is boiling, ask me and I’ll put the pasta in. When the sauce is hot, you can add cheese. When both are done, I’ll sit down and you serve dinner. Then we eat.”. In the threading analogy, we can see the sequence of “When, Do” events, which represent the sequential set of instructions per each person (thread).

rugged root
#

Async is meant for handling I/O processes

sweet lodge
#

To be honest, I don't really understand it

rugged root
#

Reading or writing to storage, website requests, etc. Things that would have a delay

sweet lodge
#

I only use it because Rust and FastAPI make me

rugged root
#

Threading is for spreading the workload across different threads in order to do more work simultaneously. Although in Python it's....

#

Tricky

runic jewel
#

dude why is your profile pick so aggressive

rugged root
#

Python has what's known as a GIL, or Global Interpreter Lock. It means that Python can only run on a singular process (unless you're using multiprocess, but that's a different matter

#

It's all the caffeine

runic jewel
#

ok i will defo look into it more thanks for all the help

rugged root
#

No problem!

#

!stream 277886690197110784

wise cargoBOT
#

✅ @ionic ferry can now stream until <t:1646415463:f>.

tidal shard
#

gtg, thank you!

woeful salmon
#

!e

def foo(*arguments):
    for arg in arguments:
        print(arg)

foo(1, 2, 21,2, 1, 12, 123123)

@ionic ferry

wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
003 | 21
004 | 2
005 | 1
006 | 12
007 | 123123
amber raptor
#

How my day is going

sweet lodge
#

I wouldn't be able to resist the urge to fix the capitalization

amber raptor
#

I saw that and now deliberately merged the PR just because I’m chaos god

#

Also I don’t want to run down new approval

sweet lodge
#

Bicep doesn't take resource group IDs?

#

That's stupid

#

So, dictionary lookup returns a DictionaryValue<String> instead of a String?

#

👋

amber raptor
sweet lodge
#

!warn @rugged root - talking about playing with meat in front of the children

brave steppe
#

-what did I run into?

sweet lodge
#

@rugged root - [...] the IT guy that's here"

sweet lodge
#

Ohhh

#

Got it

sweet lodge
ionic ferry
shut hill
#

Hi Mr Hemlock Sir...

#

How are you doing...

#

You guys want a ps5? I can give u like 5 lol

rugged root
#

I'm alright, you?

shut hill
#

Good good...

#

I can get ps5 for retail price

#

2 years^*

#

No profit on ps5 anymore in Canada

#

They will not add ps5 pro till next to 2 years.

#

I hate the new controllers

#

they suck

#

😂

#

They are like xbox controlllers

#

Its tooo big for my hands

#

my hands are tiny the ps4 contreolers are so nice

#

lol

#

yes

#

lol

#

ya i have both rn

#

Oh yeaaaaaaaaa

#

soo good

#

lol

#

it was double the size

#

lol

#

look at the comparison

#

so stupid

#

lol

rugged root
shut hill
#

if len(student_number) == 6:
    if student_number[0] == '6':
        print('Grade 9')
    elif student_number[0] == '7':
        print('Grade 9 or 10')
    elif student_number[0] == '8':
        print('Grade 10 or 11')
    elif student_number[0] == '9':
        print('Grade 11 or 12')
    else:
        print('invalid')
elif len(student_number) == 7:
    if student_number[0] == '1' and student_number[1] == '0':
        print('Grade 12')
    else
        print('invalid')
else:
    print('invalid')```

@rugged root do u know why this isnt working?
#

It making me go insane

#

im gonna loose my brain cells cause of this stupid thing

#

i checked everything, it looked fine....

#

uhh

#

syntax

#

OMG

#

FFS

#

IMMA shoot myself

#

😭

#

This is so stupid

#

now it works

#

lmao

#

for me not....

#

oh no it works now

#

i found it

#

vscode

#

its good i see it now

#

the suggestion

#

thanks.

#

I spent a stupid 2 hours

#

just to find that

#

Are you kidding...

rugged root
shut hill
#

I had to change the code like 10 times

#

lol

#

Sir Hemlock, do u have a mackbook?

#

You dont like macks?

#

jw

#

Yea thats obv

#

how about speed wise...

#

cause of the power

#

and battery?

#

for laptops

#

only

#

cause mackbook air is 18 hours free charge which is nuts

#

but the issue is the price

#

the air is actually not bad with the m1 chip for the air

#

1300 CAD for m1 air

#

which is nice...

#

yea makes sense

#

what laptop would you prefer for windows?

#

sure.

#

if u dont mind....

#

windows right?

#

okok

#

manjaro?

#

yea i know lol

#

linux right

#

that thing

#

yea yea

#

did u send the laptop?

#

how big is it?

rugged root
shut hill
#

Looking for a 14"

#

oh t

#

lol

#

hp?

#

;-;

#

pavillion on top

#

;-;

#

and allin one

#

;-;

#

how much u get it for?.

#

ram?

#

8gb im assumining

#

u can add more ram or no?

#

u probably can

#

for u

#

have u ever had asus?

#

no way

#

what?

#

i have the asus zenbook 14

#

for like 4 years

#

still 10 hours of battery

#

;-;

#

yea i have it

#

BUT

#

the issue

#

is they dont manufactuer it anymore

#

;-;

#

theyt completely stopped

#

cause i have the touchpad is a screen too

#

so its 2 screens

#

in one laptop

#

its really nnice for multi tasking lol

#

and its 4k vid

#

on it ill show u a link

#

idk if they sell it still

#

this is exactly what i have

#

no u can change it tho

#

to normal

#

lol

#

its normal

#

same thing

#

its nice

#

otherwise never would get it.

#

i think its 13 inch

#

just realized lol

#

i have warranty on it, so basically any issues they send it to the center then if they can fix it they willl and send it back otherwise if they cant they will pay back exact money paid on credit... so i am planning to use the warrinty to get a new laptop, but I am not sure what laptop I should get... cause I love the laptop Im using however they dont have a more powerful one, I was looking for a 30 serries laptop with i9 11th gen laptop zenbook with dual screen 13-14 inch but there is nothing on the market. So now I am deciding to move to OS cause of the M1 power and maybe get the Macbook Pro M1. So now I dont want to switch to OS cause it will take along time to transfer all skills and learn all new concepts to the MackBook Pro, so now I am thinking of getting a laptop for Windows and was deciding for the Zephryus G14 this one, https://www.bestbuy.ca/en-ca/product/asus-rog-zephyrus-g14-14-gaming-laptop-grey-amd-ryzen-9-5900hs-1tb-ssd-16gb-ram-rtx-3060-win-10/15264488. But the issue is there is no camera and I am scared of the overheating isse and battery due to how much power it will use. So now I am unsure which laptop to get and might get the Mackbook Pro 14" cause of the power and battery life, if there was a laptop that had enough power, battery life, and all those feautures, not only will I buy it, I recommend it to majority of society. Thanks for reading my essay lol. Gimme ur opinions on what laptop to get and choose. Thanks 🙂 @rugged root

rugged root
#

I'll have to look at the options later

#

Got some stuff at work that's going to take me a bit

shut hill
#

No worries, take your time! Enjoy your day 🙂.

crude lagoon
#

I recommend you to dell computers

#

nice

#

and

#

eazy

shut hill
#

dell bad

tidal shard
#

I have a dell laptop that's still alive after 6 years

echo torrent
#




if there_exists(["capture"]):
                images = []
                for image in images:
                    if not image in images:
                        numimage = len(images) + 1
                        print(print(image + " is not in array"))
                        images.append()

                    else: print("this image already exist")

                if camlist:
  
                    
                    cam = pygame.camera.Camera(camlist[0], (640, 480))
                
                    
                    cam.start()
                    time.sleep(2)
                    
                
                    
                    image = cam.get_image()
                
                    
                    pygame.image.save(image, images+".png")
                
                
                else:
                    print("No camera")

tidal shard
#
<your code here>
#

!e

images= []
for image in images:
  print(image)
wise cargoBOT
#

@tidal shard :warning: Your eval job has completed with return code 0.

[No output]
tidal shard
#
if image not in images
echo torrent
#

            if there_exists(["capture"]):


                if camlist:
  
                    
                    cam = pygame.camera.Camera(camlist[0], (640, 480))
                
                    
                    cam.start()
                    time.sleep(2)
                    
                
                    
                    image = cam.get_image()

                    images = []
                    for image in images:
                        if image not in images:
                            numimage = len(images) + 1
                            print(print(image + " is not in array"))
                            images.append()

                        else: print("this image already exist")
                
                    
                    pygame.image.save(image, images+".png")


                
                
                else:
                    print("No camera")

rugged tundra
#

images.append(pygame.image.save(image, numimage+".png"))

shut hill
mortal crystal
terse needle
terse needle
#
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
~/.emacs.d/bin/doom install
icy axle
stuck furnace
#

Yeah definitely getting power button vibes.

#

Hmm, reminds me of something 🤔

#

DO

terse needle
#

3rd kind of reminds me of the north face for some reason

stuck furnace
#

Reminds me of:

terse needle
#

yeah

stuck furnace
#

👀

#

Third one

#

👋 Psyduck

icy axle
#

What is that

#

Oh, a person

stuck furnace
#

Yep

icy axle
#

:ducky_psy: gangnam style

woeful harness
#
attempt = 3
def welcome(username):
    while True:
        username = input("What is your name? ").capitalize()
        if username.isdigit():
            print("No numbers")
            continue
        elif len(username) >= 14:
            print("Name is too long!")
            continue
        else:
            print(f"Welcome to Python movies, {username}. You will be proceeded to the ticket venue now")
            break

    

"""""
This while loop confirms if the user is legal to watch movies and what movies they can see
"""""
while True:
    try:
        age = int(input("What is your age? "))
    except ValueError:
        print("Value is not valid!")
    else:  # If everything is valid with the value then the while loop will run
        if age <= 13:
            print(f"You are not old enough! You have {attempt} attempts left")
            attempt -= 1
            if attempt < 0:
                s.exit("Too many invalid tries!")
        elif age >= 13 and age <= 18:
            print("Welcome to the movies!")
            print("You are allowed to watch R15 movies!")
        
            welcome(name)
            break
        else:
            print("You can watch every available movie!")
            
            welcome(name)
            break
#
attempt = 3
def welcome():
    while True:
        username = input("What is your name? ").capitalize()
        if username.isdigit():
            print("No numbers")
            continue
        elif len(username) >= 14:
            print("Name is too long!")
        else:
            print(f"Welcome to Python movies, {username}. You will be proceeded to the ticket venue now")
            break

    

"""""
This while loop confirms if the user is legal to watch movies and what movies they can see
"""""
while True:
    try:
        age = int(input("What is your age? "))
    except ValueError:
        print("Value is not valid!")
    else:  # If everything is valid with the value then the while loop will run
        if age <= 13:
            print(f"You are not old enough! You have {attempt} attempts left")
            attempt -= 1
            if attempt < 0:
                s.exit("Too many invalid tries!")
        elif age >= 13 and age <= 18:
            print("Welcome to the movies!")
            print("You are allowed to watch R15 movies!")
            welcome()
            break
        else:
            print("You can watch every available movie!")
            welcome()
            break
stiff coyote
#

good strings to test with

stuck furnace
#

Khan Academy is always pretty good.

#

If you want to understand logarithms, get a slide-rule and use it to do calculations.

somber heath
#

I've yet to have tock as a tic. If I ever do tic tock, just take me to the farm.

stuck furnace
#

Oh god

somber heath
#

"Pappa, where's Opal?"
"He went to live on a farm, sweetie."

stuck furnace
#

jfc he's an idiot

pallid hazel
#

vending machines

formal meteor
#

voting machines.

pallid hazel
#

vending machines

stuck furnace
#

That's what we do in the UK too 👀

icy axle
#

I was just about to send that too

#

lolol

formal meteor
#

if good_canditate_vount_count < bad_canditate_vount_count: implement_corrective_action()

dense ibex
#

hello @leaden comet wavey

fallow terrace
#

is c# and python the same?

dense ibex
#

No not really.

fallow terrace
#

ok tks

pallid hazel
#

its called Dissension, like when a major part of your support leaves, ie a union.. fire dept, police, public workers etc

#

itf they dropped a nuke would that be war crime?

#

if not shot

stuck furnace
#

Seems pretty hot tbh.

pallid hazel
#

hot tubs are nice, just not very economical

stuck furnace
#

Pls Vester lemon_pensive

#

Pls share

#

Apparently chickpea water is an egg substitute? 🤔

leaden comet
icy axle
stuck furnace
#

I'm sure it tastes good 😄

#

Looks like steak yeah.

woeful harness
#

Yeah... steak

pliant gyro
#

@leaden comet Do you do coding interviews?

leaden comet
#

yep!

pliant gyro
#

Coding interview's make me nervous then I mess up the interview

teal flower
#

Oh same here

leaden comet
#

and if you can, https://www.xlwings.org/ is even better than openpyxl

icy axle
#

Causal flex

leaden comet
#

yes. I did code this page

#

pretty happy with the filtering now

willow light
#

looks better than my most recent attempt at vue

leaden comet
#

took a few revisions, no SPA here either

#

it's all just python and plain javascript

#

and a little jquery

willow light
#

cries in TypeScript

next torrent
#

👍

icy axle
leaden comet
#

types are nice

#

scripts are nice

willow light
icy axle
#

No

woeful harness
willow light
#

Deno is basically a rewrite of Node.js, but much better. Basically, Ryan is going "Let's try that again, but get it right this time"

And it's written in Rust and has the same standard library as Go.

icy axle
#

Yeah, I know what it is. Even watched a talk where he introduced it and described the reasons behind creating it

#

I just haven't found a reason to use it yet

willow light
#

I got my team to use it at work.

#

They're now true believers

icy axle
#

lol

willow light
#

I really like just how similar Opine is to FastAPI.

#
import { opine } from "https://deno.land/x/opine@2.1.2/mod.ts";

const app = opine();

app.get("/", function (req, res) {
  res.send("Hello World");
});

app.listen(
  3000,
  () => console.log("server has started on http://localhost:3000 🚀"),
);
vivid palm
stuck furnace
#

The bookmark thing 😄

willow light
#

I may be somewhat stoned

#

Sorry

leaden comet
#

I will allow it

rugged tundra
#

🪨

#

fun times

icy axle
#

Are you allowing stoning?

leaden comet
#

yes. okay.

#

don't make it a religious thing

short ingot
#

lol

willow light
leaden comet
#

that's true.

willow light
#

bows

#

good night, I need to sleep this off

leaden comet
#

good night, @willow light

short ingot
#

I did not know that

#

Omg a chicken haha

#

Birds have something against you

rugged tundra
short ingot
#

Oh no

#

😭

#

Dont go on

#

D:

pliant gyro
#

Aw poor pup

#

you should have given it a treat

short ingot
#

Really sorry about my lateness, but what book are you guys talking about?

tidal shard
short ingot
#

Oooh real interesting, i think you should do it.

rugged tundra
#

How to Automate the Boring Things

#

Or Lemon's potential future book

leaden comet
short ingot
pliant gyro
#

What book?

#

Is it How to Automate the Boring Things?

#

Do you guys prefer books or taking courses

tidal shard
leaden comet
stuck furnace
#

Geeeeze

#

Amazon?

#

Just !e

#

E.g.

leaden comet
#

!eval ``...

stuck furnace
#

!eval ```py

#

print('hello world')

#

```

wise cargoBOT
#

@rugged tundra :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | TypeError: object of type 'type' has no len()
amber raptor
#

!e python print(2+4)

wise cargoBOT
#

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

6
leaden comet
amber raptor
#
param webAppName string = uniqueString(resourceGroup().id) // Generate unique String for web app name
param sku string = 'S1' // The SKU of App Service Plan
param linuxFxVersion string = 'php|7.4' // The runtime stack of web app
param location string = resourceGroup().location // Location for all resources

var appServicePlanName = toLower('AppServicePlan-${webAppName}')
var webSiteName = toLower('wapp-${webAppName}')

resource appServicePlan 'Microsoft.Web/serverfarms@2020-06-01' = {
  name: appServicePlanName
  location: location
  sku: {
    name: sku
  }
  kind: 'linux'
  properties: {
    reserved: true
  }
}

resource appService 'Microsoft.Web/sites@2020-06-01' = {
  name: webSiteName
  location: location
  kind: 'app'
  properties: {
    serverFarmId: appServicePlan.id
    siteConfig: {
      linuxFxVersion: linuxFxVersion
    }
  }
}```
#
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "metadata": {
    "_generator": {
      "name": "bicep",
      "version": "0.4.1272.37030",
      "templateHash": "3518010280110305213"
    }
  },
  "parameters": {
    "webAppName": {
      "type": "string",
      "defaultValue": "[uniqueString(resourceGroup().id)]"
    },
    "sku": {
      "type": "string",
      "defaultValue": "S1"
    },
    "linuxFxVersion": {
      "type": "string",
      "defaultValue": "php|7.4"
    },
    "location": {
      "type": "string",
      "defaultValue": "[resourceGroup().location]"
    }
  },
  "variables": {
    "appServicePlanName": "[toLower(format('AppServicePlan-{0}', parameters('webAppName')))]",
    "webSiteName": "[toLower(format('wapp-{0}', parameters('webAppName')))]"
  },
  "resources": [
    {
      "type": "Microsoft.Web/serverfarms",
      "apiVersion": "2020-06-01",
      "name": "[variables('appServicePlanName')]",
      "location": "[parameters('location')]",
      "sku": {
        "name": "[parameters('sku')]"
      },
      "kind": "linux",
      "properties": {
        "reserved": true
      }
    },
    {
      "type": "Microsoft.Web/sites",
      "apiVersion": "2020-06-01",
      "name": "[variables('webSiteName')]",
      "location": "[parameters('location')]",
      "kind": "app",
      "properties": {
        "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]",
        "siteConfig": {
          "linuxFxVersion": "[parameters('linuxFxVersion')]"
        }
      },
      "dependsOn": [
        "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]"
      ]
    }
  ]
}```
leaden comet
rugged tundra
#

🔥Edureka Microsoft Azure DevOps Solutions Certification (Use Code "𝐘𝐎𝐔𝐓𝐔𝐁𝐄𝟐𝟎"): https://www.edureka.co/microsoft-azure-devops-solutions-training
This Edureka live video on "Azure DevOps Tutorial" will give you a brief introduction on how you can implement DevOps practices on Microsoft Azure.
Following topics are covered in this live session:
1....

▶ Play video
amber raptor
#
trigger:
- master

pool:
  vmImage: 'windows-latest'

variables:
  buildConfiguration: 'Release'

steps:
- task: DotNetCoreCLI@2
  inputs:
    command: 'restore'
    feedsToUse: 'select'
    vstsFeed: 'my-vsts-feed' # A series of numbers and letters

- task: DotNetCoreCLI@2
  inputs:
    command: 'build'
    arguments: '--configuration $(buildConfiguration)'
  displayName: 'dotnet build $(buildConfiguration)'```
rugged tundra
rugged tundra
#

Have a good night 👋

short ingot
#

Good night

amber raptor
#

@zenith radish you have to teach me gRPC

zenith radish
amber raptor
#

in python

zenith radish
#

@amber raptor

zenith radish
teal flower
#

How do I know to code in python

somber heath
#

Get yourself situated by watching Corey Schafer's Youtube playlist for Python beginners.

#

I also read through the downloadable pdf version of the documentation at python.org.

#

Once you've built your foundational knowledge, you can build on top of it.

#

You'll have a halfway decent chance of being able to use things you haven't seen before, such as other modules, with less hassle, this way.

teal flower
#

Thank you

#

In this piece of code the <p> and <br/> HTML tags create paragraphs and line breaks in a web page. Using these tags allows you to change the way your text displays. They areuseful ways to create sections. Don’t forget that the line break tag is a self-closing tag. Very interesting In reading

somber heath
#

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

rigid nebula
#

test

#

can't talk

#

so sad

#

aww

#

u guys sound great

#

oh ya thats all the 12 year old kids

#

haha understanable

#

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

rigid nebula
#

so no way to speed anything up?

#

unlucky 😦

#

they should give u a coding test

#

I have to wait 3 days though 😦

#

ah ok

#

ah ya sweet

somber heath
whole bear
#

!voiceverify

somber heath
#

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

whole bear
#

i cant talk lol

stuck comet
#

brb bro my mic is glitching idk

tidal shard
terse needle
#

Retro looks so good

severe veldt
#

mic no worky on arch ;(

woeful salmon
#

👀 to me they all look bad... i'd much rather have plain black / dark grey with white letters

terse needle
# severe veldt mic no worky on arch ;(

I had this issue on both arch and void linux, for some reason I needed to play a youtube video then fully restart discord and it will detect my mic and headphones

severe veldt
#

you're joking right?

terse needle
#

nope

#

I still have to do it

severe veldt
#

that sounds so absurd

#

lemme check

terse needle
#

I think it's just initialising my hardware somehow

severe veldt
#

nope

#

doesn't work

terse needle
#

does it detect your mic and headphones in the settings?

woeful salmon
#

you could make a python script that tries to access your mic and headphones

severe veldt
#

it detects my headphones

woeful salmon
#

maybe that would also make it work

severe veldt
#

not my mic

#

lmao

terse needle
#

doesn't seem to be anything on it in the arch wiki

severe veldt
#

ye

#

I checked bout that 30 mins ago

#

found this

#

doesn't work for me tho

#

nvm I'll into this tommorow

#

gotta study for my exam

#

it detects the system audio tho

solid roost
#

i want to stream my screen

#

how can I?

tidal shard
solid roost
#

insta_list = []
for follower in csv_list_instapy:
user = follower.split(' ~ ')
instapy_Followed_list.append(user[1])
print(insta_list)

tidal shard
terse needle
#

@solid roost there isn't anyone to give you streaming perms rn sorry

solid roost
#
insta_list = []
for follower in csv_list_instapy:
    user = follower.split(' ~ ')
    instapy_Followed_list.append(user[1])
print(insta_list)
solid roost
stuck comet
#
list_name.to_csv('cities.csv', index=False, header=new_column_names)```
terse needle
#

!docs csv

solid roost
terse needle
#

!e

followers = ['foo', 'bar', 'spam']
print('\n'.join(followers))
tidal shard
#

the raw text output would be something like:

'unique__\nmustians__\nshahidmunir83`
#

right?

solid roost
terse needle
#

!e

followers = ['foo', 'bar', 'spam']
print('\n'.join(followers))
wise cargoBOT
#

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

001 | foo
002 | bar
003 | spam
solid roost
terse needle
#
followers = ['foo', 'bar', 'spam']
buffer = '\n'.join(followers) # sets buffer = "foo\nbar\nspam"

with open('results.csv', 'w') as file:
    file.write(buffer)
solid roost
woeful salmon
#

👀 i would probably just replace all, with nothing and ~ with ,

uncut meteor
#

the notorious tsv ||tilda separated values||

terse needle
#

it's actually tsvac

#

||tilda separated values and comma||

pallid hazel
#

replace ~ with ,

uncut meteor
#

!stream @solid roost

wise cargoBOT
#

✅ @solid roost can now stream until <t:1646493921:f>.

uncut meteor
#

!docs open

wise cargoBOT
#

open(file, mode='r', buffering=- 1, encoding=None, errors=None, newline=None, closefd=True, opener=None)```
Open *file* and return a corresponding [file object](https://docs.python.org/3/glossary.html#term-file-object). If the file cannot be opened, an [`OSError`](https://docs.python.org/3/library/exceptions.html#OSError "OSError") is raised. See [Reading and Writing Files](https://docs.python.org/3/tutorial/inputoutput.html#tut-files) for more examples of how to use this function.

*file* is a [path-like object](https://docs.python.org/3/glossary.html#term-path-like-object) giving the pathname (absolute or relative to the current working directory) of the file to be opened or an integer file descriptor of the file to be wrapped. (If a file descriptor is given, it is closed when the returned I/O object is closed unless *closefd* is set to `False`.)
solid roost
#
with open(r'C:\Users\Thomas\Desktop\ccv_users.csv','w') as f:
    f.write(instapy_Followed_list)
pallid hazel
#

can I paste code idea, and you write the code? heh

#

was j/k

solid roost
#

give me a mintue

#

i am reopening discord

woeful salmon
#

@terse needle

^ there is indeed writelines but unfortunately it doesn't actually add a newline character

terse needle
#

what is the point

woeful salmon
# terse needle what is the point

you can write from a list because file.readlines doesn't remove the \n either so if you don't remove it yourself it just works out

solid roost
#
from csv import reader
# import pandas
csv_list_instapy = []
with open(r"C:\Users\Thomas\InstaPy\logs\a_boy_from_mirpur\a_boy_from_mirpur_followedPool.csv") as f:
    csv_list_instapy = f.readlines()

instapy_Followed_list = []
for follower in csv_list_instapy:
    user = follower.split(' ~ ')
    instapy_Followed_list.append(user[1])
print(instapy_Followed_list)

with open(r'C:\Users\Thomas\Desktop\ccv_users.csv','w') as f:
    f.write(instapy_Followed_list)
tidal shard
#
from csv import reader
# import pandas
csv_list_instapy = []
with open(r"C:\Users\Thomas\InstaPy\logs\a_boy_from_mirpur\a_boy_from_mirpur_followedPool.csv") as f:
    csv_list_instapy = f.readlines()

instapy_Followed_list = []
for follower in csv_list_instapy:
    user = follower.split(' ~ ')
    instapy_Followed_list.append(user[1])
print(instapy_Followed_list)

buffer = '\n'.join(instapy_Followed_list)

with open(r'C:\Users\Thomas\Desktop\ccv_users.csv','w') as f:
    f.write(buffer)
woeful salmon
#

@tidal shard 😢 feel ya there i was trying to show my friends how to simulate spring forces for fun and they said it was boring even tho its so cool
they're into game development too btw... apparently

trail mural
#

Hi Noodle, Hi Mc, Hi Griff

uncut meteor
woeful salmon
#

hello 🙂

#

@tidal shard <-< i hate that what you said is right about it being \n in python
i always think of windows as \r\n and get confused

tidal shard
#
'unique__\nmustians__\nshahidmunir83`
solid roost
#

Thanks @stuck comet @tidal shard @terse needle Thanks alot!

woeful salmon
#
When a metal spring is stretched or compressed, it is displaced from its equilibrium position. As a result, it experiences a restoring force that tends to retract the spring back to its original position. This force is called the spring force. It is a contact force that can be found in elastic materials

google definition cuz i suck at explaining

terse needle
#

E = (1/2)ke^2

stuck comet
#

wot

woeful salmon
#

@terse needle the original indian version is quite good

#

altho it can be very spicy

#

depending on where you get it

#

why not just call it fried potato o- o

solid roost
#

Yeah guys there is another issue!😂😂😂😂

woeful salmon
#

@tidal shard see you call fried egg fried egg then why not just use fried potato for fried potato?

solid roost
solid roost
woeful salmon
#

👀 just use json

solid roost
#

how can i change the normal list in json

terse needle
#

a normal list is valid json

solid roost
terse needle
#

!e

import json
x = ["foo", "bar", "baz"]

print(json.dumps(x, indent = 2))
wise cargoBOT
#

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

001 | [
002 |   "foo",
003 |   "bar",
004 |   "baz"
005 | ]
woeful salmon
#

👀 you also need more math and physics if you wanna make totally useless in life but really cool looking effects be it 2d / 3d like i do

#

specially trig and linear algebra

#

my internet went out the moment i said i use a different color scheme when screensharing

#

xD

solid roost
#

can we change the Voice Chat Server to automatic?
Because I am disconnecting again and again
@terse needle

terse needle
#

should be find how it is, we have people in here all around the world right now and it's pretty central in the netherlands

solid roost
#

can we change it to automatic?

woeful salmon
#

@mild quartz clear all output >> run all cells
and just have your code in order

terse needle
#

not really related to void but hey

midnight remnant
#

Hellopithink

unkempt magnet
midnight remnant
#

Am new here and wanted to learn python programming

unkempt magnet
midnight remnant
#

Idk from where to start?

unkempt magnet
unkempt magnet
unkempt magnet
midnight remnant
unkempt magnet
midnight remnant
unkempt magnet
unkempt magnet
midnight remnant
#

Am not good at speaking English 😅

primal yacht
#

!resources -- See bot message ... Automate the Boring Stuff ... on its website, it's 100% free if you scroll down to the Table of Contents

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.

idle prism
#

help, im supressed, is that on purpose?

gentle flint
#

yeah

#

you need to verify

wise cargoBOT
#

Voice verification

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

idle prism
#

thx

gentle flint
tidal shard
lyric pawn
#

@tidal shard get me some johnny walker

tidal shard
lyric pawn
#

@rugged tundra me and coffee drink irish whiskey

#

lmao

#

🤣

#

@tidal shard youre hilarious

#

you just copped out of learning their culture

#

i heard english and mandarin are the hardest languages to learn

#

but mainly english

terse needle
#

can we make english spelling make sense

gentle flint
#

tf

The Ghazipur Opium Factory may have one more claim to fame, for a rather unusual problem it has. It is infested with monkeys, but these are too narcotic-addled to be a real problem and workers drag them out of the way by their tails.

lyric pawn
#

@tidal shard it sounds like a prison cell

#

@molten pewter they like their privacy

tidal shard
lyric pawn
#

furyo is the best person at mandarin i know

#

chinese is my favorite kind of food guys

#

duck and pancake

tidal shard
#

@molten pewter

lyric pawn
#

🤣

#

Marco Antonio is here

gentle flint
magic lance
#

@molten pewter you're a very nice person. :3

gentle flint
icy axle
#

Bitterbollen?

gentle flint
#

bitterballen

#

Bitterballen (plural of bitterbal) are a Dutch meat-based snack, made by making a very thick stew thickened with roux and beef stock and generously loaded with meat, refrigerating the stew until it firms, and then rolling the thick mixture into balls which then get breaded and fried. Seasonings in the base stew usually include onions, salt and p...

tidal shard
gentle flint
#

@icy axle we can hear you fine

icy axle
#

Nice

#

I couldn't hear you

gentle flint
#

can you now?

icy axle
#

Yeah

#

Kladdkaka

gentle flint
#

Kladdkaka is a popular Swedish chocolate cake. It is a rich chocolate dessert cake with a crisp exterior and a soft and gooey interior. This dense, compact chocolate cake is similar to a chocolate brownie and a molten chocolate cake.
The ingredients are flour, eggs, butter, sugar, vanilla essence and cocoa powder. The main difference between kl...

icy axle
#

dd

gentle flint
#

knäckebröd

#

boterkoek

tidal shard
gentle flint
cyan stirrup
icy axle
gentle flint
#

rhubarb and banana fool

#

just buy the compote

#

and skip the first paragraph

#

Kompott (franska compote - blandning) är en söt maträtt av frukt eller bär som kokas tillsammans med socker varvid hela eller delar av frukten finns kvar efter tillagningen. Rätten har gamla anor och har periodvis varit mycket populär. Vanliga tillbehör är vispad grädde eller vaniljsås. Förutom sockret tillsätts ofta stärkelse, men även alkohol ...

molten pewter
cunning lake
gentle flint
#

Zoroastrianism or Mazdayasna is an Iranian religion and one of the world's oldest continuously-practiced organized faiths, based on the teachings of the Iranian-speaking prophet Zoroaster (also known as Zaraθuštra in Avestan or as Zartosht in Persian). It has a dualistic cosmology of good and evil within the framework of a monotheistic ontology ...

terse needle
#

didn't mean to leave but that works too ig

cunning lake
#

🤷‍♂️

#

or not

slim python
#

i need permission to speak

somber heath
#

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

slim python
#

!voice

#

so how do i verify?

#

30 messages

#

?

#

being here for 3 days

#

?

#

wr u from?

#

im from the US

#

how old ru?

#

im 19

#

u in college?

#

lol

#

how do i learn coding?

#

will i be able to fix my computer, coz my pc keeps lagging all day? and i wanna build games

#

yes python

#

FPS

#

ok

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.

somber heath
#

Corey Schafer, Youtuber. Playlists. Python for Beginners.

slim python
#

thanks alot man

#

oh

#

so i gotta learn C++?

#

for how long u been programming?

#

impressive

grim marsh
#

Google latam dev job boards @midnight agate

whole bear
wise cargoBOT
#

Hey @noble copper!

It looks like you tried to attach file type(s) that we do not allow (.pdf). 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.

quasi wadi
#

ok

#

hahaha

#

no

#

ohohhhhhh

#

yeees

#

hahhaha

#

srry

#

idnt have the accents clear

#

well any way she never listened an australian guy

#

hahaha

#

so any way say hello

#

ahhaha

#

well

#

i have to go

#

bye agin

#

ahha

#

how old are you

#

if i can know

somber heath
#

Old enough to have regrets.

quasi wadi
#

my sister sais that you have a voice very

#

like and old man

loud karma
quasi wadi
#

actually not old but maybe 20

#

she sais that she fell in love with your voice hahhaha

quasi wadi
cunning lake
#

20 is old ?

#

hahaha

quasi wadi
#

nop

#

but

#

I'm 16

#

so

loud karma
#

I'm 3

quasi wadi
#

actually I'm 15

#

but I'm one year more intelligent

#

hahhahaha

#

what

#

13?

loud karma
#

i have two choices:

  1. offscreen rendering (cefpython) to render it on screen (i know this doesnt make sense but)
  2. reimplement the whole browser 😩
    which 1 should i choose 😩
#

uhh, add a browser to dpg

#

!pypi dearpygui

wise cargoBOT
loud karma
#

lmao

#

any recommendations on which gui lib i should go for? 🥺

#

ooh

#

pyqt but better license

#

heard of it

#

:)

#

import PySide6 as PyQT

#

hm

cunning lake
#

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

loud karma
#

lmfao

cunning lake
#

!e programmer = {'hello', 'world'}

print(programmer)

wise cargoBOT
#

@cunning lake :white_check_mark: Your eval job has completed with return code 0.

{'world', 'hello'}
loud karma
somber heath
#

Sets.

loud karma
#

qtdesigner vs visual studio .net drag&drop

#

lemme take a ss brb

cunning lake
#

!e programmer = {'what are you ?'} print = (programmer)

wise cargoBOT
#

@cunning lake :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     programmer = {'what are you ?'} print = (programmer)
003 |                                     ^^^^^
004 | SyntaxError: invalid syntax
loud karma
#

i think there is scope different between js and python

#

hm

cunning lake
#

!e programmer = {'love', 'to love'}
print(programmer)

wise cargoBOT
#

@cunning lake :white_check_mark: Your eval job has completed with return code 0.

{'to love', 'love'}
loud karma
#

{:} empty dict when

somber heath
#

:

#

{} Empty dict

cunning lake
#

!e print ('hello world')

wise cargoBOT
#

@cunning lake :white_check_mark: Your eval job has completed with return code 0.

hello world
loud karma
#

!e

print({'1​', '1'})
wise cargoBOT
#

@loud karma :white_check_mark: Your eval job has completed with return code 0.

{'1\u200b', '1'}
loud karma
#

:( tried to scam yall

#

zero width space :)

wind raptor
#

!e

my_dict = {"name": "Chris", "age": 33}
my_set = {"Chris", 33, 33, 33, 33}

print(my_dict)
print("---------------")
print(my_set)
wise cargoBOT
#

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

001 | {'name': 'Chris', 'age': 33}
002 | ---------------
003 | {33, 'Chris'}
wind raptor
#

¯_(ツ)_/¯

cunning lake
#

!e programmer = ['Hii', 'i am friendly'] print(programmer)

wise cargoBOT
#

@cunning lake :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     programmer = ['Hii', 'i am friendly']                                             print(programmer)
003 |                                                                                       ^^^^^
004 | SyntaxError: invalid syntax
loud karma
#

like shift enter

#

idk how to press enter on phones

wind raptor
#

!e

my_set = set()
my_dict = {}

print("my_set is", type(my_set))
print("my_dict is", type(my_dict))
wise cargoBOT
#

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

001 | my_set is <class 'set'>
002 | my_dict is <class 'dict'>
cunning lake
#

!e #i am not push to talk

wise cargoBOT
#

@cunning lake :warning: Your eval job has completed with return code 0.

[No output]
loud karma
#

dict cant have repeat keys iirc?

loud karma
wise cargoBOT
#

@loud karma :warning: Your eval job has completed with return code 0.

[No output]
loud karma
#

whops

#

ooh

#

!e

import random


for x in set(random.sample(range(10), 10)):
    print(x)
cunning lake
#

!e sets = ['i know', 'what i can do', 'or not'] print(sets)

wise cargoBOT
#

@cunning lake :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     sets = ['i know', 'what i can do',  'or not']                                               print(sets)
003 |                                                                                                 ^^^^^
004 | SyntaxError: invalid syntax
somber heath
#

!e py import random nums = [*range(10)] print(nums) s = random.shuffle(nums) print(s) print(nums)

loud karma
#

pfft

wise cargoBOT
#

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

001 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
002 | None
003 | [6, 3, 0, 9, 7, 5, 8, 2, 1, 4]
loud karma
#

time to make some unboundlocalerror

#

!e

a = [1, 2, 3]
def test():
    import random
    random.shuffle(a)
test()
print(a)
#

interesting

wise cargoBOT
#

@loud karma :white_check_mark: Your eval job has completed with return code 0.

[2, 3, 1]
cunning lake
#

!e
hii = 'hii i wont to go and run in the field'
print(hii)

loud karma
#

i thought it'd raise unboundlocalerror

cunning lake
#

!e
hii = 'hii i want to go and run in the field'
print(hii)

wise cargoBOT
#

@cunning lake :white_check_mark: Your eval job has completed with return code 0.

hii i want to go and run in the field
loud karma
#

ooh

somber heath
#

!scope

wise cargoBOT
#

Scoping Rules

A scope defines the visibility of a name within a block, where a block is a piece of python code executed as a unit. For simplicity, this would be a module, a function body, and a class definition. A name refers to text bound to an object.

For more information about names, see !tags names

A module is the source code file itself, and encompasses all blocks defined within it. Therefore if a variable is defined at the module level (top-level code block), it is a global variable and can be accessed anywhere in the module as long as the block in which it's referenced is executed after it was defined.

Alternatively if a variable is defined within a function block for example, it is a local variable. It is not accessible at the module level, as that would be outside its scope. This is the purpose of the return statement, as it hands an object back to the scope of its caller. Conversely if a function was defined inside the previously mentioned block, it would have access to that variable, because it is within the first function's scope.

>>> def outer():
...     foo = 'bar'     # local variable to outer
...     def inner():
...         print(foo)  # has access to foo from scope of outer
...     return inner    # brings inner to scope of caller
...
>>> inner = outer()  # get inner function
>>> inner()  # prints variable foo without issue
bar

Official Documentation
1. Program structure, name binding and resolution
2. global statement
3. nonlocal statement

loud karma
#

idk why but this broke my brain

#

my life has been a lie

#
>>> a = 1
>>> def b():
...     a=2
...
>>> b()
>>> a
1

i dont get how random.shuffle can assign it 🥴

#

ooh

runic elk
#

🖐🏻

#

hello!

loud karma
#

👋

#

wonderin if anyone here made a transpiler.
idk how to transpile 1 ast to another, do i have to make a parser to the targeting lang?

#

woah i barely know it lmao

#

time to learn more about these two langs 🥴

#

python -> nim

#

weird, my speaker borken

#

lemme restart my comp

#

weird, restarting didnt fix it

wind raptor
#

Good luck @somber heath

#

!e

string = "hello"
print(string.upper())
wise cargoBOT
#

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

HELLO
whole bear
#

Bruh

#

I Still Can't Talk Here

#

Can You Here Me?

#

See

#

Yes

#

I Have

#

IDK

wind raptor
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

wind raptor
#

!rule 8

wise cargoBOT
#

8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.

vivid palm
#

hi everyone

honest pier
#

hi mina~

wind raptor
#

Hey 👋

vivid palm
#

hi~

#

just educate

#

or don't

#

just get your friend to give you the source then

sour imp
#

Ive been trying to they just dont want to accept the info they want the answer theyre searching for

vivid palm
#

¯_(ツ)_/¯

#

you're free to do what you want with your friends on each other's sites

#

don't share it on this server though

#

i know

#

just telling you

#

don't share it, don't ask for help on it, etc

#

so

#

what is everyone else up to

#

lol no

#

but

#

if i wave a magic wand

honest pier
#

1984 😔

vivid palm
#

i can enforce a topic change meow3c

#

what about 1984?

#

did you read it

honest pier
#
for x, y in zip(L, L[1:]):
  ...
#

or islice if you care about perf

sour imp
#

THANK YOU!!!!

loud karma
#

the anxiety of keyboard

vivid palm
#

@whole bearif you're on windows you can just use krisp

wind raptor
#

I set my keybind for mute toggle to right-alt button

cunning lake
#

!e
play = ("suger ray")
print(play)

wise cargoBOT
#

@cunning lake :white_check_mark: Your eval job has completed with return code 0.

suger ray
honest pier
#
for x, y in itertools.pairwise(L):
  ...
vivid palm
wind raptor
#

Right!

honest pier
#
enum Option<T> {
  Some(T),
  None
}
#

since Some is guaranteed to be non-null, rust can just use a null pointer to represent the None variant, and something non-null to represent the Some variant

vivid palm
#

oh i learned git stash today

honest pier
#

this saves memory because you no longer need to some field to store what variant it is

high hatch
honest pier
#

😔

somber heath
#

.xkcd 386

viscid lagoonBOT
#

What do you want me to do? LEAVE? Then they'll keep being wrong!

lament cloud
#

heyo

wind raptor
#

!d zip

wise cargoBOT
#
zip

zip(*iterables, strict=False)```
Iterate over several iterables in parallel, producing tuples with an item from each one.

Example:

```py
>>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']):
...     print(item)
...
(1, 'sugar')
(2, 'spice')
(3, 'everything nice')
```...
lament cloud
lament cloud
#

to do alt m

#

in some apps

#

lol

#

if a keyboard dont have alt its trash

icy axle
#

I’ve actually started using it for pasting in place in InDesign

vivid palm
#

haha

#

i think i have my right alt binded to greenshot/screenshot making

lament cloud
#

well

#

i dont have it binded

honest pier
#

!e

def sort(L):
  for i in range(len(L)):
    for j in range(len(L)):
      if L[j] > L[i]:
        L[i], L[j] = L[j], L[i]

L = list(range(0, -10, -1))
sort(L)
print(L)
#

🥴

wise cargoBOT
#

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

[-9, -8, -7, -6, -5, -4, -3, -2, -1, 0]
somber heath
icy axle
#

24 = 4!

honest pier
#

oops

#

!e

from time import perf_counter_ns
from random import sample
def sort(L):
  
  for i in range(len(L)):
    f = True
    for j in range(i, len(L)):
      if L[j] < L[i]:
        f = False
        L[i], L[j] = L[j], L[i]
    if f:break
L = sample(range(10000), k=10_000)
t = perf_counter_ns()
sort(L)
print(perf_counter_ns() - t)
wise cargoBOT
#

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

4992864892
honest pier
#

!e

from time import perf_counter_ns
from random import choices

L = choices(range(10_000), k=10000000)
t = perf_counter_ns()
L.sort()
print(perf_counter_ns() - t)
wise cargoBOT
#

@honest pier :warning: Your eval job timed out or ran out of memory.

[No output]
honest pier
#

!e

import psutil
print(psutil.virtual_memory())
wise cargoBOT
#

@honest pier :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'psutil'
honest pier
#

😔

#

why are any of you awake bruh

stuck furnace
#

I too am familiar with the number 200

vivid palm
#

lmao