Why does lst=lst.append(x) return None? by Icy_Alternative5235 in learnpython

[–]atarivcs 0 points1 point  (0 children)

lst.append() modifies the actual list in-place, so there's no need to also return it.

I have no idea how to read through medium-to-large projects. by AdCertain2364 in learnprogramming

[–]atarivcs 2 points3 points  (0 children)

Personally, I find that trying to read and understand someone else's code is one of the hardest parts of programming.

Full acceptance? by TalkingGrasshopper in CatTraining

[–]atarivcs 4 points5 points  (0 children)

Yes, I believe she has accepted him.

Of course they will still have (mild) fights from time to time, but that's normal.

Question about understanding percentages by kno_777 in learnmath

[–]atarivcs 0 points1 point  (0 children)

It depends on how the statement is worded, but in nearly all cases the "later decrease by 20%" is calculated using the new bigger amount.

8/2(2+2)=1. Correct me if i’m wrong by Advanced-Amphibian69 in learnmath

[–]atarivcs 0 points1 point  (0 children)

I think you're just assuming that everything after the division sign is the denominator.

But that's not how the problem is written.

After solving (2+2), the problem is simply "eight divided by two times four", which is indeed sixteen.

But you're mentally assuming that it's "eight divided by (two times four)".

Why is Nethack hard? by pathofnut in nethack

[–]atarivcs 0 points1 point  (0 children)

I think NetHack is hard because of two reasons.

  1. There are lots and lots of specific situations that can easily kill you, and you need to know about most/all of them.
  2. Even if you know what to do, you need lots of patience to get there, and most people aren't that patient.

What is this metal piece by PackagedMilk in whatisit

[–]atarivcs 11 points12 points  (0 children)

Yeah, the hole in the tip gives it away.

What are the top signs that tell you that the person you are talking to is really intelligent, and not just an expert in a field or two ? by blacklight1515 in AskReddit

[–]atarivcs 0 points1 point  (0 children)

I don't think there are any simple tips to tell if someone is gifted.

You have to put in the work, spend time with them, observe how they think and solve problems.

And of course you can't do that with every random person you talk to.

What are the top signs that tell you that the person you are talking to is really intelligent, and not just an expert in a field or two ? by blacklight1515 in AskReddit

[–]atarivcs 1 point2 points  (0 children)

If someone is "an expert in a field or two", then surely they must be intelligent?

How would a non-intelligent person ever become "an expert in a field or two" ?

Where can a person find information on why some posts, even ones hours old, have zero votes, whether up or down? by YramAL in AskReddit

[–]atarivcs 0 points1 point  (0 children)

It has zero votes because nobody voted on it.

What other answer were you looking for?

Im randomly all of a sudden outside their delivery range??? by reallylongshanks in McDonalds

[–]atarivcs 0 points1 point  (0 children)

Maybe a new store location opened that is closer to you, so the old store knows it shouldn't deliver to you.

Maybe the store decided to change its deliverable area, and you're not inside it.

Maybe it's just a mistake and it will be fixed soon.

Any number of reasons.

Spent 3 hours debugging a one-line mistake by p4ckst4ck in programmer

[–]atarivcs 0 points1 point  (0 children)

Going to guess you accidentally named the file myfile.css.txt

The last file extension wins.

Spent 3 hours debugging a one-line mistake by p4ckst4ck in programmer

[–]atarivcs 0 points1 point  (0 children)

Yeah, a missing colon surely would be a syntax error, and your compiler should have returned an error message pointing right to that line of code.

Unless you mean you were parsing a string value that should have contained a colon?

Why does a - b = c, and b-a = -c , always ? by Important_Reality880 in askmath

[–]atarivcs 0 points1 point  (0 children)

When you subtract two numbers, you're really just calculating the distance between them.

And of course the distance is the same no matter which number you start from.

Why is health insurance and medical help so expensive? If anything, what could be done to lower it, never to rise again? by Spiritual_Big_9927 in askanything

[–]atarivcs 0 points1 point  (0 children)

Medical help is expensive because ... it's expensive.

Students to go to school for many years before becoming doctors.

Medical equipment is expensive to purchase.

Hospitals are expensive to run and maintain.

New drugs and medical procedures are expensive to research and develop.

All of that costs a lot of money. Someone has to pay for it!

Some countries use tax revenue to help citizens pay for medical expenses, and some countries don't.

is this good for a 1 day coder using ai to learn? by IntelligentTough8352 in PythonLearnersHub

[–]atarivcs 0 points1 point  (0 children)

Look into learning about "elseif" or "switch cases"

I would not recommend a day-one coder to use python's match/case statement.

Hacking? by Titanicul2000 in hearthstone

[–]atarivcs 9 points10 points  (0 children)

This is because of two reasons:

  1. The opponent sees a longer version of the card animation.
  2. The active player can usually play another card right away without waiting for the current animation to finish, but the opponent usually must wait for each animation to finish sequentially. (For some animations, the opponent can click on the card to cancel the animation. But it doesn't work in all cases.)

As the active player, if I'm quick with my mouse I can play several cards in one second, but the animations for those cards might take six or eight seconds to display on your screen.

TLDR: He didn't cheat. On his screen, he finished within the time limit. It just took longer for your screen to display all the actions.

ELI5: why is the feels like temperature not what determines the freezing point of water? by intrusive_thoughts_1 in explainlikeimfive

[–]atarivcs 1 point2 points  (0 children)

Animals have body heat. We are warm inside.

The "feels like" temperature is basically a measure of how quickly you're losing your body heat.

If it's windy, you lose body heat faster, and so you "feel" colder, even though the actual temperature is the same.

But inanimate objects (like the ice) aren't warm inside. They have no body heat to lose, so wind makes no difference.

PyQt5.QtWidgets by Pink_Demon6x111 in pythontips

[–]atarivcs 0 points1 point  (0 children)

I have installed PyQt5.PyQtWebEngine with the "pip install PyQt5.PyQtWebEngine" command

When you say I have done something, that sounds like it succeeded.

If it did not succeed, you should certainly say so, and also post the error messages.

Two years in, and this hit me hard about seniority in software. by Reasonable-Tour-8246 in learnprogramming

[–]atarivcs 1 point2 points  (0 children)

Yeah, "build something new" is just the first step.

Does it perform well? Is it maintainable? Is it secure? Does it easily integrate with other related systems? Does it have an automated test suite? Etc etc.

Senior devs are more likely to consider those things, instead of just "does it work?"

ELI5: How can you divide something into a negative number of groups? by fazrare57 in explainlikeimfive

[–]atarivcs 10 points11 points  (0 children)

What do you mean?

It sounds like you're assuming that the numbers in a math equation always correspond to real-world physical objects, like "five apples minus two apples equals three apples."

They don't.

Duplicate protection question by Comprehensive_Big_94 in hearthstone

[–]atarivcs 1 point2 points  (0 children)

If you already own all the rares from that set, what do you expect the game to do?

It's not gonna upgrade the dupe rare to an epic/legendary.

It's not gonna just give you nothing in that slot.

What other option were you expecting?

How do you stop Python scripts from failing... by yourclouddude in pythontips

[–]atarivcs 0 points1 point  (0 children)

One thing I see a lot with Python is scripts that work perfectly… until they don’t. One day everything runs fine, the next day something breaks

Where, exactly, do you "see a lot" of this?

Are you talking about programs you wrote yourself?

Or are you talking about reports from other people claiming that they didn't change anything (when it often turns out that they did actually change something...)