#voice-chat-text-0

1 messages ยท Page 726 of 1

waxen mauve
#

um

#

yea

#

lets take taht for example

#

what is the first step

#

that u do

gentle flint
#

first I looked at all the steps I was already doing when I did it by hand
I wrote them down on a bit of paper

#

then I looked if the process could be simplified any by removing some steps

#

then I broke down those steps into things that a computer could do

#

then I translated them from English instructions into Python code

waxen mauve
#

hum that is a good example

#

so if you didnt know where to start on the python code

#

what would you do

gentle flint
#

google it

#

I have a clear idea in my head what I wanna do, in English

#

since it's in small steps, if I get stuck on one step, I google that individual step

waxen mauve
#

what should I use

gentle flint
#

for what?

waxen mauve
#

to find what I do wrong or find codes

gentle flint
#

you're going to have to be more specific

waxen mauve
#

like a website that u typically use

gentle flint
waxen mauve
#

to find codes

#

see idk if i am using the right word

#

cuz im not too familiar with it

gentle flint
#

for Python code examples, I generally look in the Python documentation

weary zephyr
#

stackoverflow helps too

gentle flint
#

stackoverflow I prefer to use for solving problems

waxen mauve
#

umm

rich cloud
#

wow, they allowed streaming now. niceee

waxen mauve
#

is there things I need to know that will help me start

gentle flint
#

@waxen mauve why don't you do a basic Python course

waxen mauve
#

I did

gentle flint
#

that'll take you through every single one of the things I just told you

#

oh?

#

which one

#

can't have been a very good one or you'd have known this

waxen mauve
#

well I watched this 4 hrs yt video

#

on it

gentle flint
#

ah

#

if you're interested, this is the best python course I know of

#

incidentally, it's free

waxen mauve
#

ok look ove this

#

over this

#

can u explain to me what he is doing on number 3

#

what does that doe

weary zephyr
#

it's a comment, it "does" nothing, but makes the code more readable for others

gentle flint
#

seriously, though, do the course

#

that, too, is listed in there

waxen mauve
#

Ight thx yall

#

is there something else I should watch before starting the course

#

to learn about computer science in general

gentle flint
#

nope, just start

waxen mauve
#

ight thx

tall latch
#

hyderabad and bangalore

tidal salmon
#

I asked what people from Kolkata think about Mother Teresa.

alpine delta
#

any one want to teach me the basics on python 3

#

lol

somber heath
#

@alpine delta Some of the first things I suggest to people is to watch youtube tutorials. Corey Schafer chief among them. The other is to read through the python documentation at python.org, specifically the downloadable version.

#

Also

#

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

alpine delta
#

thx

somber heath
#

As to the downloadable docs, located on the documentation page in the upper left, there's a pdf collection in a zip that I like. In that is library.pdf, which I consider to be the Python bible.

#

First, you would select your IDE, your integrated development environment. You don't need one, but it can help. It's basically a bit of software that makes writing and running your code easier. You'll mostly hear about three. IDLE, which is Python's native editor, Pycharm and Visual Studio (VS) Code.

#

IDLE is your basic, no-frills IDE. I use it because I don't have to muck around with anything complicated in order to get it to work and because my computer is a potato.

#

The other two are fancier.

#

People like them.

whole notch
#

Manners maketh man

somber heath
#

@tame nexus If you could not send me DMs unless you want to say something to me as an aside, that would be preferable. ๐Ÿ™‚

#

I have not expressed any interest in joining your discord server, so please don't send me anything like that again. ๐Ÿ™‚

tall latch
#

House Designing - girl
age 7: everything should be pink
age 15: i want a lot of decorative things
age 25: put this here and that there. hmm. no the other way around
age 60: you shouldn't imagine moving that to anywhere it should be right there

high ingot
#

yes

#

Opal speaks classic Australian English

elder field
uncut meteor
#

Delta time

graceful nebula
elder field
#

b = a + datetime.timedelta(seconds=3)

cedar briar
#
b = a + datetime.timedelta(hours=1)
elder field
#

hours = int(input('enter no of hours:'))

#

Same for seconds and minutes

#

@graceful nebula ?

#

@graceful nebula are you there?

graceful nebula
#

i'm getting help in a channel that shares screens

elder field
#

Can I give you the whole code? @graceful nebula

graceful nebula
#

sure

hard wyvern
#

hello

#

@versed island

uncut knoll
#

Ghost ping huh

hard wyvern
#

lol

uncut knoll
#

Haha

hard wyvern
#

there is a youtuber same name as u have

versed island
#

@hard wyvern hi

latent shell
#
import random
import turtle
from typing import List, Tuple


class Racer:
    def __init__(self, name: str, colour: str, x: int):
        self.name = name
        self.colour = colour
        self._turtle = turtle.Turtle()
        self._turtle.color(colour)
        self._turtle.penup()
        self._turtle.shape('turtle')
        self._turtle.setheading(90)
        self._turtle.setx(x)
        self._turtle.sety(-250)

    @property
    def position(self) -> Tuple[float, float]:
        return self._turtle.pos()

    def move(self):
        self._turtle.pendown()
        self._turtle.forward(random.randrange(1, 20))

    def delete(self):
        self._turtle.clear()

    def winner_dance(self):
        self._turtle.penup()
        self._turtle.setpos(0, 0)
        self._turtle.shapesize(5, 5, 12)
        for _ in range(20):
            if random.randint(0,1):
                self._turtle.left(random.randint(45, 90))
            else:
                self._turtle.right(random.randint(45, 90))


def race(participants: List[Racer]) -> Racer:
    while True:
        for racer in participants:
            racer.move()

            if racer.position[1] > 200:
                return racer


width, height = 500, 500
turtle.screensize(width, height)

