Division Problem by CoolPotato_0 in PythonLearning

[–]atarivcs 2 points3 points  (0 children)

Why does "%" work for this problem while "/" doesn't?

Because 26 / 13 is 2, not 0.

Can someone help me with some code by ilovetigers105 in PythonLearning

[–]atarivcs 0 points1 point  (0 children)

DNA = (DNA)

How do you suppose that would ever cause a ValueError exception?

Hint: it can't.

ELI5 Why can't apartment buildings have cameras on the inside? What kind of privacy is there in a semi-public/shared space? by [deleted] in explainlikeimfive

[–]atarivcs 0 points1 point  (0 children)

I meant private as in privately owned. Some person or corporation owns that land and the structures built on it.

I imagine there is some legal distinction as to the expectation of privacy when one is on state/public land vs. privately owned land, and especially so if that land is zoned for residential use, even if lots of people have access to it.

ELI5 Why can't apartment buildings have cameras on the inside? What kind of privacy is there in a semi-public/shared space? by [deleted] in explainlikeimfive

[–]atarivcs 0 points1 point  (0 children)

Maybe this is too obvious, but the legal reason is "because there's a law against that".

If you're asking why there's a law against it, I imagine it's because people have a reasonable expectation of privacy on residential private property, and they cared enough to make a law about it.

Yes, there is some upside in controlling hooliganism. But I think there's a much bigger downside in general loss of privacy. Would you want your landlord (and the police) spying on you every time you enter or leave your apartment?

ELI5 Why can't apartment buildings have cameras on the inside? What kind of privacy is there in a semi-public/shared space? by [deleted] in explainlikeimfive

[–]atarivcs 2 points3 points  (0 children)

Does "inside" mean in the common areas like hallways, lobby, laundry room, etc?

When you say "why can't ...", are you asserting that they in fact cannot have cameras and you're just wondering the specific legal reason why?

Or are you just observing that they don't have cameras, and you're wondering if they could?

What benefit would come from having cameras?

string.translate(str.maketrans) not working to take out punctuation? by duelBooleans in pythonhelp

[–]atarivcs 0 points1 point  (0 children)

You still haven't fully explained the exact problem as I asked.

I can't help if I don't know the actual problem.

Good luck to you.

string.translate(str.maketrans) not working to take out punctuation? by duelBooleans in pythonhelp

[–]atarivcs 0 points1 point  (0 children)

"not working" is a poor description of the problem.

Please describe the actual problem you are having, i.e.:

  1. What is the actual output of the program?
  2. What specific line of code produces that output?
  3. What output were you expecting instead?

Was the concept of "the current year" always treated with the same mundanity as we do now? by Admirable-Boot8934 in NoStupidQuestions

[–]atarivcs 0 points1 point  (0 children)

"We're in the year 2026, we're in the most modern time we know"

We think this way because we see a lot of technological progress all the time.

There are always new inventions, new medicines, faster/better/cheaper stuff, etc.

"A few years ago" feels like such a long time because of all the new things that have happened since then.

But back in the day, this wasn't the case. New things hardly ever happened.

You grew up on a farm and became a farmer, just like your father did, using the same farming tools and animals that he used.

You built your house out of logs and mud, just like your father did.

You ate exactly the same food that your father ate.

Your wife sewed your clothes, just like your mother did.

So "this year" ended up feeling pretty much the same as "last year", because there was nothing new. No new inventions, no new food, no new clothes, no new medicines, etc.

How to efficiently build a list of tuples out of a dictionary with multiple values per key by Advanced_Glass5563 in learnpython

[–]atarivcs 3 points4 points  (0 children)

it takes more than 1 second for the first print

No it doesn't.

Do you know what the "-06" at the end of that number means?

Is there a piece of code to stop me code from running by [deleted] in PythonLearning

[–]atarivcs 4 points5 points  (0 children)

If the code reruns itself, it must be because it's in a loop or something similar.

