#voice-chat-text-0

1 messages Β· Page 414 of 1

primal shadow
#

@wind raptor

#

1983

#

@rugged root

#

you are mistaken

#

Enterprise, they love licenses

rugged root
unique wyvern
primal shadow
#

Because they're named after photo styles

#

portraits of people are gneerally up / down

#

well

#

images

#

and a landscape is generally wider than tall

desert vector
#

yeah i'm just being silly

#

:3

primal shadow
#

Just like we carry phones, not computers

#

Though, outside ordering takeout, I don't recall the last time I actually had a legit phone call on said copmuter

#

ooh, a copmuter

#

That would be a great invention

#

FTP

#

Is landline service even a thing these days?

#

Or has it mostly gone VOIP

warm jackal
#

I've struggled w/voice for a little while, can people hear me?

unique wyvern
primal shadow
#

More recent years scale more linearly whereas prior years it was random across hte board?

rugged root
desert vector
#

academy :3

rugged root
#

Please send the report to @rapid crown. It lets all the mods+ look at it and address it

unique wyvern
#

The Unlicense is a public domain equivalent license for software which provides a public domain waiver with a fall-back public-domain-like license, similar to the CC Zero for cultural works. It includes language used in earlier software projects and has a focus on an anti-copyright message.

rugged root
unique wyvern
rugged root
#

sfc /scannow; dism /online /cleanup-image /restorehealth; sfc /scannow

whole bear
#

Hello chat

meager forge
#

@rapid mauve what help you need

whole bear
#

You can’t fix me, Kritix. Only she could have, but she only exists in my head.

latent imp
#

Hola amigos

latent imp
upper basin
upper basin
unique wyvern
upper basin
rugged root
#

@minor nest Yo

minor nest
#

yo! how's it going?

rugged root
#

Alright so far. Troubleshooting some weird crap going on with my computer. Standard IT life

minor nest
rugged root
#

I thought it was more common knowledge

unique wyvern
dapper mist
#

Can someone tell me the website used to generate those Slime like procedural art?

grim flare
#

@unique wyvern press this button ctrl + -

#

too zoom out in this code

rugged root
short owl
#

aliens got em

short owl
#

bacon and eggs mmmmm

#

cooked in a sawwwwnA

#

Bjork song - quiet something @peak depot

#

zubba zubba @midnight agate

rugged root
#

@midnight agate I'll leave so you can rejoin and talk

#

Didn't mean to spoil your fun

#

I'm fighting computer issues anyway

#

@midnight agate Genuinely, I'm not going to be on VC the rest of the day

edgy edge
#

Hi @unique wyvern

civic burrow
#

helo

#

tleo

edgy edge
#

helo

edgy edge
#

hey @unique wyvern

#

@unique wyvern I need help testing a website

#

Mind helping out?

#

It's just simple

#

it uses authorization

#

discord authorization

#

@pulsar meteor gets username

#

it's a chatting website

#

it does not change anything

#

@pulsar meteor, no it would tell you I get your email

#

Yoo

#

It worked

#

@pulsar meteor see?

#

liked it?

#

hey @pulsar meteor

#

I am enhancing it

#

because it stores the ip address with your username

#

so if you refresh, no need to authorize again

#

just checks your IP Address, then assigns the username

#

But I am changing that

#

so now, it will check if you are still authorized

#

cuz naughty people will unauthorize

#

oo

#

ip4v address

#

so I use cookies?

#

what if i eat them.

#

I wish there was a way to do it

#

from discord

#

I have a stupid idea

#

make it into discord

pulsar meteor
edgy edge
#

it's the main page

#

I prefer suffering with IP address

#

easiest thing I could do

#

Once I finish the Authorization check I can continue

#

@pulsar meteor python

#

this is python server

#

python is backend

#

idk about websites as much

#

new ERRORR

twin token
#

why django sucks

edgy edge
#

om

#

omg

#

so much errors

#

chatgpt is slow asff

#

hey @pulsar meteor

#

Use qwen

#

it's better than deepseek

#

everything is terrible

pulsar meteor
olive marsh
edgy edge
#

how smart qwen is

#

were you even in the vc?

#

@pulsar meteor My thing is coming along

#

YESS IT WORKEDD

#

it finally checks if the code is valid

#

so now you get no access to the website unless my bot is authorized in your account

#

also I accidently deleted your auth

#

I need to make it delete the lines with invalid code

#

cuz it always checks the oldest of your authorization

somber heath
#

@brave quartz @crude edge @fading knoll πŸ‘‹

edgy edge
#

like for example.

  1. frazermc - blahblahblahrandomcode <-- Invalid
  2. frazermc - moreblahrandomcode <-- Valid

It will always check the first one no matter what.
So, it should delete the first one and check the second one.

#

Hey @pulsar meteor

somber heath
#

@torpid crater πŸ‘‹

edgy edge
#

It works

torpid crater
edgy edge
#

@somber heath Ask the service, I never manually picked them.

#

I use the free service, they generate them.

#

@pulsar meteor GTG soon, please try it out.

#

@pulsar meteor huh?

#

authorize

#

...

#

oh

#

works perfectly for me

#

I am getting nothing

pulsar meteor
#

79.135.105.2

somber heath
#

@spiral lark πŸ‘‹

edgy edge
edgy edge
#

same url

#

my requests are being spammed

#

try sending a message

#

did not go through

#

lemme try

#

fixing it

#

I will go sleep when I fix it

#

I dont have a seperate discord

#

just wait a little bit

#

done

#

try it out

#

ooo

#

WORKED

#

YESS

#

thanks man

#

It always check if you are authorized

#

thats why it is slow

#

not always, but when you send a message

#

@unique wyvern is losing his sanity

#

goodbye @pulsar meteor

somber heath
#

@distant sun πŸ‘‹

#

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

somber heath
#

@untold talon πŸ‘‹

untold talon
somber heath
#

@analog violet πŸ‘‹

#

!e ```py
my_bytes = b'abc'

for value in my_bytes:
result = bytes([value])
print(repr(result))```

wise cargoBOT
unique wyvern
#

!e

my_bytes = b"abc"
for i in range(len(my_bytes)):
    print(repr(my_bytes[i: i + 1]))
wise cargoBOT
unique wyvern
#

!e

my_bytes = b"abc"
for i in my_bytes:
    print(repr(i.to_bytes()))
wise cargoBOT
rugged root
#

Yo

torpid crater
#

Guys

rugged root
#

Person

primal shadow
#

Human?

#

or lizardperson

torpid crater
#

Wut?

primal shadow
#

IDK

torpid crater
#

Anyways

rugged root
#

What's up

torpid crater
#

Can you help me with a Cython problem??

#

I'm struggling to fix it

rugged root
#

What's the issue?

main comet
torpid crater
#

I've opened a issue on the project that I'm having that prob

wise loom
#

I love independent software success stories

#

they're so f-ing awesome when I read something like that it really brightens my day

unique wyvern
brave quartz
#

Does any one now the kuramoto model?

unique wyvern
main comet
rugged root
brave quartz
rugged root
#

Saw the model description, saw the symbols, instantly remembered that I only took up to College Algebra

main comet
main comet
unique wyvern
#
>>> 2**32
4294967296
>>> import sys
>>> sys.maxunicode
1114111
hardy sinew
#

hai furry

#

am pretty gud

whole bear
#

furry police is here

whole bear
#

Why do u fake ur accent

#

Jk

#

Can u say bottle of water

#

Thank u