my_racers = [
    Racer("Lightning McQueen", "Red", (width//5)*-2),
    Racer("Troybert", "Blue", (width//5)*-1),
    Racer("Eco Warrior", "Green", (width//5)*0),
    Racer("Ninja Pingu", "Black", (width//5)*1),
    Racer("Privlidged", "Grey", (width//5)*2)
]

winner = race(my_racers)
print(f"The winner was: {winner.name}")

my_racers.remove(winner)
for racer in my_racers:
    racer.delete()

winner.winner_dance()

# Output to file
with open('scores.txt', 'w') as f:
    f.write(winner.name)
grand tinsel
#

Hi, can someone please help me with a simple fastapi question

wise glade
grand tinsel
#

from typing import Optional

from fastapi import FastAPI
from pydantic import BaseModel

class Item(BaseModel):
name: str
description: Optional[str] = None
price: float
tax: Optional[float] = None

app = FastAPI()

@app.post("/items/")
async def create_item(item: Item):
return item

#

I need a status code, response body and request body

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.

faint ermine
#
class Racer():
    pass

class Race():
    def __init__(self, participants):
        self.participants= participants
    
    def race(self):
        # racing code here
        self.losers = [all losing racers]
        self.winner = racer
        racer.winner_dance()
        return racer

my_racers = [racer, racer, racer]

race1 = Race(my_racers)
race1.race()
race2 = Race(race1.losers)
race2.race()
wise glade
faint ermine
#

same person

#

same userid

#

same message

#

@velvet seal chat here

velvet seal
#

Ok.

#

The sound is very very bad.

faint ermine
gentle flint
#

Output may refer to:

The information produced by a computer, see Input/output
An output state of a system, see state (computer science)
Output (economics), the amount of goods and services produced
Gross output in economics, the value of net output or GDP plus intermediate consumption
Net output in economics, the gross revenue from production l...

velvet seal
#

@faint ermine your voice sounds funny))))

median bone
#

you don't print it out

#

you read it

#

:))

gentle flint
#

first one

#

then the other

faint ermine
median bone
#

oh ok

#

ty

#

nah i found this earlier but you said something about the upper left corner

#

and got confused a bit :))

#

ok ty

#

i'm gonna freaking read

#

all of this

#

i want to read it all

#

why not?

gentle flint
#

because it's frickin huge

median bone
#

even if you don't learn all the information from it

#

you'll have an idea

#

of what you're talking about

#

right?

#

the thing is

#

one of the pdf's, which is the largest

#

has like 250 pages

#

nah

#

this is c-api

#

oh library.pdf is 9 times bigger

whole bear
#

you could type help("<insert-mod-name>") in cmd after opening py repl

median bone
#

honestly i want to read over half of it at least

#

because i'm 16

#

and it's time i get serious about programming

#

because i've been slacking a lot

whole bear
#

HAHA

#

I feel

median bone
#

i mean

somber heath
#

Python is really good with forcing documentation automatically.

median bone
#

i practiced solving problems

#

but it seems hard for me to work with api's

#

and stuff

#

that's what i mainly want to read about

somber heath
#

At least documentation of a sort.

median bone
#

rly?

#

anyway, i still need practice on the syntax

#

hm ok

#

i mean i'll still read it

#

let's say i don't get it now

#

but someday i'll remember it

#

and understand it

#

the sooner i know some things

#

the better

whole bear
#

hehe

#

ye

median bone
#

no, no

#

that's not what i'm thinking

#

i'm thinking that after reading all of it

#

i'll at least be able to solve basic problems faster

#

oof

#

it's hard

#

to understand

#

other's code

#

like

whole bear
#

no

#

it isn't

median bone
#

i also want to learn

#

how to use

#

github

whole bear
#

haha

#

git

median bone
#

what's the difference between git and github?

#

i don't get it

whole bear
#

omg

median bone
#

oh ok

scenic geyser
median bone
#

oooooh ok

#

so basically

#

git is the tool you use to manage code

#

and github is the platform

#

you post this code on

#

?

scenic geyser
#

Git is the CLI

median bone
#

oh ok

whole bear
median bone
#

btw what should I do now?

#

like

#

i need to work on small problems, for my exams

#

but

#

besides that

#

should I work on harder problems or do some projects (apps)?

somber heath
#

"If you want to create issues..." Troublemakers, eh?

median bone
#

how many years old are you guys?

#

nice

whole bear
#

theyre probably 20-40

somber heath
#

Older than the sun.

whole bear
#

hehe

grand tinsel
#

Hi

whole bear
#

yes

grand tinsel
#

Can someone please help me with a issue

whole bear
#

jesus is a glitch

#

jk

grand tinsel
#

from typing import Optional

from fastapi import FastAPI
from pydantic import BaseModel

class Item(BaseModel):
name: str
description: Optional[str] = None
price: float
tax: Optional[float] = None

app = FastAPI()

@app.post("/items/")
async def create_item(item: Item):
return item
I need a status code, response body and request body

#

It's a API related issue

gentle flint
grand tinsel
#

Okay, sorry.

gentle flint
#

this chat is meant for people in the voice chat

grand tinsel
#

Ok

faint ermine
scenic geyser
#

Bye guys

pure path
#

Heya

amber raptor
somber heath
#

Ceiling wax.

rugged root
#

Ooo I like that one

quasi mesa
#

how to share screen

#

@pure path

#

I'm just curious

#

its showing that I'm not allowed?

rugged root
#

We disabled it since we had little twits streaming porn

quasi mesa
#

oof

rugged root
#

So I enable it for people that I'm helping

quasi mesa
#

alright

pure path
#

wow 8 admins online

quasi mesa
#

the first time I'm seeing these many admins online

pure path
#

there are a total of 10 admins iirc

quasi mesa
#

rlly?

#

ohk

amber raptor
#

Why does discord make this difficult

pure path
#

make what difficult?

quasi mesa
#

guys somebody talk about something

ivory basalt
#

what's the code for?

rugged root
gentle flint
#

@cedar briar just wanted to say that I love your PFP

#

that's all

cedar briar
#

thank you! @gentle flint

pure path
#

or vim

#

vim is light weight

whole bear
#

@rugged root maybe just explain that try is like him/her picking up a box, but if the box is too big, then you cannot do that
exception is: if you cannot do that then say, "ow boy I cannot pick up this box"

#

ow that's fine, just hoping to give you a hand

amber raptor
pure path
#

using a bot?
@amber raptor

amber raptor
sweet talon
#

hey

#

how much more messages do I need to send to be able to talk?

amber raptor
#

good conversation with people, go help someone out or have discussion with people in off-topic channels, you will hit way too lower number quickly by doing that

somber heath
neon sleet
#

why does code help has 6/5 people lol

somber heath
#

Because mods/admins.

#

They can join full channels and also drag people into them.

pure path
#

ye

pure path
hard wyvern
#

subprocess.Popen([r'C:\Users%USERPROFILE%\AppData\Roaming\Zoom\bin\Zoom.exe'])

pure path
#

what are u trying to do again?

amber raptor
#

auth = Auth(public_key=os.getenv('CLIENT_PUBLIC_KEY'))

hard wyvern
amber raptor
#

os.environ dict of environment variables

pure path
#

time to learn docker

whole bear
#

guys can u help me? i got stuck (

amber raptor
pure path
#

what's that?

#

oh the from part

rugged root
candid venture
#
@syncchat.route('/dashboard')
def dashboard():
    if session.get('uuid') is not None:
        try:
            session['username'] = getUsername(session['uuid'])
            session['discriminator'] = getDiscriminator(session['uuid'])
            session['avatarUrl'] = getAvatarUrl(session['uuid'])
            return render_template('dashboard.html')
        except:
            return redirect('/login')
    return redirect('/login')

@syncchat.route('/dashboard/<guild-id>')
def guilds(id):
    if session.get('uuid') is None:
        return redirect('/login')

pure path
#

can u have multiple run command on docker?

rugged root
#

How do you mean?

pure path
#

here @candid venture

#

ha hemlock using the real pythons example

limber blaze
#

meme

rugged root
#
def do_twice(func):
    def wrapper_do_twice(*args, **kwargs):
        func(*args, **kwargs)
        func(*args, **kwargs)
    return wrapper_do_twice
#
def derp():
  print("derp")
pure path
#

really hemlock

#
def do_twice(func):
    def wrapper_do_twice():
        func()
        func()
    return wrapper_do_twice
#

the same thing

rugged root
#

!e

def decorator_example(func):
  print("Entering outer wrapper\n")
  def wrapper(*args, **kwargs):
    print("Entering inner wrapper\n")
    func()
    print("Exiting inner wrapper\n")
  print("Exiting outer wrapper\n")
  return wrapper

@decorator_example
def example():
  print("Inside the wrapped funciton\n")

example()
wise cargoBOT
#

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

001 | Entering outer wrapper
002 | 
003 | Exiting outer wrapper
004 | 
005 | Entering inner wrapper
006 | 
007 | Inside the wrapped funciton
008 | 
009 | Exiting inner wrapper
pure path
#

huh

#

i wasn't listening

#

A complete introduction to Docker. Learn how to Dockerize a Node.js and run manage multiple containers with Docker Compose. https://fireship.io/lessons/docker-basics-tutorial-nodejs

00:00 What is Docker?
01:54 Installation & Tooling
02:40 Dockerfile
06:06 Build an Image
07:12 Run a Container
08:52 Debugging
09:35 Docker Compose

Source code htt...

โ–ถ Play video
#

thx lol, i have yet to learn a lot lot lot lot

#

ye but some people know a lot

#

i.e - eivl, and salt die

candid venture
#

Create a Docker Container on Linode right now w/ $100 credit: https://bit.ly/nc_linode

*Sponsored by Linode

โžก๏ธCheckout ALL my training at CBT Nuggets: http://bit.ly/nc-cbt

0:55 โฉ What is a Virtual Machine?
4:12 โฉ What is Docker?
6:41 โฉ FREE DOCKER LAB
16:50 โฉ Why Docker?

FREE Docker lab on Linode: ($20 credit): https://linode.com...

โ–ถ Play video
pure path
#

bruh he knows the entire python data model like memorizied

#

eivl has 27 years of exp with just programming

#

that's insane

#

ye

#

this is my note on him

candid venture
rugged root
#

Sorry to bail in the middle of my tangent, just realized what time it was so I have to get this done

limber blaze
#

week 2 of no anti depressant or anxiety med

whole bear
limber blaze
#

thank you sire

whole bear
limber blaze
#

i wonโ€™t sire do not fear

#

can i get the developers role again

stiff tendon
#

d

wise cargoBOT
#

:x: According to my records, this user already has a mute infraction. See infraction #26165.

#

:incoming_envelope: :ok_hand: applied mute to @stiff tendon until 2021-01-05 17:44 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

median bone
#

guys

#

are you here?

#
def shot(k,a,b,c):
    checker = True
    while (a!=0) and (b!=0) and (c!=0):
        if (a>=b) and (a>=c):
            k += 1
            a -= 1
        elif (b>=a) and (b>=c):
            k += 1
            b -= 1
        elif (c>=a) and (c>=b):
            k += 1
            c -= 1
        if k == 7:
            a -= 1
            b -= 1
            c -= 1
            k = 0
            if (a==0) and (b==0) and (c==0):
                checker = False
                print('YES')
    if checker == True:
        print('NO')
#

how can i shorten this?

ocean sail
#

sup

rugged root
#

!server

wise cargoBOT
#

Server information
Created: 3 years, 11 months and 28 days ago
Voice region: europe
Features: COMMUNITY, PARTNERED, INVITE_SPLASH, BANNER, RELAY_ENABLED, NEWS, DISCOVERABLE, VANITY_URL, ANIMATED_ICON, WELCOME_SCREEN_ENABLED, VIP_REGIONS, MEMBER_VERIFICATION_GATE_ENABLED, PREVIEW_ENABLED

Channel counts
Category channels: 27
News channels: 8
Text channels: 151
Voice channels: 12
Staff channels: 63

Member counts
Members: 127,674
Staff members: 86
Roles: 80

Member statuses
status_online 39,451
status_offline 88,223

pure path
#

40k online yikes

#

imagine someone pingingin 40k people like lemon did, it would be halirious

#

!e

a = ['1','2','3']
print(list(map(int, a)))
wise cargoBOT
#

@pure path :white_check_mark: Your eval job has completed with return code 0.

[1, 2, 3]
uncut meteor
#

!e
list(map(print, ["you", "suck", "nerd"]))

wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | you
002 | suck
003 | nerd
pure path
#

map is cool

#

so is zip

uncut meteor
#

come back to me when you zip a map to map a zip

whole bear
#

zip is dope

#

zip has nothing on map

pure path
#

!d zip

wise cargoBOT
#
zip(*iterables)```
Make an iterator that aggregates elements from each of the iterables.

Returns an iterator of tuples, where the *i*-th tuple contains the *i*-th element from each of the argument sequences or iterables. The iterator stops when the shortest input iterable is exhausted. With a single iterable argument, it returns an iterator of 1-tuples. With no arguments, it returns an empty iterator. Equivalent to:... [read more](https://docs.python.org/3/library/functions.html#zip)
whole bear
#

hey this is me building up to 50 messages in chat

#

My friend and I just got through the pandas course on dataquest.io

whole bear
#

alright

pure path
#

this is the best docs i have read

#

!d logging-cookbook

wise cargoBOT
#
Logging Cookbook Author Vinay Sajip <vinay_sajip at red-dove dot com> This page contains a number of recipes related to logging, which have been found useful in the past. Using logging in multiple modules Multiple calls to logging.getLogger('someLogger') return a reference to the same logger object. This is true not only within the same module, but also across modules as long as it is in the same Python interpreter process. It is true for references to the same object; additionally, [...]```
None
remote canopy
#

help

#

pls

sick cloud
#

hello

sick cloud
uncut meteor
whole bear
#

What we learned today is to always use df.loc[] explicitly

sick cloud
#

why is it so queit in vc

remote canopy
#

I am confusion

pure path
remote canopy
#

I dont know where to put the code at the bottom for it to work

#

I dont know what I gotta change in my code for It to work

whole bear
#

we also learned we don't need to use .loc for series in pandas but we decided we're going to anyway

pure path
#

Anyone wanna type race?

whole bear
#

ok

pure path
#

let me get the link

remote canopy
#

please i need help

pure path
#

damn

#

4th

whole bear
#

I got 27 wpm

#

72*

pure path
#

who the blue guy

whole bear
#

I'm blue

pure path
#

blue got 15 for me

#

oh wowo

remote canopy
pure path
#

125

whole bear
#

I got 72 again

pure path
#

i am 4th

#

no

#

i got my first computer at 4th grade

sick cloud
whole bear
#

68

pure path
#

i am in 10th

remote canopy
#

Jag please help me

pure path
#

typeracer mine highest is 107

whole bear
#

78

pure path
#

3rd

#

i can get good on monkeytype

whole bear
#

I started learning touch typing in February of 2020 with typingclub.com

pure path
#

like my highest on mkonkeytype is 125

remote canopy
#

please the person in my help room isnt helping

whole bear
#

I got 68 on that one

pure path
#

66

feral willow
#

should look at keybr. Pretty useful

whole bear
#

oh no I got 65 on that one

pure path
#

@rugged root u know the highest on monketype is 250 wpm

remote canopy
#

@pure path yeah I did that the person there isnt helping

pure path
#

91 cool

vivid palm
#

^ you can just try again another day

pure path
#

no

#

it was on 60 sec

#

yep

#

nope

#

yep

#

there is a vid

whole bear
#

oh I can join just not talk

vivid palm
#

yes

pure path
#

linus is a fast typer among the staff

whole bear
#

3rd

#

ugh

pure path
#

why do u use push to talk?

#

it's 2 am here

#

lol and i still not asleep

whole bear
#

I'm on my way to 50

pure path
#

oh no there is hifeen

#

3rd

whole bear
#

4th

#

can y'all let me win one?

feral willow
#

5th

whole bear
#

y'all take hand roids?

uncut meteor
#

inject daily

whole bear
#

I messed up on the word love because it scares me

#

3rd

pure path
#

no but i am getting a new keyboard tomorrow

whole bear
#

I'm typing with neuralink

pure path
#

Ohh @vivid palm jack types on that

vivid palm
#

who's jack

#

?

pure path
#

one of the helpers

#

1st

#

nah

#

that's not true

whole bear
#

yall hacking

pure path
#

@vivid palm what's your score on monketype?

vivid palm
whole bear
#

I got 69 nice

feral willow
#

3rd

vivid palm
#

avg is still only 100 though

#

also

#

i had nail extensions

pure path
#

oh 130 on 30 sec

pure path
vivid palm
#

this whole fall/winter lol

#

fake nails

#

which i finally removed this week

#

so hopefully i can get improve my average?

pure path
#

ye

rugged root
pure path
#

oh how are u able to type on that

vivid palm
#

i honestly don't know if i'll be able to use a 40% regularly lol.

whole bear
#

neuralink it

gilded rivet
#

Nerualthink

#

(tm)

whole bear
#

got to skip the middle man that is your arm

#

yall should give me 5 second head start

feral willow
#

@vivid palm , is that glass or acrylic?

vivid palm
#

glass with walnut

#

i also have an acrylic tofu, polaris, and sirius ๐Ÿ˜„

pure path
#

wait ima go do something

whole bear
#

working my way to 50 to have my voice heard

#

almost close to being there

#

metal

#

neuromorphic

#

I gotta be at 30 messages by now

feral willow
#

looks aesthetic, but dust will be a pain

vivid palm
#

^ btw you also have to have been on the server for like 3 days

vivid palm
#

and there's another requirement for duration of visit or smth

mossy siren
#

my name is Eli

#

i am learning Python Programming with @whole bear

whole bear
#

we did pandas today and learned to always to .loc

#

to keep life easy

vivid palm
#

why always .loc?

mossy siren
#

.loc attribute was annoying at first

sick cloud
mossy siren
#

but we got the hang of it

sick cloud
rugged root
whole bear
#

df.loc[''] in pandas to select columns of data

chilly spindle
vivid palm
whole bear
#

brb

feral willow
#

Bye!

mossy siren
#

im dpwm to race

pure path
#

i am opening an issue on seasonalbot

mossy siren
#

if you aint first

#

you'r last

whole bear
#

I learned to type to be ready for Neuralink

#

nice

mossy siren
#

im white

whole bear
#

im gold yellow

#

what you get pig

#

im 71

#

wpm

mossy siren
#

yo you guys are super fast

#

need more practice

whole bear
#

lucky wish I had 10 fingers

#

3srd

#

3rd

mossy siren
#

winning this one

#

site just crashed for me

#

๐Ÿ˜ฆ

whole bear
#

made an account

limber blaze
#

guys ij made my agent super speedy

vivid palm
#

keybr.com is also good for learning touch typing

#

for those who want to learn

limber blaze
#

no you donโ€™t want to learn

mossy siren
#

les goooo

whole bear
#

im zargnar

limber blaze
#

typing is bad i use my mouse for everything

vivid palm
#

tts

limber blaze
#

?

pure path
#

@rugged root Could u check this out

#

.issue 551

mossy siren
#

last one

whole bear
#

github commands?

pure path
#

no it's an issue

rugged root
#

Looking now

#

There's a problem with this already, and it's the latency of the Discord API

whole bear
#

2nd

vivid palm
mossy siren
#

you guys are fast!!!! lol

#

i feel shame

rugged root
#

So the bot has to send the message and check when the test starts by sending the words. It then has to check the message and grab its contents. Both of these rely on the API receiving and time stamping them properly

pure path
#

oh it wont' send the words

#

the words are gonna be fit into an image

#

and then it would send that image at once

whole bear
#

one more message towards my voice being heard

#

yall qwerty?

rugged root
pure path
#

I don't get the issue

vivid palm
#

dude

#

i can't

pure path
#

maybe we could move to #dev-contrib and you could explain it there?

whole bear
#

I'm done y'all got too may 90s

mossy siren
#

technique squidward!!

vivid palm
pure path
#

monketype is broken in safari

whole bear
#

yall using 3 hands huh?

pure path
#

cya

mossy siren
#

gg's

whole bear
#

g to the g

pure path
#

right the bot could wait 1s

whole bear
#

y'all more than ready for that

meager flower
#

120 wpm is crazy

rugged root
pure path
#

wait so you are saying that the time that it takes the bot to send the message might delay and it would throw of the calculation?

whole bear
#

I feel like I've been in this server for more than 3 days

mossy siren
#

KimCockerSpaniel

whole bear
#

I should be close to 50 messages with this one adding another to the goal

hushed elm
#

async hard

whole bear
#

I'm inching my way there

#

slowly but surely

#

oh

hushed elm
#

get 69

meager flower
#

seems legit

mossy siren
#

noiice

pure path
#

Oh @rugged root ik the fix to that

meager flower
#

same here

whole bear
#

wait till I get bionic hands

pure path
#

so what happens is that when the bot sends the message it doesn't start the test, the test actually starts when the user reacts to that message

whole bear
meager flower
#

doesnt the bot dm you?

mossy siren
#

myelinated axons

pure path
#

how?

#

but it ensures that the user received the messages

hushed elm
pure path
#

hmmm let me think

rugged root
whole bear
#

they jealous of my axons

#

I'm just built different

mossy siren
#

gg's guys. thanx for the invite . just got done studying with @whole bear for the day. will be on later ๐Ÿ™‚

rugged root
#

Back in a bit

hushed elm
rugged root
#

I'd absolutely listen to a band named that

pure path
#

I am getting an error while trying to setup seasonal bot

#

oh what do that be

#

i don't see anything related to that in contributing guide

#

ok so what i do again

chilly spindle
pure path
#

sure thing

chilly spindle
#

I suppose it's a side effect of using vim

#

(I love keyboard shortcuts)

pure path
#

i havn't used anything beside vsc

chilly spindle
#

I use vsc+vim

#

it's quite neat

pure path
#

hmm

chilly spindle
#

although vim certainly has a bit of a learning curve

#

not as bad as emacs tho kekw

#

also vsc vim has some bugs, so sometimes is just works better in shell

pure path
#

i use kite for auto completion

#

sadly sublime is not open source

rugged root
#

USE_FAKEREDIS=true

pure path
#

ah ok

#

thx

#

well i gotta go to sleep cause it's already 3:13 here

#

cya tomorrow

stuck furnace
#

Hello

#

So you see all the edits on a comment Hemlock?

#

If so, I want to apologise for how often I edit my posts ๐Ÿ˜„

#

Ah right ok

rugged root
#

I'm sure I do more than you with regards to message edits. And in fairness, they're just in the channel. We rarely are actively watching it unless we know some d-bag is ghost pinging or being hateful and quickly deleting it or something

stuck furnace
#

My approach to writing is to get roughly the right words out then edit them into the right order afterwards ๐Ÿ˜„

rugged root
#

Mine is to carefully craft my thoughts and then realize I still sound like a raving lunatic

whole bear
#

is here some one of you italian?

stuck furnace
#

Sound pretty dry

#

I can remember literally falling asleep in software engineering lectures.

hushed elm
stuck furnace
#

Yeah, but people do do that ๐Ÿ˜„

#

David Lynch?

#

Also everywhere in America is miles away from everywhere else

rugged root
#

Bleh, forgot I had to do shredding. I'll likely head home right after

whole bear
#

Hi guys

stuck furnace
#

Yo

whole bear
#

sup

#

@tiny seal Are you from uk?

median bone
#

they would

whole bear
#

Oh

median bone
#

if gas would be 5 dollars per gallon people wouldn't be like: "oh i have to walk 100 meters, let me get out my car"

whole bear
#

I got a Poland friend and he is super smart

median bone
#

+public transportation is much more efficient from my perspective

#

like

#

you burn a lot to make a train move, but you transport much more people

#

i think it's worth it

whole bear
median bone
#

i wish to do that as well

whole bear
#

otherwise I have to walk miles

median bone
#

xD

#

how do i translate it, wait..

stuck furnace
#

Not sure I follow... ๐Ÿ˜„

median bone
#

subway?

#

is that the word? :D

#

why not use that instead of driving

whole bear
#

Lol

median bone
#

much faster, don't have to wait in traffic

whole bear
#

HARBY> "STFU and let me finish"

#

lol

median bone
#

i'm following

#

it's so fun staying with you

#

i'm just hanging out with people on voice to hear more english

whole bear
#

yeah

#

same

median bone
#

since english isn't my native language

whole bear
#

same

median bone
#

nice :D

#

where're you from?

whole bear
#

me? I'm from south africa

median bone
#

nice

#

i'm from romania

whole bear
#

Nice

median bone
#

nice :D

whole bear
#

@amber raptor But there are some people behind which takes a lot of money from public

median bone
#

what is mng?

#

mpg*?

whole bear
#

which you need to find

median bone
#

oh ok xD

stuck furnace
#

Also reduce minimum parking spaces required?

median bone
#

if you think like that

#

of course we're fucked

#

if noone does anything

#

of course we're fucked

whole bear
#

@gentle merlin How do you know?

median bone
#

that's why we have to do something

#

if noone cares, what can anyone expect?

whole bear
#

one person can't change the world

median bone
#

no

#

but if more people think the same

#

a group of people forms

#

:D

whole bear
#

Yeah

#

I don't know man it's insane

#

hahaa

median bone
#

true

#

btw can anyone help me shorten my code a little bit? :))

whole bear
#

@severe elm Nice answer

severe elm
#

xD

median bone
#

i mean, not the whole code, just the definition

whole bear
#

show the code

median bone
#

2sec

#
def shot(k,a,b,c):
    checker = True
    while (a!=0) and (b!=0) and (c!=0):
        if (a>=b) and (a>=c):
            k += 1
            a -= 1
        elif (b>=a) and (b>=c):
            k += 1
            b -= 1
        elif (c>=a) and (c>=b):
            k += 1
            c -= 1
        if k == 7:
            a -= 1
            b -= 1
            c -= 1
            k = 0
            if (a==0) and (b==0) and (c==0):
                checker = False
                print('YES')
    if checker == True:
        print('NO')
#

omg how do you not melt at 40 degrees

#

oh it's fahrenheit

#

it would've been funny if you said kelvin

#

:))

