#voice-chat-text-0

1 messages ยท Page 985 of 1

viral ibex
#

it sound like he is coding

#

lol

#

share the link

somber heath
#

"etymology shoot the breeze"

viral ibex
#

nice

#

It has been years since I play Dota

#

you say Dota, right?

viral ibex
#

Hi @whole bear

#

well a little messy hahaha

whole bear
#

lol

viral ibex
#

xD

wintry pier
#

wtsup

#

is not about cryptin

whole bear
#

@gusty birch

#

you know python right

#

its the error WinError 10061

#

you know how to fix that?

#

ah ok

#

do you have him added?

jolly peak
stuck furnace
#

๐Ÿ‘‹

jolly peak
#

Add me on the linkedin guys

stuck furnace
#

What secret? ๐Ÿ˜„

#

Nah sorry

#

I used to know a bit of C++

#

But I've pretty much forgotten it.

#

It is still pretty active I think ๐Ÿค”

#
HAI 1.2
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
#

kthxbye ๐Ÿ˜„

#

Have you heard of Befunge?

#

Erm, it's a 2d language.

#

So, you direct the flow of control around with arrows.

#

Example from the wiki page: ```
v>>>>>v
12345
^?^

? ?^
v?v
6789

v
^ .<

#

Whitespace

sour imp
#

@stuck furnace
Hello World in whitespace?

stuck furnace
#

Hello world in whitespace: ```

viral ibex
#

Guys, I am sorry but maybe I will send a lot of messages, just to have the 50 messages requirement

#

really?

#

hahaha

stuck furnace
#

Yep, please don't spam to meet the requirement.

viral ibex
#

Ok โค๏ธ

stuck furnace
#

It won't take long to reach it dw.

#

It's not an image.

#

It's the actual code

#

Try selecting it ๐Ÿ˜„

whole bear
#

@stuck furnace my bad for ping but do yk error code 10061

stuck furnace
#

What's the context?

whole bear
#

so i was just messing about and decided i was going to try to make a booter not for malicious use only for me because i was bored and now i am stuck and curious how to fix it lol

#

ive turned firewall and everything off

#

nocks my net off

stuck furnace
#

๐Ÿ˜‘

whole bear
#

I SAID NOT FOR MALICIOUS USE LOL

#

it was only for me and to test on my friend which i got permission from

#

only sending around 500 request

#

its not that heavy of a load

stuck furnace
#

All the same, we can't help with that sorry.

whole bear
#

like 40 gigs

#

its been sent to me before

#

not fun

#

well this was because of a game call RUST

#

and there was a shitter

#

who was bad

#

and got mad

#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

whole bear
#

its not malicious

#

i believe you have but im not wanting to do that

#

i started a code and want to finish it but cant ๐Ÿ‘ฆ

stuck furnace
#

Yeah it's just not something we help with. We're not a security-oriented server.

whole bear
#

awh

#

now im stuck

stuck furnace
#

!guilds

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.

whole bear
#

thats what i was thinking of doing

#

can u atleast tell me if there is a error in the code if i send it to you

whole bear
#

understandable

#

but its just for my router lol im not wanting to do a malicious attack because its very very very very very wrong doing

#

understandable

stuck furnace
#

Yeah we have no way of verifying how you intend to use it.

whole bear
#

dangit

#

i was just trying to break my old router

#

is it that bad @sour imp

#

no i want to do it in a fun way where i learn

#

yea i stay safe on my digital footprints

#

well if i want to shut a system down i will run to there house and delete system 32๐Ÿ’จ

#

@sour imp i have a question

#

u are a a hecker

#

hecker

#

not hacker

#

but hecker

#

hecker is a nice hacker

#

yes

#

no

#

king

#

YES

#

who said destroying

#

i mean restart a router

#

yds

#

yes

#

no

#

kate can i dm u something i found on yt

#

which is crazy

#

its a video it will just pop a icture

#

picture

#

no need to clcik it

#

LOL i FELL FOR ONE OF THOSE

stuck furnace
#

You'd be surprised how many people do ๐Ÿ˜‘

whole bear
#

ikr

#

i clciked it for a csgo skin

#

@somber heath

stuck furnace
#

Call me man? pithink

whole bear
#

how many years into python

stuck furnace
#

You might need to refresh yeah.

whole bear
#

@sour imp IK that

thick swan
whole bear
#

i never said it was right

stuck furnace
thick swan
proud forum
whole bear
#

@somber heath how many years in py

proud forum
#

yes

runic elk
#

hello

#

started 3 days ago

thick swan
runic elk
#

@somber heath you call me kritix.

whole bear
#

absolute value is this 8th grade math

runic elk
#

I started python 3 days ago is there any free tutorials or book.

#

yha ill do it

thick swan
#

ill send u the book in dm

whole bear
#

@runic elk

#

r u in the gang

#

GD
\

thick swan
#
The MIT Press

The new edition of an introductory text that teaches students the art of computational problem solving, covering topics ranging from simple algorithms to information visualization.This book introduces students with little or no prior programming experience to the art of computational problem solving using Python and various Python libraries, inc...

stuck furnace
#

Oh, I have a copy of that.

whole bear
#

@stuck furnace

#

GUYS i found my problem

runic elk
#

@thick swan thank-you

thick swan
whole bear
#

Well

#

that didint end well

runic elk
#

@stuck furnace ohh good you have hard copy

#

ill find the third version on Zlib

thick swan
#
f = c**2 + 3*c + 9
g = -2*c**2 + 10*c + 8

intersect(f, g, 1, 3, 0.000001) 

expected output = 2.1804604
stuck furnace
#

Would you like to? ๐Ÿ‘€

#

!stream 427118862534836264

wise cargoBOT
#

โœ… @thick swan can now stream until <t:1646199846:f>.

whole bear
#

Guys

#

Russian currency very cheap buy some and resell when it goes back up

stuck furnace
#

Oh right ๐Ÿค”

signal sand
#

@thick swan you want to find roots of a polynomial?

stuck furnace
#

So you have to find the point at which f(x) == g(x), which is the same as when f(x) - g(x) == 0.

#

Alex

#

I would abstract away the f and g, by defining a new function h(x) = f(x) - g(x).

signal sand
#

f and g both quadratic?

#

ping your code here...

thick swan
#
def intersect(a, b, eps):
    c = (a+b)/2
    f = c**2 + 3*c + 9
    g = -2*c**2 + 10*c + 8
    tot = (f - g)
    while (tot != 0) or (abs(tot) > eps):
        if tot > 0:
            a = c
        if tot < 0:
            b = c
        c = (a+b)/2
        f = c**2 + 3*c + 9
        g = -2*c**2 + 10*c + 8
        tot = (f - g)
    return c


