#voice-chat-text-1

1 messages ยท Page 5 of 1

scarlet swallow
#

o ok xD

#

F

#

!b

#

!big

#

how do i write big code

rocky granite
devout ledge
#

Nice music

#

๐Ÿ˜

loud gazelle
#

hey is it worth it to become a py dev for a semi big corps it dep.

ivory basin
#

hello

astral spoke
#

@crystal aurora

for element, set_idx in enumerated(set_):
  assert set_idx <= list_.index(element), f"Element {element} was found in list before set"
ivory basin
# ivory basin
from collections import Counter

num = int(input())
sep = []
for _ in range(num):
    text = input()
    sep.append(text)

x = Counter(sep)
print(len(list(x.keys())))
res = []
for key, value in x.items():
    res.append(value)
print(*res)
astral spoke
golden marsh
#

as i said, a bit of a ugly hack

rocky granite
hallow current
#

yeah

rocky granite
#

Are you the OpalOpossite

hallow current
#

AntiSocial ?

#

oh xD

rocky granite
#

Your about

#

OpalMist

#

Opposite

hallow current
#

Yeah I'm the opposite one

rocky granite
#

Nice to meet you Opal-site

golden marsh
#

does it have a LSP server?

astral spoke
astral spoke
royal dust
#

Hi

#

i need some help plz

#

i can't talk

#

less than 50 messages

golden marsh
#

you can send a message here and we can respon in voice

royal dust
#

okay

#

thax

golden marsh
#

but please stop sending messages in random channels

#

that still counts as spam

royal dust
#

sorry

#

im trying to talk hahaha

#

and sorry my English in bad

#

So

#

im try to use google drive api
and its not working

rocky granite
#

@pale pivot Byee

pale pivot
#

Byee

golden marsh
#

"The Greatest Show on Earth" from VEHICLE OF SPIRIT - Wembley 2015 featuring Richard Dawkins, English ethologist, evolutionary biologist, and author.
Directed by Ville Lipiรคinen.

LYRICS:
https://genius.com/Nightwish-the-greatest-show-on-earth-lyrics

NIGHTWISH is:
Tuomas Holopainen - Keyboards
@Floor Jansen - Vocals
@Marko Hietala - Bass
Emppu...

โ–ถ Play video
pale pivot
#

Might be back on later in a couple.hours if you're around

golden marsh
rocky granite
#

Hmm

rocky granite
rocky granite
#

Hey @olive echo

olive echo
#

hey

#

๐Ÿ™‚

golden marsh
#

"sorry i nerdsniped you into doing that"

rocky granite
#

I was nerd snipped

rocky granite
rocky granite
golden marsh
#

