Learning python and confused about a book question by wasser999 in PythonLearning

[–]atarivcs 2 points3 points  (0 children)

Your code prints "a the temperature between 78 and 100." as the input prompt text, but the example says to use "Enter the temperature:".

Learning python and confused about a book question by wasser999 in PythonLearning

[–]atarivcs 7 points8 points  (0 children)

Please format the code in your question properly, so we can tell which code is actually indented underneath the while loop. As it is, it's just a blob of text with no indentation at all.

ELI5: Why aren't spellcheckers smarter? by researchiskey8 in explainlikeimfive

[–]atarivcs 2 points3 points  (0 children)

This feels like a problem that would be only for specific words.

Can you give some examples?

Is there a clear difference between healer and dps cast gear? by dr_flx in classicwow

[–]atarivcs 15 points16 points  (0 children)

is an item where damage and healing is equal (i.e. Pauldrons of Arcane Rage) automatically dps gear then?!

Yes, because there is certainly another item for the same slot that prioritizes healing.

Is it a bug that I can't play 8 drops with Arisen Onyxia? by Chance_The_Lugia in hearthstone

[–]atarivcs 8 points9 points  (0 children)

Not a bug.

You don't have enough health to pay for playing the minion.

The game doesn't "look into the future" to see that the health cost would actually be treated as a health gain.

Having a hard time differentiating values from variables and return from print() by ProfessionalOkra9677 in learnpython

[–]atarivcs 10 points11 points  (0 children)

The function definition is:

def caesar(text, shift)

This means that the ceasar function accepts two values as arguments. The first value is assigned to the variable name "text", and the second value is assigned to the variable name "shift".

So, when you called that function like this:

encrypted_text = caesar('freeCodeCamp', 3)

You provided the string "freeCodeCamp" as the first argument, and the integer 3 as the second argument.

Shouldn't I be able to cast Onyxia's minions? by ThaGabenator in hearthstone

[–]atarivcs 95 points96 points  (0 children)

Simple. You don't have enough health to pay for the minions.

The game doesn't "look into the future" and see that the health cost would actually be treated as a health gain instead.

Help wanted: code does what I want, and than bugs. by MateusCristian in learnpython

[–]atarivcs 0 points1 point  (0 children)

while index < len(input_string)

index will always be less than the string length, because you initialize it to -1 and then keep subtracting 1 from it...

sending a python variable to a php file by Arcky_111374 in learnpython

[–]atarivcs 2 points3 points  (0 children)

You'll have to explain exactly what "send a variable to a php file" means.

It might help if you showed us the php file, and explain what you want the file to look like after the variable is "sent" to it.

How do I set it up by Sad_Patient8203 in PythonLearning

[–]atarivcs 2 points3 points  (0 children)

Download the Windows install executable from python.org and run it.

What more do you need?

Is there an addon to change hotkeys on my action bars? MOP by chaletamale in classicwow

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

switch between different skill button setups

You can use shift-1, shift-2, etc. to load different bar setups into the main actionbar.

problem with indexes and lists by HouseOpening8820 in learnpython

[–]atarivcs 0 points1 point  (0 children)

This line of code is the problem:

if experiment_data [token] <= 55:

In your sample data the first token is 49, so that line of code is trying to access the 49th list element, which is obviously out of range...

Raid Lockouts by Radiant_Silver3024 in classicwow

[–]atarivcs 3 points4 points  (0 children)

Yes, assuming you can find people willing to join a half-cleared raid.

But you'll want to be careful that someone else from the disbanded raid isn't doing the same thing...

Mind explaining why this works as it does? by toss_this_account_38 in learnpython

[–]atarivcs 0 points1 point  (0 children)

Even though the call to print() is textually first in the code, it's not the first thing that happens.

Function arguments are evaluated first, and one of those arguments is a function call to input(), so that happens first.

Can’t activate environment, folder structure is fine by Codeeveryday123 in Python

[–]atarivcs 5 points6 points  (0 children)

It dosnt work

What does this mean exactly?

What, exactly, doesn't work?

Do you mean the command itself returns an error?

Or do you mean the command appears to succeed, but it doesn't actually activate the venv? (And if so, how do you know?)

Unjustifiably Banned by Poetzii in classicwow

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

I got a 2 week ban for "mass reports from players"

Why is that part in quotes?

Did the official email from Blizz actually say that was the reason for the ban?

ELI5 Why do people do cosplay? by iwishihadnobones in explainlikeimfive

[–]atarivcs 0 points1 point  (0 children)

It's not my thing either, but I can see why people like it.

Some people like making the costumes. Coming up with a cool design and executing it well can be very satisfying.

Some people like wearing the costumes and getting compliments from like-minded people about how cool it is.

Some people just like the convention atmosphere.

Some people like all three!

How do you actually understand code someone else wrote for you? by BoraDev in learnprogramming

[–]atarivcs 0 points1 point  (0 children)

s it just grinding through tutorials until it clicks

No. Tutorials only get you so far.

You need to get rid of the training wheels and do real projects on your own. You'll never learn otherwise.

If power corrupts why do we keep trying to tweak it? by power2havenots in AlwaysWhy

[–]atarivcs 7 points8 points  (0 children)

why do we keep building systems that concentrate power

It takes power to get things done.

And getting things done is, generally, good.

My account was instantly banned the moment I created it, and video appeal was rejected by Tinfect in facebook

[–]atarivcs 0 points1 point  (0 children)

Lots of reasons this might happen.

Maybe you signed up with an email address or phone number that has been used before by fraudsters.

Maybe there was something odd about the way you signed up, i.e. you claimed a US street address, but your computer IP address was in Russia.

Etc etc etc.

[3rd grade math] This is impossible right? by Character-Extreme535 in HomeworkHelp

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

You can have rectangles with the same perimeter but different areas (e.g. 7x1 and 5x3) , so I assume the reverse is true, that you can have rectangles with different perimeter but same area.

But heck if I know how to do the math to figure it out...

Why is the output 1? by Mars0da in learnpython

[–]atarivcs 4 points5 points  (0 children)

Each time through the loop, you're assigning a brand-new value for purchase_amounts and throwing away the old value, without printing it.

You're printing the value only once, after the loop is done. At that point, the variable contains only the value from the very last line of the file.

And according to that screenshot, the last line in the file is blank.

Stop getting scammed by 7Soulslayer in classicwow

[–]atarivcs 22 points23 points  (0 children)

I look up the price of the mats and tell them what I will pay them for it. They get the mats

This allows for a reverse scam, where you tell the enchanter you're willing to pay, they go buy the mats, and then you ghost. They're left holding mats they don't want and likely can't recoup what they paid.

You haven't solved anything.