x1 = intersect(1, 3, 10**-9)
stuck furnace
#

I mean you could write a function py def find_root(fn, lo, hi): ... And then define your intersect function in terms of it: ```py
def intersect(f, g, lo, hi):
def h(x):
return f(x) - g(x)
return find_root(h, lo, hi)

signal sand
#

f(x) - g(x) is also quadratic right.. you need to find zeros of it that's all..

#

find zeros,, then check if it is in domain...

stuck furnace
#

So what you're doing here is a binary search right.

signal sand
#

That method is for general polynomials...

signal sand
stuck furnace
#

You know that the intersection lies between a and b. Each step you can take the midpoint of a and b, and discard half of the points.

#

Mhm

#

So think in terms of the function h(x) = f(x) - g(x)

signal sand
stuck furnace
#

Is it assumed that there is exactly one intersection in the given range btw?

signal sand
#

But the bisection method is for general polynomials...

stuck furnace
#

Ah right. So h(x) either goes from negative to positive, or positive to negative.

frail siren
#

hello

#

what is happening

stuck furnace
#

So like, if the value at the midpoint h(c)

#

has the same sign as h(a)

frail siren
#

looks dope

stuck furnace
#

Then you should replace a with c.

#

Otherwise, h(c) has the same sign as h(b), so you should replace b with c.

#

Do you get what I mean?

#

Yep

#

Note I'm talking about the sign of h(x), not x.

#

Where x is a, b, or c.

#

Yep

frail siren
#

good luck on your project

signal sand
#

f(x) - g(x) is always a polynomial... it comes down to finding zero for f(x) - g(x)...

For qudratic, we know a algebraic formula...

-b +- (b^2 - 4ac)^0.5 / 2a

So we don't need this method for quadratics..

stuck furnace
#

๐Ÿ‘‹ Geno

signal sand
#

This important question is... do you think he will accept this solution... or is he expecting you to implement this alogorithm to find general solution for all polynomials...

strong arch
stuck furnace
#

Try moving the blue and red dots around. The blue line represents a, the red line represents b, and the purple line represents c = (a + b) / 2. Think about the cases where purple line lies either to the left or right of the root.

signal sand
#

I didn't know.... wow, it works for general continuous function... that's cool....

stuck furnace
#

Yep, so you either reject the region to the left of the purple line, or to the right.

#

Yeah Ay, so you need to replace the endpoint x for which sign(h(x)) = sign(h(c)).

#

The first rule of recursion club: refer to rule 1.

#

Basically you want to find the root whether the function is increasing or decreasing.

stuck furnace
#

Right, the reason you can use the bisect method, is that there is a condition which is false for all points to the left of the root, and true for all points to the right of the root.

signal sand
#

use two more variables

a2 = b
b2 = a

run both... at the same time in the same loop and check and break whichever meets first...

stuck furnace
#

Think in terms of the simpler problem of finding the root of f (the point where f(x) == 0).

#

You start with two points either side of the root.

#

They must have different signs when passed through the function.

sudden eagle
#

hello!

stuck furnace
#

I.e. one point is below the x-axis, and the other point is above.

sudden eagle
#

I'm new here

#

and can anyone help me in my code guys?

stuck furnace
#

So because one of them is above the x-axis, and the other is below, and the function is continuous, it must pass through the x-axis.

#

Let's say the root is k.

#

All the points in the range from a to k have the same sign.

#

All the points in the range from k to b have the opposite sign.

#

When you take the midpoint of a and b, you get the point c = (a + b) / 2.

#

If c is to the left of k, then it will have the same sign as a.

#

If c is to the right of k, then it will have the same sign as b.

#

Btw, sorry, I mean the same sign when passed through the function f.

#

So if sign(f(c)) == sign(f(a)), then you want to let a = c.

#

If sign(f(c)) == sign(f(b)), then you want to let b = c.

#

I'm not the best at explaining sorry lemon_sweat

#

You could define a sign function, or you could just check that f(a) * f(c) > 0.

#

It would be helpful though to define the function f.

#

Btw, sorry if this is confusing but what I'm calling the function f is the function f - g.

#

I should have given it a different name like h.

#

But I would actually define a function within intersect.

#

Like ```py
def h(x):
return f(x) - g(x)

#

Ah yeah, those are numbers rather than functions though.

#

Yep, so I would define h inside intersect. It will make your life easier.

#

The problem of finding the intersection of f and g is the same as the problem of finding the root of h.

#

Your function needs to take an argument.

#

Yep, syntax error though lemon_sweat

#

Missing )

austere tulip
#

Close parenthisis

stuck furnace
#

So now you can forget about f and g, and just use h.

#

Yep

#

Erm, I think you want that to be abs(a - b) right?

#

Because you want to stop when you've narrowed down the interval enough.

#

๐Ÿ˜„

#

Yep, in each iteration of the loop, you find the midpoint.

#

Then you need to decide whether to replace a with the midpoint, or b.

#

So if the sign of h(a) matches the sign of h(c), you know that c lies to the left of the root.

#

An easy way to check if they have the same sign is to multiply them, and check if the result is non-negative.

#

Because if they're both positive, their multiple is positive.

#

If they're both negative, then their multiple is also positive

#

But if their signs differ, then their multiple is negative.

signal sand
#

0

stuck furnace
#

Not == ๐Ÿค”

signal sand
#

positive means >0

stuck furnace
#

You want to check if it is greater than 0 right.

signal sand
#

=

stuck furnace
#

No worries ๐Ÿ˜„

austere tulip
#

ngl I forgot too

stuck furnace
#

Yep ๐Ÿ‘

#

Try it ยฏ_(ใƒ„)_/ยฏ

viral ibex
#

how did you guys manage the load of all the env vars?
i was thinking on create a class and load all the env vars there
and after that just use inheritance to access to all the env vars
on python

stuck furnace
#

๐ŸŽ‰

#

Do you understand how it works though?

signal sand
stuck furnace
#

Yeah, I would like to make a better graph sorry lemon_sweat

#

This would be so much easier if I could draw a diagram ๐Ÿค”

#

Found this diagram:

#

Substitute f for h.

#

But let's say it sloped downwards instead.

signal sand
#

Don't think about f, g... only about h

stuck furnace
#

If it slopes up then f(a) < 0 and f(b) > 0.

#

If it slopes down then f(a) > 0 and f(b) < 0.

#

When you refine the interval, you discard half of the interval.

#

In the above diagram, the midpoint becomes the new a

#

Because, it's on the same side of the root as a.

#

Yep ๐Ÿ‘

signal sand
#

else: block..

stuck furnace
#

On the next iteration, the midpoint looks as if it would lie to the right of the root.

#

So then that would become the new b.

#

We're using the test h(a) * h(c) > 0 to check that a and c lie on the same side of the root.