!e ```py
import ast
print(ast.dump(ast.parse("""for a in range(100):
if a in (1, 2): a
"""), indent="\t"))

rocky granite
#

@dry perch What sign language do you use? ASL?

coarse hearthBOT
#

@golden marsh :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Module(
002 | 	body=[
003 | 		For(
004 | 			target=Name(id='a', ctx=Store()),
005 | 			iter=Call(
006 | 				func=Name(id='range', ctx=Load()),
007 | 				args=[
008 | 					Constant(value=100)],
009 | 				keywords=[]),
010 | 			body=[
011 | 				If(
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/ojofefikip.txt?noredirect

rocky granite
#

@misty sinew

#

Night y'all.

Everyone who should be sleeping, plis go sleep.

  • The Hypocrite in me
#

Looking at you @golden marsh

golden marsh
#

allright allright

dry perch
#

im so so at it though

#

so i only use it when i dont feel like talking

#

still learning

rocky granite
south schooner
#

soome here for help

#

please get in vc

delicate wren
#

help with what?

#

what os?

#

does python -m pip work?

south schooner
delicate wren
south schooner
delicate wren
#

get pip is for linux, isn't it?

south schooner
south schooner
delicate wren
#

it will error with get-pip.py not found

#

that one should work

#

@south schooner
maybe your pip got removed by antivirus

#

check antivirus list of quarantined files or something like that

#

there should be an option to whitelist

south schooner
#

ok

delicate wren
#

speaking of hacking, I should be doing CTF right now

south schooner
#

just a second

#

ok

#

i will not speak for a while

loud gazelle
#

i need help

#

any1?

delicate wren
mild flume
#

py -3.10

#

py -3.10 -m pip install pygame

static stirrup
#

Hi

#

e

#

a

#

r

#

obswebsocket ๐Ÿ˜ฆ

lusty iron
#

heat=float(input("Please enter the pool temperature in F: "))
pur=input("The purpose for swimming (adult, children, or racing):")
def isSafe(pur,heat):
if pur=="adult" and heat>=83 and heat<87:
return True
elif pur=="children" and heat==90:
print=("The saftey is: True")
elif pur=="racing":
distance=float(input("Please enter the length in M: "))
if distance>5 and heat>=77 and heat <=87.9:
print("The saftey is: True")
elif distance <5 and heat>=77 and heat<=86:
print("The saftey is: True")
else:
print("The saftey is: False")
else:
print("The saftey is: False")
isSafe(pur,heat)

#

can enybody help me w this?

upper vortex
#

which root terminal command to apply to upgrade Python from old to latest?

hearty heath
#

You ok @faint warren ? ๐Ÿ‘€

faint warren
#

idk what happened sorry

#

I didn't meant to

hearty heath
#

Ah yeah. I use direnv to activate python venvs.

rocky granite
#

@digital cradle byee

astral spoke
#
# Export all .gitignored (potentially) secret environment variables
#echo "files: $(find . -maxdepth 1 -type f -name '.env*' -and -not -name '.envrc')"
find . -maxdepth 1 -type f -name '.env*' -and -not -name '.envrc' -print0 |
  while IFS= read -r -d '' file; do
    # loop-iteration per file
    echo -e "Gonna read:\t$file"
    if ! [ -r "$file" ]; then return; fi;

    for line in $(cat "$file"); do
      # loop iteration per line in file
      echo -e "trying to export:\t$line\tIn file: $file"
      eval "export $line"
    done
  done
rocky granite
#

Bye y'all night night

#

I did the peace sign lol

#

without thinking

hearty heath
#

What's the issue?

#

๐Ÿ‘

#

Maybe you could write a function and use xargs ยฏ_(ใƒ„)_/ยฏ

#

Erm, one sec sorry.

#
load_envs() {
    for file in "$@"
    do
        echo "Loading $file"
        cat "$file" | while read line
        do
            ...
        done
    done
}
#

This is probably full of errors lemon_sweat

#

Erm, yep ๐Ÿ‘

#

Although now that I think about it, I'm not sure you can use a function as the argument to xargs.

#

I was thinking bash find ... -print0 | xargs -0 load_envs but I realise now that xargs doesn't accept a function.

#

Errr

mild flume
#

I'm really glad to see you around more, LX

#

For some reason it's calming

hearty heath
#

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

#
local line
misty sinew
#

Yall wanna see an ai creating a to do list manager?

hearty heath
#
load_envs() {
    local line
    ...
}
misty sinew
#
tasks = []

def add_task(task):
    tasks.append(task)
    print("Task added: ", task)

def view_tasks():
    print("Tasks:")
    for task in tasks:
        print(task)

def mark_complete(task):
    tasks.remove(task)
    print("Task completed: ", task)

while True:
    action = input("What would you like to do? (add/view/complete) ")
    if action == "add":
        task = input("Enter task to add: ")
        add_task(task)
    elif action == "view":
        view_tasks()
    elif action == "complete":
        task = input("Enter task to mark complete: ")
        mark_complete(task)
    else:
        print("Invalid action")
#

list.remove(x): x not in list

#

ValueError

#

Im making an AI code snake in python

hearty heath
#

๐Ÿ‘‹

#

I can hear you ๐Ÿ‘€

misty sinew
#

@mild flume whatcha doin'

pale pivot
#

@mild flume what you programmin

mild flume
#

Just relearning PowerShell

pale pivot
#

shudder

mild flume
#

Don't have a lot of time to do anything in depth for programming (have holiday deliveries here shortly)

#

I like it

misty sinew
#

Asia check in ๐Ÿ™‹โ€โ™‚๏ธ

primal igloo
#

@mild flume How do you get voice verified?

mild flume
rocky granite
#

@raven orbit Hey

mild flume
deft roost
astral spoke
#

Prekestolen, Sognefjorden, Nordkapp

misty sinew
rocky granite
#

@deft roost bye?

misty sinew
misty sinew
astral spoke
#

@misty sinew @rocky granite

deft roost
astral spoke
deft roost
astral spoke
deft roost
astral spoke
deft roost
coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied mute to @astral spoke until <t:1671643387:f> (10 minutes) (reason: attachments rule: sent 8 attachments in 10s).

The <@&831776746206265384> have been alerted for review.

high scarab
#

!unmute 156198616065769472

coarse hearthBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @astral spoke.

high scarab
#

Maybe send less photos at once

astral spoke
#

Unhealthy

deft roost
astral spoke
#

@misty sinew challenge accepted

rocky granite
astral spoke
rocky granite
#

<

deft roost
misty sinew
astral spoke
rocky granite
misty sinew
astral spoke
misty sinew
solar sentinel
misty sinew
#

๐Ÿณ๏ธ ๐Ÿณ๏ธ ๐Ÿ˜ฎโ€๐Ÿ’จ

solar sentinel
astral spoke
solar sentinel
#

just drink coca cola

#

and red bull

#

whole day

deft roost
solar sentinel
#

nah

#

with sugar

astral spoke
#

รธ

#

Dr Pepsi Panther Tรธyen

full vale
#

As i didn't verify for voice chat I can't tell what Gymkhana is๐Ÿ˜‚.Gymkhana is nothing but a event designed to test driving skills

astral spoke
#

@mild flume may I screenshare?

rare fossil
#

hi guys

mild flume
#

Yeah one sec

rare fossil
#

np

#

why am i not allowed to speak

#

@mild flume

astral spoke
#

@rare fossil: !voice

#

!voice

coarse hearthBOT
#

Voice verification

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

mild flume
#

!stream 156198616065769472 3w

coarse hearthBOT
#

โœ… @astral spoke can now stream until <t:1673460382:f>.

orchid sandal
#

someone here?

coarse hearthBOT
#

Hey @candid garnet!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

worthy stump
#

res = struct.unpack(">4s",b"\x74\x72\x61\x6B")

#

str(res[0],'utf-8')

#

'trak'

coarse hearthBOT
#

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.

worthy stump
#
res = struct.unpack(">4s",b"\x74\x72\x61\x6B")
str(res[0],'utf-8')
#

str(res[0],'utf-8')

#

@candid garnet

tight pecan
#

ow okay sorry

#

thats better

#

umm what are you doing i didn't he

#

hear it weell

#

well

#

broo i'm making way too much orthograph faults its dramatic

#

ok

#

cool

#

yes yes

#

and chat ai

#

yes math is incredible

#

i'm actually making some olympic maths

#

i'm part of the frensh team of IMO

#

IMO stands for International Maths Olympiad

#

quite cool

#

so yeah maths is clearly better than programming

#

but actually right now we still need coders

#

what?

#

lmao

#

yes

#

yes

#

for real

#

i fucking agree

#

nope

#

can you send a link

#

yeah cool

#

and it's about what?

#

oww

#

it

#

is

#

sooo

#

coool

#

incredible

#

yes python has been made for math

#

yes

#

lmao you're better than you're teacher

#

lmao

#

actually you're better at optimising

#

Bro i think you have some connection problem

#

or it's your mic that isn't

#

in front of your mounth

#

mouth

#

how many lines have your projetc

#

projetc

#

projeeect

#

wooow

#

i'm have some problem don't I

#

lmaoo i correct my self with the same error

#

Um how can I get access to a mike

#

?

trail crag
coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied mute to @trail crag until <t:1671716557:f> (10 minutes) (reason: duplicates rule: sent 4 duplicated messages in 10s).

The <@&831776746206265384> have been alerted for review.

trail crag
#

hello

deft roost
#
Ran 54 tests in 1.219s

OK

== Tests result: FAILURE ==

368 tests OK.

2 tests failed:
    test_codecs test_locale

25 tests skipped:
    test_aepack test_al test_applesingle test_bsddb test_bsddb185
    test_bsddb3 test_cd test_cl test_dl test_gl test_imageop
    test_imgfile test_kqueue test_linuxaudiodev test_macos
    test_macostools test_msilib test_ossaudiodev test_py3kwarn
    test_scriptpackages test_startfile test_sunaudiodev test_winreg
    test_winsound test_zipfile64
2 skips unexpected on linux2:
    test_bsddb test_bsddb3

Total duration: 12 min 56 sec
Tests result: FAILURE
#
Trying:
    test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
ok
Trying:
    [e.lineno for e in test.examples]
Expecting:
    [1, 9, 12]
ok
doctest (test_zipped_doctest) ... 46 tests with zero failures
ok
test_doctest_main_issue4197 (test.test_zipimport_support.ZipSupportTests) ... Expected line File "/tmp/tmp0DVICP/script.py", line 2, in __main__.Test
Got stdout:
potent niche
deft roost
#

liveOverFlow

#

Grant Collins

#
#
earnest gull
#

@stuck bluff whatโ€™s the best project you ever made?

misty sinew
#

hello

#

@stuck bluff are you working as python developer ?

feral compass
#

!voiceverify

coarse hearthBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <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.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

latent hound
#

Am looking for a one teammate or two by max so we can learn together and solve ex. From leetcode everyday by choose a specific hour. I just start to attend udacity course for algorithms and data. Anyone interested DM me

uneven mountain
#

voice chat

rocky granite
#

!user

coarse hearthBOT
#

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

still meteor
#

@outer umbra i'll talk here

#
def is_acceptable_password(password):
    if len(password) < 6:
        return False
    for digit in "0123456789":
        if digit in password:
            return True
        if digit not in password:
            return False
#

so this fails on something like 11111111 right

#

kinda yea

#

mhm

#

so the idea is that you don't want to return false in the loop

#

because it could be that other digits are present, just not this one

#

mhm

#

but now try xxxxxxxxx

outer umbra
#
def is_acceptable_password(password):
    if len(password) < 6:
        return False
    for digit in "0123456789":
        if digit in password:
            return True


x = is_acceptable_password("111111111")
print(x)```
still meteor
#