#

102 degrees fahrenheit?

#

idk man i use celsius :P

severe elm
#

hahahaha

median bone
#

?

#

:))

severe elm
#

DONT DRIVE TOO MUCH WITH CARS GUYS

#

you can always use a damn bycicls

median bone
#

ok so can i shorten that code?

#

xD

#

so if i want to do a -= 1, b -= 1, c -= 1

#

can i do it all at once?

stuck furnace
median bone
#

lmao

#

:)))))

#

ok brb i'm going to bathroom

stuck furnace
#

Also brb ๐Ÿ˜„

severe elm
#

Mai

#

Maitoon

swift thicket
#

I wish I could talk in the channel to show you how a spaniard pronounces mai hahaha

stuck furnace
#

Where has this conversation gone

#

in the 2 minutes I was away ๐Ÿ˜„

#

English

#

Alright, that explains it ๐Ÿ˜„

whole bear
#

@spark eagle Check DM lol

median bone
#

DUUUDE

#

mai means may in my language

#

like

#

the month may

#

xD

#

lmao

#

:))

severe elm
#

rackoon cartoon

stuck furnace
#

Oh dear no

severe elm
stuck furnace
#

Like experts exchange

median bone
#

lol

#

guys

#

did you check

#

my status?

#

:))))))))

#

