#voice-chat-text-0

1 messages ยท Page 22 of 1

rugged root
#

!stream 198221449444589568

wise cargoBOT
#

โœ… @terse dove can now stream until <t:1665508106:f>.

wicked folio
#

can anyone help with a python file data manipulation project?

dusky mortar
rugged root
#

Interesting

dusky mortar
amber raptor
#

SQLite is great local caching solution

#

Redis, not even once

rugged root
#

For handling sessions?

terse dove
rugged root
#

Hope it helps

#

#web-development will know more than me, though. So if you get stuck, they'll be better to ask

#

I'm personally only just know relearning Django

#

But I know most of the broad strokes and what not

terse dove
#

good point, i'll probably go in there the next time i get lost lol

rugged root
#

Most of my knowledge is a mixture of experience, bullshit, and bullshit I'm basing on experience.

#

And research

#

Usually a mixture of all

dusk raven
amber raptor
wind cobalt
#

thanks

dusk raven
rugged root
#

brb, someone managed to replicate an issue on their rig.

dusk raven
#

yap

rugged root
quartz terrace
#

๐Ÿ‘‹

#

got a problem in mic @whole bear

whole bear
#

ok

quartz terrace
#

and where is python ๐Ÿ˜ณ

whole bear
#

i do know python

#

sorry for late response

#

i just forget to write it down i mean i hardlly even use discord im more used to irc

full marsh
#

Hello

#

Could any one say why there is none

#

@whole bear

whole bear
#

yeah?

#

i was distracted wut?

#

...

full marsh
#

Ya there is my question above

full marsh
whole bear
#

u a new dev in python?

full marsh
#

Yes

whole bear
#

oh~

#

sorry my wifi is slow

#

im connected to proxychains

#

it kinda suck

#

oh

#

why did u left

#

bruh

#

oh nvm

quartz terrace
rugged root
#

@hard crow 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 our voice gate

hard crow
quartz terrace
#

I haven't even read lmao

#

and I still can't for some reason

#

๐Ÿ‘‹

#

@whole bear

#

idk

#

im sus

#

yeah ik, I just like listening to others

#

ur voice is kinda low btw

#

yeah

#

are you talking to me pythonically or English I don't understand

#

hallelujah IT WORKS

#

gun position, where are you bro??? Don't say your in war

peak jay
#

hello guys

#

im stuck in this question

quartz terrace
peak jay
#
def loops(n):
    if n % 2 == 0:
        for i in range(1, n, 2):
            print(i)
        for i in range(n, 0, -2):
            print(i)
    else:
        for i in range(1, n + 1, 2):
            print(i)
        for i in range(n, 0, -2):
            print(i)
print(loops(13))
#

1
3
5
7
9
11
13
13
11
9
7
5
3
1
None

#

my output is that

#

but i want it like this

#

how do i put it in a line

peak jay
full marsh
peak jay
#

does anybody know how to put it in a line

#

@full marsh @quartz terrace

full marsh
#

Ya

#

Type

quartz terrace
#

print("", end="")

#

once you want a new line, do print()

peak jay
#

doesnt change anything

quartz terrace
#

bruh, wait one sec

#

!e
def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i)
for i in range(n, 0, -2):
print(i)
else:
for i in range(1, n + 1, 2):
print(i)
for i in range(n, 0, -2):
print(i)
print(loops(13))

wise cargoBOT
quartz terrace
#

def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i,end="")
for i in range(n, 0, -2):
print(i,end="")
else:
for i in range(1, n + 1, 2):
print(i,end="")
for i in range(n, 0, -2):
print(i,end="")
print(loops(13))

#

!e
def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i,end="")
for i in range(n, 0, -2):
print(i,end="")
else:
for i in range(1, n + 1, 2):
print(i,end="")
for i in range(n, 0, -2):
print(i,end="")
print(loops(13))

wise cargoBOT
#

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

135791113131197531None
peak jay
quartz terrace
#

the None is a bug you found btw

peak jay
#

wow

#

ok

#

so what do i do

quartz terrace
#

!e
def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
else:
for i in range(1, n + 1, 2):
print(i,end="")
for i in range(n, 0, -2):
print(i,end="")
print(loops(13))

wise cargoBOT
#

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

001 |   File "<string>", line 5
002 |     print("")
003 | IndentationError: unexpected indent
quartz terrace
#