#

Crickey

#

Please say the most Australian sentence

#

Do u know superwog?!?

#

Do u have pet spider

somber heath
#

@torn oracle πŸ‘‹

whole bear
#

Is it true that u guys live upside down

#

Defying gravity and what not

timid iris
#

ive only used it for cryptography algos

whole bear
#

Hey opal

#

The person is not in the voice chat

#

But this is good to know

hardy sinew
#

hai birb

#

what r u doin

#

puppy?

#

oh

#

what did u say

#

oooh

ocean cape
#

hello

hardy sinew
#

u mean ur helping someone?

#

hai cola

#

bai cola

#

I feel like making more music but idk what it should be like

whole bear
#

Hmm

somber heath
#

@crimson plover πŸ‘‹

whole bear
#

Good night opal

versed solar
#

@somber heath @hardy sinew do you mind if i join in a bit and inquire a few things?

hardy sinew
#

u can join any time

somber heath
versed solar
#

alright ill be there in a bit, im working on trying to figure something out outside of py.

hardy sinew
#

hai

versed solar
#

πŸ‘‹

spice loom
#

wth is github

somber heath
#

@whole bear πŸ‘‹

versed solar
#

hello @hardy sinew

#

dang no permission

#

@tacit crane can i ask a question or two with some help?

hardy sinew
versed solar
#

can i ask a few obfuscation based questions?

hardy sinew
#

I don't think I would be able to help much if it's advanced

#

but u can ask

versed solar
#

well it's not, im not very advanced myself

hardy sinew
#

oki I can try answer

versed solar
#

its more so how to begin, ive seen oxyry obfuscator thrown around and wondered if thats a good place to start?

#

as in learning how to OBFUSCATE and then reverse engineer it back to your source code

hardy sinew
#

I don't think I know srry

versed solar
#

ah thats all fine

hardy sinew
#

gl <3

versed solar
#

this is what my srouce looks like as of now, lol

hardy sinew
#

:o

versed solar
#

yes it is a selfbot but still eh theyre kind of fun to mess about with, and i only use it in my server so i see no harm.

hardy sinew
#

ye

versed solar
#

i have one developed in node js as well

#

much more fun then py, python is only available with d.py==1.7.3

#

node.js has a library that is updated alot, and uses much more of the available options.

#

though i will say, python is much easier to wait for things, you have to make a function for that yourself in js.

#
function sleep(ms) {
  return new Promise((resolve) => setTimeout(resolve, ms));
}
#

example

#

js is fun to obfuscate though, you arent limited to single lines like you are in python, imagine how unreadable that can be if you try just with that alone...

#
function sleep(
    ms          ) {
    return new 
        Promise(
    (   resolve         )  =>  setTimeout(
            resolve, 
    ms
        )
    );
  }
#

example ^^

#

this would STILL do the same thing the above function would have done.

somber heath
#

@grim rampart πŸ‘‹

edgy edge
#

@chilly wolf your emo

#

hi @jade mountain

somber heath
#

@whole bear πŸ‘‹

whole bear
jade mountain
edgy edge
#

@chilly wolf I am just joking, your nice.

#

I am most of the time sarcastic

#

zack king

#

beer is shit @somber heath

#

alcohol in general should be thrown in the fucking garbage

#

@astral coral you drink alcohol?

astral coral
#

not really

#

on occasion

edgy edge
#

bruh

astral coral
#

I smoke instead :L

#

African wild dog (Lycaon pictus) @somber heath

#

Yes, there is a wild dog known to pollinateβ€”the African wild dog (Lycaon pictus) has been observed as a pollinator of the Impala Lily (Adenium multiflorum), but not in the way bees or butterflies do.

Is it intentional?
No. The pollination is a byproduct of another behavior rather than a first-hand or intentional act.

How does it happen?
African wild dogs are curious and often sniff, rub against, or interact with flowers as they explore their environment. Their snouts and fur pick up pollen from flowers like the Impala Lily, and when they move to another plant, some of that pollen gets transferred.

Does pollen serve a direct purpose for the wild dog?
No, unlike bees or butterflies, which actively consume pollen or nectar, wild dogs do not use pollen as a food source. They are purely carnivorous. The pollination occurs accidentally as a side effect of their movements.

This is similar to certain fruit-eating mammals (like bats and primates) that pollinate by transferring pollen while feeding, but in the case of wild dogs, it's even less directβ€”more of an ecological coincidence than a true pollination strategy.

astral coral
#

I'd be so impressed if Valve made a Glados LLM

edgy edge
#

my connection is so FUCKING SLOW

toxic viper
#

awwww!!

astral coral
#

@chilly wolf

jade mountain
astral coral
jade mountain
#

@astral coral thoughts?

chilly wolf
jade mountain
#

he doesnt care if it can get email he said no

#

video in pygame :DDD

urban abyss
astral coral
astral coral
#

@chilly wolf

quartz beacon
#

@somber heath

somber heath
quartz beacon
somber heath
#

Yep.

#

mini break for a bit

#

I think I have one more alcove in me

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @quartz beacon until <t:1740227096:f> (10 minutes) (reason: attachments spam - sent 7 attachments).

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

astral coral
#

@chilly wolf

