#voice-chat-text-0

1 messages Β· Page 187 of 1

real skiff
#

wdyt

somber heath
#

@echo hemlock πŸ‘‹

real skiff
#

naah he's 100% legit

#

no fakeness at all

whole bear
#

damn thats crazy

real skiff
#

unlike colby or conor or whatever

#

mma

#

ufc

whole bear
#

πŸ‘€

obsidian dragon
#

explain

real skiff
#

@somber heathi feel sad for u

obsidian dragon
#

I don't support Apple

#

no idea

whole bear
#

hmmm

real skiff
#

yeah

#

he's a legit trash talker like natural one

whole bear
#

cool

#

who?

real skiff
#

one of the rarest kinds I ve ever seen

whole bear
#

yeah but like who tho

real skiff
#

the guy who left to be a doctor right?

#

ninja guy

dry jasper
#

zabit magomedsharipov

quick mica
#

He is great fighter

whole bear
#

damn thats crazy

real skiff
#

his story is soooo inspiring man

#

guys like him and francis are sooooo crazy

whole bear
real skiff
#

yeah the one who got kicked in the as* by sean

#

maybe cuz money changesa man uk

#

but his story is really inspiring dude

somber heath
#

@shrewd marsh @whole bear πŸ‘‹

whole bear
#

for some reason looks like I'm muted

real skiff
somber heath
#

!voice

wise cargoBOT
#
Voice verification

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

whole bear
#

fudge

quick mica
#

they all want to be like Conor, but UFC will not let that to happen again

real skiff
#

@somber heathu like nba nfl?

#

soccer/football?

dry jasper
real skiff
#

ahan I see

#

yeah I get it

#

how tall?

#

damn!!

#

im just 5 7

#

😦

real skiff
whole bear
dry jasper
real skiff
#

ok what abt soccer??

whole bear
#

I'm not calling him a literal dog my boy

real skiff
#

do you agree that messi is the goat?

real skiff
#

haha

whole bear
real skiff
#

@dry jasperur thought on khabib?

whole bear
#

But I do believe Messi is very awesome

echo hemlock
#

so i cant able to talk cause I have sent less than 50 messages

real skiff
echo hemlock
#

need to message more

whole bear
real skiff
#

@somber heathwhy programming seems hard for me? its been 3 months and I'm still struggling with js (my first ever lang)

echo hemlock
real skiff
#

cant even create a basic calculator app with it

#

i feel like I should cry

echo hemlock
real skiff
#

πŸ₯Ή

whole bear
#

I just make random programs that don't help or matter lol like logins or fake AI

quick mica
#

It's a process, need to think what you can learn in 5-10 years

real skiff
#

yeah so trueeeeeeeeeeeeeeeeeeeeeeeeeee

#

thanks man, I thought I was gonna be trolled now haha

quick mica
#

I have started last year in november, Django, process is very slow but it is fun to learn new things

feral fox
#

touch grass lol

real skiff
#

i agree, it feels like all my peers are doing great and I'm not meant for it

#

and I should prolly leave it and start something else

#

😒

whole bear
feral fox
#

programmers and league of legend players has common thing not touching grass

echo hemlock
#

Somewhere I found how awesome it can be to understand what the code is doing and how just with few codes how many amazing things can be done

quick mica
#

Also I am full time employed and that take a lot of my time and focus

echo hemlock
#

that's when i knew i have to know what is written at least even if i cant write them myself

quick mica
whole bear
#

Python my boy

real skiff
#

@dry jasper??

dry jasper
quick mica
#

check Dr chuck, he has good book for python

#

a video lessons

feral fox
dry jasper
# real skiff .

he is the goat, i like bjj/wrestling. thats why i enjoy his sambo style of fighting

dry jasper
real skiff
#

I'm a huge khabib fan btw, and I take him more like an inspirational figure for me

feral fox
whole bear
dry jasper
#

very humble

feral fox
#

khabib is good fighter , i respect who sticks his/her principles and works hard.

whole bear
real skiff
#

man I just want to be like him

echo hemlock
real skiff
#

he's sooooooooooo great

whole bear
dry jasper
#

have you seen the special UFC khabib trailer for his dad?

real skiff
dry jasper
#

this video is called "fathers plan"

whole bear
#

dang thats crazy

real skiff
dry jasper
real skiff
#

his mother was the reason why didnt go for the 30 uk

#

such a nice guy

#

obidient I mean

#

just imagine at the peak of his career where he is just undefeatable, can make hell lot more money for a fight and still he chose to follow his mother

#

such a legend man

#

he was even offered $100 mil to come back for a boxing match

#

uk that right??

#

btw why was his father denied visa? cuz he was an ex army off in russia right??

#

@obsidian dragonvolk is beast!!

whole bear
#

πŸ‘€

real skiff
#

but he lost that fight against islam, come on dude

#

yeah

#

he's a humble guy though

#

but his teammates are weirdos

#

israel hooker

#

lmao

#

lol

#

yes

#

no beat can beat me who beats off the cartoons haha

#

sean is a fucking legend on mic

#

no one can beat him for sure

#

ukw?
cuz he's not scripted unlike other trash talkers uk

#

he's not trained for it

#

he's naturally a trash talker

#

yeah truly

whole bear
#

well cya dawgs

somber heath
#

@vital ginkgo πŸ‘‹

real skiff
whole bear
#

ITS NOT A BAD THING

#

I'm saying cya my boys or something like that

#

nvm

#

sigh

real skiff
#

i dunno it sounds like youare calling us dogs

real skiff
whole bear
real skiff
quick mica
#

sorry guys I need to leave now, I am on work, help desk tech, so calls are starting. I will be back later.

real skiff
#

tc

#

and keep coding my man

echo hemlock
#

I am also going then lets touch some grass

whole bear
real skiff
#

dont explain now

somber heath
#

@whole bear πŸ‘‹

whole bear
#

πŸ‘‹

obsidian dragon
somber heath
#

@lucid shoal πŸ‘‹

dry jasper
somber heath
#

@jolly vessel πŸ‘‹

rugged root
#

I'm here and alive. Joi tested positive for COVID, so I took yesterday off to make sure she was still fine. I'm testing negative and I'm at work and masked.