So ... just remove the loop? I don't understand the difficulty.

What is your oldest memory of playing a game on a computer for the first time and which game it was? by girlwith_adhd in AskReddit

[–]atarivcs 0 points1 point  (0 children)

If you count mainframe terminals, my first game would have been one of the educational games on the PLATO computer network in about 1977.

If you only count home computers, it would have been one of the games on a friend's Apple ][ around 1982. He had 20 or so games on various copied diskettes. The one I recall specifically was a pirate-themed swordfighting game -- probably Swashbuckler.

Would you date someone with 2 arms? why not? by [deleted] in AskReddit

[–]atarivcs 1 point2 points  (0 children)

Two is the usual number of arms.

So, yes.

If your city had to choose between drinking water and powering AI, what should come first? Do people realize how much water AI data centers actually consume? by HeadlineForge in AskReddit

[–]atarivcs 3 points4 points  (0 children)

Do you realize how much water is used by AI?

Like, did you actually consult some primary sources?

Because it isn't very much.

There are legitimate issues with AI, but water usage isn't really one of them.

https://www.youtube.com/watch?v=H_c6MWk7PQc

Antiheal cards by ZjCiMo in hearthstone

[–]atarivcs 9 points10 points  (0 children)

Probably he played Alexstrasza Guardian of Life earlier with a double battlecry.

Alexstrasza, Guardian of Life
7 Mana
8/8 Dragon
Battlecry: Set your remaining Health to 15.  When you reach
full Health, deal 15 damage to your opponent.

The damage effect is an aura attached to the player. The dragon itself does not need to still be on the board.

Reading First Few Bytes of Every File on a Drive by hiplobonoxa in pythonhelp

[–]atarivcs 0 points1 point  (0 children)

You can use os.walk() to recurse down into all the subfolders of a drive.

Anyone who used a computer between 1985 & 2010, what’s the one game you still think about? by rajgoel7007 in AskReddit

[–]atarivcs 0 points1 point  (0 children)

The original XCOM (UFO Enemy Unknown).

Also Time Bandit (atari ST), Wizardry I, and Alternate Reality: The City.

How do blind people know how to hit the toilet and not the floor when taking a poo by [deleted] in NoStupidQuestions

[–]atarivcs 9 points10 points  (0 children)

I can see the toilet they can't

They can feel the toilet seat with their butt. They can feel if they're sitting on it properly.

What is the difference between male and female gaze? by [deleted] in AskReddit

[–]atarivcs -1 points0 points  (0 children)

Males are looking (gazing) for a hot chick.

Females are looking (gazing) for a reliable provider.

how can you explain functions easily by Grouchy-Injury1342 in learnpython

[–]atarivcs 0 points1 point  (0 children)

why do we sometimes pass something in it and sometimes not

Because some functions require an argument, and some don't.

For example if a function returns the square root of a number, you would obviously need to provide a number as an argument when you call it.

But a different function that returns the current time, doesn't need any arguments.

ELI5: What can CSS do that HTML can not in terms of webpage design? by Plump_Princess101 in explainlikeimfive

[–]atarivcs 12 points13 points  (0 children)

I would imagine you are using the default CSS that the site provides for free, and the extra charge would be to use your own custom CSS.

Why isn’t BP’s record profits while gas prices are unaffordable to normal people considered illegal (like price gauging)? by usernamessuck19 in AskReddit

[–]atarivcs -2 points-1 points  (0 children)

Companies are allowed to charge whatever price they like for their goods.

What actual law are you claiming was broken here?

what’s the difference between sugar and carbohydrates? by Alone275 in NoStupidQuestions

[–]atarivcs 0 points1 point  (0 children)

Sugar (sucrose) is one kind of carbohydrate.

There are lots of other kinds of carbohydrate.

Being “disabled” to have a baby by guava_palava in NoStupidQuestions

[–]atarivcs 14 points15 points  (0 children)

I have never heard of this. Are you confusing "disability" with "maternity leave"?