#
    if target is None or not hasattr(target, 'rect'):
        return x, y 

    target_x, target_y = target.rect.center 
    dx = target_x - x
    dy = target_y - y
    distance = math.hypot(dx, dy)

    if distance > 0: 
        dx /= distance  
        dy /= distance

    movement = speed * dt

    if distance < movement:
        movement = distance 

    x += dx * movement
    y += dy * movement
    return x, y```
#

??

chilly wolf
#

I'm okay

whole bear
#

Hello πŸ‘‹

chilly wolf
#

Hi there

edgy edge
#

?info

whole bear
chilly wolf
#

LMao

whole bear
#

Byd

astral coral
edgy edge
#

hey @astral coral

#

:(

#

I got no active friends..

#

it worked

#

no, it sends messages to a discord server

#

my discord server

chilly wolf
#

why would someone want to send messages to your discord server?

edgy edge
#

I got no ideas in my mind

#

and looks cool

#

Atleast it does not use discord authentication

#

@astral coral I am a pro..

#

at getting errors

#

real

#

99.9% errors

#

0.1% satisfaction

whole bear
#

Hello

#

My fellow

#

VC Member

#

how you all doing

#

I hope you are doing bad

#

May god curse you all

chilly wolf
#

That seems rather harsh

#

Why should God curse me?

#

Ah, I see, you're not going to say. Good talk then.

whole bear
#

Why should he curse you?

#

When god doesn't exists

chilly wolf
#

Then why did you suggest he should?

whole bear
#

Why not?

chilly wolf
#

Because it's rude.

whole bear
#

Hmm

#

it would be rude to religious person

chilly wolf
#

I'm not a religious person, your intent with such statements is what matters here.

whole bear
#

My intention are not my word

#

If it was, you won't be alive

chilly wolf
#

See, that is plain not cool. Why would you will a person you know nothing about to not be alive?

whole bear
#

I know!

#

I read a book "The manipulated Man".
In that book she mentioned how woman make set of requirements and condition, if you as man fulfill the requirement you'd be called masculine .

I'm not meant to be nice to everyone, I shouldn't not be.

primal shadow
chilly wolf
primal shadow
whole bear
#

Those who don't care they don

#

don't bother

#

or don't want to argue

chilly wolf
whole bear
#

and it seems you want apology from me

wise cargoBOT
whole bear
#

Common this should not be like reddit

chilly wolf
primal shadow
#

problem lol

whole bear
#

Okay I will leave server my bad

primal shadow
#

that's a word I would not use to describe this

whole bear
vocal basin
astral coral
#

sheep? :3

tacit crane
primal shadow
#

look at the votes to comments ratio

#

the people do not agree

#

this is a glorious win, not infuriating at all

edgy edge
primal shadow
#

To make the curse more offensive I'd guess

#

it bears more weight for those who do believe curses can be cast via chat

edgy edge
#

People are sad, like jigar

primal shadow
#

We all have emotions

#

Good to experience the full range throughout life

#

Can you really know happiness if you've never felt sadness?

#

Can you truly enjoy the taste of victory having never suffered defeat?

crystal fox
primal shadow
#

@tawdry depot welcome

livid hemlock
#

Im a frickin mute still

#

Unlucky

primal shadow
dry jasper
#

@peak depot

peak depot
#

Not food, but still cute

dry jasper
#

lol the look

somber heath
#

@arctic shore @ocean swan πŸ‘‹

astral coral
#

@chilly wolf

#

@frosty shell

frosty shell
#
primal shadow
#

I would prefer storing them for better tracking than an algo to determine which are legit and random generation

#

but it depends on the use case

nova stream
#

Hi! Could you please tell me, how can i safely validate that that 12 characters promocode was generated by my system ( or by existing user)? Should I split it to the base part and signature part and use secret key to generate signature? If so, why dont make whole 12 ch as a signature?
The other approach- I store all generated codes in a table, so I just can check whether they present there or not.

primal shadow
#

the order of this conversation amuses me

nova stream
primal shadow
#

who cares?

#

are they signing up for an account?

nova stream
nova stream
primal shadow
#

For?

nova stream
#

for a referral program, the one who enters gets the bonus

#

the other user generates it

primal shadow
#

You'd still need to hit the DB to decode and figure out who's it is, so you're either storing the result of the operation as a column, or running it against each row of the column

#

which sounds like a db query or a db query with many function calsl

#

though I guess if you can decode first, which is then still a query against the DB

#

so either way, you're accessing the DB, but in this particular case, I'd use the algo

#

since it's just tying back to a user

#

for referrals

#

which is your tracking, I was thinkign coupon type promo codes that you're giving out

#

and tracking which channels get the best results

nova stream
#

I dont need to decode, I just need to prevent someone to fake it, it's just an entry ticket

nova stream
primal shadow
#

I'm not exactly sure what the objective is

#

so I can't really say what the best option is

nova stream
#

existing user generates promocode to invite new one, he sends it to him, when new user enters promocode, we should verify that this promocode was produced by our system and not randomly generated. when the promocode is entered the tracking begins and we now the pair of referee and referrer the rest is just busness logic

primal shadow
#

why generate new codes?

#

If I send 2 referrals, are they the same code?

nova stream
primal shadow
#

So each code is one time use?

nova stream
primal shadow
#

So you need to store each generated code

#

and track who created it and that it was claimed

nova stream
primal shadow
#

no

primal shadow
#

what if I refer two people

#

you should have a table for tracking codes

#

I'd probably throw a generated date and claim date as well

#

and of course who claimed it

nova stream
nova stream
# primal shadow and of course who claimed it

all that stuff I already have, now I need an optimal way to validate code, the simplest thta comes to mind is just search in generated codes table and if threre is no profile uuid for the entered code, then throw an error

primal shadow
#

I'd just query the table for hte code, yea

#

index on the code as well

rich cargo
#

Hi

primal shadow
#

That's your real solution to speed things along, the index

#

Hello

#

welcome\

nova stream
rich cargo
#

Sup

primal shadow
#

That sounds complex

#

occam's razor

shrewd dust
#

.

astral coral
whole bear
#

Unreadable code

main comet
edgy edge
#

hello

limber lion
#

Hello

astral coral
#

@limber lion here

gritty belfry
#

hello

limber lion
#

Alr, thanks

gritty belfry
#

how many?

limber lion
#

50?

#

Alr

gritty belfry
#

okay

#

i was in this server like 2 years ago

#

lol

limber lion
#

Wish spam exitsts =0

gritty belfry
#

alr thanks!

#

what you building nowadays

limber lion
#

programs

gritty belfry
#

like

#

what exactly

limber lion
#

For me, I'm just learning now, nothing new.

#

Cybersecurity

gritty belfry
#

cool cool

limber lion
#

Thank you

gritty belfry
#

need to go i have exams coming up

#

byee

limber lion
#

See you

#

So uhh...

  • 50 messages
  • ?
  • ... (?)
#

Yes, a lot

#

blocks = channels?

#

Sorry, i... uh... idk

#

Alr

#

Thanks

#

yes?

#

alr

#

such inconvinience by voice laws =/

#

Have to follow anyway

#

ah, you're good

astral coral
#

@random sky

random sky
#

Hii Thanks to give me the chat Access @astral coral

astral coral
#

I didn't ?

somber heath
wise cargoBOT
#
Voice verification

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

somber heath
#

@limber lion πŸ‘‹

astral coral
#

like red make like a header or something, lower size of green

#

font size*

#

idk

limber lion
somber heath
#

@drifting dune πŸ‘‹

jade mountain
#

:3

drifting dune
#

-grafana

drifting dune
#

Hi

astral coral
#

@somber heath

jade mountain
#

:3

limber lion
#

ROP is confusing

astral coral
limber lion
#

All I saw is just bunches of zeros

#

And hexes

astral coral
limber lion
#

50 messages

#

When can I done>

astral coral
#

@timid quartz

somber heath
#

@frosty grove πŸ‘‹

frosty grove
astral coral
somber heath
#

Rekorderlig

astral coral
limber lion
somber heath
#

@plush oyster πŸ‘‹

plush oyster
#

hello

#

@somber heath

somber heath
#

!guilds @waxen barn

wise cargoBOT
#
Communities

The communities page on our website contains a number of communities we have partnered with as well as a curated list of other communities relating to programming and technology.

somber heath
#

@stiff nebulaπŸ‘‹

stiff nebula
#

hello

jade mountain
astral coral
#

value

jade mountain
#

value

#

valueo

whole bear
#

hello

limber lion
#

Hello

crude edge
#

hello

somber heath
#

@brisk condor πŸ‘‹

brisk condor
#

?

somber heath
#

You joined the voice chat.

brisk condor
#

it was an error

somber heath
#

Very well.

chilly wolf
#

Oop

#

Was about to connect to VC, ah well

astral coral
#

@chilly wolf you still about?

chilly wolf
#

Still up 'n' at 'em

astral coral
#

:L

#

join VC

astral coral
chilly wolf
#

mage-y

#

not mag-ey

astral coral
astral coral
edgy edge
#

hi @astral coral

#

look what I made

astral coral
#

1401120506

vocal basin
astral coral
#

{"field:"", list: { "entity": 1}}

vocal basin
#

(that's not valid JSON)

#

but it is valid JS

primal shadow
#

Is it?

#

I don't think it is

vocal basin
#

oh wait

primal shadow
#

"field

vocal basin
#

yeah, missing "

astral coral
#

""

#

thank you

vocal basin
#

I'm trying to recall where exactly I saw the diagram of how JSON is structured, probably whatever the main website for it is

#

for some reason thinking it looked the same as graphics on sqlite website

#

time to check if I remember correctly

#

hmm

#

what do you want to stream?

#

given that it's rimworld, just make sure the typical rimworld stuff doesn't get on screen

#

yes, it's still weekend

#

!stream 1157723305265078272

wise cargoBOT
#

βœ… @astral coral can now stream until <t:1740340074:f>.

vocal basin
#

the reasons why it's banned in some countries I mean

#

rimworld is not an entirely pg-13 game

#

@sinful phoenix πŸ‘‹

#

yeah, just regular gameplay should be fine

sinful phoenix
#

@vocal basin Hi πŸ‘‹

vocal basin
chilly wolf
#

how pg-13 is Armored Core VI?

#

There's no blood or human on human violence, but there are robots shooting each other

vocal basin
#

avoid reposting that

#

(please delete)

pearl gyro
#

What's the name of the game being played again?

chilly wolf
vocal basin
#

!stream 1157723305265078272

wise cargoBOT
#

βœ… @astral coral can now stream until <t:1740340473:f>.

vocal basin
chilly wolf
#

I'll show you a gif of the extent of it

vocal basin
#

I've looked it up already, seems fine mostly

pearl gyro
#

Come on Peeps. Spill it

chilly wolf
chilly wolf
#

That gif is basically the whole game

#

mech battles and stuffs

pearl gyro
vocal basin
#

I might have to go soon

#

in, like, 5 minutes

#

no, that's just default

#

it doesn't stop the stream automatically

#

@astral coral okay now I do need to go, so please stop the stream

golden sonnet
#

hi there!

chilly wolf
#

Hello!

#

How's it going?

golden sonnet
#

am good
thanks

zinc siren
#

.

ivory stump
#

Matplotlib lists NumPy as a dependency :)

#

Although you don't need to touch NumPy at the user level to work with Matpotlib

chilly wolf
#

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

ivory stump
#

And what is it that you are trying to build?

chilly wolf
#

@rich star ^ Paste your code here and I will look at it

ivory stump
#

!stream 127918276574445568

wise cargoBOT
#

βœ… @rich star can now stream until <t:1740343711:f>.

ivory stump
#
def with_hidden_state():
    hidden_state = 0
    def inner(arg):
        nonlocal state
        ...
    return inner

outer = with_hidden_state() # outer is a callable function
loud willow
#

do u guys have a good begginer course online for free?

golden sonnet
#

!res also check out the link here

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.

candid spire
#

!e

print("Hello Voice Call")
wise cargoBOT
ivory stump
candid spire
#

Do you know that Big Foot can cood!

#

But he ain't be coding for you or anyone

#

guess why?

#

Cause he hates Human!

#

How old are you?

#

Working?

#

In USA?

#

Your accent is understandable unlike most British.

#

You do?
But I can hear you loud and clear with little to no problem, most British here sound so weird to me.

#

Say water of bottle @ivory stump

#

You ain't british

#

When they speak they sound weird to me

#

Yeti is my lost cousin!

#

My foot itself stonks!

#

Really?

#

You have foot fetish?

#

@ivory stump Show the cod!!

#

code

wind raptor
#

cod

candid spire
#

Group Project?
You're making a college project?

lusty kernel
candid spire
#

@ivory stump Use JetBrains Mono as font for VScode

twin python
#

anyone who uses telegram or reddit and has some tech related groups which share thir projects and idea or news?

main comet
tall snow
#
newerSchools = []
for k, v in umSchools.items():
    if v > 1899:
        newerSchools += (k)
print(newerSchools)
somber heath
#
(k,)```
tall snow
#

