#voice-chat-text-0

1 messages · Page 728 of 1

rugged root
#

It's magical

stuck furnace
#

"Your spotify was instagram-your-tent-at-sunset-jazz-flex-cabincore bad." 😄

#

I feel personally attacked.

rugged root
#

I'll show you my results in a sec

#

It's magical

stuck furnace
#

Nice 😄

rugged root
#

Again, it blames Primus TWICE

#

Which is fair

stuck furnace
#

Do you have a checkerboard fedora?

stuck furnace
#

Do you have experience in another language @dense ibex ?

limber blaze
stuck furnace
#

Paper?

somber heath
#

If libraries are supposed to be repositories of knowledge, why are they called liebraries?

limber blaze
#

pence is hilarious

somber heath
#

He knows which way the wind is blowing.

rugged root
somber heath
#

Which is good to know for when you're the sort of person who spray-paints their hair white.

stuck furnace
#

Relational database is like a collection of tables (relations).

#

A bit like spreadsheet tables.

#

Check out Khan Academy's hour-of-code for databases.

#

brb

limber blaze
#

no such thing as sql it is a myth

versed island
#

SQL is a pseudocode

#

@limber blaze

limber blaze
#

no

#

not even

#

it isn't real

versed island
#

yes thats why its pseudo

limber blaze
#

not even

honest pier
#

sql? fake news

limber blaze
#

fr

#

like INSERT INTO table (potato, cactus) VALUES (?, ?)

#

bruh

#

and then adding params

#

it is stupid

#

and fake

frozen jacinth
#
// key entered is "age", looking for it to return "17"
let getVal = (key) => { 
    // gets database and finds key-value pair with key of key param
    db.get(key).then(value => {
        // logs "value: 17" to the console
        console.log('value:', value);
        // in theory won't return anything if value is undefined
        if (value != undefined) {
            // logging it again just in case, logs "value: 17"
            console.log('value:', value);
            // and then it returns undefined
            return value;
        }
    });
}
limber blaze
#

not python leave

#

js isn't a thing here

dense ibex
#

haha

hasty knoll
#

@frozen jacinth sad i cant talk in vc

#

LOL

rugged root
#

Should be long enough now

dense ibex
#

Alright I will!

fresh kelp
#

typeof myVar !== 'undefined'

hasty knoll
#

my ticket bot has a database

#

my bot is being dumb rn

frozen jacinth
amber raptor
#

And most successful startups come from older people in 40-50/

hushed elm
#

yes, but don't get discouraged from starting something

whole bear
#

Hey guys

frozen jacinth
#

hey

upbeat parrot
#

hey

hasty knoll
whole bear
#

Well, I need help in python

#

Anyone here who really knows it good

#

Because I have quite hard problem

hushed elm
#

BIG hardware

whole bear
#

Please I have deadline in 6 hours

amber raptor
whole bear
#

So if anyone can help me i would rly appreciate it

gusty siren
#

can someone tell a website that generate a cool big text

#

...

gusty siren
#

thxx

fathom shadow
#

hello everyone

unborn socket
#

hello

#

all

versed island
#

does DROP TABLES really work

#

or is it just a meme

unborn socket
#

no

versed island
#

hmm

unborn socket
#

i think you can only drop one table at a time
DROP <table-name>;

versed island
#

kkkay

#

macbook

mortal burrow
#

check the docs

#

or try it yourself

versed island
#

yup

limber blaze
#

200$ bounty on who ever can fix my issue with SSML

#

i'll cashapp

versed island
#

writing code on UNIX type machines is a pleasure

limber blaze
#

only reason i'm offering money is that it is a weird branch of cs and isn't that beneficial to learn unless you want to get into my field of study

daring anvil
#

Mostly I think it would depend upon your field of work

amber raptor
#

Permissive is bad users are dumb.

#

All users including me

versed island
#

what if linux takes lead in quantum era

#

not unlike mac or windows in classical computing

#

for commercial uses

amber raptor
noble copper
#

quantum linux

amber raptor
#

Due to requirements to run quantum computers

daring anvil
#

yeah, 0 Kelvin temps for the qbits

digital jackal
#

yo guys

#

does any one can help me with this error in opencv

#

TypeError: Expected Ptrcv::UMat for argument 'mat'

#

this the line of error

#

cv.imshow("capture",capture)

rugged root
#

No idea

digital jackal
#

f

fair citrus
#

@alpine path do I really have to keep typing 50 message?

#

Chocolate Cake

#

Peace out

rugged root
uncut meteor
#

thats so many buttons tho

#

im buttophobic

#

don't make me button press

fair citrus
#

@rugged root I been here

#

for longggggggggg

#

time

rugged root
#

Fair enough

#

Just force of habit to mention it

fair citrus
#

ok thank you for telling me

uncut meteor
#

as soon as you call it, you fall asleep

#

|| Rabbit was talking about invoking a REST method, for context ||

fair citrus
#

what should I say

#

to reach 50

uncut meteor
#

words?

fair citrus
#

it will sound like spam

uncut meteor
#

then don't spam

#

or else Gunright

fair citrus
#

so what should I say then

#

Thank you

rugged root
#

