python - Printing the values of a tuple -
reaching Tupal values 
How to reach the values of A and B. in the
  & gt; & Gt; T = []> & Gt; T. Append (("A", 1)) & gt; & Gt; T. Append (("B", 2)) gt; & Gt; Print t [0] [0] One & gt; & Gt; Print te [1] [0] b   how to print the values of A and B
Just do
  print t [0] [1] print tee [1] [1]   but of course If you really want to look for someone or B, then this is not the best creation, then you need a word:
  t = {} t ["a"] = 1 t ["b"] = 2 print t ["a"] print t ["b"]   
Comments
Post a Comment