yep

#

so if it ran through all the digits and didnt return true, then we know it doesnt have any of them

#

so you can place a final return False after the loop

#

not inside, after

#

ye

outer umbra
#
def is_acceptable_password(password):
    if len(password) < 6:
        return False
    for digit in "0123456789":
        if digit in password:
            return True
    else:
        return False


x = is_acceptable_password("111111111")
print(x)```
still meteor
#

๐Ÿ‘ (the for-else is actually something different, but still valid)

#
def is_acceptable_password(password):
    if len(password) < 6:
        return False
    for digit in "0123456789":
        if digit in password:
            return True
    return False
#

this would be good

#

you don't need it

#

yea

#

it can return anything ye

#

yea no need to add brackets

#

print needs it because print is a function

#

what's the test case it's failing

#

here's fine, we only disable images in general

outer umbra
still meteor
#

you have an extra indent on the return

#

nice

#

๐ŸŽ‰

#

mm let's see, not too sure how strict the question is here

outer umbra
still meteor
#

mm yea

#

but if its not convertable to an integer then it would cause an error

#

also -11111111 is an integer but not all digits

#

you could use an try except yea

#

yep

outer umbra
still meteor
#

you could do

try:
    int(password)
except:
    ...
#

dont really need an if/else, the try/except kinda becomes the branch

#

still in the function yea

outer umbra
still meteor
#

once you finish the except it should disappear

outer umbra
#
def is_acceptable_password(password):
    if len(password) < 6:
        return False
    for digit in "0123456789":
        if digit in password:
            return True
    return False

    try:
        int(password)
    except:
        return True
    else:
        return False



x = is_acceptable_password("123123213123")
print(x)```
still meteor
#

same as before, you dont need the else after the except

outer umbra
#
def is_acceptable_password(password):
    if len(password) < 6:
        return False
    for digit in "0123456789":
        if digit in password:
            return True
    return False

    try:
        int(password)
    except:
        return True



x = is_acceptable_password("123123213123")
print(x)```
still meteor
#

ah right

#

you still have the return false above it

#

just remove it

#

also we need to modify the for digit loop

outer umbra
still meteor
#

mm

#

ye

outer umbra
#
def is_acceptable_password(password):
    if len(password) < 6:
        return False
    for digit in "0123456789":
        if digit in password:
            return True

    try:
        int(password)
    except:
        return True



x = is_acceptable_password("123123213123")
print(x)```
still meteor
#

if it is not all digits then int(password) fails, which goes into the except

#

mhm

#

we need to shift things around though

#

at the moment the for loop will return immediately

#

we need to shift it after the try

#

but now the question is, inside the except or outside

#

ye with the return true

#

should the for loop go in the same place as the return true, or should it go after it

#

think about what you want to check and when

still meteor
#

ye kinda

#

but the for loop actually needs to be inside the except

#

the except runs when its not all digits, but we still need to check that there's at least one digit

outer umbra
#
def is_acceptable_password(password):
    if len(password) < 6:
        return False
    try:
        int(password)
    except:
        return True
    for digit in "0123456789":
        if digit in password:
            return True



x = is_acceptable_password("Banana2")
print(x)```
still meteor
#

ye

#

and remove this

outer umbra
#
def is_acceptable_password(password):
    if len(password) < 6:
        return False
    try:
        int(password)
    except:
        for digit in "0123456789":
            if digit in password:
                return True
    return False



x = is_acceptable_password("234832480248234")
print(x)```
still meteor
#

