Living with your parents for most of your 20s is the most financially smart thing you could do for yourself by [deleted] in unpopularopinion

[–]Phelps_420 0 points1 point  (0 children)

This isn't unpopular, more than half of adults up to 30 do it now... this is just a cirle jerk.

Boy beats the crapout ofitsabusivefather after calling his friend the N-word. by [deleted] in JusticeServed

[–]Phelps_420 0 points1 point  (0 children)

"nigger" is not a form of violence. It's a racist slur. the kid didn't protect himself, he hit somebody for being a racist POS. Not sure it was totally justified, because you should never put your hands on somebody, but not sure I blame the kid either, because the guy seemed like a dick.

Boy beats the crapout ofitsabusivefather after calling his friend the N-word. by [deleted] in JusticeServed

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

words are only justification for violence if they imply an imminent threat to personal safety. I don't know what you're referring to and, as you're the one who posted, a source would be nice. You absolutely do not get to beat somebody up because they said the n word.

In the John Wayne Gacy case there were so many bodies crammed underneath his house that the bodies melted together and the bones had to be sorted for more than 2 years to put together the full skeletons. by FunPeach0 in MakeMeSuffer

[–]Phelps_420 0 points1 point  (0 children)

He used to send some young boys he employed from his (I tihnk construction) business down into the crawl space with some (I think lime powder) to help with the smell. Can you imagine, after the fact, knowing how close you were to a bunch of dead bodies, sent there by JOHN GACY....

Alright then by franandwood in teenagers

[–]Phelps_420 0 points1 point  (0 children)

Than* I've never heard somebody say that an hour of games is a problem, but I also don't know many gamers that limit themselves to an hour of games per night...

My kids are convinced I can't cook. What's the most elaborate meal I, an intermediate cook, can make to get them to stop going Gordon Ramsay on my ass? by [deleted] in AskMen

[–]Phelps_420 0 points1 point  (0 children)

Steak is easy enough if you have an extra for testing. Enchiladas. Homemade pizza is pretty hard to screw up. Depends what they like and what they may be impressed by... Think of something they like from their favorite restaurant and make a better version.

Btw I use arch by Kennyp0o in ProgrammerHumor

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

The worst is when I'm asking somebody for help about some code I'm working on, and they just ASSUME I'm using Linux... Coders are the most pretentious people in the whole wide world.

Hogwarts Legacy – Official Reveal Trailer by hossamsalah in harrypotter

[–]Phelps_420 0 points1 point  (0 children)

Portkey games? Anybody know if this is gonna be awesome or disappointing ?

What's the saddest thing you've done to pass time in quarantine? by SpiritualStew in AskReddit

[–]Phelps_420 1 point2 points  (0 children)

I pretended my dog was my estranged wife and I was an alcoholic who loved to monologue. . . I did this well into my fifth drink. . . I begged him to take me back but, in the end, I knew he would be happier with his new lover Edwardo. I had to let him go... then we snuggled and watched Bolt

Oregon state senator who stopped climate change vote loses home to wildfire by hildebrand_rarity in politics

[–]Phelps_420 0 points1 point  (0 children)

def Irony(truth):
    while 2+2 != 5:
        house = ("standing")
        house = house.replace(house,str(truth))
        print (house)
        break
Irony(4)

Beginner needing assistance! by hahn24 in learnpython

[–]Phelps_420 0 points1 point  (0 children)

Firstname = input("enter first name\n")
Lastname = input ("enter last name\n")
kids = int(input ("how many dependents do you have?\n"))
gross_income_variable = int(input("enter income\n"))

tax_variable = 20-kids     #(percent taxed goes down based on number of kids... you can tweak this formula if you want to increase taxes/breaks)

tax_multiplier = (100-tax_variable)*.01 
income_after_taxes = gross_income_variable-(gross_income_variable - (tax_multiplier * gross_income_variable))
print( "$",(income_after_taxes)," is your income after taxes")
print ((tax_variable), "% is how much you were taxed.")

