#voice-chat-text-0

1 messages Ā· Page 643 of 1

amber raptor
#

@royal epoch !resources

#

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

amber raptor
whole bear
#

@crystal fox @royal epoch

pure atlas
#

@tough panther I don't think that should be a debate in a coding server

wise cargoBOT
#

Hey @tough panther!

It looks like you tried to attach file type(s) that we do not allow (). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .svg, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a.

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

tough panther
wicked otter
#

hey @somber heath sup?

somber heath
#

hoy hi

wicked otter
#

so there is some intresting stff goin on šŸ‘€

pliant atlas
#

x-y/1-y

gloomy pagoda
#

@hushed elm

#

i need to test my headphones

#

speak

#

more

#

ight thanks

#

it works

somber heath
#

library.pdf

gentle flint
nova quest
#

@somber heath thanks alot

somber heath
#

I mean, when I mute and unmute, usually it's because I'm passing gas.

hushed elm
#

one
two
three four five
everybody in the car
so come on let's ride to the
liquor store around the corner to get
some silly juice but i really don't wanna

gentle flint
hushed elm
#

a firkin is 9 imperial gallons

somber heath
#

@young jay Neat display image.

#

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

hushed elm
somber heath
#

Blood for the blood bot

hushed elm
#

huh?

verbal oasis
#

typerace

craggy zephyr
#

ok

verbal oasis
#

who joined?

craggy zephyr
#

@somber heath can u help?

hushed elm
#

gg @gentle flint

somber heath
#

Is that css?

#

Yes.

hushed elm
#

ewww css

craggy zephyr
#

yeah

somber heath
#

Alas, css is not something I know.

craggy zephyr
#

okie

hushed elm
somber heath
#

IDLE

celest spruce
#

@somber heath how are you doing man

somber heath
#

It is a mystery.

verbal oasis
#

u guys on github?

hushed elm
#

lol

verbal oasis
#

just got my profile photo from the video you shared.. lmao! @hushed elm

hushed elm
#

lols

pastel heath
#

i gotta do some stuff guys, but much love russia and germany! ferrisBongo love you guys no homo!

whole bear
#

How can I answer phone numbers written in a file separately in the list?

chilly kiln
#
def add(...):
  total = 0
  for value in Ellipsis:
    total += value
  print(total)
hushed elm
chilly kiln
#
def add(*args):
   total = 0
  for value in args:
    total += value
  print(total)
hushed elm
#

this is what i found but i'm not sure if it helps you

#

brb

chilly kiln
#

In the french course (openclassroom), I have this example, with ... as a parameter to get unlimited number of values, from what I understood

#

print(value, ..., sep=' ', end='\n', file=sys.stdout)

rugged root
#

!resources @whole bear

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.

rugged root
#

print(value, *, sep=' ', end='\n', file=sys.stdout)

chilly kiln
#

Does this make sens for you def add(value, ...): for unlimited parameters, or is it totally incorrect

stuck furnace
#

That's probably just an informal notation.

#

Yeah, I think that's just their way of saying "any number of arguments"

#

But it's not valid Python.

#

There is an ellipsis in python, but it's only used in type-annotations I think.

chilly kiln
#

Ok, thank you XD

stuck furnace
#

E.g. def func(nums: Tuple[int, ...]):

chilly kiln
#

I was struggling a lot just for a " note " XD

rugged root
#

Used for type-annotation as well as in NumPy

stuck furnace
#

No prob šŸ‘

#

šŸ˜„

rugged root
#

!server

wise cargoBOT
#

Server information
Created: 3 years, 8 months and 24 days ago
Voice region: europe
Features: PARTNERED, COMMUNITY, INVITE_SPLASH, VIP_REGIONS, PREVIEW_ENABLED, WELCOME_SCREEN_ENABLED, ANIMATED_ICON, VANITY_URL, DISCOVERABLE, BANNER, NEWS, RELAY_ENABLED

Channel counts
Category channels: 35
News channels: 7
Text channels: 198
Voice channels: 74
Staff channels: 67

Member counts
Members: 92,715
Staff members: 80
Roles: 124

Member statuses
status_online 11,785
status_idle 5,068
status_dnd 5,057
status_offline 70,805

stuck furnace
#

Javascript literally has features in its specification that were originally implementation bugs.

#

But even IDEs can be complicated to use.

#

Even now when I open up something like PyCharm it makes my head spin.

#

It's like stepping into an airplane cockpit. So many buttons šŸ˜„

swift valley
#

Evening folks

stuck furnace
#

When I was at university they made us learn Haskell first šŸ˜„

#

Yeah

#

I think it's kind of a tradition to teach a functional language first

#

A lot of universities do it.

#

MIT used to teach scheme.

#

Cambridge teach ML I think, which is like Haskell.

swift valley
#

Yes lemon_eyes

stuck furnace
#

Also, prolog šŸ˜„

#

(for AI)

rugged root
#

Oh dear god

stuck furnace
#

Prolog will turn your brain inside out.

swift valley
#

@whole bear Wait till you see single-letter variable names in Haskell

stuck furnace
#

x:xs

swift valley
#

You become a wizard

#

Yer a wizard @whole bear

stuck furnace
#

Haskell really makes you appreciate a good static type system.

#

It's pretty much impossible to write code in Haskell that is syntactically valid but not semantically valid.

#

Usually, once your code compiles, it's correct.

swift valley
#

Wait till you see single-letter variable names in Haskell
Personal favorite of mine

whole bear
#

tttttttttttttttttttttttttttttttttttttt

swift valley
#

a torus in this context is basically just a 2d matrix that wraps around

#

@rugged root Exactly (to the pacman remark)

#

Be right back in a 20 minutes

stuck furnace
#

Hey, so I want to help out with the code-reviews, but I haven't learned asyncio yet.

verbal oasis
#

Join Typeracer

whole bear
#

šŸ‘

#

@stuck furnace

subtle orchid
stuck furnace
#

@whole bear there are tonnes of resources online for ML

whole bear
#

gg

#

@verbal oasis

stuck furnace
#

Especially online courses on edx.org

rugged root
whole bear
#

ya bit they confusimg

stuck furnace
#

Also, Artificial Intelligence, a Modern Approach by Russell and Norvig is a really excellent AI textbook.

#

It covers pretty much the whole field of AI, including machine learning.

#

Apparently you can theoretically see the summit of Mount Everest from 300km away šŸ˜„

