#voice-chat-text-0

1 messages · Page 21 of 1

whole bear
#

its better for development

#

btw

#

if your wondering why your suspended

#

from voice

#

!voice

wise cargoBOT
#

Voice verification

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

warped raft
#

no i am not suspended

whole bear
#

verify in the channel and rejoin vc to reset premissions

warped raft
#

bro

whole bear
#

oh ok

warped raft
#

there was no body to talk

whole bear
#

u can talk to me

#

i cant hear

warped raft
#

ok

#

yes

#

this one

winged shard
#

im banned

warped raft
#

gihub

#

github

#

take it easy

#

do yo have your github open

#

your age

#

bye @whole bear

whole bear
#

brb

stiff tinsel
young fractal
#

@whole bear clarified butter @icy axle

#

ghee

#

🗿

icy axle
#

hot

young fractal
icy axle
#

@whole bear git gud

lavish rover
icy axle
#

svn?

lavish rover
#

(it's another version control softwate like git)

icy axle
#

NO

lavish rover
#

(it actually sucks, but for the joke)

quartz terrace
#

looks simple

#

just store the digit [d], and do a loop for d times?

#

if its 5, loop 5 times, get the value there

#

SVN was the Git alternative back in time, (the time of Linus trovald, that's why he created Git)

#

because he hated it

#

!eval

f = "2/4"
longest1 = 0
longest2 = 0
# for first
for i in range(f.split("/")[0]):
 
  if f.split("/")[0] % i == 0 and f.split("/")[0] > longest1:
    longest1 = i

for i in range(f.split("/")[1]):
 
  if f.split("/")[0] % i == 0 and f.split("/")[0] > longest2:
    longest2 = i

print(longest1, longest2)

I'm trying idk

wise cargoBOT
#

@quartz terrace :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 5, in <module>
003 | TypeError: 'str' object cannot be interpreted as an integer
quartz terrace
#

!eval

f = "2/4"
longest1 = 0
longest2 = 0

for first

for i in range(int(f.split("/")[0])):

if f.split("/")[0] % i == 0 and f.split("/")[0] > longest1:
longest1 = i

for i in range(int(f.split("/")[1])):

if f.split("/")[0] % i == 0 and f.split("/")[0] > longest2:
longest2 = i

print(longest1, longest2)

wise cargoBOT
#

@quartz terrace :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 5, in <module>
003 | TypeError: 'str' object cannot be interpreted as an integer
quartz terrace
#

!eval

f = "2/4"
longest1 = 0
longest2 = 0

for first

for i in range(int(f.split("/")[0])):

if f.split("/")[0] % i == 0 and f.split("/")[0] > longest1:
longest1 = i

for i in range(int(f.split("/")[1])):

if f.split("/")[0] % i == 0 and f.split("/")[0] > longest2:
longest2 = i

print(longest1, longest2)

wise cargoBOT
#

@quartz terrace :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 7, in <module>
003 | TypeError: not all arguments converted during string formatting
quartz terrace
#

fuck idk, but that's half correct

#

@whole bear

frank shoal
#

how do I get permission to talk??

quartz terrace
icy axle
#

!voice-verification

wise cargoBOT
#

Voice verification

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

quartz terrace
frank shoal
#

so i`m supposed to spam 50 messages?

#

may i join too?

#

i never played it b4

quartz terrace
#

virgins?

#

that's what I heard idk

#

I know what it means bruh

frank shoal
#

i do wanna playy too

frank shoal
#

bubble hhhh

#

whaaat

#

damn u said it right

quartz terrace
#

bruh I just came

#

*me quickly searches for the alphabet

#

it would've made more sense if 4 outputs abcd not zabc

lavish rover
#

Ooh clash of code, I love that

#

Would love to join but not near a computer rn 😦

#

At some point I was like rank 2 in Canada for a couple weeks, it was fun

quartz terrace
#

o wait I understand this now 🤦‍♀️

#

im userdev

frank shoal
#

i just god bad on this one

#

hhh

#

just liked this game guys

icy axle
quartz terrace
#

brain explosion

frank shoal
#

could someone review my code?

hearty knot
barren carbon
#

can someone join a voice chat I have a question

#

name = input('what is your first name and last name?')

somber heath
#

!e py text = "Abel Connorpinch" first, last = text.split(" ") print(first) print(last)

wise cargoBOT
#

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

001 | Abel
002 | Connorpinch
somber heath
#

!e py text = "Abel Rissole Connorpinch" result = text.split(" ") print(result)

wise cargoBOT
#

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

['Abel', 'Rissole', 'Connorpinch']
somber heath
#

@high nimbus 👋

hushed elm
#

heya @somber heath I'll join you in 10 minutes if you're still online

gentle flint
#

salut macro

hushed elm
#

salut

gentle flint
#

20 oct
6:40 am train from schiphol to paris
12:47 pm train from paris to milan
stay in milan for the weekend
23 oct
12:10 pm train milan to naples
24 oct
stay in naples, visit pompeii
25 oct
08:12 train naples to bari
19:30 boat bari to patras
26 oct
bus and train from patras to athens when the boat arrives
26 oct to 2 nov
stay in athens
2 nov
train athens to volos
overnight in volos
3 nov
boat from volos to skiathos
weekend in skiathos
6 nov
boat from skiathos to volos
overnight in volos
7 nov
train volos to thessaloniki
8 nov
bus thessaloniki to skopje
9 nov
stay in skopje
10 nov
fly from skopje to basel
train from basel to amsterdam

#

@somber heath

hushed elm
#

it doesn't take too long to get to paris

gentle flint
#

sure

#

I arrive at 9:30 in paris

hushed elm
#

noice

gentle flint
#

then I think I'll go and have an early lunch at a place called l'as du fallafel in paris

hushed elm
#

je m'apelle fallafel

#

oui oui hon hon hon

gentle flint
#

they're good and not expensive

somber heath
#

High-quality shower-thoughts.

#

I like it.

terse needle
pulsar meteor
#

how to get stream privileges?

hushed elm
#

@pulsar meteor try out Caves of Qud if you like ascii games

somber heath
#

Streaming permissions are given out at administrator/moderator discretion. Typically you will be in voice chat and a moderator joins. You would then state your desire to stream, what you want to stream, and if the admin/mod in question would mind granting you the permissions to begin streaming, which expire after about five minutes, but the stream can persist beyond that point.

gentle flint
#

@hushed elm

hushed elm
#

I'm almost there

#

lmaoo

gentle flint
#

mhm

somber heath
#

You're asking them to watch you stream, and they don't have to grant you it at all.

hushed elm
#

I might even have Vlad's blood in my bloodline

somber heath
#

But are often amenable.

gentle flint
hushed elm
#

neat

wise cargoBOT
#

Hey @whole bear!

It looks like you tried to attach file type(s) that we do not allow (.zip). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

Feel free to ask in #community-meta if you think this is a mistake.

whole bear
#

xfce is ok and gnome terminal

#

what kernel you on? @velvet urchin

#

i mean 5.18

#

be a super user or just go as root

#

what linux debian based distro you on?

pulsar meteor
#

dataset for obj detection

#

this is the label.txt for one of the images

#

im guessing the first int is the classifier ie chair, table

#

but wtf are the other vals

whole bear
#

niceeeee

#

i love vim and nano

#

brb i gtg go

somber heath
#

I mean, I just had my tracking implant redone the other week at the dentist, so...

#

The new model sends audio to the government, too.

#

Power lines.

#

Inductive charging.

#

Also a little bit from radio signals.

#

Sounds right.

#

Though I can't imagine as many people did that as the articles would have made out there to be.

gentle flint
#

mhm

somber heath
#

@wary roost👋

wary roost
#

hello

#

how i open the micew

somber heath
#

!voice 🙂

wise cargoBOT
#

Voice verification

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

wary roost
#

!voice

somber heath
#

@whole bear I am too fast.

gentle flint
wary roost
#

okk i have a simple problem in python, i make run and it empty

#

like this

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.

wary roost
#

i make run , but they have not any code

somber heath
#

You've created the function, but you haven't called it.

#

!e ```py
def func():
print("Hello, world.")

func() #This is the call of the function```

wise cargoBOT
#

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

Hello, world.
somber heath
#

Your function takes a parameter.

#

So.

#

!e ```py
def func(arg):
print(arg)

func("Hello, world.")```

wise cargoBOT
#

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

Hello, world.
gentle flint
#
def print_hi(name):
    print(f"hi, {name}")

will do nothing until you actually call it
you can call it by running

print_hi("mahmud")

assuming that your name is "mahmud"
so you'd have to write

def print_hi(name):
    print(f"hi, {name}")

print_hi("mahmud")
somber heath
#

The parameter is arg. It is a variable, a reference to an object, that lives and dies within the function execution.

wary roost
#

@somber heath

somber heath
#

"Hello, world." is the argument

wary roost
#

thank

somber heath
#

Which is given to that parameter

wary roost
#

you

whole bear
#

i gotta go guys

#

bye

somber heath
#

Yo

#

Eat well.

hushed elm
#

La Revedere

somber heath
#

Vla de de de de

gentle flint
#

you mean vlad

hushed elm
#

vladinski

somber heath
#

Bluetooth earpiece, so...

#

Shitty audio.

#

Yes, it's approaching 11.

#

About quarter to.

#

@warped raft You good, bro? We can hear you having a conversation.

#

Ta-roo.

undone idol
#

doing amazin

#

hbu

#

nah

minor drum
#

Yoo, is there a way in python to make a base file that has all the imports need to run the main function? and then only that specific file in your main file?

somber heath
minor drum
#

so i have alot of import in my main file, i want to put all those import in one base file en then call that base file

#

will my import then still work?

somber heath
#

My suggestion would be to import as needed per module.

minor drum
#

ah ok to bad

somber heath
#

If a function in a module needs math, import it in that module.

minor drum
#

yh oke

#

to bad then

somber heath
#

If that module imports another module that uses numpy, that another module should import it. The first module doesn't need to know about it.

minor drum
#

yh so this i a small part of the list

#
from typing import Any, Dict, List
from responses.emptyResponse import EmptyResponse
from responses.selectResponse import SelectResponse
from responses.selectMoreResponses import SelectMoreResponses
from responses. userResponse import UserResponse
from responses.usernameResponse import UsernameResponse

from interface.IResponses import IResponse
from interface.IActions import IActions
from services.userService import UserService
from services.sessionService import SessionService
from helpers.initializer import ShowUsers
#

i wantend to put all these statements in a separate file

somber heath
#

So as to avoid imports in each module?

minor drum
#

yes

somber heath
#

Yeah, that won't fly.

minor drum
#

ahh to bad

#

thank you for your knowledge

somber heath
#

I mean, you could force it, but..

#

ew

minor drum
#

🙏🏽

icy axle
wanton flame
#

helooo

#

man, i have a computer exam tmrw about html and suddenly i forgot everything

#

i've never been on a train

#

always plane

#

very sad

#

mhm

#

wait no im in KSA

#

i forgot my nationality rq

#

anyways, im gonna go review the code for my exam

#

but does someone use html?

#

and cssducky_beer

quartz terrace
#

yeah usually

#

its like essential

wanton flame
#

ik its very simple but bro

#

i forgot everythingducky_ghost

wanton flame
quartz terrace
#

watch a video, read docs..etc
Stop wasting time here

wanton flame
#

got it

quartz terrace
#

I promise I can master HTML in 1 hour without any experience

wanton flame
#

thanks manducky_blurp

wanton flame
#

but

#

idek how i forgot how to use style

#

HELO

quartz terrace
#

style is a css thing, to use in html, you must just simply use

<style>
  p {
    display: none;
    /* rest of CSS code */
  }
</style>
wanton flame
#

should've been on css but my skl barely took html this year

#

but thanks

#

i forgot such an easy code

#

wow

#

thanks mate

#

😭

quartz terrace
#

@icy axle is that you (no pun intended)

icy axle
quartz terrace
icy axle
#

Hahah he knows

gentle flint
#

Sukkot is a Torah-commanded holiday celebrated for seven days from the 15th day of the month of Tishrei. It is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim) on which those Israelites who could were commanded to make a pilgrimage to the Temple in Jerusalem.
The names used in the Torah are Chag HaAsif, translated to "...

whole bear
quartz terrace
#

I mainly use it for Django tbh, and quick stuff I want to implement

minor drum
#

Hello when i try to import some files i created it got alot of traceback errors can some1 help me why i got traceback errors?
all spelled correctly

quartz terrace
minor drum
#

but what is the question?

quartz terrace
#

show the imports or whatever

minor drum
#
from actions.backupAction import BackupAction
from actions.createMemberAction import CreateMemberAction
from actions.createUserAction import CreateUserAction
from actions.deleteMemberAction import DeleteMemberAction
from actions.deleteUserAction import DeleteUserAction
from actions.loginAction import LoginAction
from actions.logoutAction import LogoutAction
from actions.quitAction import QuitAction
from actions.restoreBackupAction import RestoreBackupAction
from actions.searchMemberAction import SearchMemberAction
from actions.searchUserAction import SearchUserAction
from actions.setTmpPasswordAction import SetTmpPasswordAction
from actions.updateMemberAction import UpdateMemberAction
from actions.updatePasswordAction import UpdatePasswordAction
from actions.updateUserAction import UpdateUserAction
from actions.viewLogsAction import ViewLogsAction
from actions.viewMemberAction import ViewMemberAction
from actions.viewUserAction import ViewUserAction

error: ine 4, in <module>
from actions.backupAction import BackupAction

#

file tree

quartz terrace
#

you have a typo

minor drum
#

the file where i call all these import is in the root directory furnicor

quartz terrace
#

its backupFunction

#

oh wait nvm

#

can you try remove that first line, and show me the errors

minor drum
#

so lets say when i remove that statement import

#

is it gives a an error on the next import module

quartz terrace
#

alright, where are these imports located

#

in which file

#

in which dir

#

and show me the full tree pls

minor drum
#

full tree

minor drum
quartz terrace
minor drum
#

yes that is the main file

#

this one

#

the highlighted one

minor drum
quartz terrace
#

can you try do import ../actions/<filename>

#

wait

#

just remove the actions

minor drum
#

idea gives error then

quartz terrace
#

from backupAction import BackupAction
from createMemberAction import CreateMemberAction
from createUserAction import CreateUserAction
from deleteMemberAction import DeleteMemberAction
from deleteUserAction import DeleteUserAction
from loginAction import LoginAction
from logoutAction import LogoutAction

#

like this

minor drum
quartz terrace
#

remove that backup function line, still errors?

minor drum
#

yes

#

then it continues on to the next one

quartz terrace
#

what is the error

minor drum
#

line 4, in <module>
from actions.createMemberAction import CreateMemberAction

#

just the next import

quartz terrace
minor drum
#

yes

quartz terrace
minor drum
#
class CreateMemberAction(IActions):
    session: SessionService
    memberS: MemberService

    def __init__(self, session: SessionService, memberS: MemberService) -> None:
        self.session = session
        self.memberS = memberS
minor drum
#

no in terminal same errors

quartz terrace
#

what are they

minor drum
#

Traceback (most recent call last):
File "/Users/PycharmProjects/furnicor/ffs.py", line 4, in <module>
from actions.backupAction import BackupAction
File "/Users/PycharmProjects/furnicor/actions/backupAction.py", line 4, in <module>
from services.backupService import BackUpService
File "/Users/PycharmProjects/furnicor/services/backupService.py", line 6, in <module>
from services.logService import LogService
File "/Users/PycharmProjects/furnicor/services/logService.py", line 4, in <module>
from services.sessionService import SessionService
File "/Users/PycharmProjects/furnicor/services/sessionService.py", line 5, in <module>
class SessionService():
File "/Users/PycharmProjects/furnicor/services/sessionService.py", line 6, in SessionService
__user = Optional[User] = None
TypeError: '_SpecialForm' object does not support item assignment

#

these are the errors

quartz terrace
#

that's useful now

#

TypeError: '_SpecialForm' object does not support item assignment

#

check that bit

minor drum
#

yeah also stuck on that lol

quartz terrace
#

is that a framework/lib or something you made from scatch

minor drum
#

from typing import Optional
from model.user import User


class SessionService():
    __user = Optional[User] = None

    @property
    def currentUser(self) -> User:
        if self.__user is None:
            raise Exception(("There is no user available"))
        return self.__user

    @currentUser.setter
    def currentUser(self, user: Optional[User]):
        self.__user = user

    def loginCheck(self) -> bool:
        return self.__user is not None

    def closeSession(self) -> None:
        self.__user = None
#

made from scratch

quartz terrace
#

then the error here

#

so um

minor drum
#

but is seems legit right?

quartz terrace
#

yeah, where's that _SpecialForm tho

minor drum
#

yh LOl hahha

#

i dont. know

quartz terrace
#

so it's something wrong in _user

#

if I understand correctly

minor drum
#

danmm

#

your so good!

quartz terrace
#

um I just read the errors

minor drum
#

lol i declared it as a variable

quartz terrace
#

oh lol

minor drum
#

but it supposed be a type

quartz terrace
#

its called the super key lol

hushed elm
#

Did you just stab me bro?

#

@bright coyote

whole bear
#

What's happening? Lol

#

I hope you're ok @whole bear

quartz terrace
#

what

#

your name

#

be like

#

there was literally a very NSFW word

#

how tf you play this

#

jesus what is this

#

o I understood finally

#

yeti

harsh peak
#

Hi guys

quartz terrace
#

bro I must cheat

#

phew thanks

whole bear
#

autocomplete ^

quartz terrace
#

agh cheat

steel sluice
quartz terrace
#

what is this?

#

oh he won't

#

I wrote something stupid

#

masterpiece

#

But I actually draw pretty good with traditional stuff

#

bruh I forgot putting on my charger

#

I remember asking for something pretty much insane

#

billy g came and obliterated my laptop because I have arch

#

that's my excuse

steel sluice
icy axle
#

@quartz terrace check out this

#

inside voice & video in settings

quartz terrace
#

let me experience with a few mics

grand plover
#

rynite want a boy u.u

#

but she is 15

#

good for me but ilegal

#

hihihihihihihi

quartz terrace
#

im a boy lol but I feel like a girl

grand plover
#

girls are boys and girls at the same time

#

hihiihihhihhihhi

minor drum
#

Traceback (most recent call last):
File "/Users//PycharmProjects/furnicor/ffs.py", line 82, in <module>
app.startApplication()
File "/Users//PycharmProjects/furnicor/interface/Interface.py", line 20, in startApplication
action.handle(self.__get_arguments_for_Actions(action))
File "/Users//PycharmProjects/furnicor/actions/loginAction.py", line 28, in handle
valid = self.userS.login(arguments['username'], arguments['password'])
File "/Users//PycharmProjects/furnicor/services/userService.py", line 39, in login
sql = self.action.where({'username': username})
File "/Users//PycharmProjects/furnicor/databaseActions/userActions.py", line 65, in where
results = self.findModel('user', criteria)
File "/Users//PycharmProjects/furnicor/interface/IDatabaseActions.py", line 79, in findModel
prepared = prepared + (
TypeError: can only concatenate tuple (not "str") to tuple

#

do i miss something?

grand plover
#

lord is asking for help

#

i am a noob

#

lord

#

so i can't help

quartz terrace
#

I thought you all watch nsfw....

#

im trying to find my mic shit

#

bruh I can't draw

#

you guys guessed me right

#

but alest just drifted away from the point

icy axle
quartz terrace
#

im trying to find my mic..

#

ive been kicked

icy axle
#

Kicked?

quartz terrace
#

yeah

#

@whole bear

#

it told me the mod kicked me

icy axle
#

we're not playing anymore i think

quartz terrace
#

ah k

#

bruh my mic captures every single sound in the room

steel sluice
#

use push to talk

quartz terrace
#

im working on my own fetch (terminal too)

#

no

#

I use a gif recorder

#

called peek

#

because I don't want an mp4?

#

gif are lighter ig

icy axle
#

I'm going, see you all 👋

quartz terrace
#

bai

#

ah so it captures my laptop's fan 😢 that's why

#

and I'm using that sorta mic that captures everything

#

yeah

#

my mic is shit

#

I like math

#

myth or math

#

I'm studying Algebra II and Geometry in one year 💀

#

yeah what

#

yeah

#

im using linux with just a window manager, the terminal is kitty

#

with transp

#

im using kitty

#

I never make games with python, that's a principle in my life

#

imgui is awesome

barren carbon
#

so I have this function ```def find_max(numbers):
max = 0
for number in numbers:
if number > max:
max = number
print(max)

and I want to get input from the user to getnumbersso I didhigh = input('what numbers would you like to use? ')

high = high.split(' ')
high = high
find_max(high)``` but it did not work. how can I make it work?

snow cedar
#

Is anyone here good at classes and methods

#

i got most of my code working, but now when I try doing add matrix i keep getting multiple errors

warped raft
#

hello

rotund hollow
#

oh

#

ok

#

im good ty

#

how abt u

#

where are u guys from

#

im from vietnam 🇻🇳

whole bear
#

@stiff meteor why not using slash commands

#

@wind raptor

#

@stiff meteor yeah slash command and you can check if an user has a role on discord

#

you can assign a role on discord to a user

rugged root
rugged root
#

Also be on in a bit, printer issues as per usual

rotund hollow
#

what was that

#

it was like a robot voice

warped raft
#

@stiff meteor what are you working on

#

do you work with ai

wind raptor
#

!voicemute 705441298710265928 Called someone the n word in voice

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @bright coyote permanently.

rotund hollow
#

im

#

very new to coding

#

SUPER BEGINNER

#

can u guys help me this please

#

im studying html and stucking in this part

#

bruh

#

oki

#

tysm

#

;-;

whole bear
#

@stiff meteor what u talking man?

rotund hollow
#

so i should learn python?

whole bear
#

whom u talking?

rotund hollow
#

python is easier right

rotund hollow
#

oki

whole bear
rotund hollow
#

thanks for advice

#

oh ;-;

whole bear
rotund hollow
#

oki

whole bear
#

@stiff meteor html is markup language

#

u can learn it within hours

#

it's only for website making

rotund hollow
#

dont mind the vietnamese text

#

btw i have to do homework now

whole bear
#

python has so much useful things u can do in real life... like scraping, automation... etc

rotund hollow
#

byeeeee

whole bear
#

@stiff meteor I was scraping p@rn sites man...

#

I was not trolling

#

what am I doing?

#

@dusk raven did u get that in chewzday?

rotund hollow
#

uhh no one is talking?

dusk raven
#

Herrencreme

somber heath
#

@whole bear I'm likely not going to be on in three hours.

whole bear
#

I'll look out whenever you're online or whatever

#

or active

rotund hollow
#

im not understand everything u just say @somber heath

#

cuz im vietnamese

#

:))