Using the umSchools dictionary defined in the first cell, write code to add the name of every school that was founded in the 20th century (after 1900) into a list newerSchools. Print the list newerSchools as shown below.

somber heath
#
(k) == k```
tall snow
#
umSchools = {
  "A. Alfred Taubman College of Architecture & Urban Planning": 1906,
  "College of Engineering": 1854,
  "College of Literature, Science, and the Arts": 1841,
  "Gerald R. Ford School of Public Policy": 1914,
  "Horace H. Rackham School of Graduate Studies": 1912,
  "Penny W. Stamps School of Art & Design": 1974,
  "School of Dentistry": 1875,
  "School of Education": 1921,
  "School of Information": 1996,
  "School of Kinesiology": 1984,
  "School of Law": 1859,
  "School of Medicine": 1850,
  "School of Music, Theatre & Dance": 1880,
  "School of Natural Resources & Environment": 1927,
  "School of Nursing": 1893,
  "School of Pharmacy": 1876,
  "School of Public Health": 1941,
  "School of Social Work": 1951,
  "Stephen M. Ross School of Business": 1924
}
somber heath
#

!e py my_list = [] my_list += 123

wise cargoBOT
somber heath
#

!e py my_list = [] my_list += (123)

wise cargoBOT
somber heath
#

!e py my_list = [] my_list += (123,) print(my_list)

wise cargoBOT
tall snow
#

huh

#

so, i had to make it a tuple?

somber heath
#

+= follows list.extend

#

not list.append

onyx arrow
#

newerSchools = []
for k, v in umSchools.items():
if v > 1899:
newerSchools.append(k)
print(newerSchools)

#

!e

wise cargoBOT
#
Missing required argument

code

onyx arrow
#

!e newerSchools = []
for k, v in umSchools.items():
if v > 1899:
newerSchools.append(k) # Correct way to append the whole key
print(newerSchools)

wise cargoBOT
somber heath
#

list.append being what you could also do, as above demonstrated

tall snow
#

Expected Output:
A. Alfred Taubman College of Architecture & Urban Planning was founded in the 20th century.
Gerald R. Ford School of Public Policy was founded in the 20th century.
Horace H. Rackham School of Graduate Studies was founded in the 20th century

main comet
#

!e

umSchools = {
    "A. Alfred Taubman College of Architecture & Urban Planning": 1906,
    "College of Engineering": 1854,
    "College of Literature, Science, and the Arts": 1841,
    "Gerald R. Ford School of Public Policy": 1914,
    "Horace H. Rackham School of Graduate Studies": 1912,
    "Penny W. Stamps School of Art & Design": 1974,
    "School of Dentistry": 1875,
    "School of Education": 1921,
    "School of Information": 1996,
    "School of Kinesiology": 1984,
    "School of Law": 1859,
    "School of Medicine": 1850,
    "School of Music, Theatre & Dance": 1880,
    "School of Natural Resources & Environment": 1927,
    "School of Nursing": 1893,
    "School of Pharmacy": 1876,
    "School of Public Health": 1941,
    "School of Social Work": 1951,
    "Stephen M. Ross School of Business": 1924
}

newerSchools = []
for school in umSchools:
    # Use umSchools[school] instead of umSchools["school"]
    if umSchools[school] > 1899:
        # Append the year or the school name as needed
        newerSchools += (umSchools)
        print(school)
wise cargoBOT
# main comet !e ```py umSchools = { "A. Alfred Taubman College of Architecture & Urban Pl...

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | A. Alfred Taubman College of Architecture & Urban Planning
002 | Gerald R. Ford School of Public Policy
003 | Horace H. Rackham School of Graduate Studies
004 | Penny W. Stamps School of Art & Design
005 | School of Education
006 | School of Information
007 | School of Kinesiology
008 | School of Natural Resources & Environment
009 | School of Public Health
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/CZOMPQ7HUXAFJFZWZTNQWIWFBE

main comet
tall snow
#
newerSchools = []
for k, v in umSchools.items():
    if v > 1899:
        newerSchools += (k,)
for school in newerSchools:
    print(school, 'was founded in the 20th century.')
onyx arrow
#

!e newerSchools = []
for k, v in Schools.items():
if v > 1899:
newerSchools += [k]
print(newerSchools)

wise cargoBOT
main comet
tall snow
#
newerSchools = []
for k in umSchools.keys():
    if umSchools[k] > 1899:
        newerSchools.append(k)
for school in newerSchools:
    print(school, 'was founded in the 20th century.')
#

Problem 4
Given the string paragraph below, write code to determine the most common word in the string and assign it to the variable commonWord, assign the frequency to maxWordCount. The is a case insensitive frequency which means that case must be disregarded.

There are two parts:

The first part requires a loop that builds a dictionary of words and their frequency.
The second part requires a max accumulation pattern to find the word with the largest count.
A) Do the following to build the frequency dictionary:

Split the paragraph into words and store in a variable.
Initialize an empty dictionary
Iterate over the variable:
You need to remove punctuation from the word.
If the last character in the word is a ".", ",", or a ";":
Remove the last character in the word
Convert the word to lowercase.
If the word is in the dictionary:
Increment the value associated with the word.
Otherwise:
Initialize a new key using the word and assign 1 to the value
B) Determine the word with the largest frequency:

Iterate over the keys dictionary created in part A.
if the value associated with current key is greater than maxWordCount:
Store the current key in commonWord.
Store the value of the current key in maxWordCount.
C) Print

Print commonWord and maxWordCount as shown below.
Punctuation in the sentence must be removed as your code processes the word. You will also need to convert the word to lowercase. You may use the split, the in operator, and the lower function.

#

My current code: ```py
paragraph = """
He was getting old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""

write your code below

allWords = paragraph.split()
print(allWords)

#

Expected Output:
he is the most common word with 4 occurences

#
paragraph = """
He was getting  old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""
# write your code below
allWords = paragraph.split()
deletelist = ['.', ',', ';']
for x in deletelist:
    if x in allWords:
        print('hello')
vernal apex
#

i cant talk

#

in this chat

primal shadow
#

That's normal

#

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

main comet
#

!e

paragraph = """
He was getting  old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""
# write your code below
words = ""
for word in paragraph:
    letters = ""
    for char in word:
        if 'a' <= char <= 'z' or 'A' <= char <= 'Z' or char == ' ':
            letters += char
    words += letters

print(words)
wise cargoBOT
tall snow
#

!e

alist = [4,2,8,6,5]
blist = alist
blist[3] = 999
print(alist)
wise cargoBOT
dire scroll
#

pop removes

#

you know stack?

#

push add element and pop remove element

#

@tall snow check above

#

yes

#

can i chat here??

#

ok

#

All list methods (from W3schools)

append() Adds an element at the end of the list
clear() Removes all the elements from the list
copy() Returns a copy of the list
count() Returns the number of elements with the specified value
extend() Add the elements of a list (or any iterable), to the end of the current list
index() Returns the index of the first element with the specified value
insert() Adds an element at the specified position
pop() Removes the element at the specified position
remove() Removes the first item with the specified value
reverse() Reverses the order of the list
sort() Sorts the list

tall snow
#
ss = "    Hello, World    "

els = ss.count("l")
print(els)

print("***"+ss.strip()+"***")

news = ss.replace("o", "***")
print(news)
#

!e

ss = "    Hello, World    "

els = ss.count("l")
print(els)

print("***"+ss.strip()+"***")

news = ss.replace("o", "***")
print(news)
wise cargoBOT
tall snow
dire scroll
#

what is this XD

#

even programiz work fine

tall snow
#
paragraph = """
He was getting  old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""
# write your code below
allWords = paragraph.split()
print(allWords)
for words in allWords:
    words.replace(',', '')
print(allWords)
#

!e

wise cargoBOT
#
Missing required argument

code

tall snow
#

!e

paragraph = """
He was getting  old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""
# write your code below
allWords = paragraph.split()
print(allWords)
for words in allWords:
    words.replace(',', '')
print(allWords)
wise cargoBOT
# tall snow !e ```py paragraph = """ He was getting old and paunchy and his hair was fallin...

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | ['He', 'was', 'getting', 'old', 'and', 'paunchy', 'and', 'his', 'hair', 'was', 'falling', 'fast,', 'And', 'he', 'sat', 'around', 'the', 'Legion,', 'telling', 'stories', 'of', 'the', 'past.', 'Of', 'a', 'war', 'that', 'he', 'had', 'fought', 'in', 'and', 'the', 'deeds', 'that', 'he', 'had', 'done,', 'In', 'his', 'exploits', 'with', 'his', 'buddies;', 'they', 'were', 'heroes,', 'every', 'one.']
002 | ['He', 'was', 'getting', 'old', 'and', 'paunchy', 'and', 'his', 'hair', 'was', 'falling', 'fast,', 'And', 'he', 'sat', 'around', 'the', 'Legion,', 'telling', 'stories', 'of', 'the', 'past.', 'Of', 'a', 'war', 'that', 'he', 'had', 'fought', 'in', 'and', 'the', 'deeds', 'that', 'he', 'had', 'done,', 'In', 'his', 'exploits', 'with', 'his', 'buddies;', 'they', 'were', 'heroes,', 'every', 'one.']
dire scroll
#

after replacing your not saving

#

!e
paragraph = """
He was getting old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""

write your code below

allWords = paragraph.split()
new_list = []
print(allWords)
for words in allWords:
words = words.replace(',', '')
new_list.append(words)
print(new_list)

wise cargoBOT
# dire scroll !e paragraph = """ He was getting old and paunchy and his hair was falling fast...

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | ['He', 'was', 'getting', 'old', 'and', 'paunchy', 'and', 'his', 'hair', 'was', 'falling', 'fast,', 'And', 'he', 'sat', 'around', 'the', 'Legion,', 'telling', 'stories', 'of', 'the', 'past.', 'Of', 'a', 'war', 'that', 'he', 'had', 'fought', 'in', 'and', 'the', 'deeds', 'that', 'he', 'had', 'done,', 'In', 'his', 'exploits', 'with', 'his', 'buddies;', 'they', 'were', 'heroes,', 'every', 'one.']
002 | ['He', 'was', 'getting', 'old', 'and', 'paunchy', 'and', 'his', 'hair', 'was', 'falling', 'fast', 'And', 'he', 'sat', 'around', 'the', 'Legion', 'telling', 'stories', 'of', 'the', 'past.', 'Of', 'a', 'war', 'that', 'he', 'had', 'fought', 'in', 'and', 'the', 'deeds', 'that', 'he', 'had', 'done', 'In', 'his', 'exploits', 'with', 'his', 'buddies;', 'they', 'were', 'heroes', 'every', 'one.']
dire scroll
#

check now @tall snow

#

yes

main comet
#

!e