verbal oasis
#

vvvvvvvv3

olive night
#

hellow

whole bear
#

C#

olive night
#

set up a trellow to help organize

#

trello

stuck furnace
#

Alright, I'm going to read that article. See ya!

subtle orchid
#

bye

still isle
#

Ų¹Ł„ŪŒ

subtle orchid
#

lol

#

u wrote my name in urdu

rugged root
#

@stuck furnace Don't forget that we have an #async-and-concurrency channel if you need additional clarification

olive night
#

why not use godot

#

IT uses a similar programing language like python

subtle orchid
#

Ų¹Ł„ŪŒ
@still isleThis is Ali in Arabic/Urdu

still isle
#

ali where are you from?

subtle orchid
#

Pakistan

#

and u?

still isle
#

iran

subtle orchid
#

good to see you

still isle
#

goood too

olive night
#

i am going to eat be back soon and I may talk after

subtle orchid
#

bye

olive night
#

and have a nice day/night

subtle orchid
#

thanks!

olive night
amber raptor
#

Benefit of Scratch is it teaches you the logic of programming

#

it's great because it's good filter

#

if people have issues with operators and variable

whole bear
amber raptor
#

further languages will result in issues

whole bear
amber raptor
#

Also, don't underestimate the utility of browser only

#

as much as I hate being locked in browser, getting stuff installed on School computers can be difficult

#

and MANY MANY schools use Chromebooks

whole bear
balmy nymph
#

Good lord

amber raptor
#

sure, it's got some downsides

swift valley
#

I'm back

amber raptor
#

voice needs a !shhh

hollow haven
#

I made an issue for it

rugged root
#

It's days like this where I really wish we had a smaller channel size

amber raptor
#

!source

wise cargoBOT
rugged root
#

Mmm.... Smoothie King...

whole bear
#

Has automatically adding voice channels as others overflow been suggested before?

amber raptor
#

probably

#

I think biggest issue with voice has it's exploded and bot doesn't have framework for decent control

swift valley
whole bear
#

Yeah, the VC's used to be empty all the time but they got really active recently

rugged root
#

It's because I join

whole bear
#

What is this for? @swift valley

rugged root
#

Like, literally as soon as I join like 3 people join

amber raptor
#

BS, I'm claiming my charm brings all programmers to the yard

swift valley
#

Just a test for a janky string parser I made with pyparsing

rugged root
#

Could you teach me?

whole bear
#

People just join to tell me that I'm Linus Tech Tips and then leave 😦

swift valley
#

The project is a LISP interpreter

amber raptor
#

I have no clue what you mean

whole bear
#

Ohh, good luck^^ Thought it was something like that

rugged root
#

"I would have to charge"

amber raptor
#

I failed bad

rugged root
#

It's all good

swift valley
#

It's pretty much impossible to write code in Haskell that is syntactically valid but not semantically valid.
@stuck furnace You can actually, through the power of compiler extensions hyperlemon

olive night
whole bear
#

Looks like my old schools website

rugged root
olive night
#

Looks like my old schools website
@whole bear lol made this cuz i have nothing to do \

whole bear
#

But yeah, I like it šŸ™‚

swift valley
#

This compiles, but it messes up once you try and pattern match against T'

Ī» :set -XGADTs
Ī» :{
| data T a where
|   T' :: Int -> T Float
| :}
amber raptor
#

Dave is wrong

#

Dave is going to need hard liquor to continue down this idea šŸ˜›

swift valley
#

^^ Naively anyways

rugged root
#

@amber raptor I would love a Drunky Ducky

amber raptor
#

Don't talk to me, talk to our resident graphic person, kutiekatj

rugged root
hollow haven
#

urgh, how do I figure out which domain provider a domain is registered with?

amber raptor
rugged root
#

I think there'- that

#

That's the one

amber raptor
#

or look at name servers

swift valley
amber raptor
swift valley
#

Thanks

amber raptor
#

apparently they disabled HTTPS redirect

hollow haven
#

well, I'm in a predicament. I'm trying to renew a domain. I don't know who the domain provider is, but I do know the company we use for whois privacy.

amber raptor
#

DM me the domain

pure path
#

ohh the voice channel name changed

#

and so many people

#

someone shoud stream

whole bear
#

šŸ‘

mighty drum
#

so what's your predictions

#

Bruder

whole bear
mighty drum
#

oof

swift valley
#

Hm?

amber raptor
#

I asked Joe for the name change to reflect the channel is more "Off Topic" then "Python General"

pure path
#

ohh ye that does make more sense

#

I hate writing tests

rugged root
#

Good pixel art programs/sites

crystal fox
olive night
#
extends KinematicBody2D
#player variables
var jump = 240
var gravity = 800
var speed = 50

onready var sprite : Sprite = get_node("Sprite")

