#voice-chat-text-0
1 messages · Page 71 of 1
@wintry sleet 👋
Hey
@cinder birch 👋
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
corey is not uploading now i wonder why
one of things from there
https://docs.python.org/3/tutorial/
can u write them down for me , please.
Welcome to my Channel. This channel is focused on creating tutorials and walkthroughs for software developers, programmers, and engineers. We cover topics for all different skill levels, so whether you are a beginner or have many years of experience, this channel will have something for you.
We've already released a wide variety of videos on to...
I remembered some long non-python one-video tutorial
for some reason I thought it was 24h, but it's 14h
gotcha
scanning through docs in full is sometimes useful to find [better] solutions to past problems
inverse "oh, I remember that" thing
Hello
especially when upgrading the codebase a couple of python versions
(keeping up with all the change logs isn't always feasible)
for example, what happens to asyncio for quite some time
I did read the 3.10/3.11 changelogs
I didn't remember anything about asyncio
but then revisited asyncio docs to find out about new timeouts and a reduction in number of things requiring to pass the event loop explicitly
right now I'm reading micropython docs
unexpectedly, it has out-of-the-box support for Berkeley DB
https://docs.micropython.org/en/latest/library/btree.html
"speaking of Estonia..."
@dark lake 👋
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
how do i verify
hello
can u help me with something
it really gets on my nerves
so
i am trying to open a website in visual studio 2022
but gives an error and nothing happens
that's the error
sup AF
debug build or release build?
I'd expect the debug one to show the error in the code
i am not really familiar because i am trying to learn html rn and css
so idk what are these
did you write any code in the project that's not html/css?
and how are you starting it?
like opening the project?
i just go to file>open>website and choose one
cuz i watched some tutorial on how to code html and css in visual studio
and when i m trying to open this
it gives error
but if i press ok i can continue the code..
it would be way easier if i show you
the most reasonable thing I can recommend in that situation is not to use VS22 unless you use ASP.NET
though it'd still be better if the error could be solved
I don't have VS22 installed; only VS19
if someone can help i would appreciate it very much
it;s been gettin on my nerves lately
also
when i save the website it goes into a folder in my C partition
and i don't want that so i went to change the directory and it doesn't work
seems to be a bug
maybe if i reinstall?
not to sure
this, for me, opens the thing in browser
maybe update VS
maybe just ignore the error
although this is not VS19
seems its purely a bug
ah had a mixup sry
np np
🙌
it's just i can do more here,C++,python
i'm batman
you can do that in vsc aswell
VSC has support for python too
though, yeah, for MSVC++, VS is probably the choice still
kh
aluminium is a very weird element
no see
yes
on the edge of being metal
they usally have this electrical magnetic field in motors right
and aluminium has this very weird crystal structure
so because the structure under aluminium can't be completely ordered
one more obscure article (1 reference)
https://en.wikipedia.org/wiki/Glass-ceramic-to-metal_seals
Glass-to-metal seals have been around for many years, with one of the most common uses being lamp bulb seals. A more recent invention is glass-ceramic-to-metal seals.
it has these very weird features to it
Ghoti is a creative respelling of the word fish, used to illustrate irregularities in English spelling and pronunciation.
0 references, multiple external links
https://en.wikipedia.org/wiki/Amorphous_brazing_foil
The filler metal (FM) alloys that can be produced as amorphous brazing foils (ABF) are eutectic compositions formed by transition metals such as nickel, iron, copper, etc., in combination with metalloids, such as silicon, boron and phosphorus. In conventional crystalline state, all these materials are inherently brittle and cannot be produced in...
but ferrous metals dont have resistance against corrosion so
its a weird element for sure
well nice chat, gotta go study for now. enjoy your day
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
You might not be verified
"You can use the values of such variables defined outside the function (assuming there is no variable with the same name within the function). However, this is not encouraged and should be avoided since it becomes unclear to the reader of the program as to where that variable's definition is. Using the global statement makes it amply clear that the variable is defined in an outermost block."
seems a little unorthodox
MyClass.my_global, MY_CONST
though why mutable global at all?
if it's not a constant, it, in most cases, is better off not being global
sorry got disconnected
Why?
You don't love us enough to focus on us?
@viscid lagoon does
Tell that to tax season
... you do that now @viscid lagoon ?
Hey tax season!
Give us our @rugged root back!!
@molten pewter Sup
@viscid lagoon ping
Gateway Latency: 106ms
I meant that
Decent enough
Didn't use to have mentions enabled
@viscid lagoon ping
Gateway Latency: 107ms
"I love the way you make my life a living hell."
Correct
This and more reactions bought to you by Sir Lancebot.
speaking of classes, today I separated one class into eleven classes (a lot)
Remember, KISS
Aww
Actually I wonder what the keywords are...
@molten pewter Everyone needs a hobby
overkill?
Wait, how bulky was the original class?
it was a 400~450 lines class
so not overkill
now it's simpler
i guess depends on the class?
some classes are better to be united
There's quite a few
Valentines only has the one though
https://github.com/python-discord/sir-lancebot/blob/main/bot/exts/holidays/holidayreact.py#L31-L34
bot/exts/holidays/holidayreact.py lines 31 to 34
Valentines = Holiday([Month.FEBRUARY], {
"heart": Trigger(r"\b(love|heart)\b", ["\u2764\uFE0F"]),
}
)```
The Last Supper is a 1995 American satirical black comedy film directed by Stacy Title. It stars Cameron Diaz, Ron Eldard, Annabeth Gish, Jonathan Penner and Courtney B. Vance as five liberal graduate school students who invite a string of extreme conservatives to dinner in order to murder them. The film premiered at the 1995 Toronto Internation...
does it normalise "love"?
it doesn't seem to
zero width space isn't removed
!heart
that wikipedia article is cursed
very helpful parentheses
it is so much not remove that you can do:
!e
print(~5)
@golden sonnet :white_check_mark: Your 3.11 eval job has completed with return code 0.
-6
that shouldn't be allowed, imo
what's the point of this?
really?
seems useles
Niche cases, granted
!e
print(bin(~0b1001101) & 0b1111111)
weird
am dumb
!e
print(bin(~0b01001101 & 0b11111111))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
0b10110010
yay I made it work
you looking for love movies?
@patent rapids 👋
ICANN rules prohibit domain names from including non-displayed characters such as zero-width space, and most browsers prohibit their use within domain names because they can be used to create a homograph attack, where a malicious URL is visually indistinguishable from a legitimate one.
In the United States, a Hallmark holiday is a holiday that is perceived to exist primarily for commercial purposes, rather than to commemorate a traditionally or historically significant event. The name comes from Hallmark Cards, a privately owned American company, that benefits from such manufactured events through sales of greeting cards and o...
It's regex with IGNORECASE
So it'll only match exact letters (case-insensitively)
Here is your source for holiday dates for the current year, history of holidays, as well as special occasions and any day moments celebrated by Hallmark.
if there are any "ss" in matches, does it match "ß"?
Eszett
to much developer and compute work, I guess
it is arabic
but used in other languages
unicodedata.normalize(form, unistr)```
Return the normal form *form* for the Unicode string *unistr*. Valid values for *form* are ‘NFC’, ‘NFKC’, ‘NFD’, and ‘NFKD’.
The Unicode standard defines various normalization forms of a Unicode string, based on the definition of canonical equivalence and compatibility equivalence. In Unicode, several characters can be expressed in various way. For example, the character U+00C7 (LATIN CAPITAL LETTER C WITH CEDILLA) can also be expressed as the sequence U+0043 (LATIN CAPITAL LETTER C) U+0327 (COMBINING CEDILLA).
normal form "NFC"
normal form "NFD"
...
🙌 new people
hi everyone!
hello
@viral pumice 👋
🖐️
hello
🫲
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
me help python
🫱
which python
2
i'm thinking on the office scene with kevin
@austere meteor 👋
hii
👋
is this the day u get your voice back?
class Classless
toilet = False
def ecation(shit):
if shit == 2
toilet = True
ecation(2)
you forgot a :
im not that clever lol
actually two :
def nature():
pass
nature()```
great we can have a python class on shits
Toys 'R Us was a kid's dream warehouse of toys
I remember first seeing a super NES at Toys R' Us, so wanted badly
Capitalism! Ho!
a whole gigantic aisle dedicated to stuffed animals
Nickelodeon started with 'You Can't Do that On Television' which was based in Canada
Oh yeah that was a fun show
They still have that type of thing going on once every year, it's called Black Friday lol
Supermarket Sweep is an American television game show. The format combines an ordinary team-based quiz show with the novel concept of a live, timed race through a supermarket. In the timed race, cameras follow the teams with shopping carts through a large vacated supermarket with several aisles; the value of items thrown into the cart determine ...
def func(a, b=5, c=10):
print('a is', a, 'and b is', b, 'and c is', c)
func(3, 7)
func(25, c=24)
func(c=50, a=100)
func(c=50, a=100)
didn't know you can do this with a
oh i see, the parameters are not positional as long as you put '='
they are keyword parameters
but didn't know you can do keyword even if you haven't passed in = in the parameter
like a in the example
oh yeah I see
@worthy breach 👋
you can also pass in argument without =
as seen in
func(3, 7)
@somber heath can you pass in arguments to **kwargs without using =?
Dictionaries.
Oo fair enough
!e ```py
def func(a, b, c):
print(a, b, c)
d = {'a': 1, 'b': 2, 'c': 3}
func(**d)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
1 2 3
which is sugar to do keywords
but it works for a more programmatic approach rather than static
I'm an orange expert
I have Tangerine trees in my yard
Satsumas are smaller and thin skinned
Tangerine are a bit larger with still thin skin
an Orange is large and thick skined, lighter orange colored
a python programmer is pale colored and thin skined as well
probably lol
@river thistle 👋
hello @somber heath
I return. Hello everyone
hi
Went from vendor call to setting up one of our folks on a portal
See ya
Yep yep
Yeah
I'll have to make a note here
am reading a byte of python
Honestly, I really can't overstate how satisfied I am with the result
looks good
I feel like I'm forgetting to do something
I do not like this feeling
Aaaaand I can't find the envelope I wrote said notes down on
k i'm off to try a little sql
be back later👋
Later
Well bugger me
I hope it wasn't anything important
HA
That is accurate
Yeah considering the comic
Not a good sign when I feel like I already need a nap
Your mom?
hi
Yo
I'm so happy that one of our seasonal tax people is back
She's the sweetest grandma like lady
Love her to bits
Where does she go the rest of the year?
By the time tax season is done, you get really sick of being here
@young hound 👋

Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@somber heath hello
Criteria is: Have over 50 messages in the server.
Spamming to meet any criteria will get you temporarily or permanently banned from voice, and potentially the community.
Damn right
And I'll typically add two weeks to the amount of time someone has to wait if they do that
Been my general rule of thumb
So what're folks up to
they left as soon as they joined
hello
imagine going to work, and as soon as you enter you go out
i have one question
Shoot
I've had to do that for deliveries before
It's annoying
@surreal verge What's the question?
@molten pewter What'd you end up playing with Charlie?
Oh cool cool
Also cool cool
how to become full time python developer
There really isn't an easy answer to that. Studying, hard work, building up a portfolio, going to school for programming, etc.
Far as I know there isn't a one and done way to do it
@molten pewter Brocrastination. Too busy being a bro to do the important things
in india teachers teaching only basic python in 2 years
To play beer pong and/or otherwise bro out when you have homework that you should be doing. I was going to write my essay, but then I decided to crack a couple ...
everyone makes time for that
Charlie is going to ditch us again
#career-advice would likely have a better view on all this.
@lavish rover "Well he is brown, so it probably is against his religion...."
White people probably
Sick self burn
Fair
It's not
Yeah
Pawn shops do it as well
Give them an intern as a sacrifice deposit
Why is it always pawn shops and never queen shops?
crypto has tax
isn't dubai planning to get taxes ?
Dubai has currently zero percent personal income tax. This means that if you are a tax resident in Dubai, no matter how much gains you make, there is zero percent income tax.
Whether you actively trade or hold; there are zero percent taxes on capital gains, on business income and on salary. Bottom line nada. Your Gross salary figure matches your Net salary figure.
Most other tax authorities treat gains from crypto currencies with a capital gains tax. Seems like an easy way to collect money and fill the coffers. Moreover, they often require extensive record-keeping and the tracking of all your transactions. Not in Dubai.

Yet, is what I said
I mean you'd have to act fast
Interestingly, rabies is pretty much always fatal, right?

dubai is OK
hmm
Not worth it tbh
def not the most interesting place i have been to
Been there done that
why tho?
any de-merit?
Eh too hot and polluted and sandy and muslim
im a Hindu,From India
Nothing against Muslims but Sharia law ain't it
share size?

dubai polluted?
no such thing as a blue sky there lol
its not the best
and coders
but its not bad
France is better
what
face reveal?
brah
hes just borrowing it
try google
No it's my face
there is only one god Death
no wonder you get rejected soo often
Much like how Raisin Bran has two scoops of raisins in every box?
I feel personally attacked
And accurately
Two nerds with one stone
Fuck yes Java Monster
Loves it
I don't have a crash from it
Num num num
YOU'RE mental
yes
God they are desperate to get people to use Bing
For him it's truly only a theory
How would they be getting their ROI
I mean honestly
In India gov. has asked google to degoogle the android
Make Android not dependent on Google services I guess, you can already "degoogle" an Android phone yourself
They are asking to allow user to uninstall those apps
LineageOS
@molten pewter ADHD
They'd have to start this at the manufacturers
Just have them load a different OS
Zonk.
@lavish rover The crying started to sound like a Jeff Goldblum laugh
Dolly Parton?
Pamela Anderson
Indian gov. is read with new os
BharOS
@molten bronze Please do not interrupt ongoing conversations
Also yeah you have incredible background noise going on
@molten bronze I server muted you because the background noise was really terrible
ADHD: A mental health condition with a short attention span, hyperactivity and socio-occupational dysfunction.
Please double check your mic settings, mute your mic when you don't talk, or use push to talk
i have this output but i want that the las element of the text split until they founf the string
" RESULTADO INCERTIDUMBRE"
Going to move you to another channel real quick to server unmute you. Please remute after it turns off
Thank you
sorry i forget to unmute me noice envieronment
so i want to change that comand land from split from "Muestra N" until "Resultado Incertidumbre"
Bah, hold on, I have to focus on this work thing right now.... Sorry
its because i dont get rejected, i reject
me?
fear of rejection???
ah
i would say the same for you tbf
Forgot how tedious spinning up a new OS is
def
You'll probably have an easier time getting help by using the help system. Currently I think we're mostly just chilling out in here. See #❓|how-to-get-help for more details on that system
@molten pewter Some spare laptops for work
For folks to take to clients, if they're working from home, etc.
The installation is quick
It's just all the "do you want to add this? Maybe this? OOO, what about this?"
asuse?
But it's the tedious bs
i like dell
you dont know what CD's are
Die in a book?
Or people just don't associate Toshiba with tech
nor does mustafa
He inspires me
to get rejected?
okay but like we don't really know each other so you constantly throwing shade at me isn't cool
To actually try to make stuff
its a joke, but i can stop if you want
Gotta build the rapport first
Exactly, hemlock and I do it to each other but that's because we're close and we know we don't mean it
You can't just come in and start throwing shade to people like that, it doesn't sit well
cool, thanks
Hey cruiser
late for what? You're just in time
i missed it last time as well
Portégé X40L-K1461
Intel® Core™ i5-1250P
Windows 10 Pro
8 GB RAM / 256 GB SSD
14.0″ WUXGA Eyesafe IPS Display
3-Year Standard Limited Warranty with On-Site
MSRP: $1,799.99
prolly you guys arguing
either in chat or vc
:{
this is such a ripoff
well...
eww
it doesn't take much for us to argue, just give a hot take
i got 3080
That's the worst graphics card ever
3080 is good
4080 sucks
No it's not, it's bad
no it's not
argue over
hot take
ment*
see, you didn't miss anything
That'll be $10
*2500
Okay
I keep doing this
So I'm setting up this new laptop, and I keep grabbing for my mouse
ryzen 9 what
are you going to send a picture of your wife
Well played
That's what she said
5900x
It's actually our 5 year anniversary today
ooh congrats that's cute
She's put up with me for that long
its good for gaming?
What do you have planned?
i made it for gaming
She's still sick so not really anything
240hz
12 cores i think it was?
total setup for arnd 3600
idk much abt deez
its good
i told the rig master
Congratulations!
make one of the best rigs
Yay
of tht time
deez ....
and i paid
Thanks. I've always found it strange celebrating other people's anniversaries
what mother board?
😙 .
Or congratulating them
Hmm
bro dont:{}
idk them
i just have my pc
gets me good fps
Do you feel strange receiving the congratulations
fair
I guess yeah, I'm not particularly celebrating as much as "happy for you"
:}
it doesn't bother me
What's the difference between someone's birthday and anniversary when you think about it? 🤔
whatsup ....you into gaming as well?
One was choice
other wasn't
birthday is sum i have
into a bit of everything
anni is sum i wish i had
i play on my xbox
Why normalize celebrating the thing they didn't choose to do
its aight ...doesnt matter tbh
To ease the pain of it having happened
have left gaming as well
"We're sorry you have to be alive. Here's cake"
when i realised its nm than a delusion
tbf i can't even play on keyboard so controller is way better for me
exactly, happy anniversary to your wife, here's cupcakes
You didn't have the choice to be born. But you can pick your cake
agree
https://www.theurbancup.com/ This is where we're getting them from
Right, and I do it as an apology that she has to deal with me
Later bud
same for me
bye
i use my ps4 controller
Hmmmmmm. Or as a Thank You?
Bye @lavish rover
the new ps5 dual sense controllers are sick tbf
yeh heard abt 'em
but what i feel is
now the age's gone
yup
gotta hustle now
also a way one can easily become a procrastinator
and unproductive
you can run ,football
swim
true\
never had the chance to go sky diving
and many others
dubai habibi
though almost all places have it
too much for me
the best exp i got was frm dubai
no ones behind you with a pistol though
like cod
:}
so its pretty safe
depends
Back later
later:]
i'd more rather have a person i trust have a pistol behind me, rather than sky dive
hmm agree
miss me?
👋
bullets are weird in space
they for some reason never stop
and i presume they are very slow
i have to try that myself
146
not very slow
i mean
fires shouldnt start in space
and a bullet is shot using a fire
your ADHD powers have left you hemlock.
@distant trout you a boomer no cap
my friend failed
hmm
but if you manage to fire it
it'll be faster than normall bullets
Forgetfulness is also part of that power
what if i shoot a bullet from earth soo fast that it goes out of the atmosphere and hits the sun
i presume it goes based on the linear gravity of earth
Super Forgetfulman!
you'll die
thats how villians are made
cause it'll melt before hitting the sun?
but the bullet is very fast though
and if it doesn't
it's just a bullet
should be way faster than the speed of light
what school was it again?
what the hell is going on in your brain?
good question
who hurt you?
in space though, the speed of any object should be faster
lets say a spaceship is 2km/h in space after that turning of it should result in 7km/h ( very fictional numbers )
what do you mean by space?
anything other than earth could be called space
a place with zero gravitational force, out of the atmosphere
well objects do go faster in space yes
void
for example missles
but shouldn't the gravity change?
because the closer you are to earth , the more gravity, same for the poles ( the two poles don't have the same gravity ).
so a missile going soo close to the atmosphere should calculate the new gravity its working with
i presume
it's not about earth
it's about how big the object is
and yes the amount of pressure changes probably
the amount of work that goes into this stuff
even you have gravity
brb
isnt it too vague?
Hate speech is defined by the Cambridge Dictionary as "public speech that expresses hate or encourages violence towards a person or group based on something such as race, religion, sex, or sexual orientation". Hate speech is "usually thought to include communications of animosity or disparagement of an individual or a group on account of a group...
anything could be hate speech
what if something is actually bad?
by all standards
like saying hitler was bad, so thats hate of speech?
Hate Speech There is no legal definition of "hate speech" under U.S. law, just as there is no legal definition for evil ideas, rudeness, unpatriotic speech, or any other kind of speech that people might condemn. Generally, however, hate speech is any form of expression through which speakers intend to vilify, humiliate, or incite hatred against ...
so the FBI putting bounties is Hate Crime?
still depends on your viewpoint
then
so theoretically christopher columbus could be prosecuted to hate crime?
he could be prosecuted for many things
i also read about this
by us law, is some dude attacks you and decides he wants to surrender you can't do anything back
or lets say someone is robbing you and last minute they decide to stop, by us law you cant do anythingn
its weird
you must be such an idiot to do such a thing
man but the criminals who are smart, have some very smart executions on plans. although not many, i've heard of some of the most incredible executions of robbery
Part 2
George Bruch from the Virginia Beach police department responds to Professor James Duane's presentation on why innocent people should never talk to the police.
“I assure you this will be looked into thoroughly...”
TCL - https://www.youtube.com/c/TRUECRIMELoser
Voice over - https://www.youtube.com/user/kizzume
take a look at this rabbit
very complex psychology
You, dear readers, know my advice about talking to the FBI: don't. If the FBI -- or any law enforcement agency -- asks to talk to you, say "No, I want to talk to my lawyer, I don't want to talk to you," and repeat as necessary. Do not talk to them "just to see
so if you shut up
what will the court do?
makes me think a bunch of criminals came up with these stuff
aight bye
wrong chat dude
ohh sorry
hello
hi
i need help learning python
hi
can i invite someone to another channel to help me with some coding please?
i have to type 50 messages
not yet
i joined last night
i need help with some code
im new to python
I have to do the following
define a function that takes an argument
call the function
identify what code is the argument
identify what code is the parameter
can i write code in here?
!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.
hello frog
this is what i have so far
def print_hello():
print("hello")
sort of
!resource
In this Python Beginner Tutorial, we will start with the basics of how to install and setup Python for Mac and Windows. We will also take a look at the interactive prompt, as well as creating and running our first script. Let's get started.
Mac Install: 1:25
Windows Install: 5:44
Installs Complete: 8:37
Watch the full Python Beginner Series he...
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
👋
What're you up to?
Ah right.
Err, UTC I think 😄
London
Did you look at that guy's interview questions?
Oh right. I wasn't sure if he was asking you to review the questions, or mock interview him.
Right 🤔
Wait really? I thought you only did that as a hobby 😄
Erm
Ah, only imported modules.
The core of the python interpreter is just a big while (true) loop that executes byte-code instructions one-by-one.
Yeah. It's a method of types.
It's the just order python looks at base classes to find a method/attribute.
If you want the full details 😄 https://www.python.org/download/releases/2.3/mro/
!e ```py
class X: pass
class Y: pass
class A(X, Y): pass
class B(Y, X): pass
class C(A, B): pass
@stuck furnace :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: Cannot create a consistent method resolution
004 | order (MRO) for bases X, Y
@lavish rover ```
import matplotlib.pyplot as plt
import numpy as np
import random
import time as t
import matplotlib.animation as animation
from matplotlib import style
pi=3.141592653589793238462643383279502884197169399375105820974
pi_x=[0,10000]
pi_y=[pi, pi ]
gesamt_innen=[1]
gesamt_außen=[1]
counter_innerhalb=1
counter_außerhalb=1
Graph_x=[]
Graph_y=[]
fig = plt.figure()
ax = fig.add_subplot(111)
plt.figure(num="first")
circle1 = plt.Circle((0, 0), 1, fill=False)
plt.gca().add_patch(circle1)
plt.xlim(0,1)
plt.ylim(0,1)
ax.set_aspect('equal', adjustable='box')
UI=int(input("Ammount of random Dots: "))
for i in range(UI):
Graph_x.append(i)
for a in range(1, UI):
x = random.uniform(0,1)
y = random.uniform(0,1)
plt.figure(num="first")
if (xx+yy)**0.5 <= 1:
plt.scatter(x, y, 8, color="#00ff00")
else:
plt.scatter(x, y, 8, color="#ff0000")
plt.scatter(x, y, 4, color="k")
plt.xlim(0, 1)
plt.ylim(0, 1)
d=(xx+yy)**0.5
if d > 1:
counter_außerhalb += 1
else:
counter_innerhalb += 1
gesamt_innen.append(counter_innerhalb)
gesamt_außen.append(counter_außerhalb)
#plt.figure(num=("zero"))
#plt.plot(x_value,y_value, linestyle="dotted")
for i in range(len(list(gesamt_innen))):
if gesamt_innen[i]/gesamt_außen[i]==0:
continue
y_value=(gesamt_innen[i]/(i+1)*4) #y_value=(gesamt_innen[i]/(i+1)*4) und counter_außerhalb=0 --> gibt genauere Werte
Graph_y.append(y_value)
plt.figure(num="second")
plt.plot(pi_x,pi_y, linestyle="dotted")
plt.plot(Graph_x, Graph_y)
plt.xlim(0,UI)
plt.ylim(0,5)
plt.show()
!e python txt = "Hello World"[::-1] print(txt)
@amber raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
dlroW olleH
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
.
@lyric minnow 👋
we have got health insurance too
@somber heath I don't have permission to unmute my mic
@lyric minnow #voice-verification
channel
you need to wait 3 days
and have a total of 50+ msgs
@quasi tulip he needs to send 50+ as well:}
💀
I have been here since the 26
i got 0 msgs from him too
but i bet it wouldnt be close to being 50+arnd
though
otherwise he would have got voice perms obv
I did not know I had to send alot of messages
A friend of mine told me about this server.
44 more to go now
Are you guys mods or something else
I could use some help with some code would you guys be willing to help
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.
Its nothing crazy I'm just taking a beginner python class
Do you guys want me to send it here or dm you it
Ok
@cosmic bison 👋
hi
!e py a = range(10) print(a)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
range(0, 10)
!e py for i in range(10): print(i)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
!e py for _ in range(3): print('Hello, world.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello, world.
002 | Hello, world.
003 | Hello, world.
!e py for i in range(5, 15): print(i)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5
002 | 6
003 | 7
004 | 8
005 | 9
006 | 10
007 | 11
008 | 12
009 | 13
010 | 14
!e py for i in range(5, 20, 2): print(i)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5
002 | 7
003 | 9
004 | 11
005 | 13
006 | 15
007 | 17
008 | 19
!d range
class range(stop)``````py
class range(start, stop[, step])```
The arguments to the range constructor must be integers (either built-in [`int`](https://docs.python.org/3/library/functions.html#int "int") or any object that implements the [`__index__()`](https://docs.python.org/3/reference/datamodel.html#object.__index__ "object.__index__") special method). If the *step* argument is omitted, it defaults to `1`. If the *start* argument is omitted, it defaults to `0`. If *step* is zero, [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError "ValueError") is raised.
For a positive *step*, the contents of a range `r` are determined by the formula `r[i] = start + step*i` where `i >= 0` and `r[i] < stop`.
For a negative *step*, the contents of the range are still determined by the formula `r[i] = start + step*i`, but the constraints are `i >= 0` and `r[i] > stop`.
!e py for i in range(10, 0, -1): print(i)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 10
002 | 9
003 | 8
004 | 7
005 | 6
006 | 5
007 | 4
008 | 3
009 | 2
010 | 1
!e py for i in range(10, 0): print(i)
@somber heath :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e py text = "abc" result = text * 4 print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
abcabcabcabc
!d sys.argv
sys.argv```
The list of command line arguments passed to a Python script. `argv[0]` is the script name (it is operating system dependent whether this is a full pathname or not). If the command was executed using the [`-c`](https://docs.python.org/3/using/cmdline.html#cmdoption-c) command line option to the interpreter, `argv[0]` is set to the string `'-c'`. If no script name was passed to the Python interpreter, `argv[0]` is the empty string.
To loop over the standard input, or the list of files given on the command line, see the [`fileinput`](https://docs.python.org/3/library/fileinput.html#module-fileinput "fileinput: Loop over standard input or a list of files.") module.
See also [`sys.orig_argv`](https://docs.python.org/3/library/sys.html#sys.orig_argv "sys.orig_argv").
Note
On Unix, command line arguments are passed by bytes from OS. Python decodes them with filesystem encoding and “surrogateescape” error handler. When you need original bytes, you can get it by `[os.fsencode(arg) for arg in sys.argv]`.
!e py print('abc'[1])
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
b
yes
we have covered most of theses
yes
yes
import sys
firstInput = int(sys.argv[1])
secondInput = int(sys.argv[2])
thirdInput = int(sys.argv[3])
how do we approach number 2
check len(sys.argv) first ?
yes sir
yeah, loops are nice
you can also build something that inputs --input --output << args
with turtle?
!d turtle.forward
turtle.forward(distance)``````py
turtle.fd(distance)```
!d turtle.right
turtle.right(angle)``````py
turtle.rt(angle)```
turtle.penup()``````py
turtle.pu()``````py
turtle.up()```
Pull the pen up – no drawing when moving.
!d turtle.pendown
turtle.pendown()``````py
turtle.pd()``````py
turtle.down()```
Pull the pen down – drawing when moving.
!d numpy.linspace
numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, axis=0)```
Return evenly spaced numbers over a specified interval.
Returns *num* evenly spaced samples, calculated over the interval [*start*, *stop*].
The endpoint of the interval can optionally be excluded.
Changed in version 1.16.0: Non-scalar *start* and *stop* are now supported.
Changed in version 1.20.0: Values are rounded towards `-inf` instead of `0` when an integer `dtype` is specified. The old behavior can still be obtained with `np.linspace(start, stop, num).astype(int)`
But don't use this one.
Or do, just on your own time.
import turtle
turtle.forward(...)
...```
```py
import turtle
t = turtle.Turtle()
t.forward(...)
...```
and how would I make into that specific shape
Ok I will. Thank you again so much for assisting me with this assignment
I will be heading out now see you soon
!pep8
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
• PEP 8 document
• Our PEP 8 song! :notes:
unless you're in javascript or java... or c++
snake_case_is_for_the_win
!d turtle.down
turtle.pendown()``````py
turtle.pd()``````py
turtle.down()```
Pull the pen down – drawing when moving.
!d turtle.up
turtle.penup()``````py
turtle.pu()``````py
turtle.up()```
Pull the pen up – no drawing when moving.
@whole bear 👋
@somber heath are you familiar with Django framework?
@gray tapir 👋
@somber heath ok thanks
its quite weird to see tht
ppl as old as 3-4 yrs in this server
are having no voice perms
:{}
am bad at completing sentences , sorry:}
true
cruiser whats that in your bio
asia
Indonesia
nah
but i do not wish to reveal my origin