#

no it's my problem

#

i should be better at english

#

;-;

#

xin chào

#

bạn khỏe không

#

:))

rotund hollow
rotund hollow
#

everything ik abt python now is just print ("hello world")

somber heath
#

!resources

wise cargoBOT
#
Resources

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

rotund hollow
#

bruhhhh

#

do i need math for python

somber heath
#

It helps.

#

Learning Python can help you learn math.

rotund hollow
#

oh

rotund hollow
somber heath
#

Learning math can help you learn problem solving.

#

Programming.

rotund hollow
#

oki

#

i was coded flappy bird (copied from youtube)

#

but it got some bug

#

and idk how to fix it

#

im just looking for what i missed after copied from ytb

#

and nothing changed

#

:((

somber heath
#

Start smaller. 🙂

#

Don't overload your plate.

rotund hollow
#

oki ;-;

somber heath
#

If you do a choose your own adventure story and upload it as videos to YouTube, would that be a choose your own ad-venture?

somber heath
#

You'll never stop me from dreaming! 😄

rotund hollow
#

how old are u guys

somber heath
#

As old as the stars.

turbid zinc
#

18

rotund hollow
#

im 14

somber heath
#

Narf!

turbid zinc
#

they must be cosplaying

#

hype!

rotund hollow
#

im finished my homework

#

but now i have to memorise all the lesson i learned at the last time i study literature

tall fjord
#

heyo

rotund hollow
#

i need to stay here 2 more days

#

then i can turn on my mic

somber heath
#

The voice gate is annoying. I sympathise.

#

But it is better for it to be than to not be.

amber raptor
#

I hate rebasing, that is all.

tall fjord
#

it is annoying

#

I've been looking for a solution to my problem

somber heath
#

Hm?

tall fjord
#

I've been asking around but sadly I can't find it

#

I'm still new to python and I'm having a hard time

#

I posted a question in code help voice

somber heath
#

!e py data = {"a": "aaa", "b": "bbb", "c": "ccc"} for k, v in data.items(): print(k, v)

wise cargoBOT
#

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

001 | a aaa
002 | b bbb
003 | c ccc
somber heath
#

@tall fjord

wintry pier
#

!e

data = {"a": "aaa", "b": "bbb", "c": "ccc"}
for k, v in enumerate(data):
    print(k, v, data[v]) 
wise cargoBOT
#

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

001 | 0 a aaa
002 | 1 b bbb
003 | 2 c ccc
somber heath
#

@amber raptor You make billed software, not build software.

tall fjord
#

I tried running the list through data =

#

but I somehow wasn't able to separate Indianapolis and Oklahoma City

somber heath
#

k and v are separate variables

#

!e py k, v = (1, 2) print(k) print(v)

wise cargoBOT
#

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

001 | 1
002 | 2
somber heath
#

!d in

wise cargoBOT
#
in

6.10.2. Membership test operations

The operators in and not in test for membership. x in s evaluates to True if x is a member of s, and False otherwise. x not in s returns the negation of x in s. All built-in sequences and set types support this as well as dictionary, for which in tests whether the dictionary has a given key. For container types such as list, tuple, set, frozenset, dict, or collections.deque, the expression x in y is equivalent to any(x is e or x == e for e in y).

For the string and bytes types, x in y is True if and only if x is a substring of y. An equivalent test is y.find(x) != -1. Empty strings are always considered to be a substring of any other string, so "" in "abc" will return True.

somber heath
#

!d csv

wise cargoBOT
#
csv

Source code: Lib/csv.py

The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. CSV format was used for many years prior to attempts to describe the format in a standardized way in RFC 4180. The lack of a well-defined standard means that subtle differences often exist in the data produced and consumed by different applications. These differences can make it annoying to process CSV files from multiple sources. Still, while the delimiters and quoting characters vary, the overall format is similar enough that it is possible to write a single module which can efficiently manipulate such data, hiding the details of reading and writing the data from the programmer.

somber heath
#

Stdlib.

tall fjord
#

I know that k and v are separate variables. I understand. I'm just trying to separate the instances of v from k and v that resemble k

rugged root
#

I hate dealing with vendors

hearty knot
#

vendors > NULL

#

Pipe them into NULL

lavish rover
#

don't forget stderr

hearty knot
#

Cool day today ... I dont have to fight with Zebra Printer !

quartz terrace
#

👋

#

good, wbu

#

oh gl with that

narrow fern
#

Good Evening

#

Hello.

#

I can't hear anyone.

rugged root
#

We're talking

#

It's something on your end

narrow fern
#

I'll check back.

#

How are you anyways?

#

Good? Fine?

rugged root
#

I'm alright

#

More or less

narrow fern
#

👍

rugged root
#

Dealing with Intuit

rugged root
#

@vast light If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

#

And yes, I'm always watching

#

Waiting

vast light
#

Woow

#

hahaha

rugged root
#

Actually more just happened to see you hop in and it's a force of habit

vast light
#

I just need help for a simple thing :/

#

Yo

#

can i call u in priv ?

rugged root
#

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

vast light
#
import turtle
tortue = turtle.Turtle()
a = turtle.Screen()
a.bgcolor("Black")
def etoiles():
    
    tortue.color("Yellow")
    tortue.begin_fill()
    tortue.left(36)
    for i in range(5):
        tortue.fd(200)
        tortue.lt(180-36)
    turtle.end_fill()
    
etoiles()
rugged root
#

!stream 158991471733637120

wise cargoBOT
#

✅ @vast light can now stream until <t:1665428770:f>.

rugged root
#
import turtle
tortue = turtle.Turtle()
a = turtle.Screen()
a.bgcolor("Black")
def etoiles():
    
    tortue.color("Yellow")
    tortue.begin_fill()
    tortue.left(36)
    for i in range(5):
        tortue.fd(200)
        tortue.lt(180-36)
    tortue.end_fill()
    
etoiles()
grand wyvern
sturdy panther
#

Oh. Would using for _ in range(5) get rid of the warning?

amber raptor
#

I'll be saving that for next time LP argues that making cross OS GUI application outside Electron is easy.

vast light
#

How can i put the stars in the middle ? can i get the coords of x and y ?

drowsy isle
#

no

#

can you identify what type of code this is for me

#

#include <Adafruit_NeoPixel.h>

#define PIN 6 // Pin
#define N_LEDS 54 //Number of led in total strips

Adafruit_NeoPixel strip = Adafruit_NeoPixel(N_LEDS, PIN, NEO_GRB + NEO_KHZ800);

void setup() {
strip.begin();
}

void loop() {
chase(strip.Color(255, 0, 0)); // Red
chase(strip.Color(0, 255, 0)); // Green
chase(strip.Color(0, 0, 255)); // Blue
chase(strip.Color(0, 255, 255)); // Cyan
chase(strip.Color(255, 0, 255)); // Magenta
chase(strip.Color(255, 255, 0)); // Yellow
chase(strip.Color(5, 5, 5)); // Black
rainbow(0);
}

static void chase(uint32_t c) {
for(uint16_t i=33; i>0; i--) {
strip.setPixelColor(i-1 , c); // Draw new pixel
strip.setPixelColor(i+4, 0); // Erase pixel a few steps back
strip.show();
}

}

void rainbow(uint8_t wait) {
uint16_t i, j;

for(j=0; j<256; j++) {
for(i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, Wheel((i*1+j) & 255));
}
strip.show();
}
}

// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheel(byte WheelPos) {
if(WheelPos < 85) {
return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 2);
}
else if(WheelPos < 170) {
WheelPos -= 85;
return strip.Color(255 - WheelPos * 3, 2, WheelPos * 3);
}
else {
WheelPos -= 170;
return strip.Color(2, WheelPos * 3, 255 - WheelPos * 3);
}
}