func _physics_process(_delta: float) -> void:

    var motion = Vector2()
    
    if Input.is_action_pressed("left"):
            motion.x-= speed
            sprite.set_flip_h(true)
    if Input.is_action_pressed("right"):
            motion.x+= speed
            sprite.set_flip_h(false)
    if Input.is_action_pressed("up"):
            motion.y -= speed
    if Input.is_action_pressed("down"):
            motion.y += speed


    if Input.is_action_pressed("ui_left"):
            motion.x-= speed
            sprite.set_flip_h(true)
    if Input.is_action_pressed("ui_right"):
            motion.x+= speed
            sprite.set_flip_h(false)
    if Input.is_action_pressed("ui_up"):
            motion.y -= speed
    if Input.is_action_pressed("ui_down"):
            motion.y += speed

    motion = motion.normalized()
    motion = move_and_slide(motion* speed)```
amber raptor
#

Hemlock, do you have Discord Nitro?

pure path
#

YT tutorials are bad for discord.py

amber raptor
#

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

swift valley
#

As concise as the discord.py docs are I'd really prefer if each attribute shows what object it's a member of

amber raptor
#

Note that Discord.py requires you understand OOP well and async well

#

it's more complex in parts then it needs to be

pure path
#

yes also it would be helpful if also understand decorators

swift valley
#

I just want to search stuff just fine

rugged root
#

Decorators are so handy

#

@crystal fox So how you doin' today, bud?

crystal fox
#

just had a mental fucking hour arguing with an email customer about why it's not our fault they didn't renew their domain name

#

and it's killed all their emails

amber raptor
#

I wish it was easier to monitor domain names

rugged root
#

HA

#

Yeah agreed

amber raptor
#

but it's not

#

I've never found API that I could trust

rugged root
#

Well depends on your provider, doesn't it?

crystal fox
#

which makes it worse

verbal oasis
#

Press ctrl + shift + P

rugged root
#

Ew, yeah

verbal oasis
#

Install package manager

crystal fox
#

okay so when someone creates a wordpress site on wordpress.com, they are the owner of the domain

#

and only they can renew it

#

the website was set up by a guy ages ago and it's just been autorenewing for years

#

but he cancelled auto renew and apparently the company and this guy who set it up had a falling out and shit

#

so he's just had to go back to the dude like "oh, hey uhhh.... you own my domain name and it's expired knocking my entire business offline. could you renew that?"

olive night
tall latch
pure path
#

@olive night nice bg

frigid panther
#

o/

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

swift valley
#

Little did I know I was lying to myself

pure path
#

i hate writing tests

olive night
#

same

frigid panther
#

im actully writing tests now for @wise cargo, figuring it out

swift valley
#

I swear I'm gonna end up with 500+ tests once I start writing the builtins for this project

pure path
#

sombody should stream

#

@swift valley stream the tests that u love writing

swift valley
#

I'll start lagging

#

lol

pure path
#

oh lol

swift valley
#

I could try

pure path
#

if it affects your pc u dont have to

hollow haven
#

@swift valley we can hear you

pure path
#

I dont think that was pure

swift valley
#

uhh

pure path
#

ye lol

swift valley
#

that wasn't me haha

hollow haven
#

whoops lemon_sweat

tall latch
#

it was dan i guess

hollow haven
#

I thought I saw the green circle around your pfp go off while I heard that

pure path
#

ohh, contributors can stream?

swift valley
#

Yep

#

I wonder if I should merge to develop already

olive night
#

em i muted

hollow haven
#

no

olive night
#

??

pure path
#

we just cant hear u

olive night
#

ow

#

0-0

#

i will see whats wrong

#

need to restart discord

balmy nymph
#

Is that blender? lemon_hyperpleased

amber raptor
#

Yep

hollow haven
#

It is, Harbys is helping me with the glitch effect

balmy nymph
#

Noiiiice

pure path
#

only 25 people allowed in vc

amber raptor
#

Yep

#

after 25, it gets ugly, it really gets crazy after 17 or so

tiny seal
fervent moon
#

(x2āˆ’x1)2+(y2āˆ’y1)2āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆš

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

cerulean moth
#

@rugged root

#

u know why?

#

oh w8 i got it

#

the channel is 5/5

#

sry for the ping

rugged root
#

No worries

verbal oasis
marsh bolt
#

@whole bear mongodb is nosql

candid venture
marsh bolt
#

nice

#

sorry for the mention

#

I wasn't sure it was the right chat

#

good

#

you?

#

linux and sound issues right

#

yeah

#

I have microphone issues

#

I thought it was sarcastic yes

#

PEBCAK

#

4

honest pier
#

hey y'all

rugged root
#

Sup

honest pier
#

class is starting in 3 mins šŸ‘€

rugged root
#

Which one?

honest pier
#

lang

#

uage and composition

rugged root
#

Neat

honest pier
#

ĀÆ_(惄)_/ĀÆ

marsh bolt
#

Code/Help?

rugged root
#

@subtle orchid I just got back in

subtle orchid
#

Nice

#

really appreciate your time for community

#

thanks a lot

amber raptor
rugged root
#

No problem! I appreciate you appreciating it

pure path
#

hey I got mic issues ima leave an hope back on aight

rugged root
#

Sounds good

subtle orchid
#

@rugged root there is problem which is getting me annoyed i forget spellings of even simplest words and it hurts my brain and confidence is it common or a bad symbol any tips to prevent

rugged root
#

Do you mean like Python or programming terms?

#

Because I forget those so friggin' much

subtle orchid
#

normal language terms

#

like simple words as announcements

#

and even simpler words

rugged root
#

I mean the fact that you know another language is impressive. I don't think you should worry too much. You'll remember more as you practice more. And you can always describe what you're thinking of and we can work it out together

subtle orchid
#

but my cringe asian aksent.......šŸ˜‚

rugged root
#

I mean you're understandable

#

Good thing about helping out here is that I've gotten used to all kinds of accents

pastel heath
#

@steep panther nice pfp

olive night
pure path
#

Aight GN fellas

subtle orchid
#

bye

olive night
#

I feel like im listening to a podcast about random things and i like it

rugged root
olive night
#

0-0

rugged root
#

It's the first thing I thought of as soon as he said "share the load"

olive night
#

lol

#

lord of the rings

#

i need to go bye

rugged root
#

@subtle orchid What's up?

subtle orchid
#

@rugged root how old phyton discord is?

rugged root
#

!server

wise cargoBOT
#

Server information
Created: 3 years, 8 months and 24 days ago
Voice region: europe
Features: BANNER, WELCOME_SCREEN_ENABLED, PARTNERED, VANITY_URL, INVITE_SPLASH, RELAY_ENABLED, DISCOVERABLE, ANIMATED_ICON, COMMUNITY, NEWS, PREVIEW_ENABLED, VIP_REGIONS

Channel counts
Category channels: 35
News channels: 7
Text channels: 193
Voice channels: 74
Staff channels: 62

Member counts
Members: 92,788
Staff members: 80
Roles: 124

Member statuses
status_online 10,093
status_idle 4,063
status_dnd 4,095
status_offline 74,537

rugged root
#

3 years 8 months

#

and 24 days

subtle orchid
#

together we grow

#

as a commnity

rugged root
#
cities  = %w[ London
              Oslo
              Paris
              Amsterdam
              Berlin ]
visited = %w[Berlin Oslo]

puts "I still need " +
     "to visit the " +
     "following cities:",
     cities - visited

Like that feels really REALLY weird to me

#

Yeah just... Ruby feels weird

frigid panther
#

do you have plans to bring the cat and the other pets together ?

#

@rugged root

lean parrot
#

Sorry had to drop our randomly guys, had a call, it was fun chatting tho! thank you all

rugged root
frigid panther
#

sphinx looks like pokemon tbh

rugged root
#

@green stratus How about this one?

tiny seal
#

how bout this

subtle orchid
#

nice cat

leaden comet
#

!tempmute 494508091283603462 7d please stop trolling this voice chat

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @faint pivot until 2020-10-09 18:57 (6 days and 23 hours).

rugged root
#

!tempmute 291006960122331136 7d Yelling into the mic and telling people to shut the fuck up really REALLY isn't appropriate.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @mystic kelp until 2020-10-09 18:58 (6 days and 23 hours).

rugged root
#

!warn 82578210453192704 Random comments about wanting a blowjob are incredibly unacceptable.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @zenith radish.

zenith radish
#

ol' faithful

whole bear
#

works in chrome but not in firefox for me

#

Twitter.

chilly locust
hidden flower
#

The Gods of AFK has claimed Hemlock šŸ˜”

honest pier
#

šŸ˜”

rugged root
#

I'm back

hidden flower
#

yay! ig

chilly locust
rugged root
#

@cursive mason I muted you because your mic was giving off some nasty feedback.

#

If you mute yourself I'll unmute you

cursive mason
#

whyy

tiny seal
leaden comet
tiny seal
tidal junco
#

@leaden comet heya, am I missing something fun in the vc?

rugged root
#

Not really

tidal junco
#

eh, alright

chilly locust
leaden comet
chilly locust
#

pog

leaden comet
#

best I can do tonight

honest pier
chilly locust
honest pier
#

smh my h

amber raptor
chilly locust
quaint lagoon
#

aww

chilly locust
#

cute lil family

whole bear
#

VENV

#

If PyCharm is not recognizing your installed packages, chances are it has created a venv¹ for you.

To use the system Python version:
• Open PyCharm settings (ctrl + alt + s)
• Choose Project: <project name>
• Choose Project Interpreter

At the top there is a drop-down menu for different Python versions.
Choose the correct Python version. Common paths include:

C:\PythonXY
C:\Users\<username>\AppData\Local\Programs\Python\PythonXY

If this menu does not list your system Python installation, click the cog to the right of it, and click add.
Choose the System Interpreter option. If your Python installation is not in this drop-down either, you will manually have to find its installation location and add it there.
After adding your System interpreter follow the steps above to choose it as your project interpreter.

  1. <https://docs.python.org/3/library/venv.html>, <https://www.python.org/dev/peps/pep-0405/>
#

seems like my internet issue

#

gtg byeee

whole bear
#

@magic orchid so I plugged it in and there is an update for it so we shall see after it has installed

magic orchid
#

@whole bear nice, maybe the drivers are getting installed!! šŸ™‚

whole bear
#

I went into setting and I changed the adapter so it was set on the right one and I'm just rebooting now

magic orchid
#

😦

tribal solar
#

Gentlemen as I said I am very sleepy I am going to sleep take care of yourself and see you later @magic orchid

#

I could say the sentence correctly

magic orchid
#

@tribal solar take care!

#

sleep tight

tribal solar
#

@tribal solar take care!
@magic orchid Take care sir

#

seeu later

hallow warren
rugged root
#

@hallow warren Any particular reason for the link?

mortal burrow
#

Yeah we were talking about it

hallow warren
#

as per voice, it's the flood control project for Hale Creek above the Mountain View, California Shoreline Regional Tax District

rugged root
#

Fair enough. Just seemed weird to randomly link- ah okay, that makes sense then. Without that context it just seemed weird to have a map link

#

Carry on

hallow warren
#

including like Google, Intuit, a bunch of CIA stuff neither of us have ever heard of, the Computer History Museum, which still needs a tickertape transmitter..... Thank you!

rugged root
#

Oh god, Intuit.... the bane of my life at work

hallow warren
whole bear
#

@magic orchid

slate sluice
cyan galleon
slate sluice
#

lol

vernal herald
limber seal
#

O(2^n) GWseremePeepoLife

somber heath
#
while ord(character) > 122:
    character = chr(ord(character)-26)
while ord(character) < 97:
    character = chr(ord(character)+26)``` Or something.