!e
def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
else:
for i in range(1, n + 1, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
print(loops(13))

wise cargoBOT
#

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

001 |   File "<string>", line 11
002 |     print("")
003 |              ^
004 | IndentationError: unindent does not match any outer indentation level
quartz terrace
#

!e
def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
else:
for i in range(1, n + 1, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
print(loops(13))

wise cargoBOT
#

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

001 | 1
002 | 3
003 | 5
004 | 7
005 | 9
006 | 11
007 | 13
008 | 131197531None
full marsh
#

!e
def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
else:
for i in range(1, n + 1, 2):
print(i,end="")
print ()
for i in range(n, 0, -2):
print(i,end="")
print(loops(13))

wise cargoBOT
#

@full marsh :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 5
002 |     print("")
003 |              ^
004 | IndentationError: unindent does not match any outer indentation level
quartz terrace
#

just a print a new line when you want it idk what your trying to do

#

!e
def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
else:
for i in range(1, n + 1, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
print(loops(13))

wise cargoBOT
#

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

001 | 135791113
002 | 131197531None
full marsh
#

!e
def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
else:
for i in range(1, n + 1, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
print()
print(loops(13))

wise cargoBOT
#

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

001 | 135791113
002 | 131197531
003 | None
full marsh
#

!e
def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
else:
for i in range(1, n + 1, 2):
print(i,end="")
print("")
for i in range(n, 0, -2):
print(i,end="")
print()
loops(13)

wise cargoBOT
#

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

001 | 135791113
002 | 131197531
full marsh
#

!e
def loops(n):
if n % 2 == 0:
for i in range(1, n, 2):
print(i,end=" ")
print("")
for i in range(n, 0, -2):
print(i,end=" ")
else:
for i in range(1, n + 1, 2):
print(i,end=" ")
print("")
for i in range(n, 0, -2):
print(i,end=" ")
print()
loops(13)

wise cargoBOT
#

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

001 | 1 3 5 7 9 11 13 
002 | 13 11 9 7 5 3 1 
quartz terrace
#

why is VC so boring af smh

peak jay
#

cuz im still muted

#

we cant

#

were all muted

#

yep

quartz terrace
#

you're not "muted"

peak jay
#

how many messages i sent so far?

#

oh ok

#

then?

#

what do i do then

#

yea

#

i just wanna see if i got more than 50 messages

quartz terrace
peak jay
#

oh ok

#

lol

#

nvm

#

so i just need to wait for 3 days then ill be good

quartz terrace
#

it looks like a game

versed dagger
#

hi

#

You made that with python ?

quartz terrace
#

take inspiration

#

it is lmao

#

nah

#

you can run a browser in the terminal

versed dagger
#

what game are you making

quartz terrace
#

isn't ncurses something for building TUIs?

#

we can use terminal based applications for everything, why do we use bloated GUI!?!?

velvet urchin
#

echo -e "\033[31;1;4mHello\033[0m"

#

echo -e "\033[38;2;255;82;197;48;2;155;106;0mHello"

versed dagger
#

hello

#

my mic is broken

#

NVR

#

is it possible to make a game with cmd

peak jay
#

@quartz terrace who r u

#

and y did u not respond to ur dms

quartz terrace
#

bro its 12 and I can barely focus

peak jay
#

ok

#

who r u

quartz terrace
#

and I didn't see any dms tbh

quartz terrace
peak jay
quartz terrace
#

im some useless creature

peak jay
#

r u human

quartz terrace
peak jay
quartz terrace
#

no

#

im transparent

peak jay
#

like water?

quartz terrace
#

yeah

peak jay
#

which race u belong to

#

oh wait

#

r u muslim?

quartz terrace
#

why r u asking

peak jay
#

depending on ur answer i will know where u from

quartz terrace
#

im not

peak jay
#

lez goooo

#

ik where u from

quartz terrace
#

Earth?

peak jay
#

ofc ur from earth but ik more precisely

quartz terrace
#

on the land?

peak jay
#

more precisely than that lol

quartz terrace
#

in a country?

peak jay
#

yes

#

ik which race u from

#

so look

#

u said ur not white

quartz terrace
#

ok good job

peak jay
#

so all the west is gone

#

now theres only africa and asia left

#

then

#

u said ur not muslim

#

which gets rid of north of africa and middle east

quartz terrace
peak jay
#

cuz u said ur not white lol

quartz terrace
#

is teh west just for white ๐Ÿคฃ

peak jay
#

no like originally

quartz terrace
#

and im white lmfao

peak jay
#

WOW

#

WOW

#

OK

quartz terrace
#

cant you see my pfp

#

u racist

peak jay
#

lol

#

ok

#

so

#

do u live in europe

#

do u speak dutch

#

brah

#

y u ghosting me

quartz terrace
#

we can resume playing tmr dw ๐Ÿ˜‚

#

0

stiff girder
#
    now = datetime.now()
    dimensions = int(arg)
    if dimensions < 0 or dimensions > 2500:
        dimensions = 1000
    print(f'Person command was used at {now.strftime("%m/%d/%Y %H:%M:%S")}')
    r = requests.get("https://thispersondoesnotexist.com/image")
    image_file = io.BytesIO(r.content)
    file1 = Image.open(image_file).convert('RGB')
    file1.save("Img/person.PNG")
    image3 = Image.open('Img/person.PNG')
    new_image = image3.resize((dimensions, dimensions))
    new_image.save('Img/personImage500.PNG')
    await ctx.send("This Person Doesnt Exist!",
                   file=discord.File("Img/personImage500.PNG",
                                     filename="personImage500.PNG"))```
velvet urchin
#

worthless piece of shit what are you doing here

quartz terrace
rigid imp
#

Hellooo

#

I'm new to the voice chatt

#

what is the subject of the day

velvet urchin
#

arg = 1000

#
async def person(ctx, *, arg = "1000"):
    now = datetime.now()
    dimensions = int(arg)
    if dimensions < 0 or dimensions > 2500:
        dimensions = 1000
    print(f'Person command was used at {now.strftime("%m/%d/%Y %H:%M:%S")}')
    r = requests.get("https://thispersondoesnotexist.com/image")
    image_file = io.BytesIO(r.content)
    file1 = Image.open(image_file).convert('RGB')
    file1.save("Img/person.PNG")
    image3 = Image.open('Img/person.PNG')
    new_image = image3.resize((dimensions, dimensions))
    new_image.save('Img/personImage500.PNG')
    await ctx.send("This Person Doesnt Exist!",
                   file=discord.File("Img/personImage500.PNG",
                                     filename="personImage500.PNG"))
brave pewter
#

!voiceverify

#

oops sorry nvm

velvet urchin
#

!voice

wise cargoBOT
#

Voice verification

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

rigid imp
#

Why cant I talkk

stiff girder
#

#voice-verification

quartz terrace
quartz terrace
brave pewter
#

can you guys help out after you are done you think?

rigid imp
quartz terrace
brave pewter
#

bro what ๐Ÿคฃ

rigid imp
quartz terrace
brave pewter
#

shrek do you think you can help me out for something afterwards?

rigid imp
quartz terrace
brave pewter
#

@stiff girder can you help me out maybe?

rigid imp
#

chiilll

quartz terrace
rigid imp
brave pewter
#

@stiff girder

rigid imp
#

are you good at python btw ?

brave pewter
#

who?

stiff girder
quartz terrace
#

uh, average skill, im not reallyinto the language

brave pewter
#

can we go on a private call ?

rigid imp
#

the person that is not useful ๐Ÿ˜‚

stiff girder
#

nah

brave pewter
#

i cant talk tho is that alright?

rigid imp
brave pewter
#

okok

quartz terrace
#

being useless is useful, right??

rigid imp
#

I might need a bit of help in Python

rigid imp
somber heath
quartz terrace
quartz terrace
#

brain damage

rigid imp
rigid imp
quartz terrace
#

sry can't rn now

rigid imp
quartz terrace
#

the reason I join VCs is just because im lonely and I want some company

rigid imp
somber heath
#

I'll probably be around a while later. Maybe an hour or two.

rigid imp
#

the reason I join is because I want to expand my knowledge about python

#

I really love this stuff

somber heath
#

If anyone has Python questions, I might be able to field some.

rigid imp
quartz terrace
#

he'll be here in an hour or two?

somber heath
#

He is often around, but he's just woken up and hasn't had breakfast nor watched the tv he wants to watch, yet.

rigid imp
#

Why can't I iterate through a list and keep modifying it

somber heath
#

You're adding/subtracting elements?

rigid imp
somber heath
#

A demonstration.

#

abcdef

#

Six elements.

rigid imp
#

yes

somber heath
#

First element is a.

#

I remove b

#

Second element is c.

rigid imp
#

yeah I'm following

somber heath
#

Actually, I think that's not the right example.

rigid imp
somber heath
#

!e py things = list("abcdef") for thing in things: del things[-1] print(thing)

wise cargoBOT
#

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

001 | a
002 | b
003 | c
somber heath
#

Wait, are you sure it's a list and not s dictionary?

rigid imp
#

I'm positive its list

somber heath
#

!e py d = {"a": "b", "c": "d"} for k in d: del d[k]

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 2, in <module>
003 | RuntimeError: dictionary changed size during iteration
rigid imp
#

based on what I see

#

you can

#

but with my code it didnt work

somber heath
#

Right, but it might give you weird problems if you're not careful.

#

It's not so much that you can't remove or add things from a list while you for loop over it, it's that you probably shouldn't.

rigid imp
#

things[-1] is supposed to give you the last item , no ?

somber heath
#

Yes.

rigid imp
#

!e

wise cargoBOT
#
Missing required argument

code

somber heath
#

!e py for i in (0, 1, 2, -1, -2, -3): print("abc"[i])

wise cargoBOT
#

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

001 | a
002 | b
003 | c
004 | c
005 | b
006 | a
rigid imp
#

how do I write some code in the chat

somber heath
#

!code if it fits

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.

somber heath
#

!paste if it does not

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.

somber heath
#

Can you provide a representative code example that demonstrates the funky behaviour you're seeing?

rigid imp
somber heath
#

I should have kept my earlier example as it was.

#

!e py things = list("abcdef") for thing in things: del things[0] print(thing)

wise cargoBOT
#

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

001 | a
002 | c
003 | e
rigid imp
#

it skips

#

cause the index keep changing ?

whole bear
#

could someone walk me through a code verbally while we step through it on python tutor?

somber heath
#

!e py things = list("abcdef") for thing in things: if thing == "c": del things[0] print(thing)

wise cargoBOT
#

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

001 | a
002 | b
003 | c
004 | e
005 | f
somber heath
#

things == ['b', 'c', 'd', 'e', 'f']

rigid imp
whole bear
#

like i share my screen and someone explains what they are seeing in pythontutor

somber heath
#

Screen sharing requires admin/moderator intervention.

whole bear
#

o

somber heath
#

Typically, you'd be on vc when a mod/admin happens to come in and you'd ask them nicely.

rigid imp
somber heath
#

You're asking them to hang around and watch you stream.

whole bear
#

ok. i can't do it right this moment just trying to line something up for later or tomorrow

whole bear
#

have to eat

rigid imp
#

with the python code

#

maybe the guy can help

whole bear
#

oh nothing i just don't understand how it works

somber heath
#

Am I the guy?

rigid imp
whole bear
#

it was converted from java by google's codex jaun

somber heath
#

I've never been the guy.

whole bear
#

oh you're the guy, guy

somber heath
#

I'm the guy!

rigid imp
whole bear
#

wait

somber heath
whole bear
#

can't one just screenshare via a private disc call?

somber heath
#

I'm off. Later.

whole bear
#

โ˜ฎ๏ธ

rigid imp
#

try out and let me know

whole bear
#

no you def can do that, i've done it b4

#

doesn't have anything to do w a server

rigid imp
#

dm me

#

maybe we can understand it๐Ÿ˜‚

rigid imp
cosmic iris
#

ah shit I cant talk

#

you any good at python dawg

somber heath
silk mango
#

ahghangnafafa

#

are you a federal agent

#

glowie

#

i know it

#

i smell it

#

the mods are onto me

#

after I posted a video on how to make methamphetamine

somber heath
#

Shall I call them?

silk mango
#

the feds

somber heath
#

I meant the mods.

silk mango
#

why would you do that champ

#

haven't done anything wrong

#

Be kind. Create. Breathe. Sing.

somber heath
silk mango
#

Don't vote for bullies.

#

the mods are bullies

#

unless

#

I feel like

#

you're silently

somber heath
silk mango
#

making methamphetamines

somber heath
#

I'm not comfortable with this conversation. ๐Ÿ™‚

#

Please desist.

silk mango
#

okay topic change

#

People who eat bread with the crust am I right?

#

or am I right?

cosmic iris
#

I am new to Python and just approaching an ambitious first project... I thought maybe someone could give me some input

somber heath
#

What's the project?

cosmic iris
#

oh you know just trying to recreate jarvis

silk mango
#

tf is that

cosmic iris
#

the ai from ironman, I want my own personal voice assistant

silk mango
#

I would like suggest simple before advanced

cosmic iris
#

I have been coding for a month

somber heath
#

Okay, so you're looking at text to speech, speech recognition, natural language processing, unsupervised machine learning and a boatload of disciplines I could never hope to comprehend in my lifetime. As projects for new programmers go, you're right, it's ambitious. To the point I would say that you're aiming far too high too early.

#

Start out with the basics, first.

#

Build your way up.

#

Reach, but reach with an understanding of how far you can realistically reach.

#

Per reaching out.

silk mango
#

Make love, not war

  • Jesus H Christ
cosmic iris
#

I have actually made pretty good progress, but hit a barrier which I need to pass until I can proceed onto tensorflow to give it near consciousness... but yes I still need to get more familiar with all the basic python concepts and statements

silk mango
#

what

somber heath
#

I mean, if you manage to create consciousness and can prove it, step up and collect your Nobel prize.

silk mango
#

google engineer already proved a chatbot to be sentient

somber heath
#

!e py print(sum(range(1, 11)))

wise cargoBOT
#

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

55
silk mango
#

2 + 9 = 11.43252143131

#

opal

somber heath
#

Hm?

silk mango
#

9+2 = 11

somber heath
#

That would seem to be the popular opinion on the matter.

silk mango
#

trueeeeee

somber heath
#

I don't think Python would like it, though.

silk mango
#

wtf damn python slow

#

c++ been making my brain feel fast

somber heath
#

This is what I call the moss argument.

#

Interpreted languages have an inherent bottleneck compared with compiled languages, yes. All things being equal, well-written Python code is slower than the equivalent well-written C++ code.

#

Poorly written C++ is liable to be slower than well-written Python, and Python comes with options for rocket boosters to give compiled languages more of a run for their money.

silk mango
#

but c++ got the funny {} that shit honestly helps me read code better

somber heath
#

But sure. If speed is all you care about, C++ is fine.

silk mango
#

python is like a good multi tool
c++ and shit is when you want to focus on something specific

somber heath
#

Python's primary advantage is, perhaps, its relatively friendly syntax and ease of use.

#

@slow minnow ๐Ÿ‘‹

#

and that attracts a lot of people to it, meaning its ecosystem is well developed and maintained

#

robust

slow minnow
silk mango
#

truee but for program development I could not find anything that really suited me with python

#

like GUI

#

wise

somber heath
#

Python is at the forefront of ML development. Yes, the underlaying stuff is in C, but then what isn't, eventually?

#

Scientific computing, etc

silk mango
#

yea python good for computer science and shit

somber heath
#

Each language to its own use cases.

#

It's not a competition.

#

(It absolutely is a competition.)

silk mango
#

idk these javascript frameworks acting like its a competition hard

#

0.5 milliseconds faster and that's the thing everyone switches to

silk mango
#

what's that one thing that google was releasing for like c++ 2.0 or something

#

Carbon thats it

#

It looks epic

#

unlike rust

#

all my homies hate rust

#

opal

#

Python Vs Ruby who you siding with

somber heath
#

I'll give you a hint: You don't get any points for guessing correctly.

silk mango
#

okay

#

using all my brain power

#

we are the python discord server

#

hint 1

#

many channels about python

#

hint 2

#

I'm thinkinnnnnnn

#

Python

somber heath
#

Well done.

#

๐Ÿช Have a cookie.

silk mango
#

thank you

#

I tried hard

#

I gtg

#

I am tired asf

#

mad sleepy

#

bye bye opal

somber heath
#

Ta ta.

slow minnow
#

hows everyone doin?

somber heath
#

er

#

I mean

#

like

#

I'll explain that

#

"How's it going?"

#

"It's going."

#

"How are you doing?"

#

"I'm doing."

slow minnow
#

i feel the same

#

just trynna get that voice verification yk

somber heath
#

Mhm.

slow minnow
#

just joined gotta earn my roles

#

what do you think the best free python course would be?

somber heath
#

Course, I don't know. I direct people to Corey Schafer's Youtube.

slow minnow
#

ive been watching freecodecamp

slow minnow
slow minnow
somber heath
#

Not too lately, no.

#

I find myself lacking motivation and inspiration.

slow minnow
slow minnow
#

im bored

mystic basalt
#

hi opal

#

just chilling?

somber heath
#

@brazen basaltHi hi. ๐Ÿ™‚

somber heath
warped raft
#

hello @red cypress

red cypress
#

Hii Shashank

warped raft
#

how are you doing

red cypress
#

Yeah am doing great

#

Wbu ?

warped raft
#

doing ok

#

finding a python project
happy to hear any suggestion

red cypress
#

My mic is suppressed in this voice channel

#

How to enable that ?

warped raft
#

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

did that help you @red cypress

red cypress
#

Yeahh @warped raft

#

Will have to wait for a couple of days to get it activated

warped raft
#

k

red cypress
#

So do you want to build a project for your academic purpose ?

warped raft
#

nope

#

just want to learn something

#

any idea from you

red cypress
#

See there are a lot of open-source projects available online.......you can refer to GitHub for those repositories and get a gist of them......and later on try to build it via integration with different python modules

warped raft
#

ok
thank you

#

but any specific project

red cypress
#

There is nthin specific.......depends on the interest and kind of stream in which you're willing to move ahead

warped raft
#

ok

#

thank you for the advice

#

๐Ÿ™‚

warped raft
#

hello @somber heath

violet patrol
#

opal

#

@somber heath you got time to help me set up a virtual environment?

#

alright

wind raptor
#

Just eating some breakfast

rugged root
#

The hail from earlier

#

That's the biggest I saw walking into the building

wind raptor
#

That's big enough

somber heath
#

The biggest we've had here was about chonky babybell cheese sized. Though elsewhere has had like small tennis ball sized.

sweet lodge
#

Hail?

somber heath
#

Yes.

sweet lodge
#

All I got was a couple of clouds

somber heath
#

Catsocoatl?

molten pewter
#

quetzalcoatl

somber heath
#

I thought you were making a cat pun on it.

rugged root
#

@wind raptor

somber heath
#

Mmm. Sweet, precious eagle cactus fruit.

rugged root
lavish rover
rugged root
swift valley
#

G'day

rugged root
#

!stream 924010347264897024

wise cargoBOT
#

โœ… @lunar haven can now stream until <t:1665583767:f>.

somber heath
#

Degrease.

swift valley
#

Ha

solemn crane
#

how to convert periodic binary fractions to decimal?

#

(0,(010)) binary

#

to decimal

lavish rover
#

On of my friends thought it was "quote on quote" and would type it out like that

#

It was great

rugged root
#

Back in a bit

cedar steeple
#

I'm trying to voice verify

#

I'm also unable to chat.

#

I'm chatting in the voice-chat-O

#

Not in your Voice Chat 0, yes, I agree, thank you, I'm here to learn.

faint ermine
#

!e ```py
import dis

dis.dis("""
a = 1
print(str(a) + " test")
""")

wise cargoBOT
#

@faint ermine :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 |   0           0 RESUME                   0
002 | 
003 |   2           2 LOAD_CONST               0 (1)
004 |               4 STORE_NAME               0 (a)
005 | 
006 |   3           6 PUSH_NULL
007 |               8 LOAD_NAME                1 (print)
008 |              10 PUSH_NULL
009 |              12 LOAD_NAME                2 (str)
010 |              14 LOAD_NAME                0 (a)
011 |              16 PRECALL                  1
... (truncated - too many lines)

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

distant sonnet
#

!e

import dis
dis.dis("""
print("hola")
""")
wise cargoBOT
#

@distant sonnet :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 |   0           0 RESUME                   0
002 | 
003 |   2           2 PUSH_NULL
004 |               4 LOAD_NAME                0 (print)
005 |               6 LOAD_CONST               0 ('hola')
006 |               8 PRECALL                  1
007 |              12 CALL                     1
008 |              22 RETURN_VALUE
distant sonnet
#

!e
import dis
dis.dis("""
for i in range(10):
pass
""")

wise cargoBOT
#

@distant sonnet :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 |   0           0 RESUME                   0
002 | 
003 |   2           2 PUSH_NULL
004 |               4 LOAD_NAME                0 (range)
005 |               6 LOAD_CONST               0 (10)
006 |               8 PRECALL                  1
007 |              12 CALL                     1
008 |              22 GET_ITER
009 |         >>   24 FOR_ITER                 2 (to 30)
010 |              26 STORE_NAME               1 (i)
011 | 
... (truncated - too many lines)

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

distant sonnet
faint ermine
distant sonnet
#

what's the comparison of binary sizes?

#

let me do pull up a quick nuitka docker

faint ermine
#

@red cypress chat here please

faint ermine
red cypress
#

Hii

#

Okayyy @faint ermine

faint ermine
red cypress
#

Thanks @faint ermine

rugged root
#
def ham(spam: Bacon):
faint ermine
red cypress
distant sonnet
rugged root
distant sonnet
#

can we go to this channel and discuss some of the code^

cedar steeple
#

Thank you for letting me drop in guys, I'll catch you all again sometime.

distant sonnet
#

!e

 for x in 0,1,2:print("fbboaaorz"[x::3])
wise cargoBOT
#

@distant sonnet :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | foo
002 | bar
003 | baz
red cypress
#

Hiii all

#

Can anyone tell me how to automate data filtering in excel using pandas ?

#

I wanted to fetch the data based on customized date filter and display the data in tabular format

rugged root
#

@vivid palm would know better on stuff like that but I don't know if she's busy or not

#

Most people are set to DnD permanently it seems, so I never know

#

Unfortunately I haven't messed too much with Pandas

red cypress
dusk raven
red cypress
dusk raven
#

have a look at this

red cypress
#

But masking won't be required as I don't need to replace any value......I just needed to extract the dataset based on date custom filter in excel

dusk raven
#

i mean u can use it to select data but u can also use the where function

red cypress
#

@dusk raven .....Basically I've to implement this custom date filter in Excel using pandas and extract the data

whole bear
mild quartz
dusk raven
mild quartz
mild quartz
quasi condor
mild quartz
quasi condor
#

iirc the only difference is some Logitech logos and some dodgy cooling thing

rugged root
#

!stream 117231997331570695

wise cargoBOT
#

โœ… @whole bear can now stream until <t:1665591567:f>.

faint ermine
rugged root
#

@lunar haven Thanks for the stream. Was enjoyable to watch

#

!stream 924010347264897024

wise cargoBOT
#

โœ… @lunar haven can now stream until <t:1665591758:f>.

rugged root
#

@lunar haven Can you stop it and start the stream again? It's not loading for me

wicked folio
#

can anyone help me understand some code

rugged root
#

Sure, what's the code

wicked folio
#

its python using for and related to web scraping

#

not you

rugged root
#

Not me?

#

Why not me, pray tell

rugged root
wicked folio
#

guess

#

i will tell you for promise of no retribution

rugged root
#

If you know that you shouldn't be asking it, as in you wouldn't asking it while an admin's around, then you shouldn't ask it at all in the server

wicked folio
#

no ill will to you but consequence is important

#

it's specifically you

#

the question is normal

rugged root
#

Well now I'm very curious

rugged root
#

From me, no

wicked folio
#

ok then

#

anyone else?

#

it is a relatively simple python problem

rugged root
#

Then just ask the question

wicked folio
#

no

#

if i ask my question you will cause problems

#

even though all i want is help

hallow karma
#

wut is it

#

@wicked folio ??

wicked folio
#

i dm'd you

faint ermine
#

!name-main

wise cargoBOT
#

if __name__ == '__main__'

This is a statement that is only true if the module (your source code) it appears in is being run directly, as opposed to being imported into another module. When you run your module, the __name__ special variable is automatically set to the string '__main__'. Conversely, when you import that same module into a different one, and run that, __name__ is instead set to the filename of your module minus the .py extension.

Example

# foo.py

print('spam')

if __name__ == '__main__':
    print('eggs')

If you run the above module foo.py directly, both 'spam'and 'eggs' will be printed. Now consider this next example:

# bar.py

import foo

If you run this module named bar.py, it will execute the code in foo.py. First it will print 'spam', and then the if statement will fail, because __name__ will now be the string 'foo'.

Why would I do this?

โ€ข Your module is a library, but also has a special case where it can be run directly
โ€ข Your module is a library and you want to safeguard it against people running it directly (like what pip does)
โ€ข Your module is the main program, but has unit tests and the testing framework works by importing your module, and you want to avoid having your main code run during the test

quasi condor
#

!e 1_000_000

wise cargoBOT
#

@quasi condor :warning: Your 3.11 eval job has completed with return code 0.

[No output]
gentle flint
quasi condor
#

!e

5+5
print(_)
wise cargoBOT
#

@quasi condor :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | NameError: name '_' is not defined
gentle flint
faint ermine
#

!e ```py
def f():
return 1
print(_)

wise cargoBOT
#

@faint ermine :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | NameError: name '_' is not defined
rugged root
#

Awning I think

gentle flint
#

ah

#

well, I fixed one today

#

it has a handle you turn to crank it in

#

it went in about halfway

#

then started slipping and zoomed back out

#

this cap was at the end of the big cloth roll

#

there was a square metal shaft which went in

#

originally the hole in the cap above was square too

#

but now the square shaft was slipping in it

#

a store nearby turned out to have one of these caps left in stock for โ‚ฌ18

#

replaced the cap and it works like a charm

#

was a pain to hang it back up tho

wicked folio
#

does anyone know why this only prints the last df call?

#

#Get Egg Recipes
test_url2 = 'https://www.allrecipes.com/recipes/148/breakfast-and-brunch/eggs/'
t = get_recipes_from_page(test_url2)
df2 = pd.DataFrame(get_recipes_from_page(test_url2))
df2

#Get French Toast Recipes
test_url3 = 'https://www.allrecipes.com/recipes/149/breakfast-and-brunch/french-toast/'
t = get_recipes_from_page(test_url3)
df3 = pd.DataFrame(get_recipes_from_page(test_url3))
df3

#Get Smoothie Recipes
test_url4 = 'https://www.allrecipes.com/recipes/138/drinks/smoothies/'
t = get_recipes_from_page(test_url4)
df4 = pd.DataFrame(get_recipes_from_page(test_url4))
df4

gentle flint
# wicked folio #Get Egg Recipes test_url2 = 'https://www.allrecipes.com/recipes/148/breakfast-a...

in

#Get Egg Recipes
test_url2 = 'https://www.allrecipes.com/recipes/148/breakfast-and-brunch/eggs/'
t = get_recipes_from_page(test_url2)
df2 = pd.DataFrame(get_recipes_from_page(test_url2))
df2

#Get French Toast Recipes
test_url3 = 'https://www.allrecipes.com/recipes/149/breakfast-and-brunch/french-toast/'
t = get_recipes_from_page(test_url3)
df3 = pd.DataFrame(get_recipes_from_page(test_url3))
df3

#Get Smoothie Recipes
test_url4 = 'https://www.allrecipes.com/recipes/138/drinks/smoothies/'
t = get_recipes_from_page(test_url4)
df4 = pd.DataFrame(get_recipes_from_page(test_url4))
df4

when you write

df2 = pd.DataFrame(get_recipes_from_page(test_url2))
df2

what's the second df2 doing?

wicked folio
#

prints df2

gentle flint
#

don't you think writing print(df2) would be a bit clearer

#

pretty sure it would fix your problem too

#

not sure tho

wicked folio
#

yes but it wouldn't be a dataframe

gentle flint
#

sorry, you heard the admin, I can't help you

wicked folio
#

@rugged root ik you know who i am now

#

but its either this

#

or i give my tuition money to a private tutor

#

ill respect ur server

#

but dude i have no other option, office hours for this class are 1 hr a week

#

i have no choice

vivid palm
#

evading your ban is not respecting the server

#

you can join the appeals server and make an appeal, not circumvent our moderation

wicked folio
#

what am i meant to do then mina?

rugged root
#

!ban 1029165821068587059 Ban evasion and and violating rule 5. You haven't respected our server or our rules. In fact even on this account, you've already had a warning.

wicked folio
#

i did wrong

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @wicked folio permanently.

vivid palm
#

you'll see in a bit

rugged root
#

Whoops

vivid palm
#

you're good

rugged root
#

Finger slipped, had more to write. Oh well

#

!zen

wise cargoBOT
#
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

faint ermine
#
def len(obj):
    return obj.__len__()
rugged root
#

I.... I've never had that happen before

#

It shouldn't do that

#

Desktop client or web?

#

Yeah I'm going to give you - that might do it - probationary temp for 3 weeks since you consistently stream good stuff. Break my trust, I break your kneecaps. And my heart

dusk raven
gentle flint
# rugged root Yeah I'm going to give you - that might do it - probationary temp for 3 weeks si...

https://NatalyDawnMusic.com - Click to see Nataly on tour!

Gardenview out now, listen on Spotify (https://sptfy.com/gardenview) or wherever you listen to music.

Save this song on Spotify: https://spoti.fi/2r3Yqkh
Follow us on instagram: https://instagram.com/pomplamoosemusic
Become a patron of our music (to vote on the songs we cover and get...

โ–ถ Play video
rugged root
#

Mkay, you've got the perms, @lunar haven

rugged root
#

!e

from dis import dis

def add_one(num):
  return num + 1

print(dis(add_one))
wise cargoBOT
#

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

001 |   3           0 RESUME                   0
002 | 
003 |   4           2 LOAD_FAST                0 (num)
004 |               4 LOAD_CONST               1 (1)
005 |               6 BINARY_OP                0 (+)
006 |              10 RETURN_VALUE
007 | None
rugged root
#
1..10```
dusk raven
#

1..3

#

1...3

#

1...3:4

faint ermine
#

1..=3

#

(1..10).step_by(2).rev().map(|x| x + 1)

#

mic broke

whole bear
#

gotta jump out

vestal mason
faint ermine
#

oof

rugged root
#

Wait wait wait

#

IRON?

#

Fuckin' hell

faint ermine
#

.net python go brrr

vestal mason
#

Yes we use it has a hook from c++

faint ermine
rugged root
#

@lunar haven Looks like it's common enough. It might just be the case if your code didn't create the file. Python will default to writing things in UTF-8 in a certain way

#

But I guess it may not in other cases?

#

Don't know exactly, most of what I just said was guessing

#

But I guess if it works, just keep doing the encoding thing

#

Just don't think I've had to do that

#

Maybe

#

Oh huh

faint ermine
#

ive had issues with it writing cp1xxx on windows by default

rugged root
#

Okay I for some reason thought that open defaulted the encoding argument to UTF-8

rugged root
faint ermine
#

sadly not apparently

#

whats the exact issue?

rugged root
#

open()'s default for encoding is None

vestal mason
#

that happen to me. They only show the most expensive

rugged root
#

"If encoding is not specified, the default is platform dependent."

#

Huh

#

What OS?

#

Right

#

My guess is that it's trying to read it using the weird Windows encoding

#

But to make it system agnostic, putting the encoding would solve it

#

Sure sure

rugged root
rugged root
#

Which is weird

#

Like

#

They can lie

#

Well

#

I would call myself a "faithful servant"

molten pewter
gentle flint
#

cop, art thou a cop
if thou liest I shall attack thee

rugged root
faint ermine
#

@upbeat tulip

#

this one

upbeat tulip
#

Yeah i figured it out

rugged root
upbeat tulip
#

no

#

i have it already

autumn yarrow
#

voice-chat-0-text ?

rugged root
#

True, thought about that one, too

#

Feels weird having it after the number, though

#

Actually

faint ermine
#

idk, i think voice-text-0 works well

autumn yarrow
#

๐Ÿ‘

rugged root
#

@vivid palm Thou hast abandoned us

molten pewter
#

!topic

#

.topic

viscid lagoonBOT
#
**What is your favorite TV show?**

Suggest more topics here!

sand prawn
#

What's your favorite PEP? xd

gentle flint
#

8

#

excpet the line length limit

molten pewter
#

.topic

viscid lagoonBOT
#
**What's your favourite kind of soup?**

Suggest more topics here!

gentle flint
#

Gazpacho (Spanish pronunciation: [ษกaฮธหˆpatสƒo]; Southern peninsular Spanish: [ษกahหˆpa(t)สƒo]) or Gaspacho (Portuguese: [ษกษสƒหˆpaสƒu]), also called Andalusian gazpacho, is a cold soup and drink made of raw, blended vegetables. It originated in the southern regions of the Iberian peninsula and spread into other areas. Gazpacho is widely eaten in Spain an...

sand prawn
#

i really like pumpkin soup

gentle flint
#

Melon soup is a soup prepared with melon as a primary ingredient. Melons such as bitter melon, cantaloupe, crenshaw melon, honeydew (casaba melon) and winter melon may be used, among others. Some melon soups are prepared with whole pieces of melon, and others use purรฉed melon. Some are served hot, while others are served chilled. Some cold varie...

sand prawn
#

its like ham

#

yeah greak people are really laid back ๐Ÿ˜„

#

they have tourist season and non-tourist season

#

thats crazy

plush thicket
#

need help setting up visual studio code for C , it just won't work

#

what am i missing

sand prawn
plush thicket
#

i did

#

many in fact

rugged root
#

@strong arch Would you mute your mic when you're not speaking?

#

We're getting odd background noise

crystal fox
rugged root
#

Be back when I get in the van

gentle flint
strong arch
#

total_fns |= set(fns)

#

@lunar haven

stuck furnace
#

Hey @lunar haven ๐Ÿ‘‹ What are you working on?

#

!help csv.DictReader

wise cargoBOT
#
Query "csv.DictReader" not found.
sand prawn
#

and does it work if you run it @lunar haven ? ๐Ÿ˜„

stuck furnace
#

If you want a quick way to silence that typing error message, you can use ```py
assert fns is not None

#

If you always expect this to be the case.

#

Try/except is the way to go if you want to handle this error case ๐Ÿ‘

#

Oh sorry, you wouldn't use try/except here actually, you would just use a regular if fns is not None.

mellow sierra
#

oh

#

I can

stuck furnace
#

Oh were you not talking to me earlier? ๐Ÿ˜…

mellow sierra
#

it's better

#

okie

#

bye

sand prawn
#

bye

mellow sierra
#

you're welcome

lavish rover
sand prawn
#

oh, sweet sound of science ๐Ÿ˜„

#

@neat acorn yep ๐Ÿ˜„

#

your mic sound kinda wierd

#

yep, programming is hard ๐Ÿ˜‘

#

or you can be jack of all traits, master at none

#

you don't have to remember everything, documentation exist for a reason ๐Ÿ˜„

#

@lunar haven pandas is smart enough to take care of file opening. It is smart enough to distinguish between file object and file path.

rustic mantle
#

!stream

#

@lunar haven
How did you get permission to stream?

sand prawn
#

bye

#

๐Ÿ˜„

#

you too

rugged root
lavish rover
#

I only kid

#

I figured something like that

rugged root
#

I know it

lavish rover
#

Shut up I'm old now ๐Ÿฅฒ

rugged root
#
#

@worn flax 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 our voice gate

unborn storm
#

bye everyone !

alpine path
strong arch
stuck furnace
#

Er, yeah the conversation moved on ๐Ÿ˜„

faint ermine
stuck furnace
#

Interesting ๐Ÿค”

#

That looks great actually, might try it out.

strong arch
stuck furnace
#

I guess that's essentially how a spreadsheet works, but in a notebook format.

#

๐Ÿ‘‹

#

Erm, I was just about to head off but what do you need help with @astral plank ?

#

Heyy ๐Ÿ‘‹

#

Everyone just left :C

#

Erm, not bad, yourself?

#

Ah ๐Ÿ˜„

#

You get the enjoyment of learning it for the first time again I guess

vivid palm
#

\

#

\ \

#

r"

#

/ /

stuck furnace
#

Yeah \\

#

Erm, I was just about to head off cya ๐Ÿ‘‹

vivid palm
#

bbye

coarse zodiac
#

hey guys i wanna write a function to store age in and whenever i call it again it prints the age only not the whole process of inputting the age. im aware that the code i wrote here does just that but ive been trying to create what i want for almost 2 hours now this code is just to give u an idea for what i want to create.

astral plank
coarse zodiac
#

i guess the only way is to call it as a variable

spark citrus
#

guys does anybody have 2min to help me with easy code im a python beginner i dont know how to add 1 more if to if ๐Ÿ™‚

wind raptor
#

!stream 717134648567791657

wise cargoBOT
#

โœ… @astral plank can now stream until <t:1665623446:f>.

wind raptor
#

@rugged tundra I'm in VC-0 if you wanna chat

unique fern
#

Hello

#

i dont think i can talk yet

#

aaand that sucks :/

#

but the day will come

#

where i will gain the ability to talk to other snakefans

#

about why i suck at coding

#

aand then get better at coding

#

but

#

this day might be in the far future

#

noone can know

edgy skiff
#

oh

#

hi

#

ok

#

nice avatar btw

#

you are from ukraine?

#

oh

#

cool

#

i am also from ukraine

#

so i have a question about python

#

i cant download library

#

ill show error screen

#

i dont know how to solve it

#

:(

somber heath
#

Where you see the >>> is the REPL

#

Don't do it in the repl.

#

Do it in your command prompt.

gentle flint
#

firstly you need to not run the command in the repl like opalmist said
secondly, that's not the cmmand you should be running

edgy skiff
#

thank you

gentle flint
#

the command you should be running (ifI remember correctly) is python -m pip install pyautogui

rugged root
#

If you're on Windows, py -m pip install pyautogui

edgy skiff
#

omg

#

its working

#

thank you so much

rugged root
#

Niiice

edgy skiff
#

great

somber heath
#

@oak schooner ๐Ÿ‘‹

edgy skiff
#

i cant

#

it doesnt work ((

#

can be any problems if in the way to python.exe will be ukrainian/russian named files?

#

You should consider upgrading via the 'C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\python.exe -m pip install --upgrade pip' command.

#

and it says this thing

somber heath
#

That's usually just a suggestion.

whole bear
edgy skiff
warped raft
#

hello

edgy skiff
#

hi

whole bear
rugged root
#

@subtle stone ๐Ÿ‘‹

#

Sorry, just now clicked that you were heading out

#

My brain is not with me today

subtle stone
#

Happens

#

And goodbye mr hem ๐Ÿ‘‹

icy axle
rugged root
stuck furnace
#

Yo ๐Ÿ‘‹

rugged root
#

How've you been!

#

It's been like

#

Forever

stuck furnace
#

Erm, not bad ๐Ÿ˜„

rugged root
#

What's been going on?

#

Work/school/hot singles in your area?

tidal shard
#

@gentle flint

molten pewter
#

Years ago, Googleโ€™s Street View program expanded from streets to virtually everywhere, thanks to Googleโ€™s Trekker program that put 360-degree Street View cameras into a single backpack. Today, Google announced its upgraded Trekker backpack, which is significantly smaller and lighter than before. The old one weighed in at about 44 pounds. Itโ€™s no...

tiny seal
#

bb in 15m

eternal wharf
#

how to enable transcription?

quasi condor
quartz terrace
#

hai everyone, I'm a human today

stark knot
#

Hello ๐Ÿ‘‹, how are you guys doing?

quartz terrace
stark knot
#

I'm good, tnx

whole bear
#

everyone, doing good?

#

pretty good too]

#

just came by to see whats happening

rugged root
#

@brisk locust

brisk locust
#

Excuse me gentlemen, what am I wrong here?

#

nun1=input(int("10"))
nun2=input(int("20"))
if=nun1>nun2
print("the first value and the largest")
else:
if=nun2>nun1
print("the second and largest value")

faint ermine
#

if= isnt a thing in python

#

you likely meant if nun2 > nun1:

#

also, input(int("10")) this converts the string "10" to the int 10 and then prints that to the terminal with the input function

#

the input function will pause and wait for user input

#

that means: writing in the terminal

brisk locust
#

thank you so much

faint ermine
#

how many pushups can you do?
3

#

wanna do a set of 3 with me
nah

#

back pains currently

#

wtf

#

why delete the message

#

ruckenschmerzen
i delete everything
apparently

#

if you search from maroloccio i only have 2 messages
but why?
maroloccio:
well i want to save storage
i want to put these KBs in a bank
and then one day i want to do something great with these savingslike a piggy bank
like a piggy bank
i can send a gdpr for deletion
to save a few KBs
yes
the economy of this doesn't work
:(
it's ill conceived
it's not economical
because it's wasteful
it's like chasing my own tail
my efforts are wasteful
especially because i always say the same thing, more or less
yes my idea is ill conceived
i am going to send MYSELF a gdpr
let me save a few kbs
let me waste a little energy
with mouse clicks. a few kcal

somber heath
#

High energy. Restless.

rugged root
faint ermine
rugged root
#

!server

wise cargoBOT
#
Server Information

Created: <t:1483877013:R>
Roles: 100
Member status: status_online 55,331 status_offline 302,843

Members: 358,174

Helpers: 145
Moderation Team: 36
Admins: 14
Owners: 3
Contributors: 43
Leads: 10

Channels: 268

Category: 32
Forum: 1
News: 10
Staff: 65
Stage_Voice: 2
Text: 149
Voice: 9

quartz terrace
#

woah I thought it was created last month

rugged root
#

Did you really?

#

You thought we got 350k users in a month

quartz terrace
#

lol why not, Python is the most popular

quartz terrace
#

but I have memory issues

rugged root
#

Fair

faint ermine
rugged root
faint ermine
rugged root
whole bear
faint ermine
#

SELECT * FROM table

#

INSERT INTO table (value, value2) VALUES ({userinput}, {userinput2})

#

userinput: '; SELECT * FROM table;

whole bear
#
def get_user_by_ID(ID):
    x.execute("SELECT * FROM users WHERE ID=:ID",{'ID': ID})
    return x.fetchone()
faint ermine
#

:ID

#

wrong, open to injections

def get_user_by_ID(ID):
    x.execute(f"SELECT * FROM users WHERE ID={ID}")
    return x.fetchone()
#

GET /api/products?q='; SHOW ALL TABLES;

quasi condor
faint ermine
quasi condor
#

yes, but you said that after someone elses example

#

and there's no correct example here

faint ermine
#

ye we were talking about injections

quasi condor
#

sure - have at it

faint ermine
#

it uses the libraries :ID formatting which should clean