#

You've got it I think ๐Ÿ‘

#

Nah it's fine ๐Ÿ˜„

#

What is h(c) in that diagram? ๐Ÿค”

#

Where is the point with coordinates (c, h(c))?

#

So c on the x-axis, and h(c) on the y-axis.

#

Yep

#

And h(a) is also negative.

signal sand
stuck furnace
#

So their multiple is positive yep ๐Ÿ‘

#

No prob ๐Ÿ˜„

#

Anyway, I gtg too, cya ๐Ÿ‘‹

#

gn!

austere tulip
#

Later!

signal sand
#

while is bascially recursion...

#

just few modifications...

#

bye..

quasi condor
#

@stuck furnace do you sleep?

stuck furnace
#

Maybe, maybe not ๐Ÿ‘€

languid arch
#

Hi

#

how are you all ?

viral ibex
#

so

#

what are you doing guys?

peak parcel
#

hii

crimson dagger
whole bear
pallid hazel
#

๐Ÿ˜ข 0

plain rose
#

go to #bot-commands and run !verify

#

or ask someone how to be voice verified

#

#bot-commands

#

brb

#

same

#

idk why

#

no

#

if we get the id of the channel we can link it

#

now go have a convo with a few strangers

#

run a few commands

#

do shit

#

because to get the role you need to take part in the server

#

dam

#

HURL-OH-SEVENTY-SEVEN

dire kite
#

yes

#

wait i need confidence
lemme collect

plain rose
#

hello former pink-person

dire kite
#

dw pyweek's coming along

#

join the jam โ„ข๏ธ

#

its just a mini code jam

#

i just know

#

never used

#

freecodecamp has a docker course btw

#

or just stick to their docs

#

buddha chris

#

๐Ÿ›

#

send the ss

#

lol

#

isolated environment + way waster

#

wait it works for me on windows out of the box

#

i just never used it enough

#

haha

#

that was the job of eivl /j

plain rose
#

/j is typo no?

dire kite
#

ffs this is looking spam

dire kite
plain rose
dire kite
#

lol

#

prolly you messed with extension and name position

#

๐Ÿฅด

#

what

sweet lodge
#

๐Ÿ‘‹

plain rose
molten pewter
#

@wind raptor ๐Ÿค—

sweet lodge
#

and that's how the Grinch learned to love Christmas

dire kite
#

lmao

#

@plain rose dont forget to breathe

plain rose
#

nice

dire kite
#

dont โ‰๏ธ

plain rose
#

gotta put away the dishes

sweet lodge
#

Got asked to require MFA for a GitHub org
It kicked over half the people

dire kite
#

biologists

sweet lodge
#

I have the power!

#

And all it does is make me feel like a bad person for kicking people

dire kite
#

woah

#

are we talking about how school sucks /j

#

i am in /j^2

dire kite
#

whats the full form

sweet lodge
dire kite
#

oh

sweet lodge
#

"MFA" is a more general term

dire kite
#

2fa subset of mfa

rugged root
#

MFA == Mother Fucking Awesome

dire kite
#

understandable

tidal shard
rugged root
#

Too Fucking Awesome

#

obvs

dire kite
#

speaking of distro , has anyone used popOS ๐Ÿฅด

#

kinda interested in setting up mac theme in it

#

if thats cool ^^

rugged root
#

I've been meaning to try pop

dire kite
#

try

wind raptor
#

Pepsi or Coca-cola?

#

@rugged root

rugged root
dire kite
#

garuda seems nice btw

#

never tried tho

#

more like a e s t h e t i c

sweet lodge
dire kite
#

vintage

sweet lodge
#

Pespi?
What are we Amish?
We can afford real soda

tidal shard
#

Yeah but you can't snort Pepsi

rugged root
#

You can. You'll just really really regret it

dire kite
#

live boot
?

#

hmm

#

i have had so many problems with my nvidia graphics driver so i usually keep myself away from linux lol

wind raptor
dire kite
#

if only i could sort some distros which comes with out of the box drivers

sweet lodge
#

๐ŸŽฉ
Here you go you Amish Pepsi loving heathen

dire kite
#

\๐Ÿฅซ

molten pewter
#

I hate to tell you guys, the Amish don't drink Pepsi

wind raptor
#

Would you like some well made furniture or a Wednesday barn raising?

dire kite
#

distracted ?

#

almighty dev build watermark

#
  • i can not go back to stable
#

pain^:woozy:

plain rose
#

done the dishes

dire kite
#

cool

#

so fucking ๐Ÿฅด

rugged root
rain gale
#

lmao

sweet lodge
sweet lodge
#

๐Ÿ‘‹

#

It would help if I sent messages in the right channel

dire kite
# sweet lodge One of us!

how does it feel when you send ss which shows this and people reply you with "activate your windows man" though it is activated ๐Ÿฅด

sweet lodge
#

๐Ÿ‘‹

dire kite
sweet lodge
dire kite
#

speaking of the annoying watermark

#

there's some third party application to remove it tho

rugged root
#

Wait

dire kite
#

i forgor the name

rugged root
#

Did they get rid of Pro?

dire kite
#

oh

rugged root
#

Ahhh, okay

plain rose
#

Funk and wagnalls

#

encyclopedias

dire kite
#

i got it free due to microsoft teams school account lmfao

sweet lodge
#

I get one from work

#

But I also have my own account

dire kite
#

yes

plain rose
#

.topic

viscid lagoonBOT
#
**What artistic talents do you have?**

Suggest more topics here!

plain rose
sweet lodge
dire kite
#

coding counts ?

#

golfing ftw ๐Ÿ›

plain rose
#

One liners belong in js

dire kite
#

i need reasons to use wsl and docker

#

lmfao

sweet lodge
#

@rugged root - What license do you get at work?

plain rose
#

cya

dire kite
#

@plain rose cyaa

sweet lodge
#

Yes

#

We are*

dire kite
#

@sweet lodge you are on insiders right?

sweet lodge
dire kite
#

speaking of startup
what makes people to leave FAANG/giant techs and start their startups ๐Ÿฅด

sweet lodge
dire kite
#

i jammed in the dev build and consequences are i can not do anything

#

lol

dire kite
#

they dont even allow the option to switch to stable 11 but to install 10 wtf

somber heath
#

No paauuunch!

dire kite
#

yes

#

anyway i gtg , cya ๐Ÿ‘‹

somber heath
#

If they come out with a new version, they could call it Edge Straight.

#

I'll be in the shame corner.

#

...that's not quite what they call me.

#

I went to school with someone who had a seizure because of how much energy drink he had.

#

@rugged root "Hello, my name is Gwen."

sweet lodge
somber heath
#

Nor is it coffee. Not really. Not reeeally.