#

Probably not quite that. It's pretty naive and assumes other stuff is well-behaved.

#

In mathematics, an ellipse is a plane curve surrounding two focal points, such that for all points on the curve, the sum of the two distances to the focal points is a constant. As such, it generalizes a circle, which is the special type of ellipse in which the two focal points...

somber heath
#

chr(70) == 'F'

#

chr(-1) raises a ValueError

#
 |  Inappropriate argument value (of correct type).```
#

str.lower str.upper

#

'aPpLe'.lower() == 'apple'

#
i = 0 #Initialise i with 0
i += 1 #Add 1 to i
i == 1 #i is now 1
i += 2 #Add 2 to i
i == 3 #i is now 3```
#

vs

#
i = 0
i = i+1```
rugged root
#

doot

#

That is all

#

Oh man you're right, it should react with both

somber heath
#

str.maketrans

#

trans = str.maketrans('ac', 'ca')

#

'cornucopia'.translate(trans) == 'aornuaopic'

#
text = 'apple'
for i,v in enumerate(text):
    print(text[i:]+text[:i])```
whole bear
#

Lmao

#

omg im crying

whole bear
#

@dire folio @torpid crag @wind crescent @leaden comet i need help

slate sluice
#

<@&267628507062992896> people repeating the n-word in voice channel

whole bear
#

@slate sluice yes hes right

#

its 0tro, sdot and big blood

#

Please ban them.

slate sluice
#

yes, please.

whole bear
#

this isnt acceptable.

#

So I’m having trouble adding listeners to my file that stops raids could you add the listeners for me and see why it breaks

#

Nvm mr 0tro doesnt cuss

#

Hes honestly an amazing man

#

So Im having trouble running this go lang nuker and also having a trouble adding commands to a js script.

#

Yo sdot I like this version of you @whole bear very intellectual

#

If anyone can help me? What does the word Pimpin mean?

#

Sdot i love that name!

paper perch
#

i would prob @ mods not admins

#

catus

somber heath
#

Maybe try breaking your code down into parts and making sure each part runs the way you intend and only the way you intend.

whole bear
#

<@&267629731250176001> This isnt accpetable they keep repeating the n word

somber heath
#

Then see if other parts play with other parts they way you intend.

slate sluice
#

oh

#

sorry

somber heath
#

Then build it up.

paper perch
#

yeah i just dont want u to get in trouble for helping

whole bear
sly jolt
#

!ban 650458730051272751 n-word in the vc

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @lofty cedar permanently.

whole bear
#

@sly jolt

#

u dont know what this mean?

#

So I’m having trouble adding listeners to my file that stops raids could you add the listeners for me and see why it breaks
@whole bear