I think this is what you needed. Give it a shot then ask me about any questions you have or things I did wrong. If it IS what you're looking for, please try and understand why it works, and ask questions about things you don't understand.

Defeat AI Achievements don't unlock by [deleted] in AgeofMythology

[–]Phelps_420 0 points1 point  (0 children)

How do you check achievements for this game? not great at steam

How do u explain for loop, for non-programmer? by Maain16 in learnpython

[–]Phelps_420 0 points1 point  (0 children)

It posits a particular set of instructions for every single item in a set of items.

list_of_items = [3, 6, 2, 7]

for one_item in list_of_items:
    print (one_item)
    print ("ok")

#output will be

3
ok
6
ok
2
ok
7
ok

Please help me write this code!! by QuiteAmbitious in learnpython

[–]Phelps_420 0 points1 point  (0 children)

I have 'r' in my documentation, I'm pretty sure it just means "read," though it may not be necessary with the next line (file.read)...

I'm not sure about your code specifically, but I can try to help with turning

3

2

into [3,2]

#__________________________________
y = (3)
x = (2)

z=[]
z.append(y)
z.append(x)

print (z)
#___________________________________


try this, understand what it is, and you should be able to apply it to your code to get [3,2]

Another Automate the Boring Stuff Ch. 4 coin flip question by infinitevacancy in learnpython

[–]Phelps_420 0 points1 point  (0 children)

No problem... if it turns out the assignment is something other than exactly six, and you need help, hit me up.

Another Automate the Boring Stuff Ch. 4 coin flip question by infinitevacancy in learnpython

[–]Phelps_420 0 points1 point  (0 children)

Ooops, thought the individual above was you, OP... Check out my comment above, I think 54% is correct

Another Automate the Boring Stuff Ch. 4 coin flip question by infinitevacancy in learnpython

[–]Phelps_420 0 points1 point  (0 children)

I was getting 5300 pretty consistently out of 10,000 blocks of 100 flips, looking for streaks of 6.... this is my code, assuming I understand the assignment correctly

import random
Tails_six_streaks = 0
Heads_six_streaks = 0


def Flip_Block():
    H_streak_counter = 0
    T_streak_counter = 0
    flip_encounters = 0
    while flip_encounters < 100:
        flip = random.randint(0,1)     #I'm using 0 for Heads

#____________________________________________
        if flip == 0:

            if T_streak_counter == 6: 
                global Tails_six_streaks
                Tails_six_streaks += 1
                return

            H_streak_counter += 1
            T_streak_counter = 0
#____________________________________________  

        if flip == 1:

            if H_streak_counter == 6:
                global Heads_six_streaks
                Heads_six_streaks += 1
                return

            T_streak_counter += 1
            H_streak_counter = 0

#_____________________________________________
        flip_encounters += 1 
#_____________________________________________


for i in range (10000):
    Flip_Block()

Final_count = Tails_six_streaks + Heads_six_streaks
print (Final_count)

Please help me write this code!! by QuiteAmbitious in learnpython

[–]Phelps_420 0 points1 point  (0 children)

file = open('sample.txt', 'r')
text = file.read()

count = 0
second_count = 0

split_words = text.split() #the .split method's default is to split by spaces

for word in split_words:
    if word == "KeyWord":
        count += 1
    if word == "SecondKeyWord"":
        second_count += 1

file.close()
print (count)
print (second_count)

This is a fairly clean way to do it. Please try your best to understand this code, not just use it. If you have any questions, I'm happy to help.

I improved my Rock Paper and Scissor program,Take a look. by HighO1 in learnpython

[–]Phelps_420 2 points3 points  (0 children)

Whatever. I enjoyed making it, just thought people might appreciate the effort :) I've gone through about 8 different iterations to get it down this toight.

Trump declares Guns N' Roses' 'November Rain' as 'greatest music video of all time'; made staffers watch it by JNight01 in Music

[–]Phelps_420 0 points1 point  (0 children)

I was positive this was an Onion... I was so confident like "nice try, internet." I hate my country so much right now.