submit it and see

#

nice

outer umbra
still meteor
#

yep

#

ah that

#

kinda

#

typically you'd want to be more specific about what exception you're catching

#

yea pycharm is more for heavy work

#

so

except:

is called a bare except, it catches absolutely all exceptions

#

which can be bad

#

ye

#
except ValueError:

in real code we'd do this

#

so it only catches valueerror (which comes from int)

#

!e

int("abc")
coarse hearthBOT
#

@still meteor :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ValueError: invalid literal for int() with base 10: 'abc'
still meteor
#

see

#

ye

#

any other error would pass through, which is actually good

#

because we only expected valueerror, we want to know what other errors come

#

!e

0/0
coarse hearthBOT
#

@still meteor :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ZeroDivisionError: division by zero
still meteor
#

there are many yea

#

and you can make your own exceptions

#

nah its over time

#

mm

#

you could put it in the if/else body

#

or the reverse, you could return early if its long enough so the try/except doesnt run

outer umbra
#
def is_acceptable_password(password):
    if len(password) < 6:
        return False

    if len(password) > 9:
        return True
    else:
        try:
            int(password)
        except ValueError:
            for digit in "0123456789":
                if digit in password:
                    return True
        return False



x = is_acceptable_password("123xxx123")
print(x)```
still meteor
#

nothing wrong with that

#

nice

#

np

outer umbra
#

cya ๐Ÿ‘‹

midnight rampart
#

yo

#

so i sent a lot of messages and it still didnt let me speak

violet venture
velvet musk
#

hi

misty sinew
#

i dont have headphones now ;-;

delicate wren
#

do you have liveshare installed?

#

if you want to share the screen of VS Code

#

no, like, not using the stream

#

but using read-only liveshare

#

there is an option to share it as read only

#

send in DMs

#

(for safety reasons)

#

there is Live Share button at the bottom panel

#

it copies the link by default

#

I prefer not to be in DM calls

delicate wren
#

probably

#

should be something like that

#

it should load after some time

#

it's strange that it doesn't

delicate wren
#

though I doubt it'll help

#

joining

#

there's a way to somehow share the currently edited document

#

it's more easy to configure VS Code properly

#

do you have the project in the workspace or somewhere else?

#

open the directory with the file as a workspace

#

there is this thing on the left

#

if there are no files, then you didn't open a workspace

#

yes, this thing

#

live share allows to edit/view only what's inside the workspace

#

you should probably just select the correct workspace (folder) not create the file

delicate wren
#

like, the bot's script file

#

just locate where the file already is

#

you were editing a file

#

open the folder it's in

#

do you know where your file is?

delicate wren
#

(then do live share again)

#

I see the file

#

I formatted the file so it's easier to read

#

alt+shift+f in my settings

#

generally, should prevent self-response

#

though there are other problems potentially

#

re-run it to test

#

oh

#

weird

#

run pip list

#

now run

pip install --upgrade discord.py
#

run in admin terminal (outside of VS Code)

#

if you have permission issues

delicate wren
night obsidian
#

def mutate(a_list):
b_list = []
for item in a_list:
new_item = item * 2
b_list.append(new_item)
print(b_list)

mutate([1,2,3,5,8,13])

#

can u help me debug this?

delicate wren
#

!voice

coarse hearthBOT
#

Voice verification

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

night obsidian
#

like i want it to print the values in the list multiplied by 2

delicate wren
night obsidian
#

but it gives 26

night obsidian
#

yess

delicate wren
#
def mutate(a_list):
  b_list = []
  for item in a_list:
    new_item = item * 2
    b_list.append(new_item)
  print(b_list)

mutate([1,2,3,5,8,13])
night obsidian
delicate wren
#

!code

coarse hearthBOT
#

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.

night obsidian
#
  b_list = []
  for item in a_list:
    new_item = item * 2
  b_list.append(new_item)
  print(b_list)

mutate([1,2,3,5,8,13])
#

oh

#

cool

delicate wren
#

this is why there is python -m pip install --upgrade pip

night obsidian
#

lol the code aint colored but ok

delicate wren
#

```py

#

for the python highlighting

delicate wren
night obsidian
#

alright

#

thankss

delicate wren
night obsidian
#
def mutate(a_list):
  b_list = []
  for item in a_list:
    new_item = item * 2
    b_list.append(new_item)
  print(b_list)