#

who think they can remove mongo db frm a file

sly jolt
#

!ban 761822795923456021 n-word in the vc

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @novel spear permanently.

somber heath
#

You all are too enthusiastic, I'm afraid. I can't concentrate on shit.

sly jolt
#

!ban 524017868157747201 n-word in the vc

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @main wadi permanently.

whole bear
#

I think you banned the wrong person sir .

#

That wasn’t him.

#

@sly jolt

somber heath
#

For debugging stuff, break your code down into its elementary parts. Build it back up, making sure it all works as you intend and only as you intend as you go.

#

Avoid spaghetti code.

proud tangle
#

!ban 760363544256184331 n-word

sly jolt
#

!ban 760363544256184331 n-word spam in the vc

wise cargoBOT
#

:x: User is already permanently banned (#13258).

#

:incoming_envelope: :ok_hand: applied ban to @worldly thistle permanently.

sly jolt
#

!unban 524017868157747201

wise cargoBOT
#

:ok_hand: pardoned infraction ban for @main wadi.

sly jolt
#

wack.

whole bear
#

mr @sly jolt

sly jolt
#

ye

whole bear
#

I think you banned christian by mistake.

sly jolt
#

lol

whole bear
#

You see hes ghetto, sir it jus slips out

#

@sly jolt sir you know what mongo database is?

#

Im sorry for what he has said.

#

Jus please unban my friend

#

plus hes black..

#

?

#

?whois

#

May you please lower the music ? @still iron

still iron
#

@sly jolt yo

#

Get off mute in call

whole bear
#

what is he talking about?

#

im confused

sly jolt
#

You know why.

whole bear
#

But hes clearly ghetto it slips out.

#

jus please give him another chance

#

Everyone not perfect

#

šŸ˜›

proud tangle
#

Fab's volume is fine

#

keep in mind each user has control over their local output of a person

#

you can right click and turn them down if it's too much for you

whole bear
#

keep in mind each user has control over their local output of a person
@proud tangle

#

?av @proud tangle

#

Do anyone know how to remove mongo db from a file

#

I need help removing mongo

still iron
#

xitherius

#

why u ban my friend

whole bear
#

yo xitherius

sly jolt
#

!ban 743685889913389066 racism

wise cargoBOT
#

failmail :ok_hand: applied ban to @zinc shore permanently.

whole bear
#

Oh wow .

still iron
#

pls snipe

sly jolt
#

we have a filter system

whole bear
#

Do you want guys see that ?

still iron
#

Lol

whole bear
#

invisible name is cursing

#

?av

#

SELFBOT!

#

.avatar

#

;av

#

SELFBOT

sly jolt
#

!ban 665735950827257876 selfbot usage

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @daring siren permanently.

sly jolt
#

@whole bear please dont post random gifs

whole bear
#

im posting my pics

#

im not allowed to post my pics?

paper perch
#

lemon

sly jolt
#

I can't talk because I don't have a functioning mic

still iron
#

Stop posting images

whole bear
#

?

#

May you guys please stop cursing

#

why cant i post this?

#

no guns or anything

#

Not cool, to whoever is saying that in the voice channel.

paper perch
#

its all odd that so many of these accounts that are saying and doing this stuff say there new accounts hmmmmmm.....

whole bear
#

My account isnt new

#

this is a 2016 account

sly jolt
#

@whole bear we don't allow people to stream.

paper perch
#

ik but a majority is

whole bear
#

Or stop skidding

#

files

#

And make your own

#

@whole bear

sly jolt
#

!ban 756957825317732473 saying the nword in the vc

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @thorny quartz permanently.

whole bear
#

LAMO

proud tangle
#

@undone patrol cut it out, thanks.

limber iron
whole bear
#

does it grab

#

ips?

#

or tokens

undone patrol
#

Ummute me

#

I did nothing wrong

sly jolt
#

!ban 683091126848454707

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @median token permanently.

whole bear
#

LMAO

undone patrol
#

@sly jolt unmute me

#

Unmutenme

whole bear
#

Nice early supporter badge šŸ‘ @proud tangle

sly jolt
#

!ban 490193707744755712 alt of @thorny quartz

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @spiral root permanently.

whole bear
#

@quasi mist

limber iron
whole bear
#

262078653272293386

#

Id starts with 2

sly jolt
#

!ban 262078653272293386 alt of @thorny quartz

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @quasi mist permanently.

sly jolt
#

knew it

whole bear
#

Tro is legit a clan.

sly jolt
#

he literally started yelling the nword

somber heath
#

People do recommend Python books, however, the internet does have a LOT of good sources for self learning.

sly jolt
#

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

sly jolt
#

free stuff

paper perch
#

even some decent free ones as well

sudden timber
somber heath
#

Youtube, stackoverflow and the documentation on the python site itself.

#

and help()

sudden timber
somber heath
#

The downloadable docs on python.org. There's a zip archive of pdf files. library.pdf is, in my view, the bible of python.

#

Covers all of core python and its native modules and has examples.

#

Leg joints packaged in soundproofed boxes. Niche items.

sly jolt
#

@somber heath Thank you for the ping. Your contributions to the server are very much appreciated.

somber heath
#

Wasn't I.

sly jolt
#

ah I guess it wasn't

#

either way, thank you for your large amount of work on the server.

uneven urchin
#

Kivy

#

Yeah, django has sooo many parts

#

Yeah lol

#

You'll end up doing the ORM by yourself

#

and basically rebuilding django

#

I had to deal with a huge wordpress site for a client

#

never again

#

html headers injected into json api responses, etc

#

oh

#

that

#

it has its own language

#

yeah

#

its.. interesting

#

yep

#

o/

#

Heyo @verbal oasis

#

need help with something?

verbal oasis
#

@uneven urchin Nah! man thanks for asking.

uneven urchin
#

šŸ‘

verbal oasis
#

BTW @uneven urchin are you good in c++?

uneven urchin
#

helo

#

not particularly, but I can probably spot a bug if you need eyes

#

I'm making lots of typos tonight

#

hello

verbal oasis
#

oooouuuh!

uneven urchin
#

o/

hushed elm
strange anchor
#

doot

hushed elm
#

doot

uneven urchin
#

o/

hushed elm
#

i need to go too, talk to you later

uneven urchin
#

You could paste the link here

#

It's a very polarizing political topic over here

prime estuary
#

can someone help me out with my college project?

somber heath
#

@hushed elm Mosaicish.

hushed elm
#

yess @somber heath pretty

chilly kiln
#

80 + 11

#

91

#

quatre-vingt-onze

whole bear
#

cos(pi) * x

#

4 = sqrt(16)

chilly kiln
#

poisson(s) = fish

whole bear
#

poisson distribution = fish distribution?

#

In probability theory and statistics, the Poisson distribution (; French pronunciation: ​[pwasÉ”Ģƒ]), named after French mathematician SimĆ©on Denis Poisson, is a discrete probability distribution that expresses the probability of a given number of events occurring in a fixed int...

#

Fünfundachtzig - Eightyfive

tall latch
#

@fickle orbit hop into code/help VC

lusty marsh
#
 def rotate(self):
        if self.rotation != 90:
            angle = math.radians(self.rotation)
            cos = math.cos(angle)
            sin = math.sin(angle)
            xaxis = self.center[0]
            yaxis = self.center[1]
            nvertices = []
            for x, y in self.vertices:
                y -= yaxis
                x -= xaxis
                rotate_x = x * cos - y * sin
                rotate_y = x * sin + y * cos
                nvertices.append([rotate_x+xaxis, rotate_y+yaxis])
            return nvertices
        else:
            return self.vertices
#
        self.vertices = self.rotate()

        y_vertices = []
        x_vertices = []
        for vertice in self.vertices:
            y_vertices.append(vertice[1])
            x_vertices.append(vertice[0])
        max_y = max(y_vertices)
        min_y = min(y_vertices)
        max_x = max(x_vertices)
        min_x = min(x_vertices)
        self.end = [max_x, max_y]
        self.start = [min_x, min_y]

        self.x_vertices = x_vertices
        self.y_vertices = y_vertices

        self.x = self.start[0]
        self.y = self.start[1]
        self.w = self.end[0]-self.x
        self.h = self.end[1]-self.y

        self.center = ((self.x+self.w)-(self.w/2), (self.y+self.h)-(self.h/2))
solid marten
#

~f Hello World

#

import pyfiglet
import json

def figlateIt(msg):
msgs = msg.split(" ")
if msgs[0] != "~f":
return 0
msg = msg.replace("~f", "")
msg = msg[1:]
result = pyfiglet.figlet_format(msg)
print(msg)
print(result)
return result

class MyClient(discord.Client):
async def on_ready(self):
print('Logged on as {0}!'.format(self.user))

async def on_message(self, message):
    # print(message)
    print('Message from {0.author}: {0.content}'.format(message))
    msg = message.content
    if message.content.startswith('~f'):
        figlate = figlateIt(msg)
        await message.channel.send(figlate)

client = MyClient()

#

_
| ) | |
| \ / | |
| |) | () | |
|__/ _/ _|