surreal wyvern
surreal wyvern
surreal wyvern
tulip plover
#

hi

#

hello

#

heelo

#

hello @whole bear

whole bear
#

yo

tulip plover
#

I'm not not verified for mic

whole bear
#

no worries bro

tulip plover
#

how can I get verified fast

#

@whole bear

whole bear
#

if you're friends with one of the admins

#

or just wait it out

tulip plover
#

ok

wicked folio
#

farzin

#

can you help me with some code

#

@whole bear

somber heath
#

@tulip plover Corey Schafer's YouTube.

wicked folio
#

mr opal mist

#

can we call

#

i have a problem that is difficult to solve

#

can i share screen in here

#

bro

#

pls

#

bro pls

#

@olive hedge can i have voice perms for 30 mins

#

i have a problem that i need to show screen for

somber heath
#

(Not what I was suggesting you do)

wicked folio
#

im sry i have a project due and one error and its super urgent 😦

olive hedge
#

haha

Hello! We do not grant voice perms ahead of meeting the criteria.

wicked folio
#

pwease ^_^

#

pretty pwease ^_^

#

opal

#

lets call

#

pls

#

5 mins

#

so i can show u

#

pls big boss

somber heath
#

Screenshots?

#

What are you working with?

wicked folio
somber heath
#

