#voice-chat-text-0
1 messages Β· Page 73 of 1
It wants you to return the count
oh shoot yah that too
yah im still getting anerror
its probably that i have to return something
i changed return
but now im facing this
!e py a = print('Hello, world.') print(a)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello, world.
002 | None
Also, is it asking you to print the count?
!e py def func(): return print('Hello.') result = func() print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello.
002 | None
terminal seems to be returning this
Keep going [y/n]? y
Keep going [y/n]? y
Keep going [y/n]? y
Keep going [y/n]? y
Keep going [y/n]? n
You answered 'y' 4 times.
You answered 'y' None times.
u see the last line
?
Is it asking you to print the count?
!e ```py
def func():
print('Hello.')
return 'Goodbye.'
result = func()
print(result)```Printing vs returning.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello.
002 | Goodbye.
whaz you trying to fix?
or alr fix
function definitiion says
"the function quits and returns the number of times that the user answered 'y'. If the user answers anything else, the function responds with Answer unclear. Use 'y' or 'n'. "
how do i get this return value
ive treid returning it
got it lol
!print-return
π
hello opal!
that's a cool one!
@golden sonnet join the vc?
i don't have a headphone and am at work π¦
oh its ok!
@buoyant cradle https://en.m.wikipedia.org/wiki/Flowgorithm
Flowgorithm is a graphical authoring tool which allows users to write and execute programs using flowcharts. The approach is designed to emphasize the algorithm rather than the syntax of a specific programming language. The flowchart can be converted to several major programming languages. Flowgorithm was created at Sacramento State University.
I don't offer my endorsement.
I went to a street where the houses were numbered 8k, 16k, 32k, 64k, 128k, 256k and 512k. It was a trip down Memory Lane.
What's the object-oriented way to become wealthy? Inheritance.
['hip', 'hip']
Number of days since I have encountered an off-by-one error: 0.
!false, ||(It's funny because it's true)||
!code
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.
import pyjokes as pyj
joke_amount = 0
while joke_amount < 10:
print(pyj.get_joke())
joke_amount + 1
+=
!e py for _ in range(10): print('Blah')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Blah
002 | Blah
003 | Blah
004 | Blah
005 | Blah
006 | Blah
007 | Blah
008 | Blah
009 | Blah
010 | Blah
looks like I have verification left to do
need to wait 3 days π
How come there is no obfuscated Perl contest? Because everyone would win.
A programmer had a problem. He thought to himself, 'I know, I'll solve it with threads!'. has Now problems. two he
I've been using Vim for a long time now, mainly because I can't figure out how to exit.
An SQL query goes into a bar, walks up to two tables and asks, 'Can I join you?'
There are 10 types of people: those who understand binary and those who don't.
I went to a street where the houses were numbered 8k, 16k, 32k, 64k, 128k, 256k and 512k. It was a trip down Memory Lane.
A programmer walks into a bar and orders 1.38 root beers. The bartender informs her it's a root beer float. She says 'Make it a double!'
I went to a street where the houses were numbered 8k, 16k, 32k, 64k, 128k, 256k and 512k. It was a trip down Memory Lane.
Why do Java programmers have to wear glasses? Because they don't see sharp.
Why does Waldo only wear stripes? Because he doesn't want to be spotted.
you repeated one π¦
not sure if instant gratification is the right analogy π
i just put in what the code gave me
guess it has a randomness to it
for the most part I understand, public server's vc channel oftern get abused
@rustic mauve π
on every platform
Got some more jokes!:
Optimist: The glass is half full. Pessimist: The glass is half empty. Programmer: The glass is twice as large as necessary.
Asked to explain Unicode during an interview, Geoff went into detail about his final year university project. He was not hired.
Old C programmers don't die, they're just cast into void.
What do you get when you cross a cat and a dog? Cat dog sin theta.
Why are you always smiling? That's just my... regular expression.
Complaining about the lack of smoking shelters, the nicotine addicted Python programmers said there ought to be 'spaces for tabs'.
Two bytes meet. The first byte asks, 'Are you ill?' The second byte replies, 'No, just feeling a bit off.'
Software developers like to solve problems. If there are no problems handily available, they will create their own.
Why do programmers confuse Halloween with Christmas? Because OCT 31 == DEC 25.
If loving you is ROM I don't wanna read write.
Complaining about the lack of smoking shelters, the nicotine addicted Python programmers said there ought to be 'spaces for tabs'.
bro what dis mean
tabs? lsd?
lmao
no one calls them tabs bro
import pyjokes as pyj
for _ in range(10):
print(pyj.get_joke())
if you want bad programing jokes
call em darts, cigs, choofs, durrie
LMAO
the durries
gotta rep the native slang
thats why im like who tf calls them tabs
any of you used webbrowser module?
lol I just went through the same. you dont have to
it is a built in
I scoured the conda documentation and realized it later
bro last night my python just broke
i had to install the ms store version fo python
what is that?
i was like running my uvicorn app as normal and outta nowhere it just kept hanging
yeah it gave me an interal error like 3 times
yeah and when i looked up the error code
it was somthing about recurssion
but i just re-started my server
!e py def f(): f() f()
@somber heath :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 | File "<string>", line 2, in f
004 | File "<string>", line 2, in f
005 | File "<string>", line 2, in f
006 | [Previous line repeated 996 more times]
007 | RecursionError: maximum recursion depth exceeded
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
I am using webbrowser module but the problem is while I do some stuff in the browser I want program to wait but interpreter just forget the browser and moves forward
we should all move on
0 [main] python (6320) C:\Program Files\Python311\python.exe: *** fatal error - Internal error: TP_NUM_C_BUFS too small: 50
it was somthing like that
Hm. Dunno.
bro why cant i talk
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