somber heath
#

@tall latch Issues with your mic/internet?

tall latch
#

well internet

somber heath
#

numba's jit

lusty marsh
#
import time
t1 = time.time()
t2 = 0

i = 0
while t2-t1 < 1:
    t2 = time.time()
    i += 1
print(i)
somber heath
#
def goto(xy, y=None):
    if y is None:
        x,y = xy
    elif y is not None:
        x,y = xy,y```
lusty marsh
#
def __init__(self, position: tuple or list, scale: tuple or list, rotation: int or float = 90) -> None:
somber heath
#
goto(20,10)
#equivalent to
goto((20,10))```
earnest scarab
#

windows + Shift +S launches a snip and sketch tool which eases a lot of work in these cases

somber heath
#

@storm field

storm field
#

yes

somber heath
#

:arrow_up_small:

storm field
#

please tell me here the stepes

#

steps

#

@somber heath

somber heath
#

Gear, video & voice settings, auto sensitivity off, adjust horizontal slider for sensitivity.

storm field
#

it will be helpful if you give screenshots also

somber heath
#

I'm on my phone, but...

solid marten
#

me

earnest scarab
#
How-To Geek

Discord is great for voice chatting, but you might have to change some settings to fix static, background noise, and poor audio quality. Here’s how to choose your sound devices and make sure you’re coming in crystal clear.

somber heath
storm field
#

i did not have option auto sensitivity

solid marten
#

but i couldn't find that noise cancelation button desktop

storm field
#

yap sensitivity is there

somber heath
#

@storm field It might not be called auto sensitivity on the desktop/web app.

solid marten
#

did you get it?

#

on desktop?

storm field
#

ya i am in desktop

#

no i did not get

earnest scarab
#

I think the Noise cancellation is the feature added in the recent discord update......try updating or installing new discord version

solid marten
#

yeah I think so

storm field
#

i am in web app

somber heath
#

But the idea is to turn the auto sensitivity off so the manual slider can be set to an appropriate position.

solid marten
#

Yes. it's not available on the web app

somber heath
#

So it takes more loudness before it starts sending sound into voice chat.

storm field
solid marten
#

I'm also using mobile

storm field
#

see the screenshot

#

and try to help me

somber heath
#

Yeah. Move the slider much further right.

solid marten
#

Okay wait. let me check my linux discord client

somber heath
#

We are trying to help you. šŸ™‚

storm field
#

is it better

#

now

somber heath
#

Maybe not far right.

#

We'll probably never hear you talk.

storm field
somber heath
#

Turning those off can make your audio clearer.

#

But more background noise can come through.

#

In stripping out extraneous noise, you can lose some quality.

#

They may or may not be appropriate, depending on your local noise conditions.

#

For you, I'd say leave them on.

pure path
#

oh wow, today Hemlock is not in the voice chat

#

that's unusual

storm field
somber heath
#

Just use push to talk.

#

Less fucking around.

pure path
#

u know push to talk isn't available for browser

solid marten
#

šŸ˜†

somber heath
#

Oh.

#

Well, fuck.

storm field
#

is it still noise from my side @somber heath

pure path
#

ye and My discord application does not want to open at all

somber heath
#

@storm field You're fine right now.

solid marten
#

is it still noise from my side @somber heath
@storm field no much

#

*not

storm field
#

thanks both of you to solve my noise problwm

#

@somber heath

somber heath
#

Noise again.

#

Maybe toggle your mic just for when you want to talk.

storm field
#

okay

solid marten
#

that's a batter option

whole bear
#

Hey guys.

I know everyone here knows decent amount of coding.
I am just starting python. Can anyone guide me how i should gow about pure python and then the standard libraries?
There are two many resources available online and it is difficult to focus.