Okay.

#

So here's what's happening.

#

!e ```py
def func():
v
v = 5

v = 0
func()```

wise cargoBOT
#

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

001 | Traceback (most recent call last):
002 |   File "<string>", line 6, in <module>
003 |   File "<string>", line 2, in func
004 | UnboundLocalError: cannot access local variable 'v' where it is not associated with a value
wicked folio
#

i know this

#

that is not the problem

somber heath
#

I'm sorry. It would seem I'm not available to assist you at the moment. You can blame @whole bear. 🙂

wicked folio
#

can we please call

#

this will take only a few minutes

#

and will take hours via text

somber heath
#

@whole bear I've put up with your attempts to piss me off me when it's just in regular conversation, but when I'm trying to assist people, I'd appreciate a level of distance from you. Is that fair?

wicked folio
#

@somber heath

#

please dude'

somber heath
#

@whole bear Further interference won't be tolerated. Is that understood?

wicked folio
#

please join the vc

#

opal

#

i have code to show you

#

i am also ukranian

somber heath
#

@wicked folioTake your matter to the help channel system.

nova prawn
#

@limber pagoda

#

are you good

limber pagoda
nova prawn
#

o okk

somber heath
#

@whole bear See, what you did just now, that I don't mind. It's just when you're doing it while I'm helping someone.