#

Espresso has more caffeine than a cup of normal coffee if you have a cup of espresso.

dire kite
#

leaving the insiders build will just stop the machine for receiving updates ig

somber heath
#

Our kettle has temperature buttons.

somber heath
#

I have a sleep rhythm. Sort of.

#

Sometimes it's a bit Persistence of Memory.

#

Body clock wise.

#

The Persistence of Memory (Catalan: La persistรจncia de la memรฒria) is a 1931 painting by artist Salvador Dalรญ and one of the most recognizable works of Surrealism. First shown at the Julien Levy Gallery in 1932, since 1934 the painting has been in the collection of the Museum of Modern Art (MoMA) in New York City, which received it from an anony...

#

Australia would be good if not for the whole pet quarantine thing, right?

#

Same with New Zealand.

#

Ireland would seem to make the most sense, given you were going there anyway.

#

Oh, so they know where it is?

rugged root
somber heath
#

Weasel! That's the name I was trying to remember the other day.

#

The closest I got was squeal.

zenith radish
#

@rugged root

somber heath
#

tkinterbell

zenith radish
somber heath
#

Sharp corners and vertices are...not great.

#

Write your resume in Python.

#

Carly Linux.

zenith radish
#
import *

exec("""
  print('hello world')
""")
#

Metaprogramming is a programming technique in which computer programs have the ability to treat other programs as their data. It means that a program can be designed to read, generate, analyze or transform other programs, and even modify itself while running. In some cases, this allows programmers to minimize the number of lines of code to expre...

somber heath
#

No.

zenith radish
#

!e

exec("""
print('hello world')
""")
viral ibex
#

what are you doing guys?

#

LOL

#

Morning everyone

wise cargoBOT
#

@zenith radish :white_check_mark: Your eval job has completed with return code 0.

hello world
zenith radish
#

^

somber heath
#

Metaprogramming is like...everything, man...it's part of the universe and so are you...you are the program...and the coder...

zenith radish
#

This is for metaprogramming with python

somber heath
#

Beefstring.

tidal shard
#

Put your skills to the test and solve eight Wordles at once! You have 13 guesses to solve all eight words. A new Octordle available each day to solve.

somber heath
#

Jouleia.

sick dew
somber heath
#

Nyaww

rugged root
#

?

#

What happened?

atomic bronze
#

Dunno...

somber heath
#

Voice gate?

rugged root
#

I mean the voice gate is just for being able to speak

#

Shouldn't bar entry

atomic bronze
#

hard to think it happens automatically

#

ya...

#

but internet is cabled and stable so ya

rugged root
#

We didn't kick you

atomic bronze
#

ok cool dunno what happened then

rugged root
#

I would be the only one active in voice with that power

atomic bronze
#

I'm on canary discord

#

ok cool thx for notifying me

rugged root
#

In fairness it's Discord. There's lots of little bugs going on with VC lately

#

Yeah sorry it happened to you!

#

Wish I had an answer other than "I didn't do it"

sick dew
#

Tigger

atomic bronze
#

no worries ๐Ÿ™‚

tidal shard
gusty pike
#

hello! i was just gonna ask if there's any way you can make this code shorter? and maybe make it able to ask for the pin again if you entered the wrong pin? sorry to bother,, btw here is the code

https://paste.pythondiscord.com/inakudonif

rugged root
#

Beyond that, we're more than happy to have you around, even if you're not voice verified. We have this channel for folks who can't/prefer not to speak so that no one gets left out of the conversation

somber heath
tidal shard
sick dew
trail mural
#

check the logs after it happens

#

does your router have a dashboard?

somber heath
#

You screw with a people enough, there's going to be a swing back, and they're going to be more willing to follow some people and ideologies that they shouldn't in pursuit of that.

somber heath
#

I don't like this.

tidal shard
#

That is Rodrigo Duterte. Current president of the Philippines.

rugged root
#

Seems like a good tool for what I do

somber heath
zenith radish
somber heath
#

Yeah, the Dutch were super into slavery back in the day.

zenith radish
#

This is how I imagine every south african talks

rugged root
#

Oh ZULU. I heard Sulu

somber heath
#

It's just like this tribe of people, and they're all George Takei.

rugged root
somber heath
#

Leave snakes alone, and they'll generally leave you alone.

trail mural
#

that's me...

somber heath
#

Venomous

trail mural
#

are you sure it wasn't special school...

somber heath
#

If you bite it and you die, it's poisonous. If it bites you and you die, it's venomous.

rugged root
#

What if it bites you and someone else dies

somber heath
#

Voodoo.

trail mural
#

because of the bite?

rugged root
#

Holy crap

#

2 friggin TB

somber heath
#

Vote Ricity!

rugged root
#

$40

#

That's so crazy

sick dew
somber heath
#

I remember being impressed seeing a microsd card that was 1 or 2 TB a while back.

runic elk
#

same problem in India sometime

somber heath
#

All the world's a stage.

rugged root
#

I mean it's partly the price for me

#

They've decreased in price so friggin' much

runic elk
#

you at least have samsung have chines redmi ha ha

#

i want know that any one uses macbook if yes i have question

somber heath
#

I wonder how sensitive to shock, heat, use, etc, they'd be vs lower capacities. I suppose it'd not necessarily be correlated.

rugged root
#

Yeah not sure how they'd test it

#

And I can't get another one of the kind I currently have, as the company doesn't make them anymore

runic elk
#

my MacBook battery is full and forgot to unplug does MacBook unplug itself?

rugged root
somber heath
#

Some part of me wonders that with the increased density, that would necessarily mean finer components that would take less of a beating to kill them.

runic elk
rugged root
#

I've had that thing for over a decade

#

But it's only 16GB

#

So ideally I want one that's got more storage and is USB 3

runic elk
#

@rugged root working

rugged root
#

Yep

#

Still kickin'

#

And it's with me all the time on my keychain

runic elk
#

how much you paid for that

rugged root
#

I don't remember, it's been a long time

tidal shard
#

dang 10 years and still works huh

rugged root
#

I'm telling you, this thing is insane

somber heath
#

It looks like a launch key.

rugged root
#

I didn't expect it to last like 1

runic elk
#

backup for keychain

rugged root
#

I'm spoiled by this one. No idea if something larger and with USB 3 would last nearly as long

#

And it's hard to find reviews for them that would have that kind of longevity

runic elk
#

It is always better to use your device on a charge - discharge cycle. This means that for best battery maintenance, you should plug in the device when it is powered down (say around 15%) and then unplug when it is 100% charged. This would be the ideal usage and will prolong battery life.

#

@rugged root which brand

rugged root
runic elk
#

freelancer is good to make money in samll age

#

where are you from?

#

oh nice to meet you am from india