#

Currently having to take care of some stuff here, be on soon

lucid shoal
#

Get well soon

scarlet halo
#

hi

#

im spelis

#

and i like super mario

#

bros

somber heath
#

@whole bear πŸ‘‹

pearl plinth
somber heath
#

@whole bear πŸ‘‹

#

@tidal parcel πŸ‘‹

tidal parcel
#

wait

#

what

#

dude

whole bear
tidal parcel
#

i was happy that my voice infraction finally got expired

#

and still im not able to speakk!

#

oh ok

somber heath
#

@twin mirage πŸ‘‹

somber heath
#

@rotund tusk πŸ‘‹

lucid shoal
#

@somber heath πŸ‘‹

rotund tusk
#

@somber heath a_z_dahyun_wave_st

somber heath
#

I am many things.

#

Don't put me on too high a pedestal.

rotund tusk
#

@somber heath You scary guy.. you know too much KillerClown

#

xD

lucid shoal
#

We are scary

rotund tusk
#

He was talking about spiders.. they are weird

#

super weird

echo garden
#

!paste

wise cargoBOT
#
Pasting large amounts of code

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

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

rotund tusk
#

Ms. Mizzora

rugged root
#

Okay, how do you think folks in Missouri say the town Bois D'Arc

somber heath
# rotund tusk He was talking about spiders.. they are weird

I appreciate spiders and the role they play in the ecosystem. The construction of their webs and the patterns on their bodies. Jumping spiders are adorable.

I just prefer to admire and appreciate them from A. a practical distance away and B. not in my house. C. Not on me, see A.

rotund tusk
somber heath
#

Sure

rotund tusk
#

I like dinosaurs, I ain't gonna try and pet it xD

somber heath
#

We have crocodiles and cassowaries...I would not recommend putting either.

rotund tusk
#

What are cassowaries?

somber heath
#

Murderturkeys.

rotund tusk
#

LMAO

somber heath
#

Emus, but they kill you.

lucid shoal
somber heath
#

But not emus.

rotund tusk
#

are they as big as emus?

somber heath
#

Comparable.

rotund tusk
#

they look scary as hell

#

but they look small?

rugged root
#

They'll still fuck you up

lucid shoal
rotund tusk
rugged root
#

All they have to do is take you out at the knees

#

You're down, bam

whole bear
lucid shoal
rugged root
whole bear
rotund tusk
lucid shoal
rotund tusk
#

Everyone here talking from experience?

#

Let's start counting missing limbs now laugh

quasi sand
#

yo

rotund tusk
#

Didn't the kangaroo make any sounds? @lucid shoal ?

lucid shoal
#

We called Wires

rotund tusk
#

Man, I always imagined them making sounds like in karate

#

what a bummer ;-;

rotund tusk
lucid shoal
#

They only came in the morning so it was stuck for a while

rotund tusk
#

What is that?

#

@quasi sand Yo!

lucid shoal
#

Australian animal protective services

rotund tusk
#

Why are they called Wires?

#

PopalMist The Third @somber heath

lucid shoal
somber heath
#

@sweet latch πŸ‘‹

rotund tusk
#

I heard condoms...??

#

Am I going deaf?

quasi sand
#

for some reason i can't hear the voice chat through my earbuds, does discord have any setting?

rotund tusk
#

em, you can go into voice settings in discord

#

voice & video

#

probably have to select the specific output device

quasi sand
rotund tusk
#

tears rolling down face @somber heath

lucid shoal
rotund tusk
#

🍿 @lucid shoal

somber heath
#

@lucid shoal ⌨️

#

@austere onyx πŸ‘‹

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @lucid shoal until <t:1694794666:f> (10 minutes) (reason: emoji spam - sent 34 emojis).

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

rugged root
#

Karma

#

This is karma

#

!unmute 260369324567560192

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction timeout for @lucid shoal.

rotund tusk
#

Rishi Sunak announces changing the country's name to United Condom - News tomorrow

#

xD

lucid shoal
lucid shoal
#

Brb

thin fox
#

hello there

rotund tusk
#

Hello! @thin fox

quasi sand
#

@rugged root sounds like a tech boss

rotund tusk
#

@rugged root cap

#

cappin

somber heath
#

@molten magnet πŸ‘‹

molten magnet
somber heath
rotund tusk
#

unhinged?

#

staring into the depths of your soul

thin fox
#

anybody here reads non-fiction? any suggestions for a beginner?

#

history + philosophy

#

ok

#

carl sagan and mendela, i'll search some more

#

I love fiction too

rugged root
#

Oh yeah Sagan is great

quasi sand
thin fox
#

I am super interested in greek philosophy, but didn't get time to go into in

rugged root
#

Plenty of those for sure

thin fox
#

yea

rotund tusk
#

Where do you guys get the time.. I have maybe 4 hours other than sleep and work ;-;

thin fox
#

there's marcus aurelies, seneca, aristotle the stoic ones

#

lol

rotund tusk
#

Well, I gotta go sleep. Good night everyone!

thin fox
#

see you

rotund tusk
thin fox
#

ah, makes sense, I understand

quasi sand
#

travel 4 hrs

rotund tusk
#

Public transport is a bitch

quasi sand
#

damn

somber heath
# quasi sand its good

Oh, he's spectacular. Like yeah, he's really funny, but he has such a strong musical base as a foundation for it

rugged root
#

Jesus yeah

#

Bus? Train? All of the above?

rotund tusk
#

Bus, then subway, then about 15minutes of walk, then another bus

#

and then do it all in reverse

thin fox
rotund tusk
#

It's not actually that far away. From my place it's only about 10KM

#

but I don't wanna use personal transportation cuz the traffic is CRAZY

#

no

#

it's the 18th

rugged root
#

So are the tropes about Indian traffic accurate?

rotund tusk
#

It's like organized chaos

thin fox
rotund tusk
#

@rugged root

quasi sand
rugged root
#

Jesus fuck

rotund tusk
quasi sand
#

i leave at 6 am

rugged root
#

The Indian hive mind

#

Of traffic

quasi sand
#

i think honks help keep minds activeπŸ˜†

thin fox
rotund tusk
#

@whole bear

quasi sand
somber heath
lucid shoal
#