paragraph = """
He was getting old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""
# write your code below
sentince = ""
for word in paragraph:
    letters = ""
    for char in word:
        if 'a' <= char <= 'z' or 'A' <= char <= 'Z' or char == ' ':
            letters += char
    sentince += letters

stuff = sentince.split()

print(stuff)

map = {}
for word in stuff:
    count = stuff.count(word)
    dic = {word: count}
    map.update(dic)

print(map)
wise cargoBOT
# main comet !e ```py paragraph = """ He was getting old and paunchy and his hair was falling...

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | ['He', 'was', 'getting', 'old', 'and', 'paunchy', 'and', 'his', 'hair', 'was', 'falling', 'fastAnd', 'he', 'sat', 'around', 'the', 'Legion', 'telling', 'stories', 'of', 'the', 'pastOf', 'a', 'war', 'that', 'he', 'had', 'fought', 'in', 'and', 'the', 'deeds', 'that', 'he', 'had', 'doneIn', 'his', 'exploits', 'with', 'his', 'buddies', 'they', 'were', 'heroes', 'every', 'one']
002 | {'He': 1, 'was': 2, 'getting': 1, 'old': 1, 'and': 3, 'paunchy': 1, 'his': 3, 'hair': 1, 'falling': 1, 'fastAnd': 1, 'he': 3, 'sat': 1, 'around': 1, 'the': 3, 'Legion': 1, 'telling': 1, 'stories': 1, 'of': 1, 'pastOf': 1, 'a': 1, 'war': 1, 'that': 2, 'had': 2, 'fought': 1, 'in': 1, 'deeds': 1, 'doneIn': 1, 'exploits': 1, 'with': 1, 'buddies': 1, 'they': 1, 'were': 1, 'heroes': 1, 'every': 1, 'one': 1}
dire scroll
#

lol

dire scroll
#

yea yea if use that in old one its very hard to know when you see it

#

wait i need to check

main comet
#

!e

paragraph = """
He was getting old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""
# write your code below
sentence = ""

for phrase in paragraph:  # for phrase in string
    word = ""  # create a temp string variable
    for char in phrase:  # for character in phrase
        if 'a' <= char <= 'z' or 'A' <= char <= 'Z' or char == ' ':  # only include letters and spaces
            word += char  # add each char to the temp word string variable
    sentence += word  # append the word string to the sentence

stuff = sentence.split()  # splits formatted sentence into a list of words

map = {}  # create a dictionary variable

for word in stuff:
    count = stuff.count(word)
    dic = {word: count}
    map.update(dic)

print(map)
dire scroll
#

!e
paragraph = """
He was getting old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""

allWords = paragraph.split()
new_list = []
print(allWords)
for words in allWords:
for i in [',', ';']:
words = words.replace(i, '')
new_list.append(words)
print(new_list)

wise cargoBOT
# dire scroll !e paragraph = """ He was getting old and paunchy and his hair was falling fast...

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | ['He', 'was', 'getting', 'old', 'and', 'paunchy', 'and', 'his', 'hair', 'was', 'falling', 'fast,', 'And', 'he', 'sat', 'around', 'the', 'Legion,', 'telling', 'stories', 'of', 'the', 'past.', 'Of', 'a', 'war', 'that', 'he', 'had', 'fought', 'in', 'and', 'the', 'deeds', 'that', 'he', 'had', 'done,', 'In', 'his', 'exploits', 'with', 'his', 'buddies;', 'they', 'were', 'heroes,', 'every', 'one.']
002 | ['He', 'was', 'getting', 'old', 'and', 'paunchy', 'and', 'his', 'hair', 'was', 'falling', 'fast', 'And', 'he', 'sat', 'around', 'the', 'Legion', 'telling', 'stories', 'of', 'the', 'past.', 'Of', 'a', 'war', 'that', 'he', 'had', 'fought', 'in', 'and', 'the', 'deeds', 'that', 'he', 'had', 'done', 'In', 'his', 'exploits', 'with', 'his', 'buddies', 'they', 'were', 'heroes', 'every', 'one.']
dire scroll
#

@main comet bro your are advanced

#

XD

#

chill

#

i was joined today
i just wanted to learn

main comet
#

!e

paragraph = """
He was getting old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""
# write your code below
sentence = ""  # create string variable

for phrase in paragraph:  # for phrase in string
    word = ""  # create a temp string variable
    for char in phrase:  # for character in phrase
        if 'a' <= char <= 'z' or 'A' <= char <= 'Z' or char == ' ':  # only include letters and spaces
            word += char  # add each char to the temp word string variable
    sentence += word  # append the word string to the sentence

stuff = sentence.split()  # splits formatted sentence into a list of words

map = {}  # create a dictionary variable

for word in stuff:  # for word in word list
    count = stuff.count(word)  # count the amount of times that word is in the list
    dic = {word: count}  # create a temp dictionary variable that the word and its count
    map.update(dic)  # add the word dict to main dict

print(map)  # bruh... its a print statment
wise cargoBOT
# main comet !e ```py paragraph = """ He was getting old and paunchy and his hair was falling...

:white_check_mark: Your 3.12 eval job has completed with return code 0.

{'He': 1, 'was': 2, 'getting': 1, 'old': 1, 'and': 3, 'paunchy': 1, 'his': 3, 'hair': 1, 'falling': 1, 'fastAnd': 1, 'he': 3, 'sat': 1, 'around': 1, 'the': 3, 'Legion': 1, 'telling': 1, 'stories': 1, 'of': 1, 'pastOf': 1, 'a': 1, 'war': 1, 'that': 2, 'had': 2, 'fought': 1, 'in': 1, 'deeds': 1, 'doneIn': 1, 'exploits': 1, 'with': 1, 'buddies': 1, 'they': 1, 'were': 1, 'heroes': 1, 'every': 1, 'one': 1}
main comet
#

!e

paragraph = """
He was getting old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""
# write your code below
sentence = ""  # create string variable

for phrase in paragraph:  # for phrase in string
    word = ""  # create a temp string variable
    for char in phrase:  # for character in phrase
        if (char == "a" or char == "A" or char == "b" or char == "B" or char == "c" or char == "C" or char == "d" or char == "D" or char == "e" or char == "E" or char == "f" or char == "F" or char == "g" or char == "G" or char == "h" or char == "H" or char == "i" or char == "I" or char == "j" or char == "J" or char == "k" or char == "K" or char == "l" or char == "L" or char == "m" or char == "M" or char == "n" or char == "N" or char == "o" or char == "O" or char == "p" or char == "P" or char == "q" or char == "Q" or char == "r" or char == "R" or char == "s" or char == "S" or char == "t" or char == "T" or char == "u" or char == "U" or char == "v" or char == "V" or char == "w" or char == "W" or char == "x" or char == "X" or char == "y" or char == "Y" or char == "z" or char == "Z" or char == " "):
            word += char  # add each char to the temp word string variable
    sentence += word  # append the word string to the sentence

stuff = sentence.split()  # splits formatted sentence into a list of words

map = {}  # create a dictionary variable

for word in stuff:  # for word in word list
    count = stuff.count(word)  # count the amount of times that word is in the list
    dic = {word: count}  # create a temp dictionary variable that the word and its count
    map.update(dic)  # add the word dict to main dict

print(map)  # bruh... its a print statment
wise cargoBOT
# main comet !e ```py paragraph = """ He was getting old and paunchy and his hair was falling...

:white_check_mark: Your 3.12 eval job has completed with return code 0.

{'He': 1, 'was': 2, 'getting': 1, 'old': 1, 'and': 3, 'paunchy': 1, 'his': 3, 'hair': 1, 'falling': 1, 'fastAnd': 1, 'he': 3, 'sat': 1, 'around': 1, 'the': 3, 'Legion': 1, 'telling': 1, 'stories': 1, 'of': 1, 'pastOf': 1, 'a': 1, 'war': 1, 'that': 2, 'had': 2, 'fought': 1, 'in': 1, 'deeds': 1, 'doneIn': 1, 'exploits': 1, 'with': 1, 'buddies': 1, 'they': 1, 'were': 1, 'heroes': 1, 'every': 1, 'one': 1}
tall snow
#

