Puzzling difference between lists and tuples

황병희 soyeomul at doraji.xyz
Sat Sep 19 23:39:20 EDT 2020


William Pearson <william.pearson at gmail.com> writes:

> ...
> for n in ('first'):
>     print n
>
>
> ... but "f","i","r","s","t" in the second.

#+BEGIN_SRC: python
for n in ('first',):
    print n
#+BEGIN_SRC

Then, that will print 'first'. And please use Python3...

Sincerely, Byung-Hee

-- 
^고맙습니다 _救濟蒼生_ 감사합니다_^))//


More information about the Python-list mailing list