quartz terrace
#

👋

#

bro just read newspaper

#

some people need to touch grass 🍃

#

why didn't you just mute him from your end

#

annoy

mystic basalt
#

hi!

quartz terrace
#

bro-

mystic basalt
#

what just happened

#

fill me in

#

oh shit

quartz terrace
mystic basalt
#

why he do dat >:(

#

true valid

#

is it only with you or everyone

#

bruuuhhh

#

doesnt he get tired

#

rip ://

quartz terrace
#

I hate morning VCs tbh

mystic basalt
#

is it morning for you guys rn

quartz terrace
#

its 3PM for me

mystic basalt
#

its 9pm for me

quartz terrace
#

gtg, I might join when it's night for me 👋

mystic basalt
#

oh really

#

im not here too often thats why i still dont have voice perms hahaha

#

oh dammmnn

#

were they coding at least

#

im part of another server where people barge in and do that all the time

#

it can get extremely annoying

#

whats worse is that they're kids with high pitched voices

#

sometimes they even add those corny sound effects PLEASE im going to jump off a cliff

#

agreed

#

i'm just here for the vibes

#

im in IT and sometimes i just look through this server from time to time

#

ive met some admins before and they were really nice!

#

half a brain LMAOO

#

hello!

#

we're just chilling

#

i walked in on a heated conversation earlier hahahahah

#

hi noodlereaper

#

how are you doing

#

yeah theres a time and place for everything ://

#

HAHAHHA

#

NOOOOOOOO

#

NOT THE SPERM DESTROYER

#

i dont have a problem with django but django has a problem with me

#

<//3

#

it gave me trauma about 2 months ago

#

and the next day i deadass collapsed

#

#slay

#

i was running on 10 mins of sleep and 4 cups of coffee lets not relive my traumas </3

peak jay
#

hello

mystic basalt
#

hi!

peak jay
#

i just joined the server

mystic basalt
#

oh more people

#

welcome

peak jay
#

thank you 🙂

#

r we not allowed to talk in vc?

mystic basalt
#

auntie annes >>

mystic basalt
somber heath
wise cargoBOT
#

Voice verification

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

mystic basalt
#

i like how auntie annes tastes like diabetes in every bite sometimes

peak jay
#

oh ok so not now, i need to a bit more time until i can get the roles to speak

peak jay
#

ok

#

btw

mystic basalt
#

hello

peak jay
#

im like a beginner in python and i just started coding

mystic basalt
#

aaand hes gone

#

aaand hes back

somber heath
peak jay
#

so y i was wondering if anybody can help me on getting better, i have some problems in which i litterly have no idea how to do

peak jay
mystic basalt
#

i think the community is very open to helping one another!!

peak jay
#

its not a hard problem is just all the basics 🙂

somber heath
#

Well, I'll often direct new learners to Corey Schafer's YouTube. He has a few Python playlists.

mystic basalt
peak jay
mystic basalt
#

discord is acting up

somber heath
#

What's new?

peak jay
mystic basalt
# peak jay y?

nothing was just guessing how old you are now that you're starting your coding journey

peak jay
#

shouldve been doing it since i was a kid

mystic basalt
somber heath
#

Programming is a world of possibilities and magic and wonder, Charlie!

peak jay
frosty star
#

beep boop

peak jay
#

while there are other ppl who knew how to code and so it wasnt an issue for them

frosty star
#

i started when i was 18

somber heath
frosty star
#

oh gtg ;-;

mystic basalt
#

as long as you have the dedication you can do it!

somber heath
#

Or bashing your head against a window like a fly next to an open door.

peak jay
#

well im frustrated that i cant solve these problems i got rn

#

yall from where btw

mystic basalt
#

i'm from the philippines so it's 9 pm here

rugged root
peak jay
#

@somber heath wbu

woeful salmon
peak jay
#

@frosty star wbu

somber heath
peak jay
#

nice!

somber heath
#

Oh, saw a ringtail possum, today.

peak jay
#

ok so where do i go to find help in solving these problems i got?

#

python problems

mystic basalt
#

ooo specifically what are they

peak jay
#

yes

#

yes

quartz terrace
#

its a good place bro

peak jay
#

yea thats beginning stuff lol

rugged root
#

That's friggin' amazing

quartz terrace
#

I advise you to use internet

peak jay
#

yes

mystic basalt
#

gamer cat

peak jay
#

yes

#

def hello():
x = 1
return x
hello()

frosty star
quartz terrace
#

you're assigning hello() to nothing

#

hello returns a value

#

and you're using it as a void function

#

or an "effect" function

rugged root
#

Oh, and power to the fellow IT monkey

terse needle
peak jay
#

so im stuck in these sort of problems

quartz terrace
somber heath
peak jay
#

Write a Python function called alphaNote that takes a value as input (a real number from 0 to
real number from 0 to 100, inclusive) and returns an alphabetical note. No need to check if the
value is 0 to 100 at this time. For this question, we assume that it is. We will
check this for Question 3.
Add the type contract (guess it yourself) in the beginning.
A+ 90-100
A 85-89
A- 80-84
B+ 75-79
B 70-74
C+ 65-69
C 60-64
D+ 55-59
D 50-54
E 40-49
F 0-39
and heres my answer:

''''
(4 points) Ecrivez une fonction Python appelée alphaNote qui prend une valeur comme entrée (un
nombre réel de 0 a 100, inclusive) et retourne une note alphabétique. Pas besoin de vérifier si la
valeur est de 0 à 100 pour le moment. Pour cette question, on fait l’hypothèse que ce le cas. On va
vérifier ça pour Question 3.
Ajoutez en commenatire le contrat de type (devinez-le vous-même).
Utilise la correspondance suivante (de uOttawa):
A+ 90-100
A 85-89
A- 80-84
B+ 75-79
B 70-74
C+ 65-69
C 60-64
D+ 55-59
D 50-54
E 40-49
F 0-39
'''
def alphaNote(note):
    if note >= 90:
        print("A+")
    elif 85 <= note <= 89:
        print("A")
    elif 80 <= note <= 84:
        print("A-")
    elif 75 <= note <= 79:
        print("B+")
    elif 70 <= note <= 74:
        print("B")
    elif 65 <= note <= 69:
        print("C+")
    elif 60 <= note <= 64:
        print("C")
    elif 55 <= note <= 59:
        print("D+")
    elif 50 <= note <= 54:
        print("D")
    elif 40 <= note <= 49:
        print("E")
    elif 0 <= note <= 39:
        print("F")
alphaNote(30)
quartz terrace
#

I mean its fine to use print(hello()) for example, but they just use hello()

somber heath
#

It doesn't matter if you "don't know enough". Just keep learning.

peak jay
#

thats how uni is lol

visual locust
#

@peak jay السلام عليكم

mystic basalt
#

damn for my uni an A is 92-100

peak jay
quartz terrace
woeful salmon
#

for my uni we had the same but my school we had 95-100 A xD which was fun

peak jay
#

now heres the question im stuck in

somber heath
#

@peak jay You want to investigate dictionaries.

peak jay
#

Write a Python function called alphaNoteVerif that uses the
function from Question 2, but before it does it reads the keyboard to take the final numeric score and
checks that the value is from 0 to 100 (including 0 and 100). If this is not the case, it asks the user to
reintroduce the note, even several times, until the value is in the expected interval. We make the
the user gives an integer or a real number, no need to check this for the moment.
The function must call the alphaNote function of question 2 and display a message with its
result. It must also display the message: "Failed" if the score was "E" or "F", or the message
"Pass" for other values. The type contract is () ->None.

#

heres what i did

#
def alphaNoteVerif():
    note = float(input("SVP entrez la note (de 0 a 100):"))
    while note <= 0 or note >= 100:
        note = float(input("SVP entrez la note (de 0 a 100):"))
    alphaNote(note)
print(alphaNoteVerif())
x = print("La note alphabetique est:", alphaNote(note))
print(x)
#

but idk how to do the rest

peak jay
quartz terrace
#

france 👌

peak jay
whole bear
quartz terrace
#

why do I feel you live in morroco

peak jay
quartz terrace
peak jay
#

lol

#

wbu

quartz terrace
peak jay
#

nope

quartz terrace
peak jay
#

do u live in morocco?

quartz terrace
peak jay
#

where do u live

somber heath
#

@peak jay All functions that complete, return.

If nothing is explicitly returned by the time the function is finished, the object None is returned.

peak jay
#

i dont live in morocco but i can tell one thing, im from morocco

quartz terrace
#

some foreign planet, called %U$*(%U$((#, it might seem like random symbols but that's just because you're "human"

somber heath
#

!e py v = print("abc") print(v)

wise cargoBOT
#

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

001 | abc
002 | None
quartz terrace
peak jay
#

cuz i dont live there

peak jay
quartz terrace
#

because morroco people are famous with talking arabic and french, idk why

peak jay
#

how did u guess

quartz terrace
peak jay
somber heath
mystic basalt
peak jay
#
def alphaNote(note):
    if note >= 90:
        print("A+")
    elif 85 <= note <= 89:
        print("A")
    elif 80 <= note <= 84:
        print("A-")
    elif 75 <= note <= 79:
        print("B+")
    elif 70 <= note <= 74:
        print("B")
    elif 65 <= note <= 69:
        print("C+")
    elif 60 <= note <= 64:
        print("C")
    elif 55 <= note <= 59:
        print("D+")
    elif 50 <= note <= 54:
        print("D")
    elif 40 <= note <= 49:
        print("E")
    elif 0 <= note <= 39:
        print("F")
#

this is the first function

#

and this is the 2nd function

#
def alphaNoteVerif():
    note = float(input("SVP entrez la note (de 0 a 100):"))
    while note <= 0 or note >= 100:
        note = float(input("SVP entrez la note (de 0 a 100):"))
    alphaNote(note)
print(alphaNoteVerif())
x = print("La note alphabetique est:", alphaNote(note))
print(x)
peak jay
somber heath
#
def func():
    return "abc"
result = func()
print(result)```is often better than```py
def func():
    print("abc")
func()```
rugged root
#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

quartz terrace
#

recommend learning more about OOP

peak jay
quartz terrace
#

because that's a source of confusion for so many new people

quartz terrace
peak jay
quartz terrace
peak jay
#

yes

quartz terrace
#

how can you prove it?

peak jay
#

feeling

#

intuition

quartz terrace
#

I respect your feeling

#

but feeling isn't always true

somber heath
#

What even is this conversation?

mystic basalt
#

SAME

#

HAHAHHA

quartz terrace
#

idk some humans

#

are you all humans

whole bear
#
def sample_responses(input_text):
    user_message = str(input_text).lower()
    can_create = True
    if user_message in ("hello","hi","yo","sup"):
        return "Hey! How's it going?"

    if user_message in ("who are you", "who are you?"):
        return "I am ABC bot!"

    if user_message in ("time","time?"):
        now = datetime.now()
        date_time = now.strftime("%d/%m/%y, %H:%M:%S")

        return str(date_time)

    if can_create==True and user_message in ("create"):
        can_create = False
        return user_creation()

    if user_message in ("chat"):
        return chat_ID()
        user = update.message.from_user
        print(update.message.from_user)

    return "That is not a command"
peak jay
#

i was always right

quartz terrace
peak jay
#

im ok

#

wbu

quartz terrace
#

I'm so fine 😄

#

soooooo

#

fine

peak jay
rugged root
#
    if user_message in ("chat"):
        return chat_ID()
        user = update.message.from_user
        print(update.message.from_user)
quartz terrace
rugged root
#

Sorry?

quartz terrace
rugged root
#

Oh the shaking head, right

#
import logging
from telegram import Update
from telegram.ext import filters, MessageHandler, ApplicationBuilder, ContextTypes, CommandHandler

logging.basicConfig(
    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
    level=logging.INFO
)

async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):
    await context.bot.send_message(chat_id=update.effective_chat.id, text="I'm a bot, please talk to me!")

async def echo(update: Update, context: ContextTypes.DEFAULT_TYPE):
    text = f"The user's id is {context.user_id}"
    print(text)
    await context.bot.send_message(chat_id=update.effective_chat.id, text=text)

if __name__ == '__main__':
    application = ApplicationBuilder().token('TOKEN').build()
    
    start_handler = CommandHandler('start', start)
    echo_handler = MessageHandler(filters.TEXT & (~filters.COMMAND), echo)

    application.add_handler(start_handler)
    application.add_handler(echo_handler)    

    application.run_polling()
whole bear
#

import Responses as R
from telegram.ext import filters, MessageHandler, ApplicationBuilder, ContextTypes, CommandHandler
ImportError: cannot import name 'ApplicationBuilder' from 'telegram.ext'

rugged root
#

py -m pip install python-telegram-bot -U --pre

whole bear
#

updater = Updater(keys.API_KEY, use_context=True)
TypeError: Updater.init() got an unexpected keyword argument 'use_context'

somber heath
#

IDLE hates async exceptions?

rugged root
#

cd ~\Desktop

somber heath
#

I know it doesn't show stack overflows.

whole bear
rugged root
#

quit()

#

py main.py

#

!traceback

wise cargoBOT
#

Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.

A full traceback could look like:

Traceback (most recent call last):
  File "my_file.py", line 5, in <module>
    add_three("6")
  File "my_file.py", line 2, in add_three
    a = num + 3
TypeError: can only concatenate str (not "int") to str

If the traceback is long, use our pastebin.

whole bear
#

updater = Updater(keys.API_KEY, use_context=True)
TypeError: Updater.init() got an unexpected keyword argument 'use_context'

rugged root
#
async def echo(update: Update, context: ContextTypes.DEFAULT_TYPE):
    await context.bot.send_message(chat_id=update.effective_chat.id, text=update.message.text)```
whole bear
#
import constants as keys
from telegram.ext import *
import Responses as R
from datetime import datetime
import logging
from telegram import Update
from telegram.ext import filters, MessageHandler, ApplicationBuilder, ContextTypes, CommandHandler

def start_command(update, context):
    update.message.reply_text('Type something random to get started!')


def help_command(update, context):
    update.message.reply_text('If you need help you should ask for it on Google!')

def handle_message(update, context):
    text = str(update.message.text).lower()
    response = R.sample_responses(text)

    update.message.reply_text(response)


def error(update, context):
    print(f"Update {update} caused error {context.error}")


def main():
    updater = Updater(keys.API_KEY, use_context=True)
    dp = updater.dispatcher

    dp.add_handler(CommandHandler("start",start_command))
    dp.add_handler(CommandHandler("help",help_command))

    dp.add_handler(MessageHandler(Filters.text, handle_message))

    dp.add_error_handler(error)

    updater.start_polling()
    updater.idle()


main()
night lodge
#

!voiceverify

whole bear
#

async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):
AttributeError: type object 'ContextTypes' has no attribute 'DEFAULT_TYPE'

rugged root
#
import logging
from telegram import Update
from telegram.ext import ApplicationBuilder, ContextTypes, CommandHandler

logging.basicConfig(
    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
    level=logging.INFO
)

async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):
    await context.bot.send_message(chat_id=update.effective_chat.id, text="I'm a bot, please talk to me!")

if __name__ == '__main__':
    application = ApplicationBuilder().token('TOKEN').build()
    
    start_handler = CommandHandler('start', start)
    application.add_handler(start_handler)
    
    application.run_polling()
#

py -m pip uninstall python-telegram-bot

#

py -m pip install -U --pre python-telegram-bot

molten pewter
molten pewter
#
dusk quarry
#

Hi

#

i need help

rugged root
#

What's up

dusk quarry
#

I have a project for my faculty

rugged root
#

What's the question

dusk quarry
#

I have to modify a program, and I have different requirements.

whole bear
#

{'message': {'photo': [], 'new_chat_photo': [], 'caption_entities': [], 'group_chat_created': False, 'message_id': 37, 'channel_chat_created': False, 'date': 1665501523, 'new_chat_members': [], 'entities': [{'length': 5, 'type': 'bot_command', 'offset': 0}], 'delete_chat_photo': False, 'supergroup_chat_created': False, 'chat': {'first_name': 'example', 'username': 'example', 'last_name': 'example', 'type': 'private', 'id': example_id}

dusk quarry
#

Wait a minute to translate requirements

rugged root
#

!e

from pprint import pprint

ham = {'message': {'photo': [], 'new_chat_photo': [], 'caption_entities': [], 'group_chat_created': False, 'message_id': 37, 'channel_chat_created': False, 'date': 1665501523, 'new_chat_members': [], 'entities': [{'length': 5, 'type': 'bot_command', 'offset': 0}], 'delete_chat_photo': False, 'supergroup_chat_created': False, 'chat': {'first_name': 'example', 'username': 'example', 'last_name': 'example', 'type': 'private', 'id': example_id}

pprint(ham)
wise cargoBOT
#

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

001 |   File "<string>", line 3
002 |     ham = {'message': {'photo': [], 'new_chat_photo': [], 'caption_entities': [], 'group_chat_created': False, 'message_id': 37, 'channel_chat_created': False, 'date': 1665501523, 'new_chat_members': [], 'entities': [{'length': 5, 'type': 'bot_command', 'offset': 0}], 'delete_chat_photo': False, 'supergroup_chat_created': False, 'chat': {'first_name': 'example', 'username': 'example', 'last_name': 'example', 'type': 'private', 'id': example_id}
003 |                       ^
004 | SyntaxError: '{' was never closed
dusk quarry
#

@rugged root Can I send you the requests privately?

molten pewter
dusk quarry
#

@rugged root ?

mortal burrow
rugged root
#
this_dict['message']['chat']['id']
#

@dusk quarry Yeah, better to ask in here. I often have to step away from my computer

#

So this way you get more eyes on it and it's not dependent on me alone.

molten pewter
rugged root
#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

rugged root
#

And that's where you'd toss the code

molten pewter
#

Here, members of the public compete to help the U.S. government solve problems big and small. Browse through challenges and submit your ideas for a chance to win.

dusk quarry
#

ok

#
  1. Add a method in the Stock class that provides a graphic projection of the inputs and outputs in a
    the certain period, for a certain product; --pygalus--

  2. Add a solution in the Stock class that will automatically warn you when the stock of a product is less than a
    minimum limit, predefined per product. The limit can be variable (per product). Preferably to
    automatically send a warning email;

  3. Add a method in the Stock class to send different information by email (
    for example the product sheet); --SMTP--

  4. Add a method in the Stock class that uses Regex to search:

    • a product entered by the user;
    • a transaction with a certain value entered by the user; --re--
  5. Complete the application in such a way as to allow entering the price at each entry and exit.
    The exit price will be the weighted average price (for each entry transaction, an average will be made between
    the price of the products in stock and of those entered, which will become the new price of the stored products).
    The exit price will be the price at that moment;

  6. Create three new methods, different from those done in class, test them and make sure they work successfully;
    The code from txt must be changed

#

from datetime import datetime
from prettytable import PrettyTable

class Stoc:
"""About product management"""

categories = {}


def __init__(self, denp, categ, um='buc', sold=0):
    """metoda constructor"""
    self.denp = denp
    self.categ = categ
    self.um = um
    self.sold = sold
    self.do = {}
    if categ in Stoc.categorii:
        self.categorii[categ] += [denp]
    else:
        self.categorii[categ] = [denp]


def gen_cheia(self):
    if self.do:
        cheia = max(self.do.keys()) + 1
    else:
        cheia = 1
    return cheia



def intrari(self, cant, data=str(datetime.now().strftime('%Y%m%d'))):
    cheia = self.gen_cheia()
    self.do[cheia] = [data, cant, 0]
    self.sold += cant


def iesiri(self, cant, data=str(datetime.now().strftime('%Y%m%d'))):
    cheia = self.gen_cheia()
    if self.sold < cant:
        cant = self.sold
    self.do[cheia] = [data, 0, cant]
    self.sold -= cant


def fisap(self):
    print(f'Fisa produsului {self.denp} {self.um}')
    listeaza = PrettyTable()
    listeaza.field_names= ['Nrc', 'Data', 'Intrare', 'Iesire']
    for k, v in self.do.items():
        listeaza.add_row([k, v[0], v[1], v[2]])
    print(listeaza)
    print('Stoc final: ', self.sold)

prune = Stoc('prune', 'fructe', 'kg')
prune.dict
prune.categorii

pere = Stoc('pere', 'fructe')
prune.categorii
pere.categorii
Stoc.categorii

prune.intrari(100, '20210501')
prune.iesiri(71, '20210502')
prune.iesiri(80)
prune.iesiri(87)
prune.do
prune.fisap()

pere.intrari(150)
pere.iesiri(111)
pere.fisap()

castraveti = Stoc('castraveti', 'legume', 'kg')
castraveti.categorii

rugged root
dusk quarry
#

do I need to translate the instructions as well?

molten pewter
#
Join the Technology Transformation Services

The Technology Transformation Service’s (TTS) mission is to lead the digital transformation of the federal government by helping agencies build, buy, and share technology that allows them to provide more accessible, efficient, and effective products and services to the American people.

rugged root
dusk quarry
#

I don't know how to make those requests. I don't know how to solve them. I have to modify the code I made to meet the requirements.

dusk quarry
#

Please write, because i am not fluent in english

rugged root
#

Right right

#

Is there a specific one of the questions that's got you stuck? Or is it just all of it. Are these things that were covered in your course?

dusk quarry
#

It's everything. It is done, but it is a much easier option, I would give you the course materials, but they are in Romanian.

molten pewter
dusk quarry
#

Can you help me?

molten pewter
#
mortal burrow
#
GitHub

:bar_chart: Path to a free self-taught education in Data Science! - GitHub - ossu/data-science: Path to a free self-taught education in Data Science!

GitHub

The Open Source Data Science Masters. Contribute to datasciencemasters/go development by creating an account on GitHub.

#

Three different curriculums for learning data science.

molten pewter
#
#
rugged root
#

Back in a bit

molten pewter
wary roost
#

i need

#

to write this code where :- pip install flack

#

i dontr know how to make it

#

@rugged root

rugged root
#

So

#

@wary roost File > Settings > Project: [project name here] > Python Interpreter. Then there will be a little + in the top left where it shows all the packages

#

Alternatively, if you can open up a terminal inside PyCharm, you can just do a regular pip install

wary roost
rugged root
#

Then click Python Interpreter

wary roost
#

thank you very much

rugged root
quartz terrace
#

I switched to Billy-G OS yesterday (not because I want to), and I'm doing pretty good 💪

rugged root
#

Use PowerShell

#

Not cmd

quartz terrace
#

Blue!

#

That's an improvement

rugged root
#

Also, get Windows Terminal and the latest PowerShell

#

You'll thank yourself

quartz terrace
rugged root
toxic grove
#

import random

alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', ' ']
Letter = random.choice(alphabet)
print(randrange(Letter))

terse dove
#

print(Letter)

terse dove
#

Thumper is rhythm violence: classic rhythm-action, blistering speed, and brutal physicality. You are a space beetle. Brave the hellish void and confront a maniacal giant head from the future.Scream down the endless track and crash through punishing obstacles with simple, airtight controls. Hurtle forward, master new moves, reach overwhelming vel...

Price

$19.99

Recommendations

3335

Metacritic

86

▶ Play video
rugged root
dusk raven