sick dew
rugged root
runic elk
#

@rugged root yoo to from india

#

ok bye am going to study on edx

sick dew
rugged root
tidal shard
#

oh what

rugged root
#

It's 404ing

cyan stirrup
tidal shard
#

there you go

#

my mistake, I thought it was kingston

rugged root
#

I'm always wary of plastic

cyan stirrup
rugged root
#

That's what my current one is

#

And there's two I linked that are metal as well

cyan stirrup
#

oh really?

#

wow

#

ok

tidal shard
#

I mean it probably won't last 10 years hahaha

rugged root
#

Yeah and that bums me out

tidal shard
#

pretty good though, might lose it if you're not careful lmao

rugged root
#

But they're dirt cheap now so I probably shouldn't sweat the small stuff

cyan stirrup
#

would you say the 512 is less stable than the 256?

rugged root
#

Potentially yeah

cyan stirrup
#

That used to be a thing, right?

rugged root
#

But it's less likely to be an issue now

#

And the fact that they're USB 3.1 is just a bonus

#

Oh huh

#

Forgot that SanDisk made the standard for CompactFlash

cyan stirrup
#

full cast metal. Wow. I'm impressed that's a thing

rugged root
#

Right?

cyan stirrup
#

Might buy a couple today...

cyan stirrup
rugged root
#

Which one?

molten pewter
rugged root
wise cargoBOT
#

โœ… @cyan stirrup can now stream until <t:1646243737:f>.

rugged root
#

You have me curious

signal sand
#

@cyan stirrup , I use obsidian... its cool... what's the problem

cyan stirrup
#

I also don't know what the functionality is called to start learning more about it

signal sand
#

Like what...

#

example

#

Okay, never noticed it... I use vim bindings...

#

@cyan stirrup , I think you should learn vim... it will make your life way easier, if you type constantly...

rugged root
#

@cyan stirrup This'll be handy as well

#

And the article is right that these kinds of things apply damn near everywhere

cyan stirrup
#

nice! thanks!

rugged root
#

Any time

#

Dumb question, you know about Alt+Tab right?

cyan stirrup
#

unless... I don't

#

๐Ÿค”

rugged root
#

It's just the ability to swap to a different window easily

cyan stirrup
#

oh then yes.

rugged root
#

Hold Alt, press tab to cycle through

#

Yeah

#

Another fun one is, if you're on Windows, instead of hitting Ctrl+Alt+Delete to get to the task manager, you can do Ctrl+Shift+Esc, and that'll take you directly to the Task Manager

#

May work on other OS, not sure

cyan stirrup
#

I haven't used it as much since I installed a 3 monitor setup

wicked pine
#

On (most) Linux distros I know you can CTRL+ALT+T to open a terminal window

rugged root
#

Another interesting one, on Windows you can hit Win+X, and that'll bring up a little window of handy shortcuts to various settings, as well as to PowerShell or Windows Terminal in Administrator mode

#

It's so fascinating that there are so many little shortcuts that are just laying in wait, ready to be useful

#

Except StickyKeys

#

Fuck you StickyKeys

#