Any help will be highly appreciated

somber heath
#

So if you have imaginary files, does that mean there are complex directories?

pure path
#

if it is imagenary how do u know it even exists

somber heath
#

!resources

wise cargoBOT
#
Resources

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

somber heath
#

@whole bear

whole bear
#

It is still too much of resources

somber heath
#

@whole bear The docs on python.org are your authoritative source for info. There are downloadable versions. I go for the pdf collection. In that, library.pdf is your bible.

whole bear
#

How should one go about learning?
How to practice?

tall latch
#

@whole bear make some crazy function

solid marten
somber heath
#

Work through the docs. Learn the concepts as you go.

whole bear
#

Well , thanks

#

you should really look into coming up with ur idea of a project, and then execute it practically @whole bear

somber heath
#

Small projects, starting out.

whole bear
#

and if u get stuck then u should seek online documents or ppl on this server

somber heath
#

Don't overwhelm yourself.

whole bear
#

The beginning is nightmare

somber heath
#

Stick to just python then the native libraries a bit later on. Avoid branching out into third-party libraries until you've got your foundational knowledge with which to interpret and handle them.

tall latch
#

@regal walrus

#

come in code help voice channel

somber heath
#

Indendation, objects, for and while loops, variables, operators, strings, lists, tuples, sets, dictionaries, keywords, integers, operators, assignment, equality, booleans, functions, classes.

#

Then import

lusty marsh
#

|

#

and, &

solid marten
#

&&

somber heath
#

(True and True) is True (True and False) is False

whole bear
#

Thanks @somber heath

somber heath
#
if True and True: #(True and True) being True, so if goes, yep, let's run this
    print('The truthiness is out there.')```
solid marten
#

~f Hw

somber heath
#
if True:
    print('Doing the thing.')```
solid marten
#

import os
import discord
from discord.ext import commands
import re
import pyfiglet
import json

def figlateIt(msg):
msgs = msg.split(" ")
if msgs[0] != "~f":
return 0
msg = msg.replace("~f", "")
msg = msg[1:]
result = pyfiglet.figlet_format(msg)
print(msg)
print(result)
return result

class MyClient(discord.Client):
async def on_ready(self):
print('Logged on as {0}!'.format(self.user))

async def on_message(self, message):
    # print(message)
    print('Message from {0.author}: {0.content}'.format(message))
    msg = message.content
    if message.content.startswith('~f'):
        figlate = figlateIt(msg)
        await message.channel.send(figlate)

client = MyClient()

if name == "main":
token = str(os.environ.get('bot_token'))
client.run(token)

#

_
| ) | |
| \ / | |
| |) | () | |
|__/ _/ _|
@solid marten Go to this

tall latch
somber heath
#

!code

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

```python
print('Hello world!')
```

Note:
• These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
whole bear
#
#import
from random import *

#liste caractĆØres
characters=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']

#longueur
length=int (input('choose the length of your password :'))

#generation
def mdp (length):
    mdp = str()
    shuffle (characters)
    for x in range (length) :
        mdp+=characters[x]
    print(mdp)

input()
somber heath
#

list('abcdefg')

tall latch
#

mdp = ""

sick cloud
#
#import
from random import *

#liste caractĆØres
characters=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']

#longueur
length = int(input('choose the length of your password :'))

#generation
def mdp (length):
    mdp = ""
    shuffle(characters)
    for x in range (length) :
        mdp+=characters[x]
    print(mdp)

input()
``` what about this ?
somber heath
#
print(string.ascii_lowercase)```
whole bear
#

(

#

mdp=('zeze')

sick cloud
#

where is the shuffle method ?

somber heath
#

random module

#

Your input call is not passing its result to anything. It's not doing something like myFunction(int(input())) or var = int(input()) then myFunction(var).

sick cloud
#

!e ```py
#import
from random import *

#liste caractĆØres
characters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']

#longueur
length = int(input('choose the length of your password :'))

#generation
def mdp (length):
mdp_pass = ""
charr = random.choice(characters)
for x in range (length) :
mdp_pass += charr
print(mdp_pass)

mdp(lenght)

whole bear
#
def mdp_func (length):
    mdp = ""
    shuffle(characters)
    for x in range (length) :
        mdp+=characters[x]
    print(mdp)

mdp_func(10)
#

why mdp_func (10)

#

@whole bear

sick cloud
#

why mdp_func (10)
@whole bear there shouldn't be any space between the function name(mdp_func) and (10)

whole bear
#

yeah there shouldn't be any space. I have made the edit.

#
def mdp_func (length):
    mdp = ""
    shuffle(characters)
    for x in range (length) :
        mdp+=characters[x]
    print(mdp)

length = int(input('Enter the length:'))
mdp_func(length)
vernal igloo
pure path
#

it seems there are very little people in the vc today

#

well lesss than usual

vernal igloo
zinc sun
#

Okay, I'm deeply sorry, but I just used an API to generate random jokes and this one got me: Chuck Norris's database has only one table, 'Kick', which he DROPs frequently.

red swan
#
def get_sum(a, b):
    print(a + b)
#
from library import get_sum
get_sum(5, 10)
red swan
solid marten
#

'

#

"

lime plume
rich mist
#

I am leaving, thank you OpalMist!

tall latch
#
with open(jsonName, "w") as fh:
                json["users"][str(message.author.id)] = {
                "point": 0,
                "level": 0
                }
                fh.seek(0)
                json.dump(json, fh)
                fh.close()```
solid marten
#

`import json

with open('path_to_file/person.json') as f:
data = json.load(f)

Output: {'name': 'Bob', 'languages': ['English', 'Fench']}

print(data)`

somber heath
#

I usually do this.

with open('json.json', 'r') as file:
    data = json.loads(file.read())```
tall latch
#
    add = json.load(fh)
  File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\json__init__.py", line 293, in load
    return loads(fp.read(),
io.UnsupportedOperation: not readable```
#
Traceback (most recent call last):
  File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\client.py", line 333, in _run_event
    await coro(*args, **kwargs)
  File "Bot1.py", line 11, in on_message
    data = json.load(file)
  File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
  File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\json\__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)```
somber heath
#
_list = [1,2,3]
with open('file.json', 'w') as file:
    file.write(json.dumps(_list))
with open('file.json', 'r') as file:
   data = json.loads(file.read())
print(data)```
#