mutate([1,2,3,5,8,13])```
#

cool

delicate wren
night obsidian
#

alr

#

imma head out

delicate wren
delicate wren
# delicate wren don't upgrade pip using pip.exe

like it said to use E:\Downloads\python.exe -m pip install --upgrade pip not just pip.exe install --upgrade pip:

You should consider upgrading via the 'E:\Downloads\python.exe -m pip install --upgrade pip' command.
#

just make sure the pip and path options are both selected

#

("install pip" and "add to path")

#

now, run pip list in VS Code again (don't forget to restart the terminal)

#
  • to open new terminal
#

does it do the same error?

#
python -m ensurepip
#

this may fix the pip

#

now pip list again

#

this gives the same error, right?

pip install --upgrade discord.py
#

now run the bot again

#

for commands, it's easier to use discord.ext.commands.Bot instead of discord.Client

#

it automatically does the message.author == client.user check and other stuff

#

there is an event related to that

#

same as on_message

#

you can store the token in a file

#

the venv?

#

or a file?

velvet musk
#

env

delicate wren
#

rpi has ARM architecture

#

i.e. not x86-64

#

some programs may fail to install

#

try running the bot now

#

does the command work with the code that's now there?

#

!hello command that is

#

restart the bot and test the command

#

you did restart the bot, right?

#

I didn't see the terminal changing

#

CTRL+C

#

in the terminal

#

now test commands again

#

the code has changed since 14 minutes ago

#

there is a way to do the slash commands

#

@bot.hybrid_command actually already describes it as slash command

#

but

#

you need to sync it

#

restart the bot

#

and the !hello works now, right?

#

restart the bot again

delicate wren
#

should work now

#

maybe even slash will show up

delicate wren
#

so

#

what hybrid_command is:
it adds a command as prefix command (!something)
and as a slash command (/something)

#

music bots are mostly against ToS

#

are you familiar with ffmpeg?

delicate wren
#

!rule 5

coarse hearthBOT
#

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

delicate wren
#

to play music from a file, you can use discord.FFmpegPCMAudio

#

or discord.FFmpegOpusAudio

delicate wren
#

unless you have an explicit permit or own the music

#

I help distributing some
(and help with some technical aspects of the production)

#

it's basically:
if you can legally acquire files and you have a license to play them, you can use these files in the music bot

#

there is a very blurry line

#

you definitely can't do it for monetary gain unless you're contracted as a distributor with the contract explicitly allowing music bots

#

the most problem YouTube has is that bot authors make money

#

instead of them

#

copyright infringement

#

most bots now stopped supporting music from YouTube

#

because of legal troubles

#

Spotify has direct official integration with discord

#

Spotify has some official APIs/SDKs

#

Application Programming Interface

#

set of protocols to interact with some software

#

I have no idea how Spotify integration works

#

I am really not sure if it can be done without violating ToS

#

of either Discord or Spotify

#

doing this commercially will definitely be against ToS

#

"commercially" being roughly approximate to "for money"

#

if you make money from it, you violate ToS

delicate wren
#

doing media bot on your own in any case is not very feasible

#

I'd recommend not touching this topic until you understand the legality and the technical details deep enough
in short, just don't do it

#

you can try doing text-to-speech idea instead

#

link deleted as not sure about appropriateness

#

though I'm not sure about this one being fine

#

it says it uses "undocumented Google Translate speech functionality"

#

so no troubles with google

#

will involve ffmpeg anyways

delicate wren
#

follow the readme

delicate wren
#

it will show how to use it

#

save_to_file option is probably preferred

#

the example isn't long because it's all the necessary things
it just shows many fine configuration options available

#

it may fail on windows though

#

(may require some additional libraries)

#

in some cases

#

did you run it from VS Code?

#

just open the terminal in the same VS Code workspace

#

and run pip install pyttsx3 there

#

no don't save as workspace

#

the session ended

#

and the file was already in the workspace

#

live share again

#

it's better to create and then open

#

instead of the other way around

#

file plus button in the VS Code explorer

#

run it

#

run again

#

it's weird that it errors

slow goblet
#

hi

delicate wren
#

try to look up the docs for all the code later

#

I'm looking for the attachments parameter

#

can't find

slow goblet
#

im sorry

delicate wren
#

easy fix

slow goblet
#

im gonna go

delicate wren
#

so this should reply with a file of tts recording

#
!tts something
#

restart the bot

#

sent mp3?

#

valid mp3?

#

yes, it's random hex

#

the sent file is just for test

#

it should also play the file if you are in the vc which it can see

#

I can join if you want to test it there

#

(if you DM the invite)

misty sinew
#

D

slow goblet
#

hi

#

I see that too but I am not sure why

delicate wren
#

so the way to share timezone currently is:
"midnight for me is <t:1672520400:t> for you"

#

requires updating from time to time though

delicate wren
#

like NodaTime for .NET?

#

the thing that Jon Skeet makes

#

top 1 person by rating on StackOverflow

#

Jon Skeet can recite ฯ€. Backwards.

delicate wren
#

!e

import math
print(str(math.pi)[-1])
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

3
delicate wren
#

MCQ? MSQ?

#

MySQL?

#

(didn't hear)

#

any column can be FK if you need to in most cases

upbeat wyvern
delicate wren
#

foreign key

#

they sometimes abbreviate it as such in constraint name

#

fk_ or _fk

#

yeah, and then someone needs to call Mark Rendle to create the database "unfucker"

#

"unfuck.exe" as it was shipped to the customer

#

I got so tired of using any SQL in any form that now I live purely on in-memory key value stores
if a project needs a RDBMS, I just don't develop that project

upbeat wyvern
#

I don't even know what a foreign key is tbh

delicate wren
#

django has good DB support

delicate wren
upbeat wyvern
#

In the same database?

delicate wren
#

usually, yes

#

foreign key A->B requires every non-null value in column A to have an equal value in column B

#

A and B being in different tables

#

C# has official discord server, afaik

#

it had anime channel for some reason if I remember correctly
it was weird

#

I may mix it up with D#+

#

@stuck bluff
-- what do you do then?
-- gardening

#

@upbeat wyvern database project or a project using a database?

#

oh

#

the second one

#

for some application SQL-using RDBMSs is both easier and more stable

#

did I just hear CAP theorem mentioned by a wrong name?

#

oh, my brain failed to parse the phonemes

delicate wren
#

there is a problem with Twitter architecture

#

people that built it are not there anymore

#

same and even worse with Oracle

#

or just raise the threshold

#

I've just made something quite amazing in terms of its functionality
I can query my site over the http(s) to get the number of requests it currently works on

#

so now I should make it extensible; but intentionally limited as to not break everything

upbeat wyvern
delicate wren
#

PKs can be multi-column if I remember correctly

#

sometimes in some RDBMSs

jagged hawk
#

PK is one thing

#

because using UNIQUE makes a primary key

delicate wren
# jagged hawk thats fk

example from SQLite:

Optionally, a PRIMARY KEY for the table. Both single column and composite (multiple column) primary keys are supported.

delicate wren
upbeat wyvern
delicate wren
jagged hawk
#

sql injection

unkempt kindle
#

hi

jagged hawk
#

:))))

delicate wren
#

@upbeat wyvern you shouldn't be dynamically substitute table names in the first place

#

why do you have multiple same tables?

#

@upbeat wyvern why does .insert need table argument?

jagged hawk
delicate wren
#

this is not recommended for all the reasons

jagged hawk
#

also doesnt python have ORMs'

#

they are way better

delicate wren
#

depends

#

especially if the database already exists

jagged hawk
#

i mean managment is way better

#

also less security issues (if u use a proper libary)

delicate wren
#

for new projects and for beginners, ORMs are better

#

but you would still need (to write) SQL for migrations

delicate wren
jagged hawk
#

im pretty sure enterprise applications also use ORMS

#

also who said you cant migrate by using ORMS

delicate wren
jagged hawk
#

in java atleast its very easy to export a ORM to sql statement

#

and also migrate

delicate wren
jagged hawk
delicate wren
jagged hawk
#

i can show you my ORMS sql

#

welp bye, gotta go study. nice meeting yall

delicate wren
#

insert has more or less static insides

#

the question should probably be: why do you need multiple tables with this three columns?

#

this is GUI for SQLite

delicate wren
#

but you need to give up tkinter for Qt

#

I may be misremembering, but wasn't there an alternative to PyQt?

#

PySide

upbeat wyvern
delicate wren
#

brb

#

back

#

speaking of making SQL code flexible

delicate wren
#

other people have already made stable flexible tools and you should probably use them

#

unless you work at top-secret closed-source agency

upbeat wyvern
#

It's not for work. It's a personal project

delicate wren
#

"SQL" and "flexible" mix only as far as providing a direct interface to SQL

delicate wren
upbeat wyvern
#

It's also an experiment ๐Ÿ˜‚

delicate wren
upbeat wyvern
#

Don't know where I'm going with it

upbeat wyvern
delicate wren
delicate wren
upbeat wyvern
#

Then maybe after I'll try to make a more realistic one using a better sql and gui module ๐Ÿค”

delicate wren
#

@stuck bluff there are some trials related to tax-handling stuff going on right now
in the same spirit

#

"this should always be hard" because people that make it easier earn money by doing so

delicate wren
delicate wren
#

there are 17 fractals total

#

all done with complex numbers because that's easier

delicate wren
#

because it does not touch the border

#

this was one of the hardest because of borders and easiest because of the recursion

#
class Levy(Fractal):
    RATIO = 8 / 5
    n_max = 15
    name = 'Levy'

    @classmethod
    def _fit(cls, tl, tr, bl, br) -> descendtype:
        return (12 * bl + 4 * br + tl * 3 + tr) / 20, \
               (12 * br + 4 * bl + tr * 3 + tl) / 20, \
               (tl * 3 + tr * 3 + bl * 2 + br * 2) / 10

    @classmethod
    def descend(cls, a: complex, b: complex, c: complex):
        yield a, c, c + (a - b) / 2
        yield c, b, c + (b - a) / 2
delicate wren
#

this produces funny patterns at different zooms

misty sinew
#

thats cool

delicate wren
#

this is how much the thing needs vertical space

#

such a weird one

delicate wren
delicate wren
#

not sleep deprived yet

stuck bluff
#

"Oh, you're doing fractals?"
"Line."
"Well, yes, I can see that, but -"
"Line."

delicate wren
delicate wren
#

good web design, awesome cropping

rocky granite
#

@barren steppe ๐Ÿ‘‹๐Ÿ‘‹

stuck bluff
manic helm
#

Hey guys

misty sinew
#

Guys whats ur new years resolution?

manic helm
#

Actually I need help. Can someone tell me from where I can start learning about WEB 3

delicate wren
manic helm
#

Honest bro

#

I dont mind

stuck bluff
misty sinew
#

@rocky granite lol grout

modest flare
#

Raclette

delicate wren
modest flare
delicate wren
#

product+activation function

#

without activation function, layer composition would be useless

delicate wren
#

@barren steppe it does have function apart from multiplication

#

there are other functions

delicate wren
delicate wren
#

"non-linear" so you don't have linear composition problems

#

ReLU is C^0

#

at least it is continuous though

#

left is 0, right is 1

#

so, like, the set of derivatives is {0,1} but there's no single one

#

tanh and sigmoid have easily calculable derivatives

#

there's also GELU that's almost like RELU but is differentiable

#

so many names for it

#

Sigmoid linear unit (SiLU, Sigmoid shrinkage, SiL, or Swish-โ€1)

#

there should be a way to somehow demonstrate how output distributions change with layers/activation functions

delicate wren
#

idk how to model that

#

normalisation is the often used term

#

scaling, I'd assume, is to answer the question "what's the error"
if your model outputs, for examples, seconds and litres, you'd probably not want to treat those similarly
that is also applicable when units are the same
so to measure the error you apply some scale to each dimension

#

I was about to mention PCA

delicate wren
#

PCA - Principle Component Analysis - finally explained in an accessible way, thanks to Dr Mike Pound. This is part 6 of the Data Analysis Learning Playlist: https://www.youtube.com/playlist?list=PLzH6n4zXuckpfMu_4Ff8E7Z1behQks5ba

This Learning Playlist was designed by Dr Mercedes Torres-Torres & Dr Michael Pound of the University of Nottingha...

โ–ถ Play video
#

(unrelated: there is also covariance/contravariance in type theory; that's somewhat confusing)

olive echo
delicate wren
#

An Introduction to Statistical Learning with Applications in R
acronym moment

#

openly rating employees is cancer

outer wharf
#

what are you guys workin on rn?

pseudo terrace
#

i need help

#

FeelsSnowMan \

stuck bluff
#

@mellow vortex ๐Ÿ‘‹

#

@misty sinew ๐Ÿ‘‹

misty sinew
#

I cannot speak

stuck bluff
#

!voice

coarse hearthBOT
#

Voice verification

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

misty sinew
#

I need help

#

Can u add me in dm

#

Bc it's getting late here

#

ok

#

I want to know a device coordinates

misty sinew
#

coordinates

#

anything

#

In which I am running the code

#

I want code

#

Can u create

#

I have tried lot of thing

honest zealot
#

please give me voice permission

misty sinew
#

Yeah yeah

#

but

stuck bluff
coarse hearthBOT
#

Voice verification

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

misty sinew
#

My problem is that I can't make the code

#

ohh

#

So can u tell me how can I make

#

listen brother

honest zealot
#

haha

misty sinew
#

I just want a plain python file

honest zealot
#

@stuck bluff please listen him

misty sinew
#

BRB

#
#!pip install -q pyscbwrapper
from matplotlib import pyplot as plt
from pyscbwrapper import SCB


#Du skall skapa funktionens parameterlista:
def generateGraphFile(new_graph):
  plt.plot(xData, yData)
  plt.title("new graph")
  plt.savefig("new_graph.png")
  plt.close()



  #denna funktion skall du skriva koden till.
def generateGraphData(scb, valueIndex, keyIndex):
  scbData = []
  scbData = scb.get_data()
  #Filter out metadata:
  scbFetchData = scbData['data']
  xData = []
  yData = []
  for i in range(len(scbFetchData)):
    yData.append(float(scbFetchData[i]['values'][valueIndex]))
    xData.append(scbFetchData[i]['key'][keyIndex])
  return xData, yData


#Alternativ 1: Antal invรฅnare i Sverige mellan 2010 och 2021
scb = SCB('en', 'BE', 'BE0101', 'BE0101C', 'BefArealTathetKon')
scb.set_query(observations=["Population"],
              year=[
                "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017",
                "2018", "2019", "2020", "2021"
              ])
xData, yData = generateGraphData(scb, 0, 0)
generateGraphFile(xData)


#option 2 
scb = SCB('en', 'TK', 'TK1001', 'TK1001A', 'PersBilarA')
scb.set_query(region=["Sweden"],
              observations="Passenger cars in use",
              year=[
                "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017",
                "2018", "2019", "2020", "2021"
              ])
xData, yData = generateGraphData(scb, 0, 1)
#generateGraphFile(yData)```
slate solstice
#