paragraph = """
He was getting old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""

write your code below

allWords = paragraph.split()
newlist = []
freqDict = {}
for words in allWords:
words = words.replace('.', '')
words = words.replace(',', '')
words = words.replace(';', '')
words = words.lower()
newlist.append(words)
if words in freqDict:
freqDict[words] += 1
else:
freqDict[words] = 1
print(freqDict)

main comet
#

no

dire scroll
#

it works probably that got me man XD

tall snow
#

!e

He was getting  old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""
# write your code below
allWords = paragraph.split()
newlist = []
freqDict = {}
for words in allWords:
    words = words.replace('.', '')
    words = words.replace(',', '')
    words = words.replace(';', '')
    words = words.lower()
    newlist.append(words)
    if words in freqDict:
        freqDict[words] += 1
    else:
        freqDict[words] = 1
print(freqDict)
wise cargoBOT
# tall snow !e ```paragraph = """ He was getting old and paunchy and his hair was falling f...

:white_check_mark: Your 3.12 eval job has completed with return code 0.

{'he': 4, 'was': 2, 'getting': 1, 'old': 1, 'and': 4, 'paunchy': 1, 'his': 3, 'hair': 1, 'falling': 1, 'fast': 1, 'sat': 1, 'around': 1, 'the': 3, 'legion': 1, 'telling': 1, 'stories': 1, 'of': 2, 'past': 1, 'a': 1, 'war': 1, 'that': 2, 'had': 2, 'fought': 1, 'in': 2, 'deeds': 1, 'done': 1, 'exploits': 1, 'with': 1, 'buddies': 1, 'they': 1, 'were': 1, 'heroes': 1, 'every': 1, 'one': 1}
main comet
#

stuff = sentence.split() # splits formatted sentence into a list of words

map = {} # create a dictionary variable

for word in stuff: # for word in word list
count = stuff.count(word) # count the amount of times that word is in the list
dic = {word: count} # create a temp dictionary variable that the word and its count
map.update(dic) # add the word dict to main dict

print(map) # bruh... its a print statment

tall snow
#

Problem 4
Given the string paragraph below, write code to determine the most common word in the string and assign it to the variable commonWord, assign the frequency to maxWordCount. The is a case insensitive frequency which means that case must be disregarded.

There are two parts:

The first part requires a loop that builds a dictionary of words and their frequency.
The second part requires a max accumulation pattern to find the word with the largest count.
A) Do the following to build the frequency dictionary:

Split the paragraph into words and store in a variable.
Initialize an empty dictionary
Iterate over the variable:
You need to remove punctuation from the word.
If the last character in the word is a ".", ",", or a ";":
Remove the last character in the word
Convert the word to lowercase.
If the word is in the dictionary:
Increment the value associated with the word.
Otherwise:
Initialize a new key using the word and assign 1 to the value
B) Determine the word with the largest frequency:

Iterate over the keys dictionary created in part A.
if the value associated with current key is greater than maxWordCount:
Store the current key in commonWord.
Store the value of the current key in maxWordCount.
C) Print

Print commonWord and maxWordCount as shown below.
Punctuation in the sentence must be removed as your code processes the word. You will also need to convert the word to lowercase. You may use the split, the in operator, and the lower function.

#

he is the most common word with 4 occurences

dire scroll
#

nice

#

XD

tall snow
#

!e

paragraph = """
He was getting  old and paunchy and his hair was falling fast,
And he sat around the Legion, telling stories of the past.
Of a war that he had fought in and the deeds that he had done,
In his exploits with his buddies; they were heroes, every one.
"""
# write your code below
allWords = paragraph.split()
newlist = []
freqDict = {}
for words in allWords:
    words = words.replace('.', '')
    words = words.replace(',', '')
    words = words.replace(';', '')
    words = words.lower()
    newlist.append(words)
    if words in freqDict:
        freqDict[words] += 1
    else:
        freqDict[words] = 1
maxWordCount = 0
commonWord = ()
for words in freqDict:
    if freqDict[words] > maxWordCount:
        maxWordCount = freqDict[words]
        commonWord = words
print(f"{commonWord} is the most common word with {maxWordCount} occurences")
wise cargoBOT
tall snow
#

Problem 5
Given the string poem below, write code to determine the most common letter in the string and assign it to the variable mostCommon. Also, assign the frequency of the most common letter to the variable maxLetterCount. This is a case insensitive frequency which means lowercase and uppercase letters represent a single letter.

This problem is almost identical to problem 4 with the exception that you iterate over a string. You should be able to make minor modifications to the code from problem 4 to achieve a solution. Note, you need to skip spaces and punctuation.

Print mostCommon and maxLetterCount as shown below.

dire scroll
#

i think circuit is going to mad at me

tall snow
#

