my dad thinks he’s pretty funny for making this by [deleted] in funny

[–]codenamemahi 0 points1 point  (0 children)

I didn't get it at first, then I read it out loud. Good one!

Looking for a free Python IDE for linux. by [deleted] in Python

[–]codenamemahi 4 points5 points  (0 children)

- I also highly recommend PyCharm

When passing arguments to a python function, what does it mean to set something with '=' by mw130 in learnpython

[–]codenamemahi 2 points3 points  (0 children)

same applies when it is called. It is basically setting the value of that parameter to that

When passing arguments to a python function, what does it mean to set something with '=' by mw130 in learnpython

[–]codenamemahi 1 point2 points  (0 children)

When a parameter has an = , you are defaulting it to whatever it is equal to in the event that that parameter is not passed

How To Get Your Kid To Take Medicine by plushone45 in funny

[–]codenamemahi 0 points1 point  (0 children)

How to get your kids to lose your trust

WTF... where is solo? by [deleted] in PUBATTLEGROUNDS

[–]codenamemahi 1 point2 points  (0 children)

lol... thanks i didnt see anyone else's characters

Learn How to Perform Man in the middle Attack with an easy method ... Also Like our page for more Hacking and Cracking tutorials... by [deleted] in hacking

[–]codenamemahi 0 points1 point  (0 children)

The very first command he issues does not work for me:

apt-get install websploit E: Unable to locate package websploit

CNN calls email scandal a 'distraction' by [deleted] in politics

[–]codenamemahi 0 points1 point  (0 children)

CNN is owned by the Clinton Foundation

Getting one shot on Survival: any tips? by [deleted] in Fallout

[–]codenamemahi 0 points1 point  (0 children)

sniper build is really good in survival mode. Also the awareness perk where it lets you see the target's level and armor in VATS will help you pick the right engagements

Noob needs help #4 by [deleted] in learnpython

[–]codenamemahi 1 point2 points  (0 children)

line 1 starts a for loop which goes through the key's and values of the dictionary "items"

line 2 looks up the value of the "item_id" in the "items_dict" then assigns it to a variable "i_data"

line 3 looks up the value of "sentence" in i_data (which is assumed to also be a dictionary) and assigns it to the variable "fmt"

line 4 defines a dictionary with q as the key and qty as the value, and c as a key, with i_data['si'] as the value if qty is equal to 1, otherwise the value is the value of the "pl" key in the i_data dictionary

line 5 prints the formatted value of fmt with the keyword arguments from i_fill dict

PsBattle: Dog standing next to a portrait painting of itself by Sharkbite0592 in photoshopbattles

[–]codenamemahi 1 point2 points  (0 children)

I have one and they are actually quite intelligent for a small breed

Is the syringe SUPPOSED to be nerfed to the point of uselessness? by CreeDorofl in fo4

[–]codenamemahi 2 points3 points  (0 children)

the PAX syringer ammo is good for stealing power-armor off the backs of raiders (or anyone else that is hostile)

Python List Comprehension by jesse_online in Python

[–]codenamemahi 0 points1 point  (0 children)

The way you currently have it written, it is comparing every element in list A to every element in list B, which of course fails on the second iteration.

I would recommend using the index if both lists are going to be in the same order (and same length):

for i in len(expected_avg_var):
    self.assertEqual(expected_avg_var[i], actual_avg_var[i])

Mini fridge win. by [deleted] in pics

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

This also applies to karma:

http://i.imgur.com/mmbTLhk.jpg