Could just casually participate in our conversations. Or help in a help channel, ask for help, check out the topical channels, hang out in the off-topic channels....

fair citrus
#

ok let me see

#

if anyone need help

#

don't talk about me

#

yea but why you talk about me as I am bothering you

uncut meteor
#

!e

try:
  print("What could I say")
  raise Exception("You're welcome!")
except Exception as e:
  print(f"Except! {e}")
wise cargoBOT
#

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

001 | What could I say
002 | Except! You're welcome!
fair citrus
#

ok

amber raptor
#
$body = @{
Key = "Value"
Key2 = 2
Key3 = $false
}
Invoke-RestMethod -Uri http://restapi.domain.com -Header @{Key = "Value} -Body ($body | Convertto-Json) -Method POST```
uncut meteor
#

@mental talon sad_cat

rugged root
#

199_721 total messages

#

So close

uncut meteor
#

nerd

hollow haven
#

Helloooo

#

Ohhh definitely

alpine path
#

yo

hollow haven
#

I got engaged!! =D and own a house

uncut meteor
#

there is two admins in here, i scared ScaredRoo

hollow haven
#

Yesterday was eventful

amber raptor
#

like it closed?

hollow haven
#

Yup! Got the keys, fully closed

amber raptor
#

Congrats

hollow haven
#

Thanks! =D

hushed elm
#

npm init

rugged root
#

py -m pip install <module here>

hushed elm
#

pimp my list

rugged root
#

py -m pip list

amber raptor
#

I figure it was eventful because of other things kat

hushed elm
#

🔫 gimme your code

uncut meteor
#

Gunright gimme ur watergun

hollow haven
#

Lol my messages and calls to my friends were like "hey eventful day besides... Gestures vaguely in the direction of DC"

hushed elm
#

⭐ ⭐ 🔫

amber raptor
hollow haven
#

"so my boyfriend is the one actively stealing the podium"

stuck furnace
#

Machine learning is just a part of AI

#

There's AI without machine learning.

#

Called 'expert systems'

uncut meteor
#

this is amazing!

stuck furnace
#

Yep lemon_warpaint

hushed elm
#

the bot should get a promotion

uncut meteor
amber raptor
#

Are you crazy? PyDis bot is already primed for takeover

uncut meteor
hushed elm
#

we humanize that robot

#

even moreso for pets haha

stuck furnace
#

Even just abstract shapes

hushed elm
#

yeh

uncut meteor
#

hummusize the robots!

hushed elm
rugged root
uncut meteor
stuck furnace
#

Mass affects terminal velocity.

whole bear
#

joe

stuck furnace
#

Because more mass means a greater wind resistance force to counteract the force of gravity.

alpine path
#

Webhooks™️

uncut meteor
#

naughty word

#

don't report me

#

pls

stuck furnace
#

boobies lemon_pika

uncut meteor
stuck furnace
#

brb

steady root
#

你在哪你都要不要

rugged root
#

@steady root It's an english only server

amber raptor
#

no reason for any private company to show their finances

steady root
rugged root
#

You're fine, just letting you know

#

Hard to moderate what we can't read

steady root
#

@rugged root you can study

#

Chinese

#

Learn it XD

dense ibex
#

Hey @rugged root can you send me the python video you were talking about or send me the channel that's has it because I cant seem to find it.

rugged root
#

Would rather not have to learn every other language the users in our server use

#

I have to grant it, Jake

#

What do you- ohhhhh

#

Right, sorry

#

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

dense ibex
#

Damn you got your own website

rugged root
#

Yep yep!

dense ibex
#

very professional haha

rugged root
#

Sorry, thought you were asking about the video role

steady root
#

Who is math teacher ?

dense ibex
#

Me, I can teach you algebra and anything below that

steady root
#

Which grade r u in

#

Or maybe you older

rugged root
#

What kind of math?

steady root
#

Hmm idk im studying math in france

#

Im in highschool

#

If someone can help me about python

#

It will be nice !

#

:p

rugged root
#

Sure, what kinds of help do you need

vagrant rune
#

hello

steady root
#

I have an exam in 1 month... they not gonna ask me about programming... just complete an algorithm so it’s not that hard i guess... but i need to watch video or something ? Maybe i can learn by internet ? Do you have a site ?

#

@rugged root

vagrant rune
#

how can i open my microphone?

steady root
vagrant rune
steady root
#

idk XD

vagrant rune
#

😦

rugged root
#

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

rugged root
#

We've got a whole slew of good resources for you, Doux

vagrant rune
#

Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:

• You have been on the server for less than 3 days.
• You have sent less than 50 messages.
• You have been active for fewer than 3 ten-minute blocks......... this is so bad:(

rugged root
#

@vagrant rune It'll go by faster than you think

royal burrow
#

qq

#

still cant talk

rugged root
#

You'll get there. Just a conversation or two left

royal burrow
#

but I need to find out how to make money living in a cubicle

#

idk if i can hold down 2 internships at once

#

when one is already like a 9-5

#

in it

rugged root
#

Yeah that's...

#

That's potentially unhealthy to try to tackle

royal burrow
#

yeahhh, but I graduate in comp prog & info systems in spring 2022

#

and I have to move out now

rugged root
#

Fair point. Still, do what you can handle. There's always a risk of doing poorly at both due to the stress

royal burrow
#

yeah honestly youre not the only one to bring it up. I have a friend whos been helping me with this transition. He's been encouraging me to just get through school

#

I honestly though am trying to find some paid coding opportunities over the summer to build a resume up for when I graduate. The projects I have been working on have been getting to like more fullstack oriented, but I need income and a way to get a real salary position and not just another internship post graduation

rugged root
#

True enough

mortal burrow
ashen igloo
#

how do i get my voice back

mortal burrow
#

@dense ibex

rugged root
#

@ashen igloo Did you leave the server and come back at some point?

ashen igloo
#

yeah

#

uhh

#

@uncut meteor

#

do u know how asyncio works

#

yeah

#

oh sweet

rugged root
#

I'll temporarily disable it so you can get the help you need

#

But if you move channels or disconnect it'll reapply itself

#

Just how it works

ashen igloo
#

thank you!

royal burrow
#

my buddy got a house as a math tutor

rugged root
#

Damn

#

Must have been popular

uncut meteor
#

Another happy customer

#

gg wp

ashen igloo
#

indeed

uncut meteor
royal burrow
#

you are a dirty dirty Developer, take a shower, heres a bar of dove

rugged root
#

!fstrings

wise cargoBOT
#

In Python, there are several ways to do string interpolation, including using %s's and by using the + operator to concatenate strings together. However, because some of these methods offer poor readability and require typecasting to prevent errors, you should for the most part be using a feature called format strings.

In Python 3.6 or later, we can use f-strings like this:

snake = "Pythons"
print(f"{snake} are some of the largest snakes in the world")

In earlier versions of Python or in projects where backwards compatibility is very important, use str.format() like this:

snake = "Pythons"

# With str.format() you can either use indexes
print("{0} are some of the largest snakes in the world".format(snake))

# Or keyword arguments
print("{family} are some of the largest snakes in the world".format(family=snake))
uncut meteor
#

!e
j = "rings"
print(f"f{f'st{j}'} ew")

wise cargoBOT
#

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

fstrings ew
uncut meteor
#

@rugged root rate my string of f

royal burrow
#

What are you wearing?

rugged root
royal burrow
#

mastablasta

rugged root
uncut meteor
#

i'm being targeted with sad sads

stuck furnace
#

Didn't Mark Rober do something like that @eternal bough ?

#

What you talking about? Wasn't listening.

#

Two's complement?

whole bear
#

why is everyone muted?

#

@feral willow

feral willow
#

what do you mean?

whole bear
#

@alpine path

#

why are so many people server muted?

#

in call

#

bruuuuuh

#

why can't I talk

#

bc I need help

alpine path
#

because voice verification probably

whole bear
#

how do I get voice verified?

feral willow
alpine path
#

generally jsut talking and interacting with the community till u get 50 msgs

whole bear
#

okay

#

can you help me btw

#
import time
def createuser():
    global username
    nickname = input("Username: ")

    time.sleep(1)
    
    global password
    password = input("Password: ")

if nickname == password:
    print("You can't have the same username and password, please change your password or username")
    createuser()```
#

so I have this script

#

and it is giving me an error

royal burrow
#

anyway know any lightweight surveillance apps for android phones

whole bear
#

this is the error:
if nickname == password:
NameError: name 'nickname' is not defined

royal burrow
#

or would it be better to just go with ardrunios and crap

stuck furnace
whole bear
#

oh

stuck furnace
#

rather than global nickname

whole bear
#

yeah

#

thanks

#

File "TryingSomething.py", line 11, in <module>
if nickname == password:
NameError: name 'nickname' is not defined

#

same thing again

uncut meteor
#

you define it within the function scope

whole bear
#

huh?

uncut meteor
#

but i'd assume the other would be in the global scope

whole bear
#

I am new to python so Idk what that means

uncut meteor
#

ah

#

1 sec

sick cloud
alpine path
#

brb

whole bear
#

kk

stuck furnace
#

Also, the function has to be called for the global to be created

uncut meteor
#

there is a great vid that just release about global

eternal bough
uncut meteor
#

^ this talks about scopes

#

etc.

sick cloud
whole bear
#

@sick cloud thanks I will try that

uncut meteor
sick cloud
feral willow
uncut meteor
# sick cloud indeed

a guy called Tim I worked with taught me tons, i miss him sad_cat it reminds me of him

sick cloud
sick cloud
#

or just broke up the relation

uncut meteor
#

its not been long

#

its work

#

work is work

sick cloud
#

@whole bear Try: ```py
nickname = ""
password = ""

def createuser():
global nickname, password
nickname = input("Username: ")
time.sleep(1)
password = input("Password: ")

if nickname == password:
print("You can't have the same username and password, please change your password or username")
createuser()

whole bear
#

nvm

#

it was checking if nickname and password was the same

#

and you defined both of them as "" and ""

#

so I just put a space in nickname

#

so it is " "

#

instead

#

and that fixed it

sick cloud
#

how is " " == "" ?

whole bear
#

it isn't

fiery juniper
whole bear
#

I changed "" to " "

sick cloud
# whole bear I changed "" to " "
nickname = " "
password = ""

def createuser():
    global username
    nickname = input("Username: ")

    time.sleep(1)
    
    global password
    password = input("Password: ")

if nickname == password:
    print("You can't have the same username and password, please change your password or username")
    createuser()
```is this how ur code looks ?
whole bear
#

ye

sick cloud
#

hmm, does it ask for the input when u run the code ?

whole bear
#

yes

#

but listen

#

now the if statement isn't running

sick cloud
# whole bear yes

does it say: ```py
"You can't have the same username and password, please change your password or username"

or

"Username: "

#

which one does it say first

whole bear
#

wait brb

sick cloud
#

hmm, but the function shouldn't be called if the statement is false 🤔 cuz: ```py
if nickname == password:
# print statment
createuser()

#

if the if nickname == password: is false then createuser() shouldn't be called

whole bear
#

oh yeah

#

true

#

let me change the code real quick

sick cloud
#

did u de-indent the function or smth ?

whole bear
#

wait

sick cloud
#

paste the code here

stuck furnace
#

balancing a pole on a cart

whole bear
#

I will try having the if statement in the function

sick cloud
#

i smell some physics and newton's law of motoin here

whole bear
#

🙂

sick cloud
uncut meteor
#

which agent?

#

007?

whole bear
#

how do I check how many messages I have?

sick cloud
sick cloud
whole bear
#

okay

sick cloud
#

@Here i'll see ur tmr gn

sick cloud
whole bear
#

wait @sick cloud

sick cloud
whole bear
#

let me ask you a question

#

are you from sweden?

sick cloud
#

nopee

whole bear
#

oh okay

sick cloud
#

b y e e e e

whole bear
#

byeyeyeyeyeye

#

goodnight!

sick cloud
#

thx !

whole bear
#

sleep tight

candid venture
#

@rugged root whats the subject?

rugged root
#

I have no idea

#

Just kind of half listening right now, taking care of work emails

whole bear
#

does anyone have tips for a new python scripter?

dense ibex
#

Do you think I should be coding along with the vid or no because I feel like there is no point because I just delete it for the next part

whole bear
#

I don't really know

#

depends

#

on what kind of video and script it is

rugged root
#

@dense ibex It's good to type it out too

#

It helps you remember it

#

Or at least it does for me

uncut meteor
#

Hemlock is a nerd

rugged root
#

Seeing it in action and being able to mess around with it makes a big difference

uncut meteor
#

i'll remember it for life now
giggle

rugged root
uncut meteor
#

gg wp

regal badge
#

cody ko

#

?

#

who\

#

@uncut meteor

uncut meteor
#

this dude

#

really cool stuff

median bone
#

@tall flicker

#

do you have the problem written

#

somewhere?

#

it's kind of hard to understand what you're askind :))