I know a bit

delicate wren
#

.close might break

#

there is .clf instead or something like that

slate solstice
#

Just figured out what i need so i can talk

#

Will take a while

misty sinew
slate solstice
#

Maybe an if statement to check for it's existence?

#

its*

delicate wren
misty sinew
delicate wren
#

pass filename as an argument

slate solstice
delicate wren
#

def generateGraphFile(new_graph, filename):

misty sinew
#

huh

slate solstice
#

you can use the datetime

#

to change the name everytime

delicate wren
#

those two are different in more than just order/time

misty sinew
slate solstice
#

Can you explain more? (on both statements)

#

@delicate wren

delicate wren
slate solstice
#

@misty sinew what AF means is just pass the name in the argument, ie. you choose the name of the graph everytime.

delicate wren
#

I'd expect the filename to be:

generateGraphFile(xData, f"{formatted_time}-{valueIndex}-{keyIndex}.png")
#

or something

misty sinew
#

lets try! gimme a sec. question. filename should be an input right?

#

listen

#

can u write a code for getting device's coordinates

misty sinew
#

too sus.

#

FK_YOU

slate solstice
#

@halcyon notch pythonnn

#

@elder wraith im trying to get a laptop with a decent battery life (2hrs+) and at least 12 gb ram

#

Dont care much about other specs (within reason)