Oh oh, two more (although they're still Windows specific, sorry). If you do Win+Tab, it'll give show you all of your windows and where they're at on their respective monitors

#

The other one is for quick access to the snipping tool. I'll list that when I get back to my desk

sturdy panther
#

Win + Shift + S, I think.

cyan stirrup
#

Yeah I use it every day.

sturdy panther
#

I couldn't get org mode to work nicely with syncing to CalDAV for other people to view / edit.

uncut meteor
#

@terse needle why is your IDE dirty, clean it

terse needle
#

what

uncut meteor
signal sand
#

tokens...

uncut meteor
#

it is dirty

terse needle
#

what

uncut meteor
#

what is that green dirt?

molten pewter
#

In traditional grammar, a part of speech or part-of-speech (abbreviated as POS or PoS) is a category of words (or, more generally, of lexical items) that have similar grammatical properties. Words that are assigned to the same part of speech generally display similar syntaxic behavior (they play similar roles within the grammatical structure o...

terse needle
#

oh

uncut meteor
molten pewter
#

In linguistics, the term lexis (from Ancient Greek: ฮปฮญฮพฮนฯ‚ / word) designates the complete set of all possible words in a language, or a particular subset of words that are grouped by some specific linguistic criteria. For example, the general term English lexis refers to all words of the English language, while more specific term English religio...

terse needle
#

std::cout << "Hello World!" << std::endl;

uncut meteor
#
pub fn run<T, F: FnOnce() -> T + Send + 'static>(main: F) -> T where T: Send + 'static {
    main()
}
signal sand
#

last week, I was playing around with C++... for 1hr... I was trying to compile C++ with gcc instead of g++.. error, architecture not found...๐Ÿ˜ข , I spent 1hr like.. "is my complier broken... what the fuck.."...

rugged root
#

@vocal coyote You've got lots of background noise

quasi condor
uncut meteor
zenith radish
terse needle
#

Vala is an object-oriented programming language with a self-hosting compiler that generates C code and uses the GObject system.
Vala is syntactically similar to C# and includes notable features such as anonymous functions, signals, properties, generics, assisted memory management, exception handling, type inference, and foreach statements. Its d...

zenith radish
rugged root
#

Very Esoteric, Impressively Lame

#

I couldn't figure out something for IL

zenith radish
#

gintautas

#

gitautas

cursive schooner
#

Hey @terse needle what you working on?

terse needle
#

Boids simulation in C

zenith radish
cursive schooner
zenith radish
rugged root
#

@molten pewter "The bagel virgin"?

zenith radish
terse needle
quasi condor
uncut meteor
rugged root
uncut meteor
#

Perfectly toasted

terse needle
cursive schooner
#

@terse needle - What's this 0xbebebe... address?

terse needle
#

to check memory fuckery hasn't occurred

#

like leaks and stuff

cursive schooner
terse needle
#

I'm not quite sure about the intricacies of why it's used

cursive schooner
#

Ah cool

rugged root
#

@whole bear How've you been? Haven't seen you in a while

whole bear
#

ive been buisy with school work

gentle flint
#

apparently metal slinkies are a thing

#

yeah

#

also noisier

whole bear
#

perfect

rugged root
abstract schooner
#

hey guys how is everyone

rugged root
#

Good, 'bout you?

abstract schooner
rugged root
#

Thankfully I don't have to process them. But we've had a lot of tech issues and new hardware and what have you

#

So IT wise I've been running around a lot

abstract schooner
#

can we talk about cats now

rugged root
#

@whole bear The maggot talk is done now

whole bear
#

lovely

rugged root
#

Figured that's why you deafened

plain rose
#

How would i get the video role?

#

is there a command to run?

rugged root
#

I grant it on a temporary basis as needed. The folks who have it on permanently are either grandfathered in from the old system or are folks I've personally vetted and trust

plain rose
#

LP * 5, hmmmm

whole bear
#

basically the mystery will be kept...

plain rose
#

what we talking about here

whole bear
#

is it possible to make a rocket or drone without an engineering degree

#

or expieriance

plain rose
pallid hazel
#

model rockets..

whole bear
#

@zenith radish you're drive is impressive

plain rose
whole bear
#

we stay hungry we devour

plain rose
rugged root
#

Yeah, you have to admire the dedication.

pallid hazel
#

train rats to carry c4

plain rose
rugged root
#

But it's kind of like watching someone trying to get a spoon out of a boiling pot

plain rose
#

step 1: lift pot, step 2: decide to go lift some weights because you can't lift the pot

whole bear
rugged root
#

After a while you just get enough scar tissue

rugged root
#

It's like organic gloves

whole bear
#

oooor use a tool if it is not necessary to use your hand in this weird game

rugged root
#

Comparison, not game

plain rose
#

LP the kid was 16, obvi the relationship is the younger you are the better you can create nuclear weapons

#

so i have the best chance out of anyone here

whole bear
#

the only thing stopping me from doing something like that is possible jail time due to my suspicious purchases

zenith radish
#

David Charles Hahn (October 30, 1976 โ€“ September 27, 2016), sometimes called the "Radioactive Boy Scout" or the "Nuclear Boy Scout", was an American man who built a homemade neutron source at the age of seventeen.
A scout in the Boy Scouts of America, Hahn conducted his experiments in secret in a backyard shed at his mother's house in Commerce T...

plain rose
rugged root
plain rose
#

so, context is, lp wants to make a nuclear reactor?

zenith radish
#

no...

plain rose
zenith radish
#

I'm trying to prove that anything is possible and that nay-sayers are just boors

gentle flint
zenith radish
#

if you wanna make a nuclear reactor, make one

molten pewter
#

David Charles Hahn (October 30, 1976 โ€“ September 27, 2016), sometimes called the "Radioactive Boy Scout" or the "Nuclear Boy Scout", was an American man who built a homemade neutron source at the age of seventeen.
A scout in the Boy Scouts of America, Hahn conducted his experiments in secret in a backyard shed at his mother's house in Commerce T...

zenith radish
#

if you wanna make a drone

#

make one

quasi condor
#

While he never managed to build a reactor,....
hmmmm

whole bear
#

i have uranium

#

@raw carbon

#

how u goung to jail if u die

plain rose
#

maybe we shouldn't use uranium and bombs as an example to prove anything is possible

whole bear
#

Water injected with oxygen (or an alkali, acid or other oxidizing solution) is circulated through the uranium ore, extracting the uranium. The uranium solution is then pumped to the surface.

#

hehe activate it like that

rugged root
#

?

whole bear
#

srry wrong word

viral ibex
#

who is the guy with the deep voice?

#

and what kind of mic and software it is using

#

hahahaha

#

come on!

#

HAHAHAHAH

quasi condor
#

@zenith radish you're doing actual things, so presumably the answer is no, but do you want to play geoguessr?

plain rose
#

anyone wanna do a type race

umbral terrace
rugged root
#

What part of the code is tripping you up?

whole bear
#

see ya

umbral terrace
#

I donโ€™t understand most of it,
Does def defin everything underneath it as integer_ etc @rugged root

rugged root
#

Mkay, I'll try and break it down

pallid hazel
#

still works :)

zenith radish
#

Waiting for anyone who wants to join

#

anyone else?

terse needle
#

I will

zenith radish
#

waiting on ya @terse needle

#

Alright

plain rose
#

flashbang

#

k i gtg play solitaire

#

cya

zenith radish
flat sentinel
zenith radish
flat sentinel
zenith radish
gentle flint
#

@sand ermine please be quiet

somber heath
#

@sand ermine We don't want to hear your phone conversation. ๐Ÿ™‚

#

@rugged root Help?

somber heath
sand ermine
#

๐Ÿ˜†

rugged root
#

Haven't had a good help session like that in quite a while

#

Helps remind me why I'm a part of this server

somber heath
#

โœจ Community!โœจ

#

๐Ÿคฉ

#

(Bleurgh!)

pallid hazel
#

ohh my bad

whole bear
#

i got in the 4th place

#

ayo make it even harder

#

remove pan and zoom and move

rugged root
#

God does not want me to pay my storage unit bill

wicked pine
#

Well to be fair you could throw a dart at Russia and you'd still have the same chance

rugged root
#

The website just refuses to let me in or take my payment

wicked pine
#

Unless u know ur trees

rugged root
#

Apparently bollards are also a big tell

wicked pine
#

It's Cars

rugged root
#

The movie?

wicked pine
#

the movie

rugged root
#

But yeah, the side of the road people are driving on helps as well

whole bear
#

remove pan and zoom and move and lets make it hard cmon ๐Ÿ’ฅ

rugged root
#

Oh god that sounds impossible

zenith radish
gentle flint
somber heath
#

There could he another version of this that is restricted to various racetracks. Call it Geegeeoguesser.

gentle flint
vivid palm
#

@uncut meteor is missing his chance to shine EYES

zenith radish
wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @zenith radish until <t:1646257918:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

rugged root
#

!unmute 409107086526644234

wise cargoBOT
#

:x: There's no active mute infraction for user @wise cargo.

rugged root
#

!unmute 82578210453192704

wise cargoBOT
#

:x: There's no active mute infraction for user @zenith radish.

whole bear
#

Hey

zenith radish
whole bear
#

Where Do I Go To Get Help

#

With Code?

rugged root
#

Typically we suggest checking out the #โ“๏ฝœhow-to-get-help channel and using the help system. But if it's something pretty quick, you can always drop your question in here and we can take a look

whole bear
#

Ok

rugged root
#

But it's likely that everyone's a bit distracted with GeoGuesser

whole bear
#

One Sec

#

Ok Thx

somber heath
#

What's a T second?

zenith radish
stuck furnace
#

Well LP told me where it was

#

ยฏ_(ใƒ„)_/ยฏ

#

Go Furyo!

#

I wonder ๐Ÿค”

#

Pretty sure this is Berlin

whole bear
#

aight best of luck to yall

#

i gtg

stuck furnace
#

Should have zoomed in further lemon_pensive

vivid palm
#

Tianducheng (Chinese: ๅคฉ้ƒฝๅŸŽ), also called Sky City, is a housing estate in Xingqiao Subdistrict, Linping District, Hangzhou, Zhejiang Province, China that imitates many design features of Paris.

stuck furnace
#

Ah no lemon_pensive

vivid palm
zenith radish
stuck furnace
#

Go Charlie ๐Ÿ˜„

#

It's where I thought it was, but I didn't know where that is ๐Ÿ˜‘

#

Ohh I know this ๐Ÿ˜„

#

Like the most famous house in the world...

#

:partydog:

#

Ahh second guessed myself :C

zenith radish
stuck furnace
#

KJ, you joining? ๐Ÿ‘€

#

๐Ÿค”

#

I don't actually know where in Paris it is, despite having been there...

#

Oh yeah, this is down the street from me

#

This is a very famous place ๐Ÿ˜„

#

I used to be really into architecture

terse needle
#

nerf LX

zenith radish
stuck furnace
#

๐Ÿ‘‘

#

I guess at random in India

zenith radish
stuck furnace
#

Ahhh, I've been there ๐Ÿคฆ

somber heath
#

Australia?! Aqueducts?!

#

I sigh at you.

stuck furnace
#

Is that Opal? ๐Ÿ‘€

zenith radish
stuck furnace
#

gg

#

@gentle flint loud noise

#

Big clue on the sign

#

"KAFKA MUSEUM"

#

To be fair the building its in is the one your would recognise.

zenith radish
stuck furnace
#

Sitting this one out. Back in a bit ๐Ÿ‘‹

#

Just the one I think ๐Ÿค”

#

He designed several buildings around Barcelona though.

zenith radish
somber heath
#

Honestenge.

frosty garnet
#
if __name__ == "__main__":
  print("this file is being executed")
umbral terrace
primal yacht
#
whole, remainder = divmod(numerator, denominator)
somber heath
#

@umbral terrace Yeah, something's gone weird.

#

But hi.

wintry pier
#

what if futur depand on apps, what will happend

#

and windows use apps

#

and linux so on

umbral terrace
somber heath
#

!e py a = 250 b = format(a, "x") # x is hexadecimal print(b)

wise cargoBOT
#

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

fa
somber heath
#

!e print(int("fa", base=16))

wise cargoBOT
#

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

250
somber heath
#

!e ```py
hexes = []
for i in range(50):
hexes.append(format(i, "x"))

print(hexes)```

wise cargoBOT
#

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

['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '1a', '1b', '1c', '1d', '1e', '1f', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '2a', '2b', '2c', '2d', '2e', '2f', '30', '31']
somber heath
#

!e py text = "apple" new_text = text[::-1] print(new_text)

wise cargoBOT
#

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

elppa
somber heath
#

!e ```py
def func(v):
return format(v, "x")

print(func(60))```

wise cargoBOT
#

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

3c
umbral terrace
#

def integer_to_reverse_binary(integer_value):
reverse_binary = ''
while integer_value > 0:
reverse_binary += str(integer_value % 2)
integer_value = integer_value // 2
return reverse_binary

def reverse_string(input_string):
return input_string[::-1]

if name == 'main':

intger_value = int(input())        

input_string = int_to_reverse_binary(integer_value)
print(reverse_string(input_string))

somber heath
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

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

These are backticks, not quotes. Check this out if you can't find the backtick key.

somber heath
#

!d format

wise cargoBOT
#

format(value[, format_spec])```
Convert a *value* to a โ€œformattedโ€ representation, as controlled by *format\_spec*. The interpretation of *format\_spec* will depend on the type of the *value* argument; however, there is a standard formatting syntax that is used by most built-in types: [Format Specification Mini-Language](https://docs.python.org/3/library/string.html#formatspec).

The default *format\_spec* is an empty string which usually gives the same effect as calling [`str(value)`](https://docs.python.org/3/library/stdtypes.html#str "str").

A call to `format(value, format_spec)` is translated to `type(value).__format__(value, format_spec)` which bypasses the instance dictionary when searching for the valueโ€™s `__format__()` method. A [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError") exception is raised if the method search reaches [`object`](https://docs.python.org/3/library/functions.html#object "object") and the *format\_spec* is non-empty, or if either the *format\_spec* or the return value are not strings.
somber heath
#

!d slice

wise cargoBOT
#

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

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

y

#
    reverse_binary = ''   
    while integer_value > 0:        
        reverse_binary += str(integer_value % 2)        
        integer_value = integer_value // 2        
   
    return reverse_binary     
    
def reverse_string(input_string):       
    return input_string[::-1] 

if __name__ == '__main__':```
#
    reverse_binary = ''   
    while integer_value > 0:        
        reverse_binary += str(integer_value % 2)        
        integer_value = integer_value // 2        
   
    return reverse_binary     
    
def reverse_string(input_string):       
    return input_string[::-1] 

if __name__ == '__main__':

integer_value = int(input())        
input_string = int_to_reverse_binary(integer_value)
print(reverse_string(input_string)) 
#
    reverse_binary = ''   
    while integer_value > 0:        
        reverse_binary += str(integer_value % 2)        
        integer_value = integer_value // 2        
   
    return reverse_binary     
    
def reverse_string(input_string):       
    return input_string[::-1] 

if __name__ == '__main__':

integer_value = int(input())        
input_string = int_to_reverse_binary(integer_value)
print(reverse_string(input_string))```
#
def integer_to_reverse_binary(integer_value):   
    reverse_binary = ''   
    while integer_value > 0:        
        reverse_binary += str(integer_value % 2)        
        integer_value = integer_value // 2        
   
    return reverse_binary     
    
def reverse_string(input_string):       
    return input_string[::-1] 

if __name__ == '__main__':

integer_value = int(input())        
input_string = int_to_reverse_binary(integer_value)
print(reverse_string(input_string)) 
#
def integer_to_reverse_binary(integer_value):   
    reverse_binary = ''   
    while integer_value > 0:        
        reverse_binary += str(integer_value % 2)        
        integer_value = integer_value // 2        
   
    return reverse_binary     
    
def reverse_string(input_string):       
    return input_string[::-1] 

if __name__ == '__main__':

    integer_value = int(input())        
    input_string = int_to_reverse_binary(integer_value)
    print(reverse_string(input_string)) 
#

File "main.py", line 7
return reverse_binary
^
IndentationError: unindent does not match any outer indentation level

wintry pier
#

2
01
10

#
def integer_to_reverse_binary(integer_value):   
    reverse_binary = ''   
    while integer_value > 0:        
        reverse_binary += str(integer_value % 2)        
        integer_value = integer_value // 2        
   
    return reverse_binary     
    
def reverse_string(input_string):       
    return input_string[::-1] 

if __name__ == '__main__':

    integer_value = int(input())        
    input_string = integer_to_reverse_binary(integer_value)
    print(reverse_string(input_string)) 
umbral terrace
#
def int_to_reverse_binary(integer_value):   
    reverse_binary = ''   
    while integer_value > 0:        
        reverse_binary += str(integer_value % 2)        
        integer_value = integer_value // 2        
   
    return reverse_binary     
    
def string_reverse(input_string):       
    return input_string[::-1] 

if __name__ == '__main__':

    integer_value = int(input())        
input_string = int_to_reverse_binary(integer_value)
print(string_reverse(input_string)) ```
somber heath
#

!if-name-main

wise cargoBOT
#

if __name__ == '__main__'

This is a statement that is only true if the module (your source code) it appears in is being run directly, as opposed to being imported into another module. When you run your module, the __name__ special variable is automatically set to the string '__main__'. Conversely, when you import that same module into a different one, and run that, __name__ is instead set to the filename of your module minus the .py extension.

Example

# foo.py

print('spam')

if __name__ == '__main__':
    print('eggs')

If you run the above module foo.py directly, both 'spam'and 'eggs' will be printed. Now consider this next example:

# bar.py

import foo

If you run this module named bar.py, it will execute the code in foo.py. First it will print 'spam', and then the if statement will fail, because __name__ will now be the string 'foo'.

Why would I do this?

โ€ข Your module is a library, but also has a special case where it can be run directly
โ€ข Your module is a library and you want to safeguard it against people running it directly (like what pip does)
โ€ข Your module is the main program, but has unit tests and the testing framework works by importing your module, and you want to avoid having your main code run during the test

umbral terrace
somber heath
#

!e py my_dict = {"Apples": 5, "Pears": 3} a = my_dict["Apples"] print(a)

wise cargoBOT
#

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

5
somber heath
#

!e py my_dict = {"Apples": 6} my_dict["Pears"] = 8 print(my_dict)

wise cargoBOT
#

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

{'Apples': 6, 'Pears': 8}
somber heath
#

!e py my_dict = {"Apples": 4} a = my_dict.get("Apples", 0) b = my_dict.get("Pears", 0) print(a) print(b)

wise cargoBOT
#

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

001 | 4
002 | 0
somber heath
#

!e py text = "abcdefg" for character in text: print(character)

wise cargoBOT
#

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

001 | a
002 | b
003 | c
004 | d
005 | e
006 | f
007 | g
somber heath
#
character = "a"
print(character)
character = "b"
print(character)
character = "c"
print(character)```
pallid hazel
#

!e
text = "abcdefg"
for smurf in text:
print(smurf)

wise cargoBOT
#

@pallid hazel :white_check_mark: Your eval job has completed with return code 0.

001 | a
002 | b
003 | c
004 | d
005 | e
006 | f
007 | g
somber heath
#

!e py for i in range(10): print(i)

wise cargoBOT
#

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

001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
pallid hazel
#

!e
res = []
x = 1
text = "abcdefg"
for smurf in text:
if smurf == 'a':
res.append(x)
else:
res.append(smurf)
print(res)

wise cargoBOT
#

@pallid hazel :white_check_mark: Your eval job has completed with return code 0.

[1, 'b', 'c', 'd', 'e', 'f', 'g']
umbral terrace
#

x = input

text = "x"
for char in text:
print(char)

pallid hazel
#

no input in the bot here, so you have to trick it kind of.. provide a list, dict or other defined variable

#

!e
#x = input()
x = 'mypassword'
print(x)

wise cargoBOT
#

@pallid hazel :white_check_mark: Your eval job has completed with return code 0.

mypassword
umbral terrace
#

x = input()

text = "x"
for char in text:
print(char)

pallid hazel
#

somevariablename = 'x'

umbral terrace
#

text = input()
char = x
for char in text:
print(char)

willow lynx
#

!e pwd=input() d={8:B,6:&} for I,j in enumerate(PWD): if j in d.keys():PWD[I]=d[j]

somber heath
#

Okay, so I have the problem where if I know of the right way to do something and the teacher is wanting you to do things in a different way, I get flustered and think of the most convoluted way to solve it.

#

pynoob was right about items..

#

So.

#

!e py my_dict = {"Apples": 5, "Pears": 4} for key, value in my_dict.items(): print(key, value)

wise cargoBOT
#

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

001 | Apples 5
002 | Pears 4
somber heath
#

!e py my_dict = {"Apples": 5, "Pears": 4} for item in my_dict.items(): print(item)

wise cargoBOT
#

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

001 | ('Apples', 5)
002 | ('Pears', 4)
somber heath
#

!e py my_dict = {"Apples": 5, "Pears": 4} for key in my_dict.keys(): #Same as for key in my_dict print(key) print() for value in my_dict.values(): print(value)

wise cargoBOT
#

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

001 | Apples
002 | Pears
003 | 
004 | 5
005 | 4
somber heath
#

!e py text = "apples" text = text.replace("p", "k") print(text)

wise cargoBOT
#

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

akkles
somber heath
#

think p, key, k value.

#

!d str.replace

wise cargoBOT
#

str.replace(old, new[, count])```
Return a copy of the string with all occurrences of substring *old* replaced by *new*. If the optional argument *count* is given, only the first *count* occurrences are replaced.
pallid hazel
#

!e
new_char1 = 1
new_char2 = 'x'
exclude = new_char1, new_char2
text = 'abcd'
newtext = []
for char in text:

if char == 'a':
    newtext.append( new_char1)
elif char == 'd':
     newtext.append(new_char2)
elif char not in exclude:
    newtext.append(char)

print(newtext)
print(exclude)

wise cargoBOT
#

@pallid hazel :white_check_mark: Your eval job has completed with return code 0.

001 | [1, 'b', 'c', 'x']
002 | (1, 'x')
umbral terrace
#

word = 'mypassword'

word = word.replace('i','!')
word = word.replace('a','@')
word = word.replace('m','M')
word = word.replace('B','8')
word = word.replace('o','.')

word = word + 'q*s'

print(word)

arctic ledge
#

filters = {
    "Happy": {
        "Sky Color" : ["blue"],
        "Time Of Day" : ["Noon","Twilight"],
        "Weather" : ["Clear"]
    },
    "Terrible": {
        "Sky Color" : ["Red"],
        "Time Of Day" : ["Night"],
        "Weather" : ["Thunder"]
    },
    "Okay": {
        "Sky Color" : ["Grey"],
        "Time Of Day" : ["Twilight"],
        "Weather" : ["Overcast"]
    }
}


df = pd.DataFrame.from_dict({
    "Sky Color" : ["blue","blue","Red","Grey","blue"],
    "Time Of Day" : ["Noon","Noon","Night","Twilight","Twilight"],
    "Weather" : ["Clear","Thunder","Thunder","Overcast","Clear"]
    })


# so far I have tried things like this
for item in filters.keys():
    df.loc[(df[filters[item].keys()].isin(filters[item].values()).all(axis=1)),'Type of Day'] = item```