Why using "if __name__=='__main__': main()" and not simply "main()" in Python?
What does if __name__ == "__main__": do?
I have a question about using the phrase "some kind of _".  Is it incorrect to say "some kind of + plural noun"?     For example, is it wrong to say "are these rock-like things some kind of chocolates?"   I didn't use "kinds" and that kind of adds to my question. Is "kind" always plural, like "some kinds of chocolates"? Because although I'm using "some", it feels like "kind" shouldn't be a countable noun.  Anyway, I don't think I've heard of "some kind of + plural", but I think it makes more sense then using singular, since I think chocolates are countable. Please help! How do I arrange selected vertices into a circular formation quickly?  The other answers does not have the same title as my question. My question is direct and simple for younger beginner to search for results. Why do different humans look different? Although farmers appear to be able to tell their cows apart, cows look very much alike to me. And this similarity in appearance seems to be a general trait across the animal kingdom: one individual of one animal species looks much like another.  Why do human facial and body shapes vary so much?  I understand that human beings live in many different environments (e.g. hot and cold) and have adapted to these (e.g. through lighter or darker skin color), but there seems to be much variation that has no apparent evolutionary purpose. So does the difference have a purpose in itself? That is, did we evlove to vary in appearance, and what is the purpose of this variation? In a preadditive category, products are coproducts $\renewcommand{\phi}{\varphi}$ $\require{AMScd}$ My question is different from .  I want to see how in a preadditive category $\mathcal{C}$ a product is a coproduct, following . I'll write the proof up to the point where I get stuck.  Let $A=A_1,B=A_2$ be objects and suppose their product $P$ does exist, with projections $\pi_i:P\rightarrow A_i$. By considering a wedge  $$\begin{CD}A @&lt;{id_A}&lt;&lt;  A @&gt;{0_{AB}}&gt;&gt;  B\end{CD}$$  and the obvious analogous one with $A$ and $B$ exchanged, where $0_{A,B}$ is the zero morphism, we see that the product property implies the existence of two unique morphisms $k_i\in\mathcal{C}[A_i,P]$ s.t.  \begin{align*} \pi_j\circ k_i=\begin{cases} \mathrm{id}_i &amp;\text{if }i=j\\ 0_{A_i, A_j} &amp;\text{if }i\neq j \end{cases}. \end{align*} Using these equations and the definition of zero morphism, it's easy to see that the morphism $m\equiv k_1\circ \pi_1+ k_2\circ \pi_2$ satisfies $\pi_i\circ m=\pi_i$.   This is where I get stuck: In the linked proof, they now state that this implies $m=\mathrm{id}_P.$ But I don't see why this should be true.   Specifically, if $\phi\in\mathcal{C}[S,P]$ for some arbitrary object $S$, it is not apparent why $m\circ\phi=\phi$. All that we know is that there are some morphisms $x_i\in\mathcal{C}[S,A_i]$ that factor through $P$ via the universal property, but these are not necessarily unique.  And we learn even less about $m$ by looking at morphisms in $\mathcal{C}[P,S]$.  What am I missing here? JavaScript object: access variable property by name as string @online bibliography biblatex I'm not sure how to go about this. Does it involve using MVT?  I got as far as saying $e = \frac{e^x - e^y}{x-y}$. Why is the Yang–Mills existence and mass gap problem so fundamental? Ref:   Can anyone please explain why the Yang–Mills Existence and Mass Gap problem is so important / fundamental to contemporary mathematics (and, presumably, theoretical / mathematical physics)?  If possible, please include the following in your answer / response:  (1) Why the problem is so fundamental / important - for both mathematics and theoretical / mathematical physics; (2) How the solution to the problem would impact research in the above two fields; (3) (If applicable) What progress has been made so far in resolving it; (references to papers, books, other resources would be helpful).  I'm an upper-level undergraduate in theoretical physics, and so am seeking an answer / response at such level. Prevent Windows 10 from installing/updating a specific driver? It seems that the recent Synaptics driver update for Synaptics SMBus TouchPad on Windows 10 (build 100049) somehow doesn't see my middle-button. Uninstalling, and installing an older driver for Windows 8.1 from the HP site (my machine is HP EliteBook 8570w) restores the middle button functionality.    Few days later, the driver updates itself again, and I lose the middle-button.  I realize I'm running unsupported software, but is it possible to prevent updating this particular driver, without either disabling updates altogether or preventing other drivers from updating? How do you prove the second law of thermodynamics from statistical mechanics? Traffic (views, visits) is not correctly registered on Site Analytics or Area 51 In the ,  can monitor some things like the total traffic on the site. However, it seems to be broken at the moment, all figures are almost zero. This is how it looks for Meta Stack Exchange (other sites show similar pictures): Why doesn't Steam start? When I try to start Steam nothing happens. Reinstall doesn't help.  $ steam Running Steam on ubuntu 13.04 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(1378500910_client) Installing breakpad exception handler for appid(steam)/version(1378500910_client) Installing breakpad exception handler for appid(steam)/version(1378500910_client) unlinked 0 orphaned pipes removing stale semaphore last operated on by process 7278 with name 0eBlobRegistryMutex_DC7EBB4AEA41D3C6C74E5EFFD6757CEC removing stale semaphore last operated on by process 7278 with name 0eBlobRegistrySignal_DC7EBB4AEA41D3C6C74E5EFFD6757CEC removing stale semaphore last operated on by process 7278 with name 0emSteamEngineInstance removing stale semaphore last operated on by process 7278 with name 0eSteamEngineLock Gtk-Message: Failed to load module "overlay-scrollbar" Installing breakpad exception handler for appid(steam)/version(1378500910_client) [0913/182910:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation   How to fix it? Does personified Death really exist in Harry Potter? I went through the last book, Harry Potter and the Deathly Hallows, yesterday and a question popped in my mind: Does Death, the supposed creator of the Deathly Hallows, really exist in the Harry Potter universe? Dumbledore thought otherwise and I am with the same school of thought.  By the way who created the deathly Hallows actually?  Update:  1) Why were the brothers so sure that the hooded figure was death(couldn't it be a more powerful wizard playing with them)  2) Couldn't, Beedle and the brothers create this story? Creating controls within a Loop I have have some code which adds new cells to a table and fills them with text boxes.   The way I've coded it so far works fine:          TableCell tCell1 = new TableCell();         TableCell tCell2 = new TableCell();         TableCell tCell3 = new TableCell();         TableCell tCell4 = new TableCell();         TableCell tCell5 = new TableCell();         TableCell tCell6 = new TableCell();         TableCell tCell7 = new TableCell();          TextBox txt1 = new TextBox();         TextBox txt2 = new TextBox();         TextBox txt3 = new TextBox();         TextBox txt4 = new TextBox();         TextBox txt5 = new TextBox();         TextBox txt6 = new TextBox();         TextBox txt7 = new TextBox();          tCell1.Controls.Add(txt1);         tCell2.Controls.Add(txt2);         tCell3.Controls.Add(txt3);         tCell4.Controls.Add(txt4);         tCell5.Controls.Add(txt5);         tCell6.Controls.Add(txt6);         tCell7.Controls.Add(txt7);          tRow.Cells.Add(tCell1);         tRow.Cells.Add(tCell2);         tRow.Cells.Add(tCell3);         tRow.Cells.Add(tCell4);         tRow.Cells.Add(tCell5);         tRow.Cells.Add(tCell6);         tRow.Cells.Add(tCell7);   As you can see there's basically 4 instructions getting repeated 7 times. I'm sure there has to be a way to accomplish this with just 4 lines of code within a FOR loop and having all the names dynamically assigned but I just can't seem to find anything that would point me in the direction of how to do it.  Something like the following is what I'm after:      for (int i = 0; i &lt; 6; i++)     {          TableCell tCell[i] = new TableCell();         TextBox txt[i] = new TextBox();         tCell[i].Controls.Add(txt[i]);         tRow.Cells.Add(tCell[i]);      }    Any help would be much appreciated. Why can't I say “She died from drinking 18 cans of Coca-Cola”? Instead, the correct sentence would be “She died of drinking 18 cans of Coca-Cola”. Why does that happen? How do you kill the devil? Scoring when two triple word squares are covered in one play The word QUAGMIRE is on the board vertically, with the Q on the top row, second column. The next player creates SQUEEZED horizontally, landing the S on the triple word square in the top row, first column, and remaining UEEZED landing to the right of the existing Q, ending with the D on the triple word square in the eighth column. Since two triple word squares are covered in this one placement, how would it be scored?  Letters:   S: 1 Q: 10 U: 1 E: 1 x 2 (double letter) E: 1 Z: 10 E: 1 D: 1   27 Total for letters. Do you then multiply by 3 for the first triple word square, and then multiply that result by 3?  27 X 3 = 81, 81 X 3 = 243  Bonus for all 7 tiles placed:  243 + 50 = 293 Does anyone know of any good tools (I'm looking for IDEs) to write assembly on the Mac. Xcode is a little cumbersome to me.  Also, on the Intel Macs, can I use generic x86 asm?  Or is there a modified instruction set? Any information about post Intel.  Also: I know that on windows, asm can run in an emulated environment created by the OS to let the code think it's running on its own dedicated machine. Does OS X provide the same thing? Is there a term for words that when reversed, form other words? I'm aware of what a palindrome is. What do you call words that, when reversed, form other words, such as ton (not) and part (trap)? Parse JSON with R