I am learning python,and I am confused about how the index of an array woks in python.  Following is my code  test_var = "hello how are you"  print(test_var[-1], ",", test_var.find('t'))   The output of this program is.     u , -1   Now I understand that negative indexing is allowed in python unlike java and it most probably works in cyclic manner so that -1 indicates the last character.  But when it comes to find method and it does not match any character 't' it again gives -1. So does it imply that -1 is like the null value in python? And it does not mean that find has returned the position of the last character?  Is it just me or would it be less confusing if an unsuccessful find would return None?
I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.
Transfer game license So the problem is that account 1 and account 2 bought a game together, but account 1 isn't used anymore. Can we transfer the game license from account 1 to account 3?   The game was bought on account 1 and account 2 activated account 1 as primary. Interpreting plot.lm() I'm trying to go through and provide answers to every unanswered question (search &quot;closed:0 answers:0&quot;), somewhat following the spirit that was blogged about at  .  However, I'm finding this much more difficult than it needs to be, as many of the questions have already been answered without the use of an &quot;answer&quot; - but instead, in the form of a comment by either the OP or another poster. I wouldn't mind reading through and skipping these, as long as there was some appropriate action I could take to at least assist with preventing these questions from being seen again from the same query - either by myself or another SO member.  Is there such an appropriate action?  Should we vote to close?  If so, using what reason? Even if I vote to close, what are the chances that 4 other users will also view the question and also vote to close?  (i.e., will my individual vote even do any good?  Is there any report to show recent close votes, so that others may also review and contribute supporting close votes?) Should we post some sort of an answer - even just something to the effect of &quot;this was already answered by the OP's own comment to his answer (above)&quot;? Would something like this be appropriate to flag for moderator attention, and let the moderators deal with it?  (Or would this be considered too trivial?) Should we rename the question title to something standard that can be used in a search exclusion?  (Maybe &quot;SOLVED:&quot;?)  Basically, how can I help to denote questions as &quot;This question is no longer in active search of an answer - though better answers may still be appreciated.&quot;? I've already reviewed , which was closed as a duplicate of  - but this requires effort on part of a user who may very likely no longer be active. Otherwise, is there something I should be doing to improve my search to filter out these types of questions? I've run across this many times, so I don't consider it to be a rare issue.  However, the last question like this I just ran across, prompting this question, was .  In this case, the question was self-answered by the OP in the form of a comment, this question is the OP's only question, the OP has no other visible activity on SO, and the OP hasn't been seen on SO since he registered and posted the question 5 months ago. Another one I just ran across is .  However, here the &quot;answer&quot; comment was posted by a reputable and recently active SO member.  Should I leave a comment directed at him, asking him to re-post his comment as an answer, or should I post my own answer echoing his comment?  (Or something else?) Yet another is .  Interestingly, the OP actually self-edited the question to include the &quot;SOLVED:&quot; prefix on to the question, instead of posting his resolving comment as an answer (and ideally accepting it) as he was asked to do by another comment.  This brings up another good idea - is there a &quot;standard&quot; we should use to rename the titles on these &quot;resolved but unanswered&quot; posts that could be used as a search exclusion?  (Also added to the above list.) No sound (speakers/jack) + microphone's dead after spilling water Is a Schengen visa/transit visa required for a transit flight through two Schengen airports? I am travelling form Delhi (DEL) to San Francisco (SFO), I have to make a connection flight in Vienna that would take me to Frankfurt (FRA). My flight to SFO is from FRA, I have one ticket for entire journey and the flights are operated by Lufthansa or its subsidiaries.  Do I need a transit visa? My flight arrives at Vienna international airport and leaves from the same, and for second leg it arrives at Frankfurt international airport.  I asked this question as an addendum to my  but was advised to make a new post.  I hold Indian passport and valid US visa. Let $A \in Mat_{n \times n}(F)$ a matrix which satisfies $A^n=0$ and $A^{n-1} \ne 0$ for some positive integer $n$. Let $v \in F^n$ be such that $A^{n-1}v \ne 0$.  Prove that $\{v, Av, A^2v,...,A^{n-1}v\}$ is a basis for $F^n$.     So, from definition of $A$, I know that $A^iv \ne 0$ for all $0\le i \le n-1$. I know I need to prove the set is linearly independent and span $F^n$ to prove it's a basis, but I just don't know how. Browsing  I came across this:  The conjugacy class of an element $g\in A_{n}$:  splits if the cycle decomposition of $g\in A_{n}$ comprises cycles of distinct odd length. Note that the fixed points are here treated as cycles of length $1$, so it cannot have more than one fixed point; and does not split if the cycle decomposition of $g$ contains an even cycle or contains two cycles of the same length.   Anybody with a proof? What is $A^-$ in topology? Hartshorne Algebraic Geometry Proposition 1.5 (page5) In a notherian topological space $X$, every nomempty closed subset $Y$ can be expressed as a finite union $Y=Y_1 \cup \cdots \cup Y_r$ of irreducible closed subsets $Y_i$. If we require that $Y_i \nsupseteq Y_j$ for $i \neq j$, then the $Y_i$ are uniquely determined. They are called the irreducible components of $Y$.    I understood the existence of such a representation. But I can't understand a sentence in  the uniqueness part, which I highlighted: Let $Y=Y_1 \cup \cdots \cup Y_r$ and $Y=Y&#39;_1 \cup \cdots \cup Y&#39;_s$ be two such representation. Then we can deduce that $Y_1=Y&#39;_1$ (the details are in the textbook). Now let $Z=(Y-Y_1)^-$, then $Z=Y_2 \cup \cdots \cup Y_r$ and also $Z=Y&#39;_2 \cup \cdots \cup Y&#39;_s$.  What is the operator $^-$? I understood it as a closure, is it right? But then how can I deduce that $Z$ is represented as $Z=Y_2 \cup \cdots \cup Y_r=Y&#39;_2 \cup \cdots \cup Y&#39;_s$? When I try to install a software using Ubuntu Software center I get:  Failed to download repository information Check Your Internet connection   When I try to do a apt-get install something, I get:  407  Proxy Authentication Required   I use a proxy server that requires a user-name and a password. I have set my systems proxy manually, by plugging in the required numbers in the Networks proxy and applied it system wide. I guess the problem now is plugging in my user-name and password.  When I use INTERNET via Mozilla, it specifically asks me for my user-name and password. How to process a multi column text file to get another multi column text file? I have a text file:  a   aa  aaa     b   bb  bbb     c   cc  ccc d   dd  ddd     e   ee  eee     f   ff  fff g   gg  ggg     h   hh  hhh     i   ii  iii j   jj  jjj   How can I process it and get a 2 column file like this:  a   aa aaa b bb  bbb c   cc ccc d dd  ddd e   ee eee f ff  fff g   gg ggg h hh  hhh i   ii iii j jj  jjj   Or a three column file like this:  a   aa  aaa b   bb  bbb c   cc  ccc d   dd  ddd e   ee  eee f   ff  fff g   gg  ggg h   hh  hhh i   ii  iii j   jj  jj   I prefer to get awk solution but other solutions are welcomed too. The temperature and pressure everywhere inside the Sun reach the critical point to start nuclear reactions - there is no reason for it to take such a long time to complete the reaction process.  Just like a nuclear bomb will complete all the reaction within $10^{-6}$seconds.  Why does most of the hydrogen of the Sun still not react even though it reaches the critical point, and why take stars billions of years to run out of fuel? Reading about  I understood that black holes lose energy over time - which is logical in some way (otherwise they would be there forever and heat death would never technically happen)  But - how exactly does it "evaporate"? What happens when it no longer contains enough mass within it's  ? Does it explode somehow? Transforms into "regular matter"? Simply vanishes over time? Or? I'm trying to setup OpenVPN using NetworkManager. The GUI seems buggy and unresponsive. Are there any other tools for setting up a VPN client? Expression Functions for Lightning Web Components How can expression functions similar to Visualforce and Lightning Aura Components be achieved within lightning web components?   For example, &lt;template if:true={index % 5 == 0}&gt;&lt;br&gt;&lt;/template&gt; expression index % 5 == 0 is not compyling at all.  accountList.html  &lt;template&gt;     &lt;template if:true={accounts.data}&gt;         &lt;template for:each={accounts.data} for:item='item' for:index='index'&gt;             &lt;!--LWC DOES NOT SUPPORT EXPRESSION FUNCTIONS--&gt;             &lt;!--&lt;template if:true={index % 5 == 0}&gt;&lt;br&gt;&lt;/template&gt;--&gt;             {item}         &lt;/template&gt;     &lt;/template&gt; &lt;/template&gt;   accountList.js  import {LightningElement, wire} from 'lwc'; import getAccounts from '@salesforce/apex/TestController.getAccounts';  export default class AccountList extends LightningElement {      @wire(getAccounts) accounts;  }   Since LWC doesn't support Expression Functions, I'd like to know how to implement them. Is the concept of even/odd numbers applicable to decimal numbers? For e.g. - 4.222 is a even number? Why Does Harry Have a Scar When Avada Kedavra Leaves No Trace? Why does Harry have a scar when Avada Kedavra leaves no trace?     ‘The Muggle authorities were perplexed. As far as I am aware, they do not know to this day how the Riddles died, for the Avada Kedavra Curse does not usually leave any sign of damage ... the exception sits before me,’ Dumbledore added, with a nod to Harry’s scar.   Half-Blood Prince - page 343 - Bloomsbury - chapter 17, A Sluggish Memory   What caused Harry to retain a scar from Avada Kedavra, when no one else in know history showed any signs of cause of death when Avada Kedavra was used?  What caused Harry's scar?  I'd love an answer based in canon, such as the books, interviews with J.K. Rowling, or Pottermore. This is actually a two part question:   Which methods are there to calculate average slope by unit (say km²) for a given area? Are there any special requirements on the data - like additional information besides height measurements? Which open source GIS implement methods usable to calculate average slope on a grid (e.g. TIF file)? Number of genes required to sustain life Are there estimates of the minimum number of genes required to sustain life?   In what I mean by life here, I don't include viruses. Pluralization rule for "five-year-old children", "20 pound note", "10 mile run" Prove $a^\alpha b^{1-\alpha} \le \alpha a + (1 - \alpha)b, \; a,b > 0,\; 0 < \alpha < 1$ I have no idea how to do this. Any help would be appreciated. The chapter I'm on is about differentiation and the mean value theorem.  Prove $a^\alpha b^{1-\alpha} \le \alpha a + (1 - \alpha)b, \; a,b &gt; 0,\; 0 &lt; \alpha &lt; 1$