slate solstice
#

@misty sinew did you change the argument?

#

so first run the function using
generateGraphFile(xData, "new_graph.png")
then maybe
generateGraphFile(xData, "another_new_graph.png")
and so on

misty sinew
slate solstice
#

if you want we can get on a call

misty sinew
# slate solstice yeah so where are you calling the function?
#Alternativ 1: Antal invรฅnare i Sverige mellan 2010 och 2021
scb = SCB('en', 'BE', 'BE0101', 'BE0101C', 'BefArealTathetKon')
scb.set_query(observations=["Population"],
              year=[
                "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017",
                "2018", "2019", "2020", "2021"
              ])
xData, yData = generateGraphData(scb, 0, 0)
generateGraphFile(xData,filename)

#option 2 
scb = SCB('en', 'TK', 'TK1001', 'TK1001A', 'PersBilarA')
scb.set_query(region=["Sweden"],
              observations="Passenger cars in use",
              year=[
                "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017",
                "2018", "2019", "2020", "2021"
              ])
xData, yData = generateGraphData(scb, 0, 1)
generateGraphFile(yData,filename)```
slate solstice
#

cant speak in the server yet

misty sinew
#

sure if you want

slate solstice
#

1 sec

halcyon notch
jagged hawk
#

hi guys

#

i had a small question

#

what language should i use to make a file uploading service

#

if you would like me to ellaborate i can talk

elder wraith
#

!kindling

coarse hearthBOT
#

Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

solid gyro
halcyon notch
jagged hawk
#

uh guys any thoughts?

misty sinew
#

if it works it works

misty sinew
jagged hawk
solid gyro
elder wraith
#

@gentle cove !kindling

#

!kindling

coarse hearthBOT
#

Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

misty sinew
solid gyro
cyan crypt
#

hello

#

does anyone wants to play chess?

#

)

#

๐Ÿ˜‰

cyan crypt
wind terrace
#
import random


answers = ["Yes","No","Maybe","Maybe Not","Definetly","Definetly Not","Not Yet","Never"]

print(random.choice(answers))

#

old ones

import random
from Eight_Ball_Answers import EightBallAnswers

int = random.randint(1, 8)

EightBallAnswers()
class EightBallAnswers:
    if int == 1:
        print("Yes")
    elif int == 2:
        print("No")
    elif int == 3:
        print("Maybe")
    elif int == 4:
        print("Posiibly")
    elif int == 5:
        print("Possibly Not")
    elif int == 6:
        print("Absolutly")
    elif int == 7:
        print("Aboslutly Not")
    else:
        print("Why would you ask that, you know the answer")
#

!e

import random


answers = ["Yes","No","Maybe","Maybe Not","Definetly","Definetly Not","Not Yet","Never"]

print(random.choice(answers))
upbeat wyvern
#
answers = [
    "Yes",
    "No"
]
wind terrace
#
import random


answers = [
    "Yes",
    "No",
    "Maybe",
    "Maybe Not",
    "Definetly",
    "Definetly Not",
    "Not Yet",
    "Never"
    ]

print(random.choice(answers))

wild panther
#

def my_function()

wind terrace
#
cookies = 0 

def my_function(number):
  cookies + number


cookies_cooked = my_function(8)
print(cookies_cooked)
upbeat wyvern
#
def func(num_of_cookies):
    print(num_of_cookies)

func(5)
wind terrace
#

!e

cookies = 0 

def my_function(number):
  cookies + number


cookies_cooked = my_function(8)
print(cookies_cooked)
#

!e

cookies = 0 

def my_function(number):
  return cookies + number


cookies_cooked = my_function(8)
print(cookies_cooked)
coarse hearthBOT
#

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

8
wild panther
#

Cookie = 8

def divide_cookies(cookies):
Mycookies = cookies/2
Return Mycookies

wind terrace
#

!e

cookies = 8 

def my_function(number):
  return cookies / number


number_of_people = my_function(8)
print(number_of_people)
upbeat wyvern
#

!e

def divide_cookies(cookies, number):
    my_cookies = cookies / number
    return my_cookies

print(divide_cookies(10, 2))
coarse hearthBOT
#

@upbeat wyvern :white_check_mark: Your 3.11 eval job has completed with return code 0.

5.0
upbeat wyvern
#

!e

print([x for x in list(range(10))])
coarse hearthBOT
#

@upbeat wyvern :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
upbeat wyvern
#

!e

print([x for x in list(range(10))] if x%2)
coarse hearthBOT
#

@upbeat wyvern :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     print([x for x in list(range(10))] if x%2)
003 |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
004 | SyntaxError: expected 'else' after 'if' expression
upbeat wyvern
#

!e

print([x for x in list(range(10)) if x%2])
coarse hearthBOT
#

@upbeat wyvern :white_check_mark: Your 3.11 eval job has completed with return code 0.

[1, 3, 5, 7, 9]
pale pivot
#

@solid gyro holy shit I literally just realized your name is more like "soy milk latte", not "i am latte" in spanish

upbeat wyvern
#
class MyTree(ttk.Treeview):
    def __init__(self, master=None, data=[], **kwargs):
        super(MyTree, self).__init__(master=master, **kwargs)
wild panther
#

**

upbeat wyvern
#

**h

wild panther
#

2**3

#

222

#

heb

upbeat wyvern
#

*args
**kwargs

wild panther
#

fverrr

#

rknr

#

**kwarg

#

**kwargs

#

match

#

match

upbeat wyvern
#

!e

def say(*args):
    print(args)

say("Hi", "Hello", "Random string")
coarse hearthBOT
#

@upbeat wyvern :white_check_mark: Your 3.11 eval job has completed with return code 0.

('Hi', 'Hello', 'Random string')
wild panther
#

'hi

#

'hel'

#

USTAFA

#

Habibiii

pale pivot
#

!e

def foo(x):
  match x:
    case ["hello", y]: print("saying hello to", y)
    case ["bye", z]: print("saying goodbye to", z)
    case [a, b]: print("not sure, but got", a, b)
    case c: print("last case...", c)

foo(["hello", "sam"])
foo(["bye", "tom"])
foo([1, 2])
foo({1,2,3})
coarse hearthBOT
#

@pale pivot :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | saying hello to sam
002 | saying goodbye to tom
003 | not sure, but got 1 2
004 | last case... {1, 2, 3}
wild panther
#

!e```def foo(x):
match x:
case ["hello", y]: print("saying hello to", y)
case ["sam", z]: print("saying goodbye to", z)
case [a, b]: print("not sure, but got", a, b)
case c: print("last case...", c)