I'm at the point that if i close my eyes i get instant motion sickness, lets gooo

rotund tusk
#

Yeah, probably. I think you can get them. You probably need to check online

#

@devout bloom

devout bloom
#

hmmm ok

#

will look it up

quasi sand
#

@whole bear you really done PhD

whole bear
lucid shoal
#

"working to wards" lmfao

#

How many wards are you working

quasi sand
#

night for me too, bye

lucid shoal
thin fox
#

classic cook-your-own food

#

best option tbh

rugged root
thin fox
#

then cheesburger day it is

#

what time of day it is for you rn selena?

#

ok

#

if you haven't went outside today, then you could go outside and other way around as well πŸ€·β€β™‚οΈ

rugged root
#

Does going to the car to go to work count?

thin fox
#

if the parking is far enough

rugged root
#

@candid veldt Yo

robust bone
#

@midnight agate hey bro !

#

how are you doing .!?

thin fox
#

true

candid veldt
thin fox
#

doing some dsa

#

I tried JS this time

#

its amazing

#

I mean, I prefer Java or python

#

but just learning it for some devlopment

somber heath
#

Zonk

rugged root
#

Heading to bed?

thin fox
#

he zonked

rugged root
#

Zonk well, my friend

#

Zonk well

thin fox
#

wow

#

Download & Stream: https://altramodamusic.lnk.to/fxdy6wqy

Panjabi MC is an International music producer and DJ born in the UK. He is well known worldwide as a pioneer in the global popularization of traditional Punjabi music, merged with hip hop, R&B & dance. Panjabi MC has picked up numerous awards winning Best Dance Act at MTV Europe, Best U...

β–Ά Play video
#

this one, original

narrow salmon
thin fox
#

that's cool

#

literally

#

its complicated, fr

#

awesome

rugged root
#

I guess I don't just get it

narrow salmon
rugged root
#

Yeah. And the need to get them for people

narrow salmon
#

ohhh depends

mild quartz
#

chase a check, never chase a b

narrow salmon
#

I know gold is an asset

#

like you can liquidate it

#

its time again

#

brb

thin fox
#

β˜•

#

so is her tea

rugged root
#

Back in a bit

narrow salmon
#

superior

thin fox
#

I agree

#

chai superiority is real, specially in desi countries

narrow salmon
#

cardamom chai >>>>>>

thin fox
#

that's just heaven

#

do you like ginger chai

narrow salmon
thin fox
#

yea

narrow salmon
#

ginger chai is more common in India

thin fox
#

what tea-leaves do you use, generally?

whole bear
narrow salmon
thin fox
#

that's cool

#

homemaker

narrow salmon
thin fox
#

I'm gonna zonk away now...

#

bye!

sweet latch
#

@rugged root πŸ‘‹

rugged root
#

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

#

If you've heard this before, my bad

#

Force of habit to say it

rugged root
#

@earnest chasm Would you mind changing your nickname to meet our nickname policy? See the #rules channel for details on that

stuck furnace
#

I think you get it free for a year if you have an iphone, or something πŸ€”

mild quartz
tepid edge
wispy belfry
stuck furnace
#

He's called Hemlock, not Endo

rugged root
#

The archer's paradox is the phenomenon of an arrow traveling in the direction it is pointed at full draw, when it seems that the arrow would have to pass through the starting position it was in before being drawn, where it was pointed to the side of the target.
The bending of the arrow when released is the explanation for why the paradox occurs ...

scarlet halo
#

goodnight boys and girls (and everything inbetween)

rugged root
#

@tranquil coral Yo

tranquil coral
#

Hi

somber heath
#

@glossy spear πŸ‘‹

#

@teal falcon πŸ‘‹

scarlet halo
teal falcon
#

uii cant talk

#

I

#

😦

scarlet halo
somber heath
#

!voice

wise cargoBOT
#
Voice verification

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

teal falcon
#

i hav

#

to had 50 messages

#