so nobody checked my status

#

:(

stuck furnace
#

God no

median bone
#

yes

#

i would

#

i would

#

definitely

#

totally

#

why do you think we're weird?

#

lmao

amber raptor
#

I lived in Japan for 3 years

median bone
#

:OOOO cool

#

how was it?

#

did you accomplish all my dreams while you were there?

#

why?

#

lmao

#

i'll hit you with the

#

no, u

#

ok so

#

it's 00:37pm

#

and i kind of want to go to sleep

#

don't wanna mess up my sleep schedule again

#

so

#

bye bye guys

gentle merlin
#

pzzz

median bone
#

good night

#

:D

amber raptor
stuck furnace
#

You can also do it in the shell

#

On unix.

#

Erm, ok

#

Bye @tiny seal

#

Sorry for the ping

vestal mason
#

@faint ermine hey can you message me when your online. I had a few questions for you

stuck furnace
#

Hey @vestal mason is it something someone else could help you with?

#

Because feel free to claim a help channel if so.

vestal mason
#

@whole bear, it was more so about a conversation we were having about making request to load JavaScript

stuck furnace
#

Erm, I have a mic

#

not sure if I'm going to talk though ๐Ÿ˜„

#

Ah right

#

Ah, is that in relation to the big hack recently?

#

Oh right ๐Ÿ˜„

#

Yep

#

We're somewhere between the US and continental Europe

#

thanks to Thatcher ๐Ÿ˜„

#

Yep

#

I've always thought that a large part of security is just designing systems that are simple enough for people to use securely.

#

But idk, I skipped computer security at college so I probably shouldn't give my opinion ๐Ÿ˜„

#

Oh right. Is that differential privacy?

#

Yep @graceful nebula

#

Should be straightforward...

#

```python

#

```

#

this like that

graceful nebula
#

class Die:
    def __init__(self, number: int):
        self.number = number

    def roll(self):
        return randint(1, self.number)

    def __repr__(self):
        return f'D{self.number}'

d4 = Die(4)
d6 = Die(6)
d8 = Die(8)
d10 = Die(10)
d12 = Die(12)
d20 = Die(20)
d100 = Die(100)```
amber raptor
#
y = <number of rolls>
result = 0
for x in range(0,y):
  result += roll_dice
result += <modifier>```
stuck furnace
#

You're making rapid progress if you're already on to classes ๐Ÿ˜„

amber raptor
#

!e python import random y = 2 result = 0 for x in range(0,y): result += random.randint(1,6) result += 2 print(result)

wise cargoBOT
#

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

14
stuck furnace
#

d6.roll() + d6.roll()

#

Easy to forget those kinds of language details

amber raptor
#

!e python i = 0 for x in range(0,2): i += 1 print(i)

wise cargoBOT
#

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

2
amber raptor
#
def roll_number_of_times(times:int, modifier:int = 0)```
whole bear
#

hi, everyone. what is this "python bot" messages?
this discord channel has a built-in python interpreter?

stuck furnace
#

Yep, you can execute code with the !eval command (!e for short)

#

Try it out

whole bear
#

!e print("Hello")

wise cargoBOT
#

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

Hello
whole bear
#

nice

stuck furnace
#

No pressure ๐Ÿ˜„

#

@whole bear bad connection?

whole bear
#

does anyone have any puzzles

#

I need to type on here some more

stuck furnace
#

Python puzzles?

whole bear
#

Im not sure how many more messages

#

just small maths/logic puzzles u can type on here

amber raptor
#
class Rabbit:
  #Built In
  def __init__(self):
    pass
  #Private
  def __private_function(self):
    pass
  #public
  def public1(self):
    pass
  
  def public2(self):
    return public1()```
whole bear
#

lol

#

ok i've got one

#

!e import sys
print(sys.version)

wise cargoBOT
#

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

001 | 3.9.1 (default, Dec 11 2020, 14:22:09) 
002 | [GCC 8.3.0]
whole bear
#

is the answer to this question no?

stuck furnace
#

Tbh, I don't know either ๐Ÿ˜„

#

I usually go with whatever feels right

whole bear
#

if 1=5

#

2=10

stuck furnace
#

I'm not a language lawyer.

whole bear
#

3=15

#

4=20

#

5=?

stuck furnace
#

@whole bear from the looks of it you might already have enough messages.

whole bear
#

really?

stuck furnace
#

Did you join the server recently?

whole bear
#

..25?

#

No

amber raptor
#

def roll_number_of_times(times:int, modifier:int = 0)

whole bear
#

@whole bear nope

stuck furnace
#

Try running the voiceverify command

whole bear
#

i've been here for a while

amber raptor
#
for x in range(0,2):
  i += 1
print(i)```
whole bear
#

!voiceverify

#

lol

stuck furnace
#

@graceful nebula are you following a tutorial?

whole bear
#

ty @stuck furnace

stuck furnace
#

Np ๐Ÿ‘

#

What editor did you decide to use in the end?

whole bear
#

I am using pycharm

amber raptor
whole bear
#

@whole bear it is 1

stuck furnace
#

See ya Rabbit ๐Ÿ‘‹

#

Yeah, due to past issues...

#

Before my time here ๐Ÿ˜„

#

Pretty much.

#

So, you're making a text-based game @graceful nebula ?

#

Oh right.

graceful nebula
whole bear
#

def roll_dice(n):
x = random.randint(n)
print(x)

stuck furnace
#

Did you get help writing the class?

#

Do you understand what it does?

#

I mean, for now it might be best to just use functions.

#

Classes usually come a little bit later on when learning Python.

#

You were in here the other day right?

#

Not sure what you mean sorry?

graceful nebula
stuck furnace
#

Ahh

#

Are you on Windows?

#

I think it might be ctrl . ?

#

Or ctrl / ๐Ÿ˜„

whole bear
#

Oh ๐Ÿ˜„

stuck furnace
#

I'm guessing tbh, I'm on mac

#

Ah nice

whole bear
#

oh mac user

#

oh nice

#

I'm going to use mac on my vm

#

i need to download it first

stuck furnace
#

Alright, and sum the result?

#

Btw, in case someone didn't already give you this link, check out our resources section:

#

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

stuck furnace
#

Ah right ๐Ÿ˜„

#

So, what resources are you using to learn python?

#

Nice ๐Ÿ˜„

whole bear
#

def dice_roll(n_rolls, n_sides):
rolls = [0]*n_rolls
for i in range n_rolls:
rolls.append(rand_int(1, n_sides))

stuck furnace
#

Here's my attempt:

whole bear
#

output

stuck furnace
#
import random

def role_dice(num_dice, num_sides):
    total = 0
    for die in range(num_dice):
        total += random.randint(1, num_sides)
    return total
#

```python
```

whole bear
#
from random import randint


def dice_roll(n_rolls, n_sides):
    rolls = []
    for i in range(n_rolls):
        rolls.append(randint(1, n_sides))
    print(rolls)


dice_roll(3, 4)

stuck furnace
#

Yep

whole bear
#
from random import randint


def dice_roll(n_rolls, n_sides):
    rolls = []
    for i in range(n_rolls):
        rolls.append(randint(1, n_sides))
    print(rolls)


dice_roll(3, 4)
stuck furnace
#

You can also execute code here @whole bear

graceful nebula
#
print('hwllo world')
stuck furnace
#

!eval ```python
print('hello world')

wise cargoBOT
#

@stuck furnace :white_check_mark: Your eval job has completed with return code 0.

hello world
stuck furnace
#

With our bot ๐Ÿ˜„

#

!eval on the first line

#

Then some code yep

whole bear
#

!eval
print('hwllo world')

wise cargoBOT
#

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

hwllo world
stuck furnace
#

hwllo world

#

.uwu hello world

viscid lagoonBOT
#

hewwo wowwd

graceful nebula
#

.uwu mr president, im drowning

viscid lagoonBOT
#

mw pwesident, im dwowning

stuck furnace
#

Tbh, if you just started learning yesterday, classes are bound to confuse you ๐Ÿ˜„

#

Nope, dropped out of uni.

#

Erm, it was a few years ago.

#

I got too stressed ๐Ÿ˜„

#

Fell behind, and couldn't catch up.

#

Have you ever tried Khan Academy @graceful nebula ?

#

I actually dropped out of sixth-form (like last two years of high-school), and KA helped be get back on track enough to apply to university.

#

Erm, because I'm dyslexic ๐Ÿ˜„

whole bear
#

ur from england @stuck furnace ?

stuck furnace
whole bear
#

nice, same

stuck furnace
#

Yep ๐Ÿ˜„

#

Something goes wrong in my brain between the meaning of the word and the production of the spelling.

#

I spend far too much time doing programming puzzles ๐Ÿ˜„

#

Want an esoteric python puzzle?

whole bear
#

@stuck furnace how do I becoem a helper?

#

become*

stuck furnace
#

I think it's getting to the point where python might get usurped soon.

#

Due to the language getting complicated by feature additions.

stuck furnace
whole bear
#

@stuck furnace ok nice thanks

stuck furnace
#

I mostly just answer questions in the help channels.

#

I thought it was a wine-tasting term? ๐Ÿ˜„

#

You pretty much just have to read the whole file @whole bear

dry ocean
#

lmao im muted

stuck furnace
#
with open('myfile') as file:
    for linono, line in enumerate(file):
        if lineno < 42:
            continue
        ...
dry ocean
#

yeah

stuck furnace
dry ocean
#

yeah I gotta type some more lol

#

understandable

stuck furnace
#
with open('myfile') as file:
    for lineno, line in enumerate(file):
        if lineno == 0:
            continue
        ...
``` @whole bear
#
with open('myfile') as file:
    contents = file.read()

all_but_first_line = '\n'.join(contents.splitlines()[1:])
dry ocean
#

not sure if im allowed to straight up ask but if one of yall can take a look at the question i asked in #๐Ÿคกhelp-banana that would be cool

stuck furnace
#

fixed it ๐Ÿ˜„

dry ocean
#

also please watch my new movie

stuck furnace
#

fixed the other error ๐Ÿ˜„

dry ocean
#

"King Richard" 2021 staring me, Will Smith

#

Please don't let my acting career die out like my marriage did

stuck furnace
#

You're really committed to this roll (or is it role?)

#

Oh yeah ๐Ÿ˜„

#

Yeah, it kind of defeats the point...

dry ocean
#

Florida has pretty much already gained immunity but only after basically everybody got it and a ton of people died

stuck furnace
#

Can also cause brain damage apparently.

#

Pretty scary

dry ocean
#

cant brake whats already broken

#

it be like that

#

yall talking about trump?

stuck furnace
#

Yang

dry ocean
#

ah

#

yeah I woulda voted yang

#

but they really had to make me vote trump

#

like why biden

#

yang was so good

#

in 2016 the democrats picked one of the only people that america hated as much as trump to run against him

#

it seemed like they did the same again

#

also anyone know how i can monetize a discord bot cuz im tryna chase that bag g

#

Talking politics in a text channel is risky lmao

stuck furnace
#

Alright, I have to go.

amber raptor
stuck furnace
#

See ya ๐Ÿ™‚ ๐Ÿ‘‹

dry ocean
#

no I got that one down

#

well atleast the blueprint

#

but the process of making it able to purchase

amber raptor
#

Write pay system. Likely integrated with the bot.

gentle flint
#

@dry ocean

dry ocean
#

ah sick

whole bear
whole bear
#

aa

#

I do not know know how many more messages i have to send till i can vc but lettttssss goooooo

sweet talon
#

hey

whole bear
#

@tidal salmon good question

sweet talon
#

I also need more to sed

#

can someone have a conv with me

tidal salmon
#

Remember not to spam to get to 50 messages ๐Ÿ‘

whole bear
#

me?

#

now why would I do that?

sweet talon
#

not spamming, just trying to have a nice conv

whole bear
#

yup, that's us

sweet talon
#

so

#

how are you doing @whole bear

whole bear
#

Doing good, how about you @sweet talon ?

sweet talon
#

I'm doing great!

whole bear
#

Glad to hear!

sweet talon
#

just got another project to do from my teacher!

#

python game but with a server!

#

never done this before

whole bear
#

Wow

sweet talon
#

๐Ÿ˜„

whole bear
#

That is pretty cool

sweet talon
#

i guess, but I have no idea how to do that

#

I was struggling to make a menu last time

#

so a server?

whole bear
#

YouTube.com has some good videos that can help with game servers

sweet talon
#

yea

#

like my teacher always says

whole bear
#

Lol

sweet talon
#

"dr google is your best friend"

whole bear
#

That is what I use for the most part