Provided code: ```py

A poem by Robert Frost

poem = """
Whose woods these are I think I know.
His house is in the village though;
He will not see me stopping here
To watch his woods fill up with snow.
My little horse must think it queer
To stop without a farmhouse near
Between the woods and frozen lake
The darkest evening of the year.
He gives his harness bells a shake
To ask if there is some mistake.
The only other sound’s the sweep
Of easy wind and downy flake.
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep.
"""

write your code below

#

Expected Output:
e is the most common letter with 66 occurances

dire scroll
#

bro your better then me

#

i just joined today

#

@main comet

#

!e
poem = """
Whose woods these are I think I know.
His house is in the village though;
He will not see me stopping here
To watch his woods fill up with snow.
My little horse must think it queer
To stop without a farmhouse near
Between the woods and frozen lake
The darkest evening of the year.
He gives his harness bells a shake
To ask if there is some mistake.
The only other sound’s the sweep
Of easy wind and downy flake.
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep.
"""

dict_list = {}
maxWordCount = 0

chaning to lowercase

poem.lower()

print(poem)

for letter in poem:
if letter not in [".", ",", ";", " "]:
if letter in dict_list:
dict_list[letter]+= 1
else:
dict_list[letter] = 1

print(dict_list)

for letter in dict_list:
if dict_list[letter] > maxWordCount:
maxWordCount = dict_list[letter]
commonWord = letter
print(f"{commonWord} is the most common word with {maxWordCount} occurences")

wise cargoBOT
# dire scroll !e poem = """ Whose woods these are I think I know. His house is in the village ...

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | {'\n': 17, 'W': 1, 'h': 27, 'o': 38, 's': 38, 'e': 66, 'w': 14, 'd': 15, 't': 28, 'a': 22, 'r': 17, 'I': 5, 'i': 24, 'n': 22, 'k': 11, 'H': 3, 'u': 9, 'v': 5, 'l': 19, 'g': 7, 'm': 8, 'p': 10, 'T': 6, 'c': 1, 'f': 9, 'M': 1, 'y': 6, 'q': 1, 'B': 2, 'z': 1, 'b': 3, '’': 1, 'O': 1, 'A': 2}
002 | e is the most common word with 66 occurences
dire scroll
#

i did it @tall snow

#

using the same code

#

yes

#

i will tell one thing @main comet just give as the efficient code becuase it remove all symbols expect the alp but used asked for simpler and most school wants the answer how they think

#

.lower is string method so np of doing that

#

its not a list method

#

its a escape sequence

#

and if you forgot to remove the spaces its the most occurences

main comet
dire scroll
#

@main comet you used len function

#

dont say i didnt use any function

#

lets go assembly lang

main comet
wise cargoBOT
# main comet

Please react with βœ… to upload your file(s) to our paste bin, which is more accessible for some users.

dire scroll
#

ok GTG bye @tall snow @main comet

#

ok

main comet
tall snow
#

Problem 6
Write code that creates the dictionary vowelFrequency where the keys are the five vowels and the values represent their frequency in the string sentence. Using the vowelFrequency dictionary and a max accumulation pattern determine the most common vowel and assign the result to the variable commonVowel. Print the variable commonVowel and the vowelFrequency dictionary as shown below.

The problem is similar to the previous problem. The exception is that you need to select only vowels in the string sentence.

#

Given code:

#
sentence = "singing in the rain and playing in the rain are two entirely different situations but both can be good fun"
vowels = ['a','e','i','o','u']
# write your code below
#

Expected Output:
{'i': 11, 'e': 8, 'a': 7, 'o': 5, 'u': 3}
The most common vowel is i

dire scroll
#

@main comet with using the update we cracked it

#

🧠

#

bruh i just joined today

#

!e

sentence = "singing in the rain and playing in the rain are two entirely different situations but both can be good fun"
vowels = ['a','e','i','o','u']

write your code below

dict_list = {}
maxWordCount = 0

sentence.lower()
print(sentence)

for letter in sentence:
if letter in ["a", "e", "i", "o", "u"]:
if letter in dict_list:
dict_list[letter]+= 1
else:
dict_list[letter] = 1

print(dict_list)

for letter in dict_list:
if dict_list[letter] > maxWordCount:
maxWordCount = dict_list[letter]
commonWord = letter
print(f"{commonWord} is the most common word with {maxWordCount} occurences")

wise cargoBOT
dire scroll
#

@tall snow i reused it again

tall snow
dire scroll
#

the same code for 6th

#

problem

tall snow
#

bruh

dire scroll
#

what happend?

#

bye guys

main comet
#

bye

#

lound ish warning

jade mountain
#

what the fuck is this

astral coral
astral coral
#

"Paracetamol,[a] or acetaminophen,[b] is a non-opioid analgesic and antipyretic agent used to treat fever and mild to moderate pain.[13][14][15] It is a widely available over-the-counter drug sold under various brand names, including Tylenol and Panadol."

somber heath
#
Mop the floors and set the table
The Devil is coming to dinner
Dress your family in their Sunday best
The Devil is coming to dinner
Kiss them sweetly all goodbye
The Devil is coming to dinner```
#
Contact has been made```
astral coral
astral coral
somber heath
#

@crude treeπŸ‘‹

crude tree
#

@somber heath hii

main comet
astral coral
#

@chilly wolf @somber heath

main comet
tacit crane
#

@chilly wolf

astral coral
somber heath
#

@whole bear@pulsar groveπŸ‘‹

whole bear
#

hi

jade mountain
somber heath
#

@left nicheπŸ‘‹

left niche
left niche
astral coral
#

@chilly wolf @somber heath

left niche
whole bear
#

nice

left niche
#

game

whole bear
#

competent petitioners

#

lol

left niche
#

lamo

left niche
astral coral
gentle flint
#

New Zealand has often been omitted from maps of the world, which has caught the attention of New Zealanders. It is considered that this is because of the widespread use of the Mercator projection and the common mapping practice of putting Europe in the center, which leaves New Zealand in the bottom right-hand corner of maps, sometimes making it ...

astral coral
somber heath
#

@quartz beacon

gentle flint
#

wat

astral coral
peak depot
quartz beacon
#

🐱

gentle flint
grave moat
#

which libries do ineed to learn after basic python ?

gentle flint
#

django

astral coral
gentle flint
#

numpy, perhaps

#

fastapi

somber heath
#

It also depends on what you plan on using Python for,

grave moat
quartz beacon
vocal basin
#

the app is not functioning

#

!stream 1157723305265078272

wise cargoBOT
#

βœ… @astral coral can now stream until <t:1740392357:f>.

vocal basin
#

unless those games are programming-related enough

#

(very context-dependent)

#

@quartz beacon speaking of attacks on power grids, you know about Metcalf one, right?

quartz beacon
#

nop

vocal basin
#

April 16, 2013

chilly wolf
#

So I could stream Shenzhen I/O!! :D

vocal basin
#

I know there's "flash" as a verb for putting an OS or whatever image onto a storage thing

upper basin
#

SCP game?

vocal basin
#

secure copy

upper basin
#

We could make a RL agent that represents a SCP and it has to hunt some NPCs by moving through vents.

#

It's basically a maze game played by a RL agent.

#

AF did you like my DAG approach?

vocal basin
#

I don't remember what the last change was

upper basin
vocal basin
#

(you can use <https://...> to avoid embed generation)

upper basin
#

Asahi sounds like a sauce.

vocal basin
#

@surreal grotto this?

#

it's a somewhat recent change

#

within last 4 years

surreal grotto
#

[text](link)

vocal basin
#

[this](<https://1.1.1.1>)

#

<>s aren't necessary

#

I'm using them there because it looked as if it was misparsing

surreal grotto
vocal basin
#

@spark oriole because it needs to contain all the imports and the python itself

#

are you using any pip-installed packages?

#

it's packaging not compilation

#

try packaging it as separate files (not a single exe) and see what takes the most disk space

#

this will help debug where the size is coming from

#

it might also just be an that it's not compressed

#

"you can do prototyping and scripting in Rust too"

#

RFC 3424

#

Go has simplicity as core value

#

Go you just write, there is no learning process

#

@main comet no one knows what they're doing if it's C++

#

semantic catastrophe

#

Python is written in C

#

CPython is the C implementation of Python

#

i.e. the main implementation

#

@surreal grotto and C++ takes that power away

#

the amount of obscure unpredictable things it does is way too much

#

@tacit crane there's a proposal to ignore typescript annotations in js

#

as in being able to just run typescript in the browser

#

unfortunately typescript has runtime features too

#

e.g. enums

#

python is so not easy to set up

#

you can do powershell both on Windows and Linux

#

I'm still having to suffer with Ubuntu Server too

#

reminder: I still cannot run Forza Horizon 5 on Windows

#

I have to play it on Linux

#

no fucking clue

#

there are no logs

#

it just stops

#

it's via Proton

#

(Steam's Wine fork)

#

@upper basin some noise is coming through the mic

vocal basin
#

@tacit crane opioids mostly

#

especially in the US

#

it's not just privatised, it's privatised and poorly regulated, and it's going to get worse

#

a lot of freedom from but not freedom to/for

#

you're allowed to do many thing but you can't really afford to do many things

#

Russia technically has freedom of speech in the constitution but why would it ever matter

#

"don't worry that there wasn't a second one, just wait a few months"

#

wouldn't really say that US pioneered that, but it did popularise it

#

"don't have enough yet"

upper basin
#

Shit, still have echo.

#

I have no idea why this has been happening. I haven't changed my mic, I'm using headphones as output and a separate device for input. It shouldn't have any echo.

#

It's a MAD world (mutually assured destruction).

#

Get it?

#

He's lying.

#

They have quantum nukes. They blow you up and reconstruct you at the same time.

#

And blow up your relatives because of entanglement.

vocal basin
#

technically probable

#

practically less so

upper basin
#

Tangerine tyrant, aka Trump.

#

Not to interrupt yall, but could we discuss something besides politics as well? I apologize, political conversations are rather depressing.

#

Really appreciate it.

#

Cheers Happy.