#

asking*

#

i understood that you have a list of sublists and in each sublist you have 20 numbers, then you want to take the numbers from a sublist and place it in the other sublists?

tall flicker
#
preorder_list = [
    [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
    [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23],
    [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18],
    [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18],
    [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21],
    [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]]
median bone
#

not at all

#

so wait a minute

#

i don't understand the combinations part

#

if you put it into another sublist then order it from highest to lowest it's just one combination

noble copper
#

do you want to get unique elements from all sublists?

median bone
#

like, the only possible one

eternal bough
median bone
#

oh now i get what he wants

#

this makes more sense now :D

whole bear
#

@feral willow

#

do you have any tips on how to get started with python?

uncut meteor
#

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

feral willow
whole bear
#

how do I make it so that is says a message and then it waits for the user to press a specific or any button

#

yes

#

normal

#

vanilla

#

normal python

#

Ik that

uncut meteor
#

input()

#

my_input = input()

whole bear
#

aha

#

Ik that

uncut meteor
#

my_input = input("Type your favourite coffee")

whole bear
#

but how do I make it wait for the user to just press a button

#

for example spacebar

uncut meteor
#

input("Press enter to continue")

median bone
#

how do you highlight code that way?

uncut meteor
#

like so

whole bear
#

u use

#

``

feral willow
uncut meteor
#

`highlight my code please`

whole bear
#

but three times

median bone
#

ok ty

feral willow
whole bear
#

what if I want it to wait for the user to press spacebar?

median bone
#

from getkey import getkey, keys key = getkey() if key == keys.SPACE: do stuff

#

idk if this would work, i'm just giving you the general idea

#

wait, i think we can eval this

#
from getkey import getkey, keys
key = getkey()
if key == keys.
#

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

median bone
#

i think it was pip install

#

i just searched for it

#

real quick

#

i think there's something from windows called raw_input

#

nice

#

idk, i just wanted to give the guy his answer

whole bear
#

do I need to say "Space" in all caps?

median bone
#

you don't

#

i think

whole bear
#

oh okay

median bone
#

i'm not used to python, i just searched it

#

usually i'd search for space's keycode

#

and use that to check

#

also, i think you need to install the library to be able to use it

#

pip install getkey

#

do this in your command prompt

#

nice :D

whole bear
#

File "TryingSomething.py", line 2, in <module>
from getkey import getkey, keys
ModuleNotFoundError: No module named 'getkey'

#

I get that error

#

oh no

#

Idk how to

median bone
#

yeah you don't have the library installed

#

open command prompt and write pip install getkey

whole bear
#

does it matter in what file I do it?

uncut meteor
#

python3 -m pip install getkey

#

or

#

py -m pip install getkey

median bone
#

ok, i'm going to the bathroom really quick :D

whole bear
#

kk

#

bye

whole bear
#

I used to code in python

#

but that was a while ago

#

well what was your question?

#

oh

#

oh

#

it gave me

#

a huuuge red text

#

oh it is an error

#

ERROR: Command errored out with exit status 1:
command: 'D:\Python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Maxen\AppData\Local\Temp\pip-install-fsprnbws\getkey\setup.py'"'"'; file='"'"'C:\Users\Maxen\AppData\Local\Temp\pip-install-fsprnbws\getkey\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Maxen\AppData\Local\Temp\pip-pip-egg-info-4n9xbxsr'
cwd: C:\Users\Maxen\AppData\Local\Temp\pip-install-fsprnbws\getkey
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Maxen\AppData\Local\Temp\pip-install-fsprnbws\getkey\setup.py", line 37, in <module>
long_description=read_description(),
File "C:\Users\Maxen\AppData\Local\Temp\pip-install-fsprnbws\getkey\setup.py", line 11, in read_description
return fd.read()
File "D:\Python\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 876: character maps to <undefined>
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available.
You should consider upgrading via the 'D:\Python\python.exe -m pip install --upgrade pip' command.

#

wait

#

should I do cd \

#

and then go in to D:

#

and go there?

#

I don't really know what that means

#

I am kinda dumb

#

in notepad++

#

py -m pip install getkey

#

I tried the "D:\Python\python.exe -m pip install --upgrade pip" command

#

...

#

that was an easy way to put it

#

unlike how I described it

uncut meteor
#

py -0

whole bear
#

mine is 3.8.7

#

or something

#

I downloaded the 3.8 something

#

cute cat

#

cuteness overload

#

I don't really know

#

just feels weird to press enter

#

true

median bone
#
import keyboard
k = 0
while k < 1:
    if keyboard.is_pressed('space'):
        print('yes')
        k += 1  
#

yep

#

i just tested this

#

it works

#

wait

#

did it even easier

#
import keyboard
while True:
    if keyboard.is_pressed('space'):
        print('yes')
        break  
#

it will execute once and break

#

how?

#

do it!

#

hemlock you're cute

#

now i'm really gonna go to the bathroom then to sleep

#

since it's 00:48 lol

whole bear
#

can I ask a question

#

so

#

":"

#

means like "then" and "do"

#

right?

median bone
#

yes

whole bear
#

okay

median bone
#

in pascal you'd do if "condition" then instruction

#

and pascal is a really old language

whole bear
#

XD

#

a bit of drinking I see

#

which one is best to use

#

'' or ""

#

?

#

so ""

#

@median bone

maiden sage
#

hi
my name is john i am new python programmer

whole bear
#

File "TryingSomething.py", line 2, in <module>
from getkey import getkey, keys
ModuleNotFoundError: No module named 'getkey'

#

do I need to download the library?

#

ew

#

@median bone are you afk?

#

hahaha

#

I'll just make them press enter

median bone
#

yeah i was afk why?

#

@whole bear

whole bear
#

oh

#

okay

#

just wodering

candid venture
gentle flint
whole bear
#

what time is it for you @rugged root ?

#

oh okay

whole bear
#

then it is like 7 hours earlier than it's here for me

median bone
#

oh it's 1 am for me

#

gotta go guys, bye bye, good night

whole bear
#

it is 00:00 for me

#

bye @median bone

#

goodnight

median bone
#

good night :D

whole bear
#

XD

#

sleep tight

#

is it possible to make answers save in a python program

#

so like

gentle flint
whole bear
#

if I say something in an input then it saves for the next time I run the program

#

is it?

#

and if so

#

is it easy?

gentle flint
whole bear
#

do you mean like in a txt file?

#

sooooo...

#

is it easy?

#

?

#

@rugged root

#

do you know if it is?

#

I'm sorry for spamming

#

but I gtg

#

do I need to buy the book

#

or is it an online thing?

#

the website isn't safe according to my browser

#

oh yea

#

okay

#

I was concerned bc I my "trusted" fiend here on dc tried to get my roblox cookie using a link

gentle flint
#

works fine

whole bear
#

@rugged root trying to hack us

#

XD

#

jk

#

I gtg

#

goodnight

#

bye

#

okay

#

I will just dm you

#

one question what is pressure-vessel-launcher?

gentle flint
#

a launcher for a vessel designed to withstand pressure

whole bear
#

it says you are playing it @rugged root

#

oh okay

#

bye guys!

uncut meteor
#

au revoir

gentle flint
#

tot ziens

stuck furnace
#

adios

#

It's kind of a chicken-and-egg problem

uncut meteor
#

i use python2.3

rugged root
#

Yep, he's drunk

uncut meteor
#

f

rugged root
stuck furnace
#

I've seen it both ways lemon_smug

faint ermine
stuck furnace
#

Switching between them is called a 'gestalt shift'

gentle flint
#

I have a mysteriously purring curtain

uncut meteor
gentle flint
#

duck and rabbit

rugged root
#

The spinning dancer, also known as the silhouette illusion, is a kinetic, bistable, animated optical illusion originally distributed as a GIF animation showing a silhouette of a pirouetting female dancer. The illusion, created in 2003 by Japanese web designer Nobuyuki Kayahara, involves the apparent direction of motion of the figure. Some observ...

stuck furnace
#

If you're interested how optical illusions work.

#

It's so interesting.

#

Cabbage can be nice 😄

#

Steamed with butter.

#

But when you overcook it it goes kind of sulphurous.

faint ermine
uncut meteor
#

:cabbudge:

stuck furnace
#

Post pictures of cabbage 😄

whole bear
whole bear
#

close enough right

faint ermine
stuck furnace
#

It's hard to do because you have to adjust your focus weirdly.

#

You naturally want your focus to be really close if your eyes are crossed.

faint ermine
stuck furnace
#

Do you remember wigglegrams? 😄

#

They were briefly a trend

whole bear
#

do be long

stuck furnace
#

Bye 😄

gentle flint
stuck furnace
#

The statue looks like it's floating

gentle flint
whole bear
gentle flint
whole bear
#
import numpy, os
from PIL import Image
os.system("cd /d C:\\users\\administrator\\desktop\\")
imarray = numpy.random.rand(4000,4000,3) * 255
im = Image.fromarray(imarray.astype('uint8')).convert('RGBA')
im.save('array.png')
faint ermine
stuck furnace
#

this that one's great

#

Alright, I'm off cya guys 👋

#

Yeah me too 😄

#

Sorry @whole bear 😄

gentle flint
#

and shut is left alone

gentle flint
#

somedataclass(x="y", y=None if not z else z)

#
from typing import Union, Optional
from dataclasses import dataclass

@dataclass
class somedataclass:
    x: str
    y: Optional[Union[str, None]]
somber heath
#

Is z if z else None equivalent?

gentle flint
#

yes

gentle flint
whole bear
#

yo can i get verifed

somber heath
#

@whole bear You need to go through the process described in the voice verification channel.

whole bear
#

done it already mate

gentle flint
whole bear
#

does anyone here use pycharm

cosmic thorn
#

me

sharp spear
#

hii

cloud rover
#

Me in vc rn O_O

olive siren
#

Hey Guys

cloud rover
#

Hello.

olive siren
#

i'm tryin to get permission to unlock my mic

cloud rover
#

Oh.

#

Wel...

olive siren
#

Hey Kermit

#

😄

cloud rover
#

Hey

olive siren
#

Do you can talk in the Channel

cloud rover
#

Yup

#

But they talkin rn

olive siren
#

Do they motivating each other to take drugs?

cloud rover
#

Um no...

#

They talkin about how some girl made it seem like he was with the way she said it

#

TBH

#

idk what they talkin about right now......

olive siren
#

hm

#

i understand

#

I'm new in Python coding

cloud rover
#

o

olive siren
#

what are the help Channnel named after elements

cloud rover
#

tbh idk

#

XD

olive siren
#

like magnesium

cloud rover
#

XD

olive siren
#

calcium

#

neon

#

boron

olive siren
#

silicon and boron are good ones

#

in it ithink

olive siren
#

gotcha

#

😆

olive siren
#

expect you land on your feet

#

like a cat

#

but on 2 feet

#

there are news about your separation

#

is that right

#

Hey OpaMist

#

sry

#

OpalMist

cloud rover
#

I HAVE BEEN RESURECTED

#

but why!?!?!

somber heath
#
import json

class MyStinkyDatabase:
    def __init__(self):
        self.data = []
    def dump(self):
        with open('data.json', 'w') as file:
            json.dump(file, self.data)
    def load(self):
        with open('data.json', 'r') as file:
            self.data = json.load(file)```
olive siren
#

so you jumped because of the seperation

#

separation

#

oh man

#

BostonDynamics

wise cargoBOT
#

Hey @dense ibex!

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

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

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

https://paste.pythondiscord.com

somber heath
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

dense ibex
#

!code

olive siren
#

!code

#

@somber heath hi

#

i am tryin to get unlocked my mic

#

but i don't want to spam the chat

#

I'm very new in Python you know

#

i had a little bit trouble with the syntax

#

it's a little different

#

I code in other languages

#

thinks like count are different

#

len()

#

if you qant to the number of letters in a string

#

you can count it

#

in python a len() is enough

#

its great

somber heath
#

[1,2,3].__len__()

olive siren
#

looks like ninjacode

#

for me

#

at this point

#

Do you have any recommendations how to deep dive in it

somber heath
#

Corey Schafer, sentdex

#

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

olive siren
#

oh i see

#

like that

#

what are the help-* channels about

#

like elemts

#

elements

#

ok got it

#

i thougt these are extentions

#

or librarys

#

hold a sec

olive siren
#

dgraph

whole bear
#

h

whole bear
#
import asyncio
import datetime
import aioconsole

async def show_time():
    while True:
        current_time = datetime.datetime.now().strftime('%H:%M:%S')
        await aioconsole.aprint(f'\rDo you want {current_time}? ', end='')
        await asyncio.sleep(1)


async def ask_input():
    while True:
        data = await aioconsole.ainput()
        await aioconsole.aprint(f'Data received: {data}')
        if data == 'quit':
            break

async def main():
    task1 = asyncio.create_task(show_time())
    task2 = asyncio.create_task(ask_input())
    await task2

asyncio.run(main())
rich cloud
#

tp is the key

#

ohhh

#
Interesting
whole bear
#

Hello, I am not voice verified yet but I need some help with some basic python! It's for some high school notes, can anyone help?

#

Ok give me one moment, slow typer!

#

Ok so I have prewritten code that I need to modify lightly!

#

That link is the pyhton code thats prewritten.

#

This is my first instruction: In the code editor above, add the following line of code to line 4 to change the size of the turtle.
painter.turtlesize(3)

#

@somber heath

#

Well when i paste it the runner crashes, should I refresh? I'm scared if i resfresh i will lose all my progress?

#

YES like line 4 incorrect syntax

somber heath
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

whole bear
#

oh ok give me one moment, you just gave me the idea to just copy and paste all that code into a word document (cant believe i didnt think of that)

#

ok so now that i refreshed it no error is there, thats super weird

#

i do too! but our school claims its better so that people can code on anything including tablets and such

#

definitely!

#

they give ipad minis out hahahah to students

#

Well people seem to like the Apple ecosystem

#

Ok so my instructions state "Change the value in the parenthesis in forward and right and observe what happens when you run the program again.

Change the value in turtlesize and pensize and observe what happens when you run the program again.

Now, add a few more lines of code so that your turtle draws a square on the screen."

#
import turtle as trtl

painter = trtl.Turtle()
painter.turtlesize(3)
painter.pensize(5)
painter.forward(100)
painter.right(90)
 
wn = trtl.Screen()
wn.mainloop()
#

thats the code

#

ok so what lines should i add so that it draws a sqaure?

#

copy and paste it three times more the "painter.forward(100)
painter.right(90)"

#

Well, our teacher mentioned them but he said python will be short and that we will move to html soon so he doesnt want to waste time and that he is only teachign pyhton because its required

#

he literally told us, get your code from github or form other people if you must

reef jungle
#

I have a problem with my arduino code

#

#include<Servo.h>
Servo serX;
Servo serY;
void setup() {
serX.attach(10);
serY.attach(11);
Serial.begin(9600);
Serial.setTimeout(10);
}
void loop() {
//lol
}

void serialEvent(){

serialData = Serial.readString();
serX.write(parseDataX(serialData));
serY.write(parseDataY(serialData));
}

int parseDataX (String data){
data.remove(data.indexOf("Y"));
data.remove(data.indexOf("X"), 1);

 return data.toInt():

}
int parseDataY (String data){
data.remove(0, data.indexOf("Y") + 1);

return data.toInt();
}

somber heath
#
for i in range(10):
    print(i)```
whole bear
#

OK so for the step of the square, I forgot to paste this

"Stick to methods. For example, a turtle object has a list of methods that can be used to manipulate the object, such as forward(), backward(), and so on."

#

Im actually in graphic design! But the school put us in a basic html course (that has a side focus for a few days on python) and I am using a school computer it blocks all instals

#

They put graphic design students in basic HTML so we can make the websites we design function.

#

I know CSS but not really good at HTML yet. I just couldn't understand why were learning python when that has nothing to do with web design. hahahah! i tried a usb drive and i put firefox ( i prefer it over chrome) and yes its a macbook

somber heath
#

Flask. Django.

#

Python web frameworks.

whole bear
#

Oh right!!! But out teacher was saying we shouldnt bother learning the language because of that all of us are in graphic design and that in the workforce we will have programmers code what we design hahhahaa

#

Yeah, I am more artistic and I was never entirely into programming, and I think perhaps python will be something useful perhaps in a few years. It's just since were ending this section of the course (python) very soon, and we will be learning basic HTML, I don't want to tire myself learning something right now that won't be useful. I take AP english, ap history, and ap chemistry, so I have a busy plate hahahha, but like i said defintely in the future it would be something i would perhaps like to learn, but also I am learning 3d rendering, since our graphic design class wants us to learn maya and blender.

#

Well we model the renders, we have other teams that handle what you described that you may need to use algorithims. Like I am considered the modeling team, while the lighting and physics teams handle the more math based parts (they already know how to code hahahh)

#

well i am in graphic design to have web site designign as a skill, however I plan to work more based on 3d modeling and such. I hope to apply to a univeristy with a great faculty of arts

#

haha so i have designed environments, forests and such, and i use easy assets for lighting and physics so i dont need to know much about math ahaha, and i like to model animals sometimes too, fur is so time consuming

#

like omg modeling fur that is made to look like your in the wind, i modeled a wolf and it took 2 weeks

#

hahha

#

i

#

hope i can get

#

verified

#

ok i will just

#

send in shorter sentecnes

#

instead of large paragraphs

#

ok so what is the easier way

#

to do the square in python

#

ok I am going to see if there is perhaps aany guides or answer keys

somber heath
#
import turtle

for i in range(360):
    turtle.right(1)
    turtle.forward(1)```
whole bear
#

ahh thats super helpful thanks

#

alright i will see to edit it to make it draw a square

#

our teacher literally said, model each hair one by one.

#

i was like WHAT

#

this could be done with shortcuts in 3 days

#

oh no i get it, i have tools installed in maya that let me do things quickly trust me

#

like with the forest

#

i can copy and paste trees

#

YES

#

maya tools are a god send

#

i love art hahah you can make all your imganiation appear on a page or program

#

like its amazing

#

yes in that way art and codign are simlar hahaha

#

your the bob ross for code hahahaha

#

i defintely think coding is super cool, i see why people love it! like and similar to how people view poeple into art as weird and always in another world is the same way how some view sciene geeks and programmers in their code.

somber heath
#

Youtubers Corey Schafer and Sentdex.

#

Django, Flask, Perlin noise, Worley noise, SQL databases.

#

L-systems.

#

Line-line intersections

hushed elm
somber heath
uneven urchin
#

o/

#

paste it

graceful nebula
uneven urchin
#

caling it before I zoom in

#

oh

wise cargoBOT
#

Hey @graceful nebula!

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

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

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

https://paste.pythondiscord.com

uneven urchin
#

nope

#

Yeah

#

You need the visual c build tools

#

there's a pin somewhere...

whole bear
uneven urchin
#

gonna want #2

elder field
uneven urchin
#

On osx and linux this is a lot easier, but its not too hard on windows just not something done regularly

whole bear
#
import turtle as trtl

painter = trtl.Turtle()
painter.turtlesize(3)
painter.pensize(5)
painter.forward(100)
painter.right(90)
painter.right(90)
painter.right(90)
painter.right(90)
 
wn = trtl.Screen()
wn.mainloop()
uneven urchin
#

one ```

three

#

Yeah, you normally don't work with wheels often

#

It's usually internal to pip

whole bear
#
import turtle as trtl

painter = trtl.Turtle()
painter.turtlesize(3)
painter.pensize(5)
painter.forward(100)
painter.right(90)
painter.forward(100)
painter.right(90)
painter.forward(100)
painter.right(90)
painter.forward(100)
painter.right(90)
 
wn = trtl.Screen()
wn.mainloop()
uneven urchin
#

You'll probably have to uninstall 3.9 for it to not get a little off

graceful nebula
#

uninstalling 3.9 and installing the correct version won't mess with any of my code, right?

whole bear
#

for i in range(90):
turtle.right(1)
turtle.forward(1)

uneven urchin
#

Shouldn't, provided you haven't installed other modules with pip already

#

you'll need to re-install those

#

its fine

#

no issues

upbeat parrot
#

Hi

whole bear
#

why is there like no one in this call?

#

hello

whole bear
#

@whole bear

#

can you help me?

uneven urchin
#

I can help

whole bear
#

Hi @whole bear and @hard wyvern

hard wyvern
#

hello

whole bear
#

my password thing is working

#

I made an accountmaker

#

or whatever it's called

#

it asks you what username and password you want

#

and then it saves it into a txt file

#

any tips for what I should add?

#

hey @steep juniper

#

hi @thorn moat

#

@hard wyvern

#

I have a question

#

nvm

hard wyvern
#

yes

whole bear
#

I am completely out of ideas

#

please give me ideas

#

@whole bear

#

@whole bear

#

what ideas

#

things to create

#

in python

#

you can help me lmao

#

you can create minecraft

#

btw

#

I am in the vc

#

so I can hear you

#

you don't need to type in the text channel

#

XD

#

do you guys have any ideas?

#

can you send the questions

#

I want to see them

#

byeeee!

dull jacinth
#

bai

versed island
#

x/50

whole bear
#

mr Hemlock

#

can someone help me

rugged root
#

With?

whole bear
#

I am trying to install pip

#

I found this

rugged root
#

Windows right?

#

You should have pip. Do py -m pip install <module you want to install here>

whole bear
#

but it still doesn't let me do "pip install discord.py"

#

okay

rugged root
#

Have to do the py -m bit before it

whole bear
#

okay

#

thanks!

rugged root
#

No problem!

whole bear
#

btw I am in the same voicechannel as you

#

so you can talk

#

oh okay

candid venture
frozen oasis
candid venture
whole bear
#

hey guys

#

can someone help me

#

I can't run code in atom

#

Mr Hemlock

#

do you know anything about that?

#

oh

#

okay

rugged root
viral shale
#

hello

#

guys

#

hello

#

good what about u

#

ok

#

how can i get video role sir

#

@rugged root

rugged root
viral shale
#

no I am talking video role not voice role @rugged root

#

ok

#

so there is no way to earn it like voice role

rugged root
#

Not currently. I'm trying to devise a system that may work, but as of right now I only grant it temporarily to people who are getting help or are being helped by me so I can moderate it

viral shale
#

ok thank u

#

I will ask u if i need it

whole bear
#

How to test classes using pytest?

candid venture