Lesson of the day: Avoid writing JSON by hand if you can avoid it. If you choose to not avoid it, know what it's supposed to look like and save it with the right encoding.

#

Maybe. I don't know. I'm making educated guesses.

tall latch
#
with open(jsonName, "w") as fh:
                add = json.loads(fh.read())
                add["users"][str(message.author.id)] = {
                "point": 0,
                "level": 0
                }
                fh.seek(0)
                json.dump(json, fh)
                fh.close()```
somber heath
#
with open(jsonName, 'r') as fh:
    add = json.loads(fh.read())

add["users"][str(message.author.id)] = {"point": 0, "level": 0}

with open(jsonName, 'w') as fh:
    file.write(json.dumps(add))```
#

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

earnest scarab
#

thanks mate

tall latch
#
            with open(jsonName, "w") as fh:
                newlevel = json["users"][str(message.author.id)]["level"]
                if points > 0 and level == 0:
                    level += 1
                elif points == level * 11:
                    level += 1
                json.dump(json, fh)```
somber heath
#
import json
file = open('file.json', 'r')
json = json.loads(file.read()) #Overwriting the json module with a dict
json['apple'] = 'red'
file.write(json.dumps(json)) #json was overwritten, so you're trying to use dict.dumps, which doesn't exist
#let's assume that worked despite it being wrong
file.close()```
#
list = list('abc')
list == ['a', 'b', 'c']
list = list('abc') #Same as above? Think again. This is  trying to do list = ['a', 'b', 'c']('abc')
#Above line raises an exception, because a list instance is not a callable function```
#

Better to write _list = list('abc')

#

Overwiting builtin objects or modules is evil and is to be avoided.

tall latch
#

opal it is not working still

#

the data is not updating

#
with open(jsonName, "r") as fh:
                mod = json.load(fh)
            newlevel = mod["users"][str(message.author.id)]["level"]
            newPoints = mod["users"][str(message.author.id)]["point"]
            newPoints += 2
            if points > 0 and level == 0:
                level += 1
            elif points == level * 11:
                level += 1
            with open(jsonName, "w") as fh:
                json.dump(mod, fh)```
somber heath
#

Don't nest your withs

tall latch
#

it aint nested

somber heath
#

I'm looking right at it.

tall latch
#
            with open(jsonName, "r") as fh:
                mod = json.load(fh)
            newlevel = mod["users"][str(message.author.id)]["level"]
            newPoints = mod["users"][str(message.author.id)]["point"]
            newPoints += 2
            if points > 0 and level == 0:
                level += 1
            elif points == level * 11:
                level += 1
            with open(jsonName, "w") as fh:
                json.dump(mod, fh)```
#

how is it nested lol

somber heath
#

Fix your indents so it appears correctly on discord.

tall latch
#

kk

#

did

somber heath
#

You really haven't.

tall latch
#

what u mean

#

this is how my code looks

somber heath
#

Send a screenshot.

tall latch
#

ok

somber heath
#

mod["users"][str(message.author.id)]["point"] += 2

tall latch
#

its almost 4 am here

somber heath
#

@tall latch I can't hear a word you're saying.

#

Your network is distorting you baaaad.

#

Maybe give voice chat a rest for now.

#

@tall latch Suggestion: Mute yourself. Listen, but type in here.

tall latch
#

ok

#

it working except of one thing

somber heath
#

mm?

tall latch
#

f"Level: {level}\nXP: {points}/{level*11}"

#

this is giving me

somber heath
#

Backslashes in f-strings are a no-no. Use str.format instead, or multiline strings.

tall latch
#

Backslashes in f-strings are a no-no. Use str.format instead.
@somber heath maybe but it works

#

u can speak

somber heath
#

Oh, well, if it's not complaining, okay.

tall latch
#

opal

somber heath
#

Maybe I don't feel like talking.

tall latch
#

ok

#

maybe math not working correctly

somber heath
#

I would say that's your issue.

tall latch
#

yes

#

its math not working

somber heath
#

Muuute

tall latch
#

bye

#

i go sleep

somber heath
#

Ciao ciao

whole bear
#

hello

whole bear
#

What is that

rigid nest
#

my desktop

whole bear
#

ok

#

i basically have the same specs

whole bear
#

In high school is there coding classes?

still pond
#

yea

rigid nest
#

apparently, these guys are super lucky

whole bear
#

for electives

still pond
#

yea

whole bear
#

ok

#

which code is easier python or java because im doing python

still pond
#

python seems easier to me

#

Less jargon for you to start coding

whole bear
#

what is HTML for

rigid nest
#

web

whole bear
#

is that the thing where i press inspect on my pc and that code that is HTML

#

Gold digger jkjk

#

JKJKJK

#

Be like Bill gates

rigid nest
#

be a rich gal

whole bear
#

ye

still pond
#

The goal is to learn on the job then ditch the company and start a start up

whole bear
#

yall can be like warren buffet and invest in stocks

#

Yeah

#

I heard that as well

#

wot

#

wow

#

your mad

#

wow

#

what does def do in python

rigid nest
#

function

whole bear
#

ok

main sierra
#

so

whole bear
#

can you give me a example of it

main sierra
#

he studyed this stuff for 8 mouths

#

and got a job

#

savage

whole bear
#

BRUH

#

he is really dedicated

rigid nest
#
def foo(n, k):
  return n * k
whole bear
#

bye

#

thx

main sierra
#

bye

slate oracle
#

look at profile

#

Happy?

#

my nose

#

Im out bosy

#

boys

#

my frend pigging me

rigid nest
whole bear
#

hi

slate oracle
#

im back boys

main sierra
whole bear
#

hm

slate oracle
#

lol

#

screen shots?

#

@regal quiver screenies?

#

Do iot

#

preface with ```python

regal quiver
#

teamRoster = ['Nathan', 'Toby']

print('Welcome to the Team Manager!')

def mainMenu():
print('===========Main Menu===========')
print('1. Display Team Roster.')
print('2. Add Member.')
print('3. Remove Member.')
print('4. Edit Member.')
print('9. Exit Program.')
return

def menuSelection():
selection = int(input('Selection: '))
return selection

def displayRoster():
print(teamRoster)
return

def addMember(name):
selection = input("Enter new member's name: ")
teamRoster.append(name)
return selection

def removeMember(name):
selection = input("Enter member name to be removed: ")
teamRoster.remove(name)
return selection

rigid nest
#
def foo(x, y):
  return x + y