foo(["hello", "sam"])
foo(["bye", "tom"])
foo([1, 2])
foo({1,2,3})```

pale pivot
#

!resources

coarse hearthBOT
#

@wild panther :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | saying hello to sam
002 | not sure, but got bye tom
003 | not sure, but got 1 2
004 | last case... {1, 2, 3}
#
Resources

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

upbeat wyvern
#

!e

def say(*args):
    for arg in args:
        print(arg)

say("Hi", "Hello", "Random string")
coarse hearthBOT
#

@upbeat wyvern :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Hi
002 | Hello
003 | Random string
wind terrace
#
from pathlib import Path

path = Path()

for file in path.glob(*.py):
    print(file)
#
Traceback (most recent call last):
  File "C:\Users\4YTfu\AppData\Local\Programs\Python\Python311\Lib\runpy.py", line 198, in _run_module_as_main
    return _run_code(code, main_globals, None,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\4YTfu\AppData\Local\Programs\Python\Python311\Lib\runpy.py", line 88, in _run_code
    exec(code, run_globals)
  File "c:\Users\4YTfu\.vscode\extensions\ms-python.python-2022.20.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy\__main__.py", line 39, in <module>
    cli.main()
  File "c:\Users\4YTfu\.vscode\extensions\ms-python.python-2022.20.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 430, in main
    run()
  File "c:\Users\4YTfu\.vscode\extensions\ms-python.python-2022.20.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 284, in run_file
    runpy.run_path(target, run_name="__main__")
  File "c:\Users\4YTfu\.vscode\extensions\ms-python.python-2022.20.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 320, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\4YTfu\.vscode\extensions\ms-python.python-2022.20.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 294, in _get_code_from_file
    code = compile(f.read(), fname, 'exec')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\4YTfu\OneDrive\Desktop\VS Projects\Test\test.py", line 5
    for file in path.glob(*.py):
                           ^
SyntaxError: invalid syntax
upbeat wyvern
#
import os

for file in os.listdir():
    if file.endswith(".py"):
        print(file)
wind terrace
upbeat wyvern
ornate cobalt
#

for file in listdir(path.join(getcwd(), "Default", "assets", "models", "block"))

#
import os

for file in os.listdir():
    print(file)
    if file.endswith(".py"):
        print(file)
upbeat wyvern
ornate cobalt
#
import os

for file in os.listdir(os.path.join(os.getcwd(), "Notes")):
    if file.endswith(".py"):
        print(file)