mm i sooo wanna have a headphone so i can wonder what is opal saying π¦
@somber heath negative is negative. If I had to choose between small or big negative I'd rather not choose at all.
i still don't understand you btwπ₯΄
Hey @frigid rampart!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
you should say lesser instead of smaller
yeah but he used those words already so...
@whole bear π
Hi guys, I guess I am too new here.
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
So I am not able to speak in the VC yet, but it has been very chill convo it helps me to code.
I am actually the same as you, but with you it feels like stimulating my thoughts.
Kinda like Chat GPT with a voice.
k f it i'm joining
import requests
word_site = "https://www.mit.edu/~ecprice/wordlist.10000"
response = requests.get(word_site)
WORDS = response.content.splitlines()
Looks like.
@somber heath Have you read the Computer Science Wizard Book?
I do not know the original name (sounded really dry) but that book is a real game changer.
do you guys think selenium is cross-platform?
I am writing an app in kivy because it will work in linux as well as andriod
exactly
kivy say they work on linux
but don't know
oh so there is some way to browse web within kivy?
but learning java and android stuff is too much π comparing to kivy π’
kivy is kinda used when you have a web app written in python and you wanna make it an app
nah bro
opposite
other than that you want kotlin
Js in source of all my sorrow
it is the reason I stick to backend tasks in my job as well
I am an sfdx developer to be exact π
salesforce
salesforce developer experience
I mean within salesoforce (the comapany) they have developers for sfdx
but I made a type I am not one of the those, just salesforce (product) developer
No I am saying the opposite
I am not blaming anyone, but I am saying my work is different from them and I am not to be blamed
I am consuming sfdx not wrting sfdx
they are sure doing a wonderful job but I have fair share of complaints against them
mainly about how they document stuff
sfdx
go Malbolge
you gonna love it
you will need some apex to host stuff with the help of salesforce. Maybe I will show you once I can speak
not really taht complicated
hmm
I do not have knowledge about traditional ways to host stuff. But I understand you little little
networking ... π±
I slept through my networking classes
but I will learn it soon, once I get done with my current tasks at stuff
promise
I currently aim to write secure password manager for my linux and android
biometrics suck
I dont even game on windows
bro
linux is simple
mac restricts you in their ecosystem which is why it is no
lol on point
both of yuou
π
coriander on potty
I have Mac and Windows and Win is on my powerful Lenovo
never tried Linux
why Linux?
I hope I used lot of messages out of 50 π
1 step close to the edge and I am about to speak
famous song by linkin park
yes @somber heath
hey I am not that old
I am just 25
@misty hinge π
haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay
hi opals
okay I will go. but I will take your advice to try conventional andrioid app development instead of kivy. Nice talking to yall.Or maybe nice !talking to yall. see ya
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i can't enable my mic
See above.
inspiration
from watching the sports I mean I guess but I dont watch sports either
It just started snowing in February here in Berlin.
The weather has been weird lately.
aww that's ... a good thing? not a good thing?
In the past around March you would get spring, but now you get spring end of April or may.
Not a good thing, it#s so grey and cold here everyone is flying to Vietnam.
But it is a good weather for programming.
Good weather to stay in bed
I experienced my first snow in Japan. That's how I learned to hate winter.
Yeah my knees hurt everything hurts
yeah nose bleeding too it was so weird
I love summer. But it's summer all year round here so there's that.
Sims CAS is still the best
create a sim
its the character creation thing
NOT if you have the custom contents
Allergy season
And it's like the weird transitioning from winter. Birds waking you up.
I am not ready.
- I have birthday in March
you should come to Berlin
ah the allergies. Pretty sure there's a statistics on pollen deaths out there. Being worse than the other causes of death.
HaH
never been to Australia
though
I heard Australia has the largest amount of public beaches in the world
and that women there are thots
Munich are our biggest enemies
XD
Munich people are horrible
Munich people are very into themselves, they are elite and even Munich people hate Munich people
smart
i wonder about code protection of sensitive data with these ai tools.. currently i only give them snippets and no heavy lifting of code.
but...
with these ide integrations is anyone concerned with plugins reading all their open files?
like i dont see options to lock them to certian files etc..
makes me want to start a new vm just for controlling code in code out with their obvious lack of disclousing whats actually going on.
halo
π
@somber heath I want to be a backend with python, but I still don't know whether to choose django or flask. do you have any suggestions?
but right now im still learning the basic of python
yap
yes
i wanna make my foundation strong
fastapi
okay tq
i just learn about turtle graphics before
it still very basic
@frosty star halo
depends. simplicity or more options
more options results in => you having the option to mess up more
bit too confident hem xD
woah replay that
man i wish i had recorded that sound
I'm here. On in a bit
Sup
Yo
I can look it up
Can you type out the term again?
dynaconf
So Dynamic configuration...
Hmm
Huh, I'd never seen this before
Love the logo
Snek gears
It is yeah
Python lib
Oh sure sure
Just adorable
Yeah
I know
It's just adorable
Valentine's day
Yeah
I know, it's the days leading up to it
Otherwise you'd have one day and the fun features wouldn't really get used
This is interesting, but it just feels like yet another config setup
I can see the appeal with this
But like
There's already so many config setups
There's already a lot of different standards, yeah
"Oh shit, Dad caught me scratching the couch"
There's sprays to discourage
Like certain scent or pheromone sprays.
There's also commercial things
With some of those you don't have to
Does not help
Trust me
Lucky has claimed my arm chair
I've surrounded it in cat scratching things
Oh right right
Discourage inappropriate scratching by removing or covering other desirable objects. Turn speakers toward the wall. Put plastic, double-sided sticky tape, sandpaper or upside-down vinyl carpet runner (knobby parts up) on furniture or on the floor where your cat would stand to scratch your furniture. Place scratching posts next to these objects, as βlegalβ alternatives.
They do yeah
They want to shuck their claws
Don't try bribery
They will exploit the shit out of you
First thing I thought of when you said bubble for some reason
Hey @ancient lily and @vocal basin
hello @rugged root
How goes it
good
He is
... he was
Okay now I'm not sure
It'd be the same profile pic....
Hold on, looking
You have me curious now
xD
44K people online
what is happening
yes same
Looks like more online than that
yea , I only counted the online section
there's dir, admin, mod, community , partner
good to see so many people are interested in python
that's probably somewhat less than 10000
i mean a lot more are this much joined discord
Well... online doesn't necessarily mean active
But we do still have a very active user base
still, they do check the server out . once in a while
yea
Yep, even if it's just for help
yes, I'm a beginner people were so helpful to me I love it specially @dawn vine the man the myth the legend
@somber heath Halp. I feel like someone just hit me with a tired bus
Why?
Jack up the bus. Take off the tires. De-tired bus.
Did you not sleep?
i noticed when you write love it. you get loved
@somber heath
and, after putting tires back on, it'd be re-tired bus?
yes, that happened again XD
Starjumps. Pump the blood.
now when i feel low. i come here to get loved
Mr. Hilock
brolock
hemlick
But yeah, I'll disappear a lot
That color looks good on you, btw
Just a little
Proud of you, buddy
The hell I can't
No
It's fair play
The number of infractions we've given each other....
Not here not
Do it in adminspam
there's this project called classy config....
Isn't that most configs?
Fair
Not to mention hunting down configs
Because yes, they'd be sectioned out
But sometimes it makes it less clear
Mm, fair
You and me both
We all do that
I just have this weird aversion to dynamic configuration stuff
KISS
Possible
Well at least the code is still there somewhere
If you're hungry, it can be your enum num num
It was just a discussion about how best to deal with configuration files
@molten pewter Sup
@somber heath Yes that is how you install things in Python
@short mural π
I was also attempting at implementing lambda calculus in C but gave up
You had a pip tic
That's my new favorite
Your British colony blood is showing. "Pip pip cheerio"
"GIL"
"F-STRINGS"
One day...
Ah that makes sense
"ABSTRACT BASE CLASSES"
"match case case case case"
(that was quite a long time ago, so today I'd either finish it or not start at all)
Store your config in a DB, itβs best way.
"write configs on whiteboards and OCR them"
bye guys, see you later 
No milk?
Fresh squeezed moo juice
Then what kind?
Ah good good
Well
Except almond milk
Almonds are very thirsty nuts
They use way way way too much water to grow
Straight from the cow
Oh, HORSE
Okay, right
That makes more sense
Shots fired
@terse needle Nerd
β€οΈ
Perl
It's not a programming language
It's the language and concept that functional and declarative build from, but it itself isn't a programming language (if memory serves)
I think programming languages have to be made with the intent of being used to make computer instructions
With the compiler/interpreter you're making, it will be a programming language
I... guess?
Lambda calc isn't what gives the computer instructions
So it'd have to be yours to lambda calc to assembly
Well no, even then
Oh wait wait... aren't their lisp machines?
They must sound funny
God I wish I could speak so I could make the joke hit harder
2 to 3 weeks is my guess
And even then I doubt I'll have the cubicles back by then
@tawdry sparrow Yo
Multiple cubicles for you?
The annex had 5 cubicles total
That's part of what let me be able to talk. I was in the cubicle around the corner from the door. So not only did my speech have to go past a cubicle, it also had to bounce around toward the door
Without those walls, sound echoes a LOT in there
@somber heath If your friend Bob steals corpses, would you call him "Grave Robert"?
I'm mildly proud of that
I hate printers, btw
Just in case that wasn't clear
Specifically Canon printers and their useless fucking installers
You got your Monday morning printer ticket too?
"God why's the toner so heavy!?!"
Is this something I'm too non voice to understand
yes

Gaming printer. 60 pages per minutes
it prints Dell-icious output
Print to XPS?
Well, at least they tried
Noones even heard of them
Especially something so ingrained in the mind
Digital document? It's a PDF
Even if it wasn't, we'd still call it that
for some reason the tests in my matrix fail if I run them simultaneously
but they each pass if I run them individually
fuck these ubuntu apt repos fr
constantly going down
Hnnnngggg back in a sec, have to grab the portable printer from an auditor
@cyan swallow π
I don't even know what those are
So probably not
They usually just come with them on
Ferrite beads are passive electronic components that can suppress high frequency signals on a power supply line. They are normally placed around a power/ground line pair that is incoming to a particular device, such as the power cord for your laptop. These beads work according to Faradayβs Law: the magnetic core around a conductor induces a back EMF in the presence of a high frequency signal, essentially attenuating the ferrite frequency response. Standard ferrite beads can be acquired from specialized manufacturers such as Coilcraft, though certain projects may require customized beads
They are yeah
Interesting
Makes sense
No, it's for consistent flow
Power fluctuation on things like laptops can fuck with them
Oh yeah yeah
Generally power brick handles that
This is on a power brick cord on the to device side
And power fluctuations donβt bother a laptop most of the time unless battery isnβt present.
Fair
In this case it's for a portable printer
So likely just cheap crap
I've never held a power brick that felt so.... flimsy
Like it sounds hollow
I had to reroute a pc audio cable because of processor static
with one of those I probably wouldn't have had to
Possible
I just realized I haven't electrocuted myself in quite a while
I have a feeling that I'm due
@signal ore π
@signal ore Yo
@rugged root yo
Up for a trip to the Netherlands?
HA
hi rabbit
My favorite was Nextel phones screwing with PC audio
The control frequency would interfere with so you know a call was coming before phone rang.
I can help
I mean
I do try to stay grounded
So maybe I can help
@amber raptor Have fuuuuuun~~~~
I don't think he's going to have fun
Just a guess
@mild quartz Sup
So this is going to sound weird
But I have a portable printer on my lap so I can try and do some updates on it and I don't really have anywhere to put it.
oh man
It's weird feeling the ink cartridges moving back and forth
@rugged root put your pants back on
Like anything bought from a Brookstone
no u
@mild quartz So what're you up to
then why watch them
hahaha
So I'm having to go off the very brief memory of what you look like
that me
Ah yeah
Sorry, just now saw
Was just thinking of stupid job titles
How was the meeting
In a good way or bad way
Jesus
Makes sense
can't talk, am at work
Poor guy
What would you do if they asked you to be temporary lead of the engineering team?
No worries
How's work?
sqlalchemy
and I have never used it before in my life
steep learning curve, definitely
Yeah that's what put me off of it
well, the whole codebase uses it so I don't exactly have a choice
ORMs are supposed to make things easier and that one just doesn't feel like it does at first
True
gonna be back later
Gotta love those
I'm always too polite to be like "Look, I have to get back to work soooo"
Fair
My perception of you is that you do good work
So fair enough
High quality meh
It's never the case
Unless it's a very small very refined team
Usually in skunkworks
True dat
Well
And the security folks
Those are just the people the story revolves around
I'm sure there's a few numbnuts running around acting like they're doing work
@molten pewter So uh... what color shirt are you wearing?
No reason
Okay you're safe
Expendable red shirts
It was later
Yellow was command in the original
Red was the security team originally
The security team that always got eaten or esploded
Yeah yeah
I know I know
Deep Space 9
So good
Still good
Yes
I never count endings
Dude
Sisko will beat your ass
Neat
how important it is to have ```if name == 'main':
app.run(debug=True, host="0.0.0.0", port=5000)
Hello
"Yellow was command in the original
Red was the security team originally
The security team that always got eaten or esploded
Yeah yeah
I know I know
Deep Space 9
So good
Still good"
this almost sounds like a rap songπ
π
@amber raptor you have a homelab, just set up some torrent thing
Read that as torment originally
We absolutely are not in the golden age of television. But I'll save the argument for when I'm not on a v loud train
very
says you
That's what makes it special
@gentle flint Nice office
Japan-a-mae?
Everything else I've heard says the new Star Trek is terrible @molten pewter
Yeah sliding windows are common enough
And every clip I've seen lines up with that fact
No. These are die hard startrek fans
They're klinging onto the old style
Oh yeah
The original style where it's just brown face
Yeah
And mustaches
Can't forget the mustaches
It was meant as a social commentary, I thought
A lot of things in it were
@vocal abyss Yo
Not too shabby
Yourself?
Good, you?
First day back after a looong weekend :p
@sweet lodge I am at school leave me alone
never
Just like the pings the bullying never ends
well
@molten pewter Later dude
Welcome back
Lay out the problem
Hmm
So it's more a devops thing?
Ah gotcha. Any errors or tracebacks?
Hmm
Give me a little bit, I need to wrap up something here for work
Then I can give this more attention
(r"""`~!@#$%^&*()_-+={[}}|\:;"'<,>.?/""")
Nombre_No2_1=" ".join(re.findall(r'[a-zA-ZΓΓ±]+r(_)'
Yeah, that's most of the things I say
@steel plume π
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Hey Fred
That's adorable
It's like bikes that have that flag to make them more visable
We just all wish we could look that fabulous
@fierce hemlock π
hi!
@vernal bridge Yoooo
Oh I was going to ask, how - yes I am - is the game coming along
No worries, was just curious
So what've you been up to
@whole bear π
I mean there's no guarantee that I'll know how to fix it either
Looks like the deed is done
No no
Hello
My roles
Appratently can't get voice permission
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
it's ok
i have a question
i have a python library
DearPyGui
and they say on linux
this library use
opengl
how exactly they wrap that
like, i don't have installed open gl
and still works
Hemlock you do be looking a strange color
@twin zinc π
hey
Yeah, I stepped down
Made room for admins who can dedicate more time than I
Still Voice Lead, so this is still my domain
xfce use opengl?
Thank you for your service 
probably when i installed xfce, opengl gl was installed with him
You folks aren't fully rid of me yet
idk
I imagine you with the "what are you doing in my swamp???" Every time someone joins hahaha
amazing what people can do
with python
they ported imgui to python
and im really amazed
"Welcome to the Velvet Room"
Love Persona
So good
His name is Igor
Yeah it's... not easy to quickly explain
@serene glade Suuuuuuuuuuuuuuuuuuuuuuuuuuup
What is up!
pacman -Qq mesa
that's cool
2 years
nop
a lot of time i just playing games
nothing more
linuxGamer21 you make games?
can i see?
@rugged root you fuckers. I'm in an airport with 2+hrs to kill and you all disappear
I want to argue about startrek, you were just the proxy ping for the vc regulars
startrek is OK
people around me love it alot ( especially on the older spectrum ). i think its mid
well respectable work done by the team who worked on it atleast
its one of those films that has built this insane reputation for the culture built around it
@rugged root
@molten pewter you there?
That can give you a decent ballpark
@lavish rover hanging in there
For rendering it helps
If it was for horses it would be neightracing
haytracing
Come on hem, it was right fucking there
It's more just useless trivia
Yeah I'm confused what you guys are trying to convince him of
They're different tasks entirely
That wouldn't/shouldn't matter
Just one?
See if they will pay for it
Or just buy another yourself
Only if you're compensating for something
I was genuinely trying to figure out if those two images were related
hey i need help with my code
What's the question
well it says "invalid syntax" on my function for my operator on my calculator
if op == +:
print(num_1 + num_2)
if op == -:
print(num_1 - num_2)
if op == *:
print(num_1 * num_2)
if op == /:
print(num_1 / num_2)
can you tell me what im doing wrong here
try
if op == "+":
instead of
if op == +:
No problem!
same for -, *, and /
@rugged tundra He's going to be competing against everyone and their brother in places that don't want to pay much
If he's in the US, he's going to have a very hard time finding a livable income at first when freelancing. You either have to get REALLY lucky, have lots of experience and skills, or something to prove you know your shit
But even then, it's going to boil down to people will do it for cheaper
How many years of experience does he have?
i still have issues
If they have the money they can, Yib
But you'll have to hire folks who know what they're doing
whenever i try to enter the operator it just gives me the error
Traceback (most recent call last):
File "C:/Users/golde/AppData/Local/Programs/Python/Python311/Chat Bot.py", line 21, in <module>
print(num_1 * num_2)
TypeError: can't multiply sequence by non-int of type 'str'
You have to convert the num_1 and num_2 that you get from the user into integers
You'll want to use int() for that
ok
Traceback (most recent call last):
File "C:/Users/golde/AppData/Local/Programs/Python/Python311/Chat Bot.py", line 12, in <module>
op = int(input("Enter an operator ( + - * /): "))
ValueError: invalid literal for int() with base 10: '/'
it does
if math.lower() == "can you do some math for me?":
num_1 = int(input("Enter your first number: "
num_2 = int(input("Enter your second number: "))
op = int(input("Enter an operator ( + - * /): "))
if op == "+":
print(num_1 + num_2)
if op == "-":
print(num_1 - num_2)
if op == "*":
print(num_1 * num_2)
if op == "/":
print(num_1 / num_2)
op = int(input("Enter an operator ( + - * /): "))
You're trying to convert it to an int there
wdym
The int() on the outside of that means you're taking whatever the user typed and attempting to turn it into an integer number
!code
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.
i dont understand i apologize
this works
num_1 = int(input("Enter your first number: "))
num_2 = int(input("Enter your second number: "))
this fails because your try to convert "+" to int
op = int(input("Enter an operator ( + - * /): "))
billions
Like
There's literally no reason for them to do that
no not on the calculator
im coding a bot
and i have other problems with it
whenever i try to run a command for it to listen to on the console i have to type it twice
there's also #1035199133436354600 if people here can't help
like i ask it to do some math for me i have to ask it twice before i do it
alright
thanks
You'll likely have an easier time getting additional assistance by using the help system (see #βο½how-to-get-help for more details on that). Unfortunately, I'm going to be heading out soon, and our voice chat is typically more of an off-topic
Yeah
Sorry
alright
You don't want to do that over US land
I mean it was miles into the air
'murica
Rab, myself, Focus
Shenanigans
It's incredibly important for them to not take it down over land. Entirely possible it could have been carrying a payload waiting for someone to take it down
Obviously it didn't, but you don't take that kind of risk over populated areas
Yes?
Oh was listing people in the states
Ah
Different resolutions
Am not πΊπΈ
Am 
Yep
Exactly
Weather balloons can travel miles and miles and miles
We actually do have a rocket scientist in here, conveniently
99 red ones
HA
I wonder does, each country has a right up to a certain height where they have the right to decide what should be floating. I gues yea, but how does these height are defined?
Not the first, probably won't be the last
No idea, creative
@raw carbon And really neat multi-tools
"Soldier of Fortune" is the PC term
When his name is called, each new guard approaches the Pontifical Swiss Guard's flag, grasping the banner in his left hand. He raises his right hand with his thumb, index, and middle finger extended along three axes, a gesture that symbolizes the Holy Trinity and the RΓΌtlischwur, and swears in his native tongue (which may be one of the languages of Switzerland).
As high as your missiles will go.
LOL
heh
there's some treaty against territorial claims on extraterrestrial objects by countries/nations
ISS is at around 400 km
North Korea have made tests with altitude of 800~2500 km
so the height isn't the issue for that hypothetical scenario
(aiming it might be an issue still)
(though those are made for static targets; not as fast moving as a space station)
haha same pipe^
what's the question/problem?
so when i try to input a command into my code i have to do it twice before it works
!code
how many times do you call input()?
math = input()
if day.lower() == "how has your day been?":
print("My day has been great! How about your's?")
if math.lower() == "can you do some math for me?":
num_1 = int(input("Enter your first number: "))
num_2 = int(input("Enter your second number: "))
op = (input("Enter an operator ( + - * /): "))
if op == "+":
print(num_1 + num_2)
if op == "-":
print(num_1 - num_2)
if op == "*":
print(num_1 * num_2)
if op == "/":
print(num_1 / num_2)``````
what behaviour are you trying to get?
huh?
first thing you should probably do, is to put the code where you use num_1, num_2, op in the block where they're defined
day = input()
math = input()
if day.lower() == "how has your day been?":
print("My day has been great! How about your's?")
if math.lower() == "can you do some math for me?":
num_1 = int(input("Enter your first number: "))
num_2 = int(input("Enter your second number: "))
op = (input("Enter an operator ( + - * /): "))
if op == "+":
print(num_1 + num_2)
if op == "-":
print(num_1 - num_2)
if op == "*":
print(num_1 * num_2)
if op == "/":
print(num_1 / num_2)
otherwise you'll get an error if math.lower() != "can you do some math for me?"
ok
@valid finch
do you understand why that's going to happen?
it worked for me @valid finch
!e
math = "random text"
if math.lower() == "can you do some math for me?":
example_variable = 1
print(example_variable)
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | NameError: name 'example_variable' is not defined
I think they're trying to get different responses based on the input
so, not that
no i just dont want to have to enter an input 2 times
whenever i want to do math i have to do
can you do some math for me?
can you do some math for me?
and then it gives me it on the second time
input the following:
how has your day been?
can you do some math for me?
I don't really get it
you will get both responses
prompt = input()
if prompt.lower() == "how has your day been?":
print("My day has been great! How about your's?")
if prompt.lower() == "can you do some math for me?":
num_1 = int(input("Enter your first number: "))
num_2 = int(input("Enter your second number: "))
op = (input("Enter an operator ( + - * /): "))
if op == "+":
print(num_1 + num_2)
if op == "-":
print(num_1 - num_2)
if op == "*":
print(num_1 * num_2)
if op == "/":
print(num_1 / num_2)
prompt?
the thing that you ask it to do/respond to
it's just the name of the variable
in this code you ask for the input twice
so it waits for it twice
whereas this code gets it once and decides based on that input
now I understand
hahaha
i want it to tell some jokes but only one at a time
but it has a list of three to pick from
how do i do that
pick at random?
YEA
you should create a list of jokes
!d random.choice
random.choice(seq)```
Return a random element from the non-empty sequence *seq*. If *seq* is empty, raises [`IndexError`](https://docs.python.org/3/library/exceptions.html#IndexError "IndexError").
alright
I would say create a list of jokes and choose one based off of indexing it to a random int
module random contains most common utilities for doing something at random
function choice chooses from a list
no
how does that work in code?
you don't need a random int
there's a builtin function to choose
or not haha π€·ββοΈ
so, not to mess with indexing
how would that work in code?
!e
import random
fruits = [
'apple',
'banana',
'cherry',
]
print(random.choice(fruits))
print(random.choice(fruits))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | apple
002 | banana
any correct name is okay
Cool! I like that more than my way I was saying to do it
!e
`import random
jokes = ["Joke 0", "joke 1", "joke 2"]
print(random.choice(jokes))`
@dull pawn :white_check_mark: Your 3.10 eval job has completed with return code 0.
joke 2
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
really nice command
Pipe you close to 50 messages now?
yes It''s done
I'm on this one right now You have been active for fewer than 3 ten-minute blocks.
bro how i can check how many massage that i've done so far?
I don't think there is a way to check
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
or ctrl+f
Yu coming in with all the bright ideas
it doesnt work
53,426
316,784