with bot =)(

#

kkkk

somber heath
#

@versed heath πŸ‘‹

teal falcon
#

πŸ™‚

#

!play

wise cargoBOT
#
In-place vs. Out-of-place operations

In programming, there are two types of operations:

  • "In-place" operations, which modify the original object
  • "Out-of-place" operations, which returns a new object and leaves the original object unchanged

For example, the .sort() method of lists is in-place, so it modifies the list you call .sort() on:

>>> my_list = [5, 2, 3, 1]
>>> my_list.sort()  # Returns None
>>> my_list
[1, 2, 3, 5]

On the other hand, the sorted() function is out-of-place, so it returns a new list and leaves the original list unchanged:

>>> my_list = [5, 2, 3, 1]
>>> sorted_list = sorted(my_list)
>>> sorted_list
[1, 2, 3, 5]
>>> my_list
[5, 2, 3, 1]

In general, methods of mutable objects tend to be in-place (since it can be expensive to create a new object), whereas operations on immutable objects are always out-of-place (since they cannot be modified).

teal falcon
#

hello

#

Nops. just fullfilling

#

the meta kkk

versed heath
#

help i can not talk in the chat @somber heath or @scarlet halo

somber heath
#

!voice

wise cargoBOT
#
Voice verification

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

scarlet halo
#

!voice

teal falcon
#

just type

#

voiceverify

#

preceeded by bang

#

!voiceverify

#

!voice

versed heath
#

!voice

teal falcon
#

lets gooo

#

!letsss

versed heath
#

i

#

e

#

e

#

d

#

to

#

type

#

50 word

scarlet halo
#

50 messages but do not spam

versed heath
#

β€’ Have over 50 messages in the server.

#

yeah i know

somber heath
#

@quasi sand πŸ‘‹

quasi sand
versed heath
#

how do i see how many messages i have written

#

?

#

ok

#

what is a magnifiing glass

somber heath
#

πŸ”

versed heath
#

1 and a half year

scarlet halo
#

πŸ”Ž

versed heath
#

i need to go

scarlet halo
#

ohk

#

cya

somber heath
#

Super Mario Bros. (also known as Super Mario Bros.: The Movie) is a 1993 fantasy adventure film based on Nintendo's Super Mario video game series. The first feature-length live-action film based on a video game, it was directed by the husband-and-wife team of Rocky Morton and Annabel Jankel, written by Parker Bennett, Terry RuntΓ©, and Ed Solomon...

teal falcon
somber heath
#

!e py text = 'abc' print(text[0]) print(text[1]) print(text[2]) print(text[-1]) print(text[-2]) print(text[-3])

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
scarlet halo
#

tf was that clapping noise

teal falcon
#

text[-1] == 1 ? return 1 : return 0

somber heath
#

!e py def func(obj): return obj[-1] == '1'

#

!e ```py
def func(obj):
return obj[-1] == '1'

print(func('abc'))
print(func('321'))

wise cargoBOT
#

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

001 | False
002 | True
teal falcon
#

char *szSomeStr;
if ( szSomeStr == NULL) return 0

return szSomeStr[strlen(szSomeStr)-1] == '1';

somber heath
#

!d len

wise cargoBOT
#
len

len(s)```
Return the length (the number of items) of an object. The argument may be a sequence (such as a string, bytes, tuple, list, or range) or a collection (such as a dictionary, set, or frozen set).

**CPython implementation detail:** `len` raises [`OverflowError`](https://docs.python.org/3/library/exceptions.html#OverflowError) on lengths larger than [`sys.maxsize`](https://docs.python.org/3/library/sys.html#sys.maxsize), such as [`range(2 ** 100)`](https://docs.python.org/3/library/stdtypes.html#range).
somber heath
#

!e py print(len('')) print(len('a')) print(len('ab')) print(len(['abc', 'def']))

wise cargoBOT
#

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

001 | 0
002 | 1
003 | 2
004 | 2
somber heath
#

!slice

wise cargoBOT
#
Sequence slicing

Slicing is a way of accessing a part of a sequence by specifying a start, stop, and step. As with normal indexing, negative numbers can be used to count backwards.

Examples

>>> letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
>>> letters[2:]  # from element 2 to the end
['c', 'd', 'e', 'f', 'g']
>>> letters[:4]  # up to element 4
['a', 'b', 'c', 'd']
>>> letters[3:5]  # elements 3 and 4 -- the right bound is not included
['d', 'e']
>>> letters[2:-1:2]  # Every other element between 2 and the last
['c', 'e']
>>> letters[::-1]  # The whole list in reverse
['g', 'f', 'e', 'd', 'c', 'b', 'a']
>>> words = "Hello world!"
>>> words[2:7]  # Strings are also sequences
"llo w"
teal falcon
#

letters[::-1] # The whole list in reverse

somber heath
#

!e py print('abcdefg'[::-1])

wise cargoBOT
#

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

gfedcba
teal falcon
#

'asdad'[]

#
a = ("a", "b", "c", "d", "e", "f", "g", "h")

x = slice(0, 8, 3)

print(a[x])

!e

somber heath
#

!e ```py
class MyClass:
def getitem(self, key):
print(key)

obj = MyClass()
obj['abc']
obj[::-1]```

wise cargoBOT
#

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

001 | abc
002 | slice(None, None, -1)
somber heath
#

!d slice

wise cargoBOT
#

class slice(stop)``````py

class slice(start, stop, step=None)```
Return a [slice](https://docs.python.org/3/glossary.html#term-slice) object representing the set of indices specified by `range(start, stop, step)`. The *start* and *step* arguments default to `None`. Slice objects have read-only data attributes `start`, `stop`, and `step` which merely return the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. Slice objects are also generated when extended indexing syntax is used. For example: `a[start:stop:step]` or `a[start:stop, i]`. See [`itertools.islice()`](https://docs.python.org/3/library/itertools.html#itertools.islice) for an alternate version that returns an iterator.
wise cargoBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

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

Currently only 3.11 version is supported.

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

somber heath
#

@whole bear πŸ‘‹

teal falcon
#

something.slice

somber heath
#

!e ```py
class MyClass:
attribute = 123

print(MyClass.attribute)```

wise cargoBOT
#

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

123
somber heath
#

!e py import math print(math.dist((0, 0), (5, 5)))

wise cargoBOT
#

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

7.0710678118654755
teal falcon
#

| +
| /
| /
| /
| /
+__________________

#

5 Β² + 5Β² = xΒ² sqrt 50 == 7.0710678118654755

#

y-y0 = m x-x0
m = 1

somber heath
#

!e py a = 5j + 5 b = abs(a) print(b)

wise cargoBOT
#

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

7.0710678118654755
somber heath
#

@warm atlas πŸ‘‹

#

!d complex

wise cargoBOT
#

class complex(real=0, imag=0)``````py

class complex(string)```
Return a complex number with the value *real* + *imag*\*1j or convert a string or number to a complex number. If the first parameter is a string, it will be interpreted as a complex number and the function must be called without a second parameter. The second parameter can never be a string. Each argument may be any numeric type (including complex). If *imag* is omitted, it defaults to zero and the constructor serves as a numeric conversion like [`int`](https://docs.python.org/3/library/functions.html#int) and [`float`](https://docs.python.org/3/library/functions.html#float). If both arguments are omitted, returns `0j`.

For a general Python object `x`, `complex(x)` delegates to `x.__complex__()`. If [`__complex__()`](https://docs.python.org/3/reference/datamodel.html#object.__complex__) is not defined then it falls back to [`__float__()`](https://docs.python.org/3/reference/datamodel.html#object.__float__). If `__float__()` is not defined then it falls back to [`__index__()`](https://docs.python.org/3/reference/datamodel.html#object.__index__).
teal falcon
#

shmget

#

πŸ–οΈ

#

!d import

wise cargoBOT
#

7.11. The import statement


import_stmt     ::=  "import" module ["as" identifier] ("," module ["as" identifier])*
                     | "from" relative_module "import" identifier ["as" identifier]
                     ("," identifier ["as" identifier])*
                     | "from" relative_module "import" "(" identifier ["as" identifier]
                     ("," identifier ["as" identifier])* [","] ")"
                     | "from" relative_module "import" "*"
module          ::=  (identifier ".")* identifier
relative_module ::=  "."* module | "."+
```...
somber heath
#

@minor plover πŸ‘‹

teal falcon
#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

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

Currently only 3.11 version is supported.

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

somber heath
#

@supple hearth πŸ‘‹

teal falcon
#
#include <Python.h>

static PyObject* mymodule_hello(PyObject* self, PyObject* args) {
    return Py_BuildValue("s", "Hello, Python!");
}

static PyMethodDef MyModuleMethods[] = {
    {"hello", mymodule_hello, METH_NOARGS, "Return a greeting message."},
    {NULL, NULL, 0, NULL}  // Sentinel
};

static struct PyModuleDef mymodulemodule = {
    PyModuleDef_HEAD_INIT,
    "mymodule",
    "A simple Python C extension module",
    -1,
    MyModuleMethods
};
PyMODINIT_FUNC PyInit_mymodule(void) {
    return PyModule_Create(&mymodulemodule);
}

!e

somber heath
#

@tiny kestrel πŸ‘‹

teal falcon
somber heath
#

!e py import string print(string.ascii_lowercase)

wise cargoBOT
#

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

abcdefghijklmnopqrstuvwxyz
teal falcon
scarlet halo
teal falcon
somber heath
#
#imported.py
def hello():
    print('Hello, world.')``````py
#main.py
import imported
imported.hello()``````
Hello, world.```
#

You'll get the output.

teal falcon
#

import mymodule
print(mymodule.hello)

somber heath
#

@lyric monolith πŸ‘‹

teal falcon
#

!stream Renatzin 373160837151719424

scarlet halo
#

man wish it was that simple

#

damn renatzin youve used that command alot

#

still havent learnt?

#

!stream Renatzin 373160837151719424

teal falcon
#

Now I got it thanks Bowser!

scarlet halo
#

what

teal falcon
#

Some Koopas to you!

scarlet halo
#

nah

teal falcon
#

kkkk

scarlet halo
#

!stream 710856373675491381

#

darn

versed heath
#

hi

#

what are you doing

#

no please no @teal falcon

#

anyone here

somber heath
#

@keen girder πŸ‘‹

versed heath
#

yay

#

how can you see if you have been in 10 min badges

#

yes

#

i know

#

ok

#

interesting

#

why do you have that system

#

oh ok

#

ok

#

i have 49 messages i believe

#

now i have 50

scarlet halo
#

πŸ‘ hasenparty πŸ‘

somber heath
#

!kindling

wise cargoBOT
#
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.

somber heath
#

@slender sierra πŸ‘‹

#

@supple storm πŸ‘‹

versed heath
somber heath
#

@distant blade πŸ‘‹

distant blade
#

how do I speak?

somber heath
#

!voice

wise cargoBOT
#
Voice verification

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

distant blade
#

ok I'll go get my 50 messages ig

#

cya

somber heath
#

@minor plover πŸ‘‹

lunar venture
#

@versed heath

#

you have to set it yourself

#

hotkey to deafen / mute mic

#

@scarlet halo

#

where are you from

versed heath
#

class Player:

lunar venture
#

whats the best stats course i can take for data science? your recommendations?

scarlet halo
#

im from sweden

lunar venture
#

yea

#

wow

#

swedes have really good english

scarlet halo
#

well

#

noo

#

they dont

#

but i do

versed heath
lunar venture
#

thats humble

versed heath
#

should be supposed to be a spaceship

scarlet halo
lunar venture
#

where are you from @versed heath

versed heath
#

GErmany

#

still not but getting there

scarlet halo
#

just draw an image and blit it to the screen with pygame's image.load function

somber heath
#

@grizzled veldt πŸ‘‹

lunar venture
#

@somber heath you hurt him

somber heath
#

I'm a horrible person for not wanting to listen to keyboard, mouse and selftalk?

lunar venture
scarlet halo
#

i am in shambles by the fact that opal left

#

what yall doing

minor plover
#

coping, without opal my life is not complete

quick mica
#

Hi, how are you all?

echo garden
#

Morining

scarlet halo
#

@echo garden @lunar venture wyd and hyd

quick mica
#

hi

lunar venture
#

oh damn

#

im still in vc

lunar venture
scarlet halo
#

whats it about?

somber heath
#

@fiery blade πŸ‘‹

#

@dapper talon πŸ‘‹

dapper talon
somber heath
#

@exotic bay πŸ‘‹

dapper talon
#

@somber heath have no permission to talk, about going somewhere to play discord whiteboard

somber heath
#

!voice

wise cargoBOT
#
Voice verification

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

dapper talon
#

I have less than 50 massages

#

@somber heath nazism?

somber heath
dapper talon
#

You're nazism πŸ™‚

somber heath
#

wut?

#

@fleet hawk @civic jay πŸ‘‹

civic jay
#

HELLO πŸ‘‹

somber heath
#

@glossy lantern πŸ‘‹

glossy lantern
#

hi

#

meh ig

somber heath
#

@full shard πŸ‘‹

full shard
fleet hawk
#

Hello

#

i do not have permisson to talk in voice chat why

#

?

somber heath
#

!voice

wise cargoBOT
#
Voice verification

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

fleet hawk
#

oh really

#

okeey i'm gonna see now

glossy lantern
#

how do i get my coding from coding to file

fleet hawk
#

so tell me guys do you make lessons for python

echo garden
#

@glossy lantern how do you mean? are you looking for ways to store code within code to reference from another code?

somber heath
#

YouTuber Corey Schafer, playlist for Python beginners.

glossy lantern
#

are they for begginners?

fleet hawk
#

yes i m here to practice python yes im very intersting

glossy lantern
#

what i mean is where when i download it i can see it visually like a video

fleet hawk
#

im talking about here if you make lessons here on discord

glossy lantern
#

let me find the video i foudn it from

fleet hawk
#

okey thanks if i see someone teache pythone im gonna join to him

glossy lantern
#

like this or something i guess

#

i think yes?\

somber heath
#

@eager quail @mortal venture πŸ‘‹

mortal venture
#

Hello

somber heath
#

tkinter

glossy lantern
#

alright thanks i just got bored so im trya learn python

#

i mean why not it was the only reason i wanted to learn codingbrainmon

somber heath
#

@reef shuttle πŸ‘‹

fleet hawk
#

okey guys thank you

glossy lantern
#

sickk

reef shuttle
somber heath
#

@median hull πŸ‘‹

median hull
#

hello

#

how is it going ?

#

hahaha

#

what are you up to or doing ?

#

ohh

teal falcon
somber heath
#

@quick mica πŸ‘‹

quick mica
#

hi

median hull
#

great, I have made similar thing implementing DES, AES, Playfair and RC4

#

Diffie hellman also

teal falcon
#

!d argparse

wise cargoBOT
#

New in version 3.2.

Source code: Lib/argparse.py

Tutorial

This page contains the API reference information. For a more gentle introduction to Python command-line parsing, have a look at the argparse tutorial.

The argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse will figure out how to parse those out of sys.argv. The argparse module also automatically generates help and usage messages. The module will also issue errors when users give the program invalid arguments.

somber heath
#

@winter flower πŸ‘‹

glossy lantern
#

might be a dumb question but what does this mean exactly

median hull
#

patient was not declared

dry jasper
#

you need "" before and after patient

median hull
#

you should define patient as you have defined age

dry jasper
#

because otherwise its a variable but you need a string i guess

#

the variable patient has not been defiend before

glossy lantern
somber heath
#

@scenic tangle πŸ‘‹

median hull
#

me too, I am just a hobbiest @somber heath

#

have you seen me implement a research paper from MIT using python ? XD

glossy lantern
#

what does true and false mean

median hull
#

think of them as yes or no

#

they are also equivalent to 1 and 0 respectively

somber heath
#

!e py print(5 > 3)

wise cargoBOT
#

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

True
somber heath
#

!e py print(5 < 3)

wise cargoBOT
#

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

False
somber heath
#

5 greater than 3? True
5 less than 3? False.

#

!e py if 5 > 3: print('Hi!')

wise cargoBOT
#

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

Hi!
somber heath
#

!e py if True: print('Hi!')

wise cargoBOT
#

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

Hi!
quick mica
#

I like how you explain, it's like on college.

teal falcon
#

Opal is actually a great teacher

median hull
#

yeah, @somber heath you look like a college professor, no offense it's great

somber heath
#

!e py if 5 < 3: print('Hi!')

wise cargoBOT
#

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

[No output]
somber heath
#

!e py if False: print('Hi!')

wise cargoBOT
#

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

[No output]
somber heath
#

!e py if 'abc': print('A') if '': print('B')

wise cargoBOT
#

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

A
somber heath
#

!e py if [1, 2, 3]: print('A') if []: print('B')

wise cargoBOT
#

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

A
somber heath
#

!e py if 1: print('A') if 0: print('B') if -1: print('C')

wise cargoBOT
#

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

001 | A
002 | C
glossy lantern
#

so basically if u write something as false but its set to run at true it wont run? or am i wrong?

somber heath
#

!e py print(bool('abc')) print(bool(''))

wise cargoBOT
#

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

001 | True
002 | False
somber heath
#

!e py condition = False ... if condition: print('A')

wise cargoBOT
#

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

[No output]
glossy lantern
#

if condition:
# Code to execute if the condition is True
else:
# Code to execute if the condition is False

#

something like this?

somber heath
#

@marble cave πŸ‘‹

glossy lantern
#

ahhh

somber heath
#

Each if stanza consists of...py if condition: "Exactly one if" elif some_other_condition: "Zero or more elif" else: "Zero or one else."

#
if ...:
    if ...:
        ...
else:
    ...```
marble cave
#

the if hell

median hull
#

@marble cave that's why they introduced match in python 3.10 which is similar to switch in other programming languages

glossy lantern
#

im writing this code and experiment on it
x = 5
y = 10

if x < y:
print("x is less than y")
else:
print("x is not less than y")

but this pops up

#

assign?

somber heath
#

!e ```py
x = 5
y = 10

if x < y:
print("x is less than y")
else:
print("x is not less than y")```

wise cargoBOT
#

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

x is less than y
somber heath
#

<= less than or equal to

= greater than or equal to
== equal to

#

@iron plume πŸ‘‹

scarlet halo
#

yo

glossy lantern
#

im going to sleep first im gonna continue tommorow i might go insane

#

thanks and see youu!!

median hull
#

@somber heath You sound like professor snape in harry potter

#

no offense

#

this is also nice

#

(alan rickman)

quick mica
#

anyone from eastern Europe maybe?

scarlet halo
#

nah im from western europe

#

im a viking

#

from sweden

quick mica
#

cool

dry jasper
#

isnt that northern EU?

scarlet halo
#

north west

#

or something

#

idk

median hull
#

dumbledor had too much responsibility

quick mica
#

From Bosnia

median hull
#

@somber heath how can i talk ?

dry jasper
scarlet halo
wise cargoBOT
#
Voice verification

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

scarlet halo
#

haha opal i beat you to it

quick mica
median hull
#

parseltongue

dry jasper
median hull
#

dumbledoor had too much responsibility, preparing for the finale, preparing harry and protecting him. He is an iconic character

#

The best charcter in the harry potter series in my pov is emma watson

#

not being reckless for the whole series.

#

hermione rocks

#

the best villan charcter is bellatrix lestrange

#

@whole bear @somber heath what is the best villain character in your pov ?

#

sirius black is not a villain

#

yeahh

#

yeah, very well written

somber heath
#

Hannibal is an American psychological horror-thriller television series developed by Bryan Fuller for NBC. The series is based on characters and elements appearing in Thomas Harris' novels Red Dragon (1981), Hannibal (1999), and Hannibal Rising (2006) and focuses on the relationship between Federal Bureau of Investigation (FBI) special investiga...

quick mica
#

Hannibal is great tv show

somber heath
#

Morena Silva de Vaz Setta Baccarin (Portuguese: [moˈɾenɐ bakaˈɾĩ]; born June 2, 1979) is an American actress. She is best known for portraying Inara Serra in the sci-fi series Firefly and its follow-up film Serenity, Vanessa in the superhero comedy franchise Deadpool, Jessica Brody in the Showtime series Homeland, Dr. Leslie "Lee" Thompkins in t...

quick mica
#

Deadpools girlfriend πŸ˜„

#

there is a tv show with her that is great, give me a min to find it

#

it's a must

#

Born
June 2, 1979Rio de Janeiro, Rio de Janeiro, Brazil

scarlet halo
#

bye opal

thin fox
#

zonk

median hull
#

😒

cobalt cloak
#

could sombody tomorrow evening help me finish my game im kinda slow at learning coding and i need to be with a final starter game at monday

#

if i want to continue learning where i learn

cobalt cloak
#

?

somber heath
cobalt cloak
#

i will only be able in the evening like 7 hours from now

somber heath
#

I can at least look at things. I may have thoughts.

#

@light cosmos πŸ‘‹

cobalt cloak
#

i already have the base and the idea for the game i just need help to make it happen

light cosmos
#

@somber heath can you pm me

somber heath
light cosmos
#

It's okay. I will ask someone else

somber heath
#

Why does it need to be over DMs? Or is that a secret, too?

light cosmos
#

Because i want to have secrets with you

somber heath
#

How mysterious.

#

@lone heart πŸ‘‹

lone heart
#

hi

glossy lantern
#

halo

#

still learning true or false haha

#

i just learned that python is picky with caps

somber heath
#

!pep8

wise cargoBOT
#
PEP 8

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:

somber heath
#

Naming Conventions.

glossy lantern
#

is this considered as an IDE?

#

nice nice

#

is that gud or bad? "super juicy"

#

nice

#

no not rlly

#

i like germay tho

#

my friends just wnated a group Nick name

somber heath
#

@raw violet πŸ‘‹

glossy lantern
#

WHY is this not rpintinggggg

#

oh u need to save it

#

it printed

#

no not rlly

dry jasper
glossy lantern
#

editorr and then

#

its got a mark

#

not yellow tho

#

whats cell?

#

is it basicallly like execute? no?

#

cool

#

but why does it syntax and the play button does not

#

this thing

somber heath
#

!e py 'abc'()

wise cargoBOT
#

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

001 | /home/main.py:1: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
002 |   'abc'()
003 | Traceback (most recent call last):
004 |   File "/home/main.py", line 1, in <module>
005 |     'abc'()
006 | TypeError: 'str' object is not callable
glossy lantern
#

i know what it means but why does it only do that for run cell

#

screenshot of the what again?

#

it does act different

glossy lantern
#

does it got to be specific?

#

im gonna re do it just in case

#

str = "one"
str = "two"

print(str)

#

it does work

#

i just got a typo

#

mb

#

ye ye

dry jasper
#

str1 = "one"
str2 = "two"

print(str1+" "+str2)

glossy lantern
#

so this would print str_one

#

str_one = "one"#variables
str_two = "two"#variables

print(str_one)#this prints

#

if im not mistaken?

#

ahh ok ok

lone heart
#

hi

dry jasper
#

hello

glossy lantern
#

so this would run both

#

str_one = "one"#variables
str_two = "two"#variables

print(str_one+""+str_two)#this prints

lone heart
#

i am new at python and i saw there is something like ** what is this doing?

dry jasper
glossy lantern
lone heart
#

Ohh thanks

glossy lantern
dry jasper
glossy lantern
#

what does loop mean exactly?

#

run forevr?

#

OHHHH

lone heart
#

wait but there is no x in banana

glossy lantern
#

b
a
n
a
n
a this?

#

cool cool

lone heart
#

ohhh

dry jasper
#

x is a variable which represents each iterble element of banana

lone heart
#

yeah yeah now i understand thanks

#

its not letting me open the voice becuase i didnt did the 50 messages here

#

and i wasnt in this server for 3 daysss

glossy lantern
#

i want code challenges

lone heart
#

wait someone know what the return function do?

dry jasper
lone heart
#

thanks

mystic lily
#
import pandas as pd

from modules import ohlcv, strategy
def main_loop(exchange, symbol, debug, timeframe):
    df = ohlcv.read_data(symbol, debug)
    last_candle_index = df.index[-1]
    in_trade = False
    stop = 0
    take = 0
    while True:
        candles = exchange.fetch_ohlcv(symbol, timeframe, limit=2)
        # Create a DataFrame from the candlestick data
        df = pd.DataFrame(candles, columns=['Timestamp', 'Open', 'High', 'Low', 'Close', 'Volume'])
        df.set_index('Timestamp', inplace=True)
        df = df.drop(df.index[-1])
        if last_candle_index != (df.index[-1]):
            last_candle_index = df.index[-1]
            df.to_csv(f'{str(symbol).replace("/", "_")}.csv', mode='a', header=False)
            in_trade, stop, take = strategy.strategy(symbol, debug, in_trade, stop, take)
#
import pandas as pd
import talib
import pandas_ta as ta

from modules import buy, sell, ohlcv, logging

def strategy(symbol, debug, in_trade, stop, take):
    df = ohlcv.read_data(symbol, debug)
    df['DEMA'] = talib.DEMA(df['Close'], timeperiod=200)
    df['ATR'] = talib.ATR(df['High'], df['Low'], df['Close'], timeperiod=5)
    

    atr_length = 14  
    multiplier = 3.0  
    supertrend = ta.supertrend(df['High'], df['Low'], df['Close'], atr_length, multiplier)
    

    df['ST_Indicator'] = supertrend['SUPERT_14_3.0']

    if in_trade:
        if df['Close'].iloc[-1] < stop:
            sell.sell(symbol, df['Close'].iloc[-1])
            print("stop loss hit")
            in_trade = False
        elif df['ST_Indicator'].iloc[-1] > df['Close'].iloc[-1] and df['ST_Indicator'].iloc[-2] <= df['Close'].iloc[-2]:
            sell.sell(symbol, df['Close'].iloc[-1])
            in_trade = False
            
    elif not in_trade:
        if df['Close'].iloc[-1] > df['DEMA'].iloc[-1]:
            if df['ST_Indicator'].iloc[-1] < df['Close'].iloc[-1] and df['ST_Indicator'].iloc[-2] >= df['Close'].iloc[-2]:
                stop = (df['ATR'].iloc[-1]*1.5)
                take = stop*2
                buy.buy(symbol, df['Close'].iloc[-1], (df['Close'].iloc[-1]+stop), (df['Close'].iloc[-1]+take))
                in_trade = True
    
    else:
        in_trade = False
        logging.log_message("INFO", "in_trade", f"setting intrade False")
    
    return in_trade, stop, take
            ```
glossy lantern
#

hello

glossy lantern
#

oh gtg boutta rain see you in abit

mystic lily
#

exchange = ccxt.binance({
#'apiKey': 'YOUR_API_KEY',
#'secret': 'YOUR_SECRET_KEY',
})

dry jasper
mystic lily
#
2023-09-17 08:25:36 INFO     start bot starting
2023-09-17 08:25:36 INFO     ohlcv.get_ohlcv getting data for: BTC/USDT
2023-09-17 08:25:40 INFO     ohlcv.get_ohlcv got data for: BTC/USDT
2023-09-17 08:25:40 INFO     ohlcv.get_ohlcv data coverted to dataframe for: BTC/USDT
2023-09-17 08:25:40 INFO     ohlcv.get_ohlcv Candlestick data saved to BTC_USDT.csv  
2023-09-17 08:25:40 INFO     Main_Loop Looking for trades
2023-09-17 08:30:59 INFO     SELL symbol: BTC/USDT, price: 26543.24
2023-09-17 08:42:58 INFO     SELL symbol: BTC/USDT, price: 26526.76
2023-09-17 09:09:58 INFO     SELL symbol: BTC/USDT, price: 26496.67
2023-09-17 09:37:59 INFO     SELL symbol: BTC/USDT, price: 26538.26
dry jasper
lone heart
#

hi

#

for the voice verification u need 50 messages how can i see how many messages i typed?

quasi sand
#

what happened to server logo

somber heath
#

The server logo changes regularly.

cobalt cloak
#

could i get help now?

#

!voiceverify

#

i really need help i need to be with a working game by tomorrow 6pm and im a slow learner in coding

lone heart
#

someone know how i look on how much messages i typed in this server?

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @whole bear until <t:1694960444:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

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

surreal hedge
#

@whole bear don't spam in order to hit the voice verification requirements, else you'll get voice banned, and it'll take even longer

#

!unmute 1029747819285860454

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction timeout for @whole bear.

somber heath
#

@whole bear @mighty robin πŸ‘‹

whole bear
#

i still cant talk yet

somber heath
#

!voice

wise cargoBOT
#
Voice verification

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

whole bear
#

since i joined today

mighty robin
#

Why can't I talk in this chat room?

#

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

mighty robin
#

lol

#

@somber heath unfortunately I only joined today.

#

My English level is low and I want to learn English in conjunction with learning programming

#

I would like to start learning with the basics of programming

#

Maybe you can give me some advice

somber heath
#

Corey Schafer. YouTuber. Playlist for Python Beginners.

#

!resources

wise cargoBOT
#
Resources

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

mighty robin
#

ohh yeah, thank you

#

What better way to learn from the very basics of computer science?

somber heath
mighty robin
#

Hi @scarlet halo

#

thanks

#

Yeah, I heard about the cs50.

somber heath
mighty robin
#

What about the way the computer works when running the code?

vocal basin
#

there's just too many things

somber heath
#

@vivid gorge πŸ‘‹

vocal basin
#

and things that are common for different branches of programming are far from basic in learning,
they are gained through experience rather

vivid gorge
somber heath
#

@vapid parrot πŸ‘‹

vivid gorge
#

sorry I was trying to find out how to verify

vapid parrot
#

Hello

#

I dunno Why Im here

vivid gorge
#

or while you try to find out how to voice very

vapid parrot
#

I recently started programming in Python( and in general )

vivid gorge
#

speaking of which what channel do I voice very in?

#

!voiceverify

somber heath
#

!voice

wise cargoBOT
#
Voice verification

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

vivid gorge
#

ok

somber heath
#

@whole bear πŸ‘‹

vivid gorge
#

I will just keep talking in here

whole bear
#

Boi

vocal basin
whole bear
#

πŸ€—

vapid parrot
vivid gorge
#

I have a project that is 1000 lines of code (not joking) that should be like 500 I just don't know how to optimize it

vocal basin
#

simplify rather than optimise?

vivid gorge
vivid gorge
#

but not a simple one

#

it has a lot of features

vapid parrot
#

I have to go

vocal basin
#

you can make features "data" instead of code, which would be interpreted somehow
i.e. find things that are common between then

vapid parrot
#

Bye

somber heath
#

@final urchin πŸ‘‹

final urchin
#

in a way it is..

#

hi

vivid gorge
#

the way it works is their is kind of a small macro language for the program that allows for very customizable macros while also being easy to code for me

#

you type commands in a text box and press the start hotkey or the start button to run everything

scarlet halo
vivid gorge
#

this is the coordinates window:

vivid gorge
scarlet halo
vocal basin
#

commands are interpreted as just a list of arguments (arguments are strings separated by space, commands are one per line)?

vivid gorge
#

split up by lines the first thing you type (seperated by spaces) is the command and everything else is arguments

vocal basin
#

for commands handling, there are some things that can simplify the process; for example:
decorators to define commands/subcommands,
match statements to work with arguments

#

there may be existing tools to do this (argparse, for example, can be used outside of CLI context too, if configured properly)

vivid gorge
#

I started this project when I was very new to python so all the commands are interpreted by one function with a lot of elif statements

vocal basin
#

if/elif/else can be replaced by match in new versions of Python

if x == 1:
    ...
elif x == 2:
    ...
else:
    ...
match x:
    case 1:
        ...
    case 2:
        ...
    case _:
        ...
#

new being 3.10, iirc

#

!d match

wise cargoBOT
#

8.6. The match statement

New in version 3.10.

The match statement is used for pattern matching. Syntax:


match_stmt   ::=  'match' subject_expr ":" NEWLINE INDENT case_block+ DEDENT
subject_expr ::=  star_named_expression "," star_named_expressions?
                  | named_expression
case_block   ::=  'case' patterns [guard] ":" block
```...
vivid gorge
#

I have a bootleg version of that that still uses a lot of elif statements but they are used better

#

I made a function that that takes a string (most of the time a argument or command) and a list of strings. If one of the things in the list is the string then it outputs true

scarlet halo
#

why has no one told me about this match thing

#

are there downsides?

vocal basin
#

match is slower sometimes

scarlet halo
#

ah