Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python @NCKU_CSIE

Python @NCKU_CSIE

National Cheng Kung University
2013 Programming Language
Talk About Python

KuoE0

June 03, 2013
Tweet

More Decks by KuoE0

Other Decks in Programming

Transcript

  1. Latest update: Jan 10, 2014, Attribution-ShareAlike 3.0 Unported (CC BY-SA

    3.0) http://creativecommons.org/licenses/by-sa/3.0/
  2. What is Python? easy to Read easy to Learn easy

    to Write a programming language
  3. Position May 2013 Position May 2012 Delta in Position Programming

    Language 1 1 = C 2 2 = Java 3 4 ↑ Objective-C 4 3 ↓ C++ 5 5 = C# 6 6 = PHP 7 7 = Visual Basic 8 8 = Python 9 9 = Perl 10 11 ↑ Ruby http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Top Language in TIOBE
  4. Javascript Ruby Java Python Shell PHP C C++ Perl Objective-C

    0% 5% 10% 15% 20% 25% 3% 4% 5% 6% 7% 8% 8% 8% 12% 21% Top Languages in Github https://github.com/languages
  5. Javascript Ruby Java Python Shell PHP C C++ Perl Objective-C

    0% 5% 10% 15% 20% 25% 3% 4% 5% 6% 7% 8% 8% 8% 12% 21% Top Languages in Github https://github.com/languages
  6. 界 Kingdom 動物界 Animalia ⾨門 Phylum 脊索動物⾨門 Chordata 綱 Class

    爬蟲科 Reptilia ⺫⽬目 Order 有鱗⺫⽬目 Squamata 科 Family 蟒科 Pythonidae 屬 Genus 蟒屬 Python
  7. There should be one— and preferably only one —obvious way

    to do it. Philosophy There should be one— and preferably only one —obvious way to do it.
  8. $ $ python -ic “” $ python -ic “” >>>

    $ python -ic “” >>> import this Zen of Python
  9. $ $ python -ic “” $ python -ic “” >>>

    $ python -ic “” >>> import this $ python -ic “” >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those! one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those! Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those! >>> Zen of Python
  10. Python 2.x Python 3.x 2.7.x is the latest version under

    development more 3-party library 2to3.py built-in on many OS more supported unicode the past in someday the future in someday
  11. Environment For Windows User, Download From http://www.python.org/download/ if you want

    to launch Python in command line, add the path of Python binary file into PATH variable.
  12. $ Check Version of Python $ python --version $ python

    --version Python 2.7.5 2.7.5 is released on May 15, 2013
  13. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> Check Version of Python
  14. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> Check Version of Python
  15. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> Interactive Shell
  16. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> Interactive Shell prompt
  17. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> Interactive Shell prompt means that your turn!
  18. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> Interactive Shell
  19. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 Interactive Shell
  20. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> Interactive Shell
  21. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” Interactive Shell
  22. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> Interactive Shell
  23. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Interactive Shell
  24. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Interactive Shell
  25. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 Interactive Shell
  26. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> Interactive Shell
  27. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y Interactive Shell
  28. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> Interactive Shell
  29. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): Interactive Shell
  30. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... Interactive Shell
  31. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i Interactive Shell
  32. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i ... Interactive Shell
  33. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i ... >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i ... 0 1 2 3 4 >>> Interactive Shell
  34. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i ... >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i ... 0 1 2 3 4 >>> >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i ... 0 1 2 3 4 >>> exit() Interactive Shell
  35. $ $ python $ python Python 2.7.5 (default, May 20

    2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> $ python Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> Python 2.7.5 (default, May 20 2013, 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> 23:41:46) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i "license" for more information. >>> 1 + 2 + 3 6 >>> “Hello World” ‘Hello World’ >>> x = 100 >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i ... >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i ... 0 1 2 3 4 >>> >>> y = 200 >>> x + y 300 >>> for i in range(5): ... print i ... 0 1 2 3 4 >>> exit() >>> x + y 300 >>> for i in range(5): ... print i ... 0 1 2 3 4 >>> exit() $ Interactive Shell
  36. A Python Code def mul(x, y): ret = x *

    y return ret for i in range(10)[2:]: for j in range(10)[1:]: print "{0} x {1} = {2}".format(i, j, mul(i, j)) 9x9table.py
  37. script language def mul(x, y): ret = x * y

    return ret for i in range(10)[2:]: for j in range(10)[1:]: print "{0} x {1} = {2}".format(i, j, mul(i, j)) no specified entry point
  38. $ script language $ python 9x9table.py $ python 9x9table.py 2

    x 1 = 2 2 x 2 = 4 2 x 3 = 6 2 x 4 = 8 2 x 5 = 10 2 x 6 = 12 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 2 x 1 = 2 2 x 2 = 4 2 x 3 = 6 2 x 4 = 8 2 x 5 = 10 2 x 6 = 12 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 2 x 2 = 4 2 x 3 = 6 2 x 4 = 8 2 x 5 = 10 2 x 6 = 12 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 2 x 3 = 6 2 x 4 = 8 2 x 5 = 10 2 x 6 = 12 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 2 x 4 = 8 2 x 5 = 10 2 x 6 = 12 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 2 x 5 = 10 2 x 6 = 12 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 2 x 6 = 12 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 2 x 8 = 16 2 x 9 = 18 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 2 x 9 = 18 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 3 x 8 = 24 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 3 x 9 = 27 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 4 x 8 = 32 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 4 x 9 = 36 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 5 x 8 = 40 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 5 x 9 = 45 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 6 x 8 = 48 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 6 x 9 = 54 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 9 x 1 = 9 7 x 8 = 56 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 9 x 1 = 9 9 x 2 = 18 7 x 9 = 63 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 9 x 1 = 9 9 x 2 = 18 9 x 3 = 27 8 x 1 = 8 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 9 x 1 = 9 9 x 2 = 18 9 x 3 = 27 9 x 4 = 36 8 x 2 = 16 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 9 x 1 = 9 9 x 2 = 18 9 x 3 = 27 9 x 4 = 36 9 x 5 = 45 8 x 3 = 24 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 9 x 1 = 9 9 x 2 = 18 9 x 3 = 27 9 x 4 = 36 9 x 5 = 45 9 x 6 = 54 8 x 4 = 32 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 9 x 1 = 9 9 x 2 = 18 9 x 3 = 27 9 x 4 = 36 9 x 5 = 45 9 x 6 = 54 9 x 7 = 63 8 x 5 = 40 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 9 x 1 = 9 9 x 2 = 18 9 x 3 = 27 9 x 4 = 36 9 x 5 = 45 9 x 6 = 54 9 x 7 = 63 9 x 8 = 72 8 x 6 = 48 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 9 x 1 = 9 9 x 2 = 18 9 x 3 = 27 9 x 4 = 36 9 x 5 = 45 9 x 6 = 54 9 x 7 = 63 9 x 8 = 72 9 x 9 = 81 8 x 7 = 56 8 x 8 = 64 8 x 9 = 72 9 x 1 = 9 9 x 2 = 18 9 x 3 = 27 9 x 4 = 36 9 x 5 = 45 9 x 6 = 54 9 x 7 = 63 9 x 8 = 72 9 x 9 = 81 $
  39. If you need a main function as entry point, if

    __name__ == “__main__”: print “Hello World!”
  40. If you need a main function as entry point, if

    __name__ == “__main__”: print “Hello World!”
  41. If you need a main function as entry point, if

    __name__ == “__main__”: print “Hello World!” and write all statements after it.
  42. def mul(x, y): ret = x * y return ret

    for i in range(10)[2:]: for j in range(10)[1:]: print "{0} x {1} = {2}".format(i, j, mul(i, j)) variable can be used without declaration
  43. def mul(x, y): ret = x * y return ret

    for i in range(10)[2:]: for j in range(10)[1:]: print "{0} x {1} = {2}".format(i, j, mul(i, j)) variable def mul(x, y): ret = x * y return ret for i in range(10)[2:]: for j in range(10)[1:]: print "{0} x {1} = {2}".format(i, j, mul(i, j)) can be used without declaration
  44. def mul(x, y): ret = x * y return ret

    for i in range(10)[2:]: for j in range(10)[1:]: print "{0} x {1} = {2}".format(i, j, mul(i, j)) scope use whitespace to identify scope
  45. def mul(x, y): ret = x * y return ret

    for i in range(10)[2:]: for j in range(10)[1:]: print "{0} x {1} = {2}".format(i, j, mul(i, j)) scope def mul(x, y): ret = x * y return ret for i in range(10)[2:]: for j in range(10)[1:]: print "{0} x {1} = {2}".format(i, j, mul(i, j)) use whitespace to identify scope
  46. You can use one space two spaces three spaces four

    spaces lots of spaces to identify scopes.
  47. You can use one space two spaces three spaces four

    spaces lots of spaces one tab two tabs three tabs four tabs lots of tabs to identify scopes.
  48. Boolean True False >>> >>> 1 == 1 >>> 1

    == 1 True >>> >>> 1 == 1 True >>> 1 != 1
  49. Boolean True False >>> >>> 1 == 1 >>> 1

    == 1 True >>> >>> 1 == 1 True >>> 1 != 1 >>> 1 == 1 True >>> 1 != 1 False >>>
  50. Boolean True False >>> >>> 1 == 1 >>> 1

    == 1 True >>> >>> 1 == 1 True >>> 1 != 1 >>> 1 == 1 True >>> 1 != 1 False >>> >>> 1 == 1 True >>> 1 != 1 False >>> True
  51. Boolean True False >>> >>> 1 == 1 >>> 1

    == 1 True >>> >>> 1 == 1 True >>> 1 != 1 >>> 1 == 1 True >>> 1 != 1 False >>> >>> 1 == 1 True >>> 1 != 1 False >>> True >>> 1 == 1 True >>> 1 != 1 False >>> True True >>>
  52. Boolean True False >>> >>> 1 == 1 >>> 1

    == 1 True >>> >>> 1 == 1 True >>> 1 != 1 >>> 1 == 1 True >>> 1 != 1 False >>> >>> 1 == 1 True >>> 1 != 1 False >>> True >>> 1 == 1 True >>> 1 != 1 False >>> True True >>> >>> 1 == 1 True >>> 1 != 1 False >>> True True >>> False
  53. Boolean True False >>> >>> 1 == 1 >>> 1

    == 1 True >>> >>> 1 == 1 True >>> 1 != 1 >>> 1 == 1 True >>> 1 != 1 False >>> >>> 1 == 1 True >>> 1 != 1 False >>> True >>> 1 == 1 True >>> 1 != 1 False >>> True True >>> >>> 1 == 1 True >>> 1 != 1 False >>> True True >>> False True >>> 1 != 1 False >>> True True >>> False False >>>
  54. Boolean True False upper case >>> >>> true >>> true

    Traceback (most recent call last): File "<input>", line 1, in <module> NameError: name 'true' is not defined >>>
  55. Initialization / Conversion True False >>> >>> bool(1) >>> bool(1)

    True >>> >>> bool(1) True >>> bool(True) >>> bool(1) True >>> bool(True) True >>>
  56. Initialization / Conversion True False >>> >>> bool(1) >>> bool(1)

    True >>> >>> bool(1) True >>> bool(True) >>> bool(1) True >>> bool(True) True >>> >>> bool(1) True >>> bool(True) True >>> bool()
  57. Initialization / Conversion True False >>> >>> bool(1) >>> bool(1)

    True >>> >>> bool(1) True >>> bool(True) >>> bool(1) True >>> bool(True) True >>> >>> bool(1) True >>> bool(True) True >>> bool() >>> bool(1) True >>> bool(True) True >>> bool() False >>>
  58. Logical Operators and and or or not not >>> >>>

    (1 == 1) and True >>> (1 == 1) and True True >>>
  59. Logical Operators and and or or not not >>> >>>

    (1 == 1) and True >>> (1 == 1) and True True >>> >>> (1 == 1) and True True >>> (1 == 1) or False
  60. Logical Operators and and or or not not >>> >>>

    (1 == 1) and True >>> (1 == 1) and True True >>> >>> (1 == 1) and True True >>> (1 == 1) or False >>> (1 == 1) and True True >>> (1 == 1) or False True >>>
  61. Logical Operators and and or or not not >>> >>>

    (1 == 1) and True >>> (1 == 1) and True True >>> >>> (1 == 1) and True True >>> (1 == 1) or False >>> (1 == 1) and True True >>> (1 == 1) or False True >>> >>> (1 == 1) and True True >>> (1 == 1) or False True >>> not (1 == 1)
  62. Logical Operators and and or or not not >>> >>>

    (1 == 1) and True >>> (1 == 1) and True True >>> >>> (1 == 1) and True True >>> (1 == 1) or False >>> (1 == 1) and True True >>> (1 == 1) or False True >>> >>> (1 == 1) and True True >>> (1 == 1) or False True >>> not (1 == 1) >>> (1 == 1) and True True >>> (1 == 1) or False True >>> not (1 == 1) False >>>
  63. Numbers int (integer) long (long integer) float (real number) complex

    (complex number) 10 10L 100.0 3 + 2j -789 -789L -21.9 3 - 2j -0x111 0xFFFFFFFFF 3.20E+10 45j 0x69 -0x12321L -2.00E-08 3e+26j
  64. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>>
  65. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>> >>> int(10)
  66. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>> >>> int(10) >>> int(10) 10 >>>
  67. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>> >>> int(10) >>> int(10) 10 >>> >>> int(10) 10 >>> int(“100”)
  68. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>> >>> int(10) >>> int(10) 10 >>> >>> int(10) 10 >>> int(“100”) >>> int(10) 10 >>> int(“100”) 100 >>>
  69. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>> >>> int(10) >>> int(10) 10 >>> >>> int(10) 10 >>> int(“100”) >>> int(10) 10 >>> int(“100”) 100 >>> >>> int(10) 10 >>> int(“100”) 100 >>> complex(10)
  70. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>> >>> int(10) >>> int(10) 10 >>> >>> int(10) 10 >>> int(“100”) >>> int(10) 10 >>> int(“100”) 100 >>> >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>>
  71. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>> >>> int(10) >>> int(10) 10 >>> >>> int(10) 10 >>> int(“100”) >>> int(10) 10 >>> int(“100”) 100 >>> >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> complex(10, 3)
  72. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>> >>> int(10) >>> int(10) 10 >>> >>> int(10) 10 >>> int(“100”) >>> int(10) 10 >>> int(“100”) 100 >>> >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> complex(10, 3) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> complex(10, 3) (10+3j) >>>
  73. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>> >>> int(10) >>> int(10) 10 >>> >>> int(10) 10 >>> int(“100”) >>> int(10) 10 >>> int(“100”) 100 >>> >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> complex(10, 3) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> complex(10, 3) (10+3j) >>> 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> complex(10, 3) (10+3j) >>> complex(“20+5j”)
  74. Initialization / Conversion data type initial int int(x) long long(x)

    float float(x) complex complex(x) complex(x, y) >>> >>> int(10) >>> int(10) 10 >>> >>> int(10) 10 >>> int(“100”) >>> int(10) 10 >>> int(“100”) 100 >>> >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> >>> int(10) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> complex(10, 3) 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> complex(10, 3) (10+3j) >>> 10 >>> int(“100”) 100 >>> complex(10) (10+0j) >>> complex(10, 3) (10+3j) >>> complex(“20+5j”) 100 >>> complex(10) (10+0j) >>> complex(10, 3) (10+3j) >>> complex(“20+5j”) (20+5j) >>>
  75. Arithmetic Operators + addition - subtraction * multiplication / division

    % modular ** exponential // floor division >>>
  76. Arithmetic Operators + addition - subtraction * multiplication / division

    % modular ** exponential // floor division >>> >>> 2**10
  77. Arithmetic Operators + addition - subtraction * multiplication / division

    % modular ** exponential // floor division >>> >>> 2**10 >>> 2**10 1024 >>>
  78. Arithmetic Operators + addition - subtraction * multiplication / division

    % modular ** exponential // floor division >>> >>> 2**10 >>> 2**10 1024 >>> >>> 2**10 1024 >>> 5.8 // 2
  79. Arithmetic Operators + addition - subtraction * multiplication / division

    % modular ** exponential // floor division >>> >>> 2**10 >>> 2**10 1024 >>> >>> 2**10 1024 >>> 5.8 // 2 >>> 2**10 1024 >>> 5.8 // 2 2.0 >>>
  80. Bitwise Operators & and | or ^ exclusion or >>

    shift right << shift left ~ not >>>
  81. Bitwise Operators & and | or ^ exclusion or >>

    shift right << shift left ~ not >>> >>> 3 & 1
  82. Bitwise Operators & and | or ^ exclusion or >>

    shift right << shift left ~ not >>> >>> 3 & 1 >>> 3 & 1 1 >>>
  83. Bitwise Operators & and | or ^ exclusion or >>

    shift right << shift left ~ not >>> >>> 3 & 1 >>> 3 & 1 1 >>> >>> 3 & 1 1 >>> 1 << 10
  84. Bitwise Operators & and | or ^ exclusion or >>

    shift right << shift left ~ not >>> >>> 3 & 1 >>> 3 & 1 1 >>> >>> 3 & 1 1 >>> 1 << 10 >>> 3 & 1 1 >>> 1 << 10 1024 >>>
  85. Bitwise Operators & and | or ^ exclusion or >>

    shift right << shift left ~ not >>> >>> 3 & 1 >>> 3 & 1 1 >>> >>> 3 & 1 1 >>> 1 << 10 >>> 3 & 1 1 >>> 1 << 10 1024 >>> >>> 3 & 1 1 >>> 1 << 10 1024 >>> ~0
  86. Bitwise Operators & and | or ^ exclusion or >>

    shift right << shift left ~ not >>> >>> 3 & 1 >>> 3 & 1 1 >>> >>> 3 & 1 1 >>> 1 << 10 >>> 3 & 1 1 >>> 1 << 10 1024 >>> >>> 3 & 1 1 >>> 1 << 10 1024 >>> ~0 >>> 3 & 1 1 >>> 1 << 10 1024 >>> ~0 -1 >>>
  87. Comparison Operators > greater than >= greater than or equal

    to < less than <= less than or equal to == equal to != not equal to
  88. String Contents are surrounded by single quote or double quote.

    >>> >>> “Hello World” >>> “Hello World” ‘Hello World’ >>>
  89. String Contents are surrounded by single quote or double quote.

    >>> >>> “Hello World” >>> “Hello World” ‘Hello World’ >>> >>> “Hello World!” ‘Hello World’ >>> ‘Hello World!’
  90. String Contents are surrounded by single quote or double quote.

    >>> >>> “Hello World” >>> “Hello World” ‘Hello World’ >>> >>> “Hello World!” ‘Hello World’ >>> ‘Hello World!’ >>> “Hello World!” ‘Hello World’ >>> ‘Hello World!’ ‘Hello World’ >>>
  91. Cross-line String Contents are surrounded by three single quotes or

    three double quotes. >>> >>> “““Hello
  92. Cross-line String Contents are surrounded by three single quotes or

    three double quotes. >>> >>> “““Hello >>> “““Hello ...
  93. Cross-line String Contents are surrounded by three single quotes or

    three double quotes. >>> >>> “““Hello >>> “““Hello ... >>> “““Hello ... World!”””
  94. Cross-line String Contents are surrounded by three single quotes or

    three double quotes. >>> >>> “““Hello >>> “““Hello ... >>> “““Hello ... World!””” >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>>
  95. Cross-line String Contents are surrounded by three single quotes or

    three double quotes. >>> >>> “““Hello >>> “““Hello ... >>> “““Hello ... World!””” >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello
  96. Cross-line String Contents are surrounded by three single quotes or

    three double quotes. >>> >>> “““Hello >>> “““Hello ... >>> “““Hello ... World!””” >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ...
  97. Cross-line String Contents are surrounded by three single quotes or

    three double quotes. >>> >>> “““Hello >>> “““Hello ... >>> “““Hello ... World!””” >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... World!”””
  98. Cross-line String Contents are surrounded by three single quotes or

    three double quotes. >>> >>> “““Hello >>> “““Hello ... >>> “““Hello ... World!””” >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... World!””” >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... World!””” >>>
  99. Cross-line String Contents are surrounded by three single quotes or

    three double quotes. >>> >>> “““Hello >>> “““Hello ... >>> “““Hello ... World!””” >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... World!””” >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... World!””” >>> >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... World!””” >>> print x
  100. Cross-line String Contents are surrounded by three single quotes or

    three double quotes. >>> >>> “““Hello >>> “““Hello ... >>> “““Hello ... World!””” >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... World!””” >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... World!””” >>> >>> “““Hello ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... World!””” >>> print x ... World!””” ‘Hello\nWorld!’ >>> x = “““Hello ... World!””” >>> print x Hello World! >>>
  101. Initialization / Conversion >>> >>> str(“I’m string”) >>> str(“I’m string”)

    “I’m string” >>> >>> str(“I’m string”) “I’m string” >>> str(100)
  102. Initialization / Conversion >>> >>> str(“I’m string”) >>> str(“I’m string”)

    “I’m string” >>> >>> str(“I’m string”) “I’m string” >>> str(100) >>> str(“I’m string”) “I’m string” >>> str(100) ‘100’ >>>
  103. Initialization / Conversion >>> >>> str(“I’m string”) >>> str(“I’m string”)

    “I’m string” >>> >>> str(“I’m string”) “I’m string” >>> str(100) >>> str(“I’m string”) “I’m string” >>> str(100) ‘100’ >>> >>> str(“I’m string”) “I’m string” >>> str(100) ‘100’ >>> str(complex(10, 3))
  104. Initialization / Conversion >>> >>> str(“I’m string”) >>> str(“I’m string”)

    “I’m string” >>> >>> str(“I’m string”) “I’m string” >>> str(100) >>> str(“I’m string”) “I’m string” >>> str(100) ‘100’ >>> >>> str(“I’m string”) “I’m string” >>> str(100) ‘100’ >>> str(complex(10, 3)) >>> str(“I’m string”) “I’m string” >>> str(100) ‘100’ >>> str(complex(10, 3)) ‘(10+3j)’ >>>
  105. >>> >>> x = “abc” >>> x = “abc” >>>

    Operators + concatenate * repeat
  106. >>> >>> x = “abc” >>> x = “abc” >>>

    >>> x = “abc” >>> ‘(’ + x + ‘)’ Operators + concatenate * repeat
  107. >>> >>> x = “abc” >>> x = “abc” >>>

    >>> x = “abc” >>> ‘(’ + x + ‘)’ >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> Operators + concatenate * repeat
  108. >>> >>> x = “abc” >>> x = “abc” >>>

    >>> x = “abc” >>> ‘(’ + x + ‘)’ >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 Operators + concatenate * repeat
  109. >>> >>> x = “abc” >>> x = “abc” >>>

    >>> x = “abc” >>> ‘(’ + x + ‘)’ >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> Operators + concatenate * repeat
  110. >>> >>> x = “abc” >>> x = “abc” >>>

    >>> x = “abc” >>> ‘(’ + x + ‘)’ >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> ‘(’ + x * 3 + ‘)’ Operators + concatenate * repeat
  111. >>> >>> x = “abc” >>> x = “abc” >>>

    >>> x = “abc” >>> ‘(’ + x + ‘)’ >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> ‘(’ + x * 3 + ‘)’ >>> x = ‘abc’ >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> ‘(’ + x * 3 + ‘)’ ‘(abcabcabc)’ >>> Operators + concatenate * repeat
  112. >>> >>> x = “abc” >>> x = “abc” >>>

    >>> x = “abc” >>> ‘(’ + x + ‘)’ >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> ‘(’ + x * 3 + ‘)’ >>> x = ‘abc’ >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> ‘(’ + x * 3 + ‘)’ ‘(abcabcabc)’ >>> >>> x = ‘abc’ >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> ‘(’ + x * 3 + ‘)’ ‘(abcabcabc)’ >>> (x + ‘d’) * 3 Operators + concatenate * repeat
  113. >>> >>> x = “abc” >>> x = “abc” >>>

    >>> x = “abc” >>> ‘(’ + x + ‘)’ >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> >>> x = “abc” >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> ‘(’ + x * 3 + ‘)’ >>> x = ‘abc’ >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> ‘(’ + x * 3 + ‘)’ ‘(abcabcabc)’ >>> >>> x = ‘abc’ >>> ‘(’ + x + ‘)’ ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> ‘(’ + x * 3 + ‘)’ ‘(abcabcabc)’ >>> (x + ‘d’) * 3 ‘(abc)’ >>> x * 3 ‘abcabcabc’ >>> ‘(’ + x * 3 + ‘)’ ‘(abcabcabc)’ >>> (x + ‘d’) * 3 ‘abcdabcdabcd’ >>> Operators + concatenate * repeat
  114. >>> >>> x = ‘0123456789’ >>> x = ‘0123456789’ >>>

    >>> x = ‘0123456789’ >>> x[1] Access Character
  115. >>> >>> x = ‘0123456789’ >>> x = ‘0123456789’ >>>

    >>> x = ‘0123456789’ >>> x[1] >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> Access Character
  116. >>> >>> x = ‘0123456789’ >>> x = ‘0123456789’ >>>

    >>> x = ‘0123456789’ >>> x[1] >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> x[1] = ‘0’ Access Character
  117. >>> >>> x = ‘0123456789’ >>> x = ‘0123456789’ >>>

    >>> x = ‘0123456789’ >>> x[1] >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> x[1] = ‘0’ >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> x[1] = ‘0’ >>> Access Character
  118. >>> >>> x = ‘0123456789’ >>> x = ‘0123456789’ >>>

    >>> x = ‘0123456789’ >>> x[1] >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> x[1] = ‘0’ >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> x[1] = ‘0’ >>> >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> x[1] = ‘0’ >>> x Access Character
  119. >>> >>> x = ‘0123456789’ >>> x = ‘0123456789’ >>>

    >>> x = ‘0123456789’ >>> x[1] >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> x[1] = ‘0’ >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> x[1] = ‘0’ >>> >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> x[1] = ‘0’ >>> x >>> x = ‘0123456789’ >>> x[1] ‘1’ >>> x[1] = ‘0’ >>> x ‘0023456789’ >>> Access Character
  120. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    substring [start:end(:step)] [0:length(:1)] default value
  121. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] substring [start:end(:step)] [0:length(:1)] default value
  122. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> substring [start:end(:step)] [0:length(:1)] default value
  123. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] substring [start:end(:step)] [0:length(:1)] default value
  124. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> substring [start:end(:step)] [0:length(:1)] default value
  125. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] substring [start:end(:step)] [0:length(:1)] default value
  126. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> substring [start:end(:step)] [0:length(:1)] default value
  127. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] substring [start:end(:step)] [0:length(:1)] default value
  128. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> substring [start:end(:step)] [0:length(:1)] default value
  129. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> x[::2] substring [start:end(:step)] [0:length(:1)] default value
  130. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> x[::2] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> x[::2] ‘02468’ >>> substring [start:end(:step)] [0:length(:1)] default value
  131. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> x[::2] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> x[::2] ‘02468’ >>> ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> x[::2] ‘02468’ >>> x[::-1] substring [start:end(:step)] [0:length(:1)] default value
  132. >>> >>> x = “0123456789” >>> x = “0123456789” >>>

    >>> x = “0123456789” >>> x[::] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> >>> x = “0123456789” >>> x[::] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> ‘0123456789’ >>> x[:] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> x[::2] ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> x[::2] ‘02468’ >>> ‘0123456789’ >>> x[1:4] ‘123’ >>> x[1:-1] ‘12345678’ >>> x[::2] ‘02468’ >>> x[::-1] ‘123’ >>> x[1:-1] ‘12345678’ >>> x[::2] ‘02468’ >>> x[::-1] ‘9876543210’ >>> substring [start:end(:step)] [0:length(:1)] default value
  133. length of string len(string) >>> >>> x = ‘0123456789’ >>>

    x = ‘0123456789’ >>> >>> x = ‘0123456789’ >>> len(x)
  134. length of string len(string) >>> >>> x = ‘0123456789’ >>>

    x = ‘0123456789’ >>> >>> x = ‘0123456789’ >>> len(x) >>> x = ‘0123456789’ >>> len(x) 10 >>>
  135. length of string len(string) >>> >>> x = ‘0123456789’ >>>

    x = ‘0123456789’ >>> >>> x = ‘0123456789’ >>> len(x) >>> x = ‘0123456789’ >>> len(x) 10 >>> >>> x = ‘0123456789’ >>> len(x) 10 >>> len(x[::2])
  136. length of string len(string) >>> >>> x = ‘0123456789’ >>>

    x = ‘0123456789’ >>> >>> x = ‘0123456789’ >>> len(x) >>> x = ‘0123456789’ >>> len(x) 10 >>> >>> x = ‘0123456789’ >>> len(x) 10 >>> len(x[::2]) >>> x = ‘0123456789’ >>> len(x) 10 >>> len(x[::2]) 5 >>>
  137. List Contents are surrounded by square brackets and separate by

    comma. >>> >>> [“aaa”, “bbb”, 1, 2]
  138. List Contents are surrounded by square brackets and separate by

    comma. >>> >>> [“aaa”, “bbb”, 1, 2] >>> [“aaa”, “bbb”, 1, 2] [‘aaa’, ‘bbb’, 1, 2] >>>
  139. Initialization / Conversion >>> >>> list([1, 2, 3]) >>> list([1,

    2, 3]) [1, 2, 3] >>> >>> list([1, 2, 3]) [1, 2, 3] >>> list(“abc”)
  140. Initialization / Conversion >>> >>> list([1, 2, 3]) >>> list([1,

    2, 3]) [1, 2, 3] >>> >>> list([1, 2, 3]) [1, 2, 3] >>> list(“abc”) >>> list([1, 2, 3]) [1, 2, 3] >>> list(“abc”) [‘a’, ‘b’, ‘c’] >>>
  141. Operators + append * repeat >>> >>> x = [1,

    2, 3] >>> x = [1, 2, 3] >>>
  142. Operators + append * repeat >>> >>> x = [1,

    2, 3] >>> x = [1, 2, 3] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’]
  143. Operators + append * repeat >>> >>> x = [1,

    2, 3] >>> x = [1, 2, 3] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>>
  144. Operators + append * repeat >>> >>> x = [1,

    2, 3] >>> x = [1, 2, 3] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x * 2
  145. Operators + append * repeat >>> >>> x = [1,

    2, 3] >>> x = [1, 2, 3] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x * 2 >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x * 2 [1, 2, 3, 1, 2, 3] >>>
  146. Operators + append * repeat >>> >>> x = [1,

    2, 3] >>> x = [1, 2, 3] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x * 2 >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x * 2 [1, 2, 3, 1, 2, 3] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x * 2 [1, 2, 3, 1, 2, 3] >>> x + y
  147. Operators + append * repeat >>> >>> x = [1,

    2, 3] >>> x = [1, 2, 3] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x * 2 >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x * 2 [1, 2, 3, 1, 2, 3] >>> >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x * 2 [1, 2, 3, 1, 2, 3] >>> x + y >>> x = [1, 2, 3] >>> y = [‘a’, ‘b’] >>> x * 2 [1, 2, 3, 1, 2, 3] >>> x + y [1, 2, 3, ‘a’, ‘b’] >>>
  148. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> Access Element
  149. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] Access Element
  150. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> Access Element
  151. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> x[1] = ‘0’ Access Element
  152. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> x[1] = ‘0’ >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> x[1] = ‘0’ >>> Access Element
  153. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> x[1] = ‘0’ >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> x[1] = ‘0’ >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> x[1] = ‘0’ >>> x Access Element
  154. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> x[1] = ‘0’ >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> x[1] = ‘0’ >>> >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> x[1] = ‘0’ >>> x >>> x = [1, 2, 3, 4, 5] >>> x[1] 2 >>> x[1] = ‘0’ >>> x [1, ‘0’, 3, 4, 5] >>> Access Element
  155. >>> >>> x = [1, 2, 3, 4, 5] Slice

    [start:end(:step)] [0:length(:1)] default value
  156. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> Slice [start:end(:step)] [0:length(:1)] default value
  157. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] Slice [start:end(:step)] [0:length(:1)] default value
  158. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> Slice [start:end(:step)] [0:length(:1)] default value
  159. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] Slice [start:end(:step)] [0:length(:1)] default value
  160. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> Slice [start:end(:step)] [0:length(:1)] default value
  161. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] Slice [start:end(:step)] [0:length(:1)] default value
  162. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> Slice [start:end(:step)] [0:length(:1)] default value
  163. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] Slice [start:end(:step)] [0:length(:1)] default value
  164. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> Slice [start:end(:step)] [0:length(:1)] default value
  165. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> x[::2] Slice [start:end(:step)] [0:length(:1)] default value
  166. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> x[::2] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> x[::2] [1, 3, 5] >>> Slice [start:end(:step)] [0:length(:1)] default value
  167. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> x[::2] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> x[::2] [1, 3, 5] >>> [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> x[::2] [1, 3, 5] >>> x[::-1] Slice [start:end(:step)] [0:length(:1)] default value
  168. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> >>> x = [1, 2, 3, 4, 5] >>> x[::] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> [1, 2, 3, 4, 5] >>> x[:] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> x[::2] [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> x[::2] [1, 3, 5] >>> [1, 2, 3, 4, 5] >>> x[1:3] [2, 3] >>> x[1:-1] [2, 3, 4] >>> x[::2] [1, 3, 5] >>> x[::-1] [2, 3] >>> x[1:-1] [2, 3, 4] >>> x[::2] [1, 3, 5] >>> x[::-1] [5, 4, 3, 2, 1] >>> Slice [start:end(:step)] [0:length(:1)] default value
  169. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> length of list len(list)
  170. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> len(x) length of list len(list)
  171. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> len(x) >>> x = [1, 2, 3, 4, 5] >>> len(x) 5 >>> length of list len(list)
  172. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> len(x) >>> x = [1, 2, 3, 4, 5] >>> len(x) 5 >>> >>> x = [1, 2, 3, 4, 5] >>> len(x) 5 >>> len(x[::2]) length of list len(list)
  173. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> len(x) >>> x = [1, 2, 3, 4, 5] >>> len(x) 5 >>> >>> x = [1, 2, 3, 4, 5] >>> len(x) 5 >>> len(x[::2]) >>> x = [1, 2, 3, 4, 5] >>> len(x) 5 >>> len(x[::2]) 3 >>> length of list len(list)
  174. Tuple Immutable List >>> >>> (1, ‘aaa’, 2) >>> (1,

    ‘aaa’, 2) (1, ‘aaa’, 2) >>>
  175. Tuple Immutable List >>> >>> (1, ‘aaa’, 2) >>> (1,

    ‘aaa’, 2) (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2
  176. Tuple Immutable List >>> >>> (1, ‘aaa’, 2) >>> (1,

    ‘aaa’, 2) (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>>
  177. Tuple Immutable List >>> >>> (1, ‘aaa’, 2) >>> (1,

    ‘aaa’, 2) (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2)
  178. Tuple Immutable List >>> >>> (1, ‘aaa’, 2) >>> (1,

    ‘aaa’, 2) (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>>
  179. Tuple Immutable List >>> >>> (1, ‘aaa’, 2) >>> (1,

    ‘aaa’, 2) (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>> x[1] = 3
  180. Tuple Immutable List >>> >>> (1, ‘aaa’, 2) >>> (1,

    ‘aaa’, 2) (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>> x[1] = 3 >>> x[1] = 3 Traceback (most recent call last): File "<input>", line 1, in <module> TypeError: 'tuple' object does not support item assignment
  181. Tuple Immutable List >>> >>> (1, ‘aaa’, 2) >>> (1,

    ‘aaa’, 2) (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>> >>> (1, ‘aaa’, 2) (1, ‘aaa’, 2) >>> 1, ‘aaa’, 2 (1, ‘aaa’, 2) >>> x = (1, ‘aaa’, 2) >>> x[1] = 3 >>> x[1] = 3 Traceback (most recent call last): File "<input>", line 1, in <module> TypeError: 'tuple' object does not support item assignment Traceback (most recent call last): File "<input>", line 1, in <module> TypeError: 'tuple' object does not support item assignment >>>
  182. >>> >>> tuple([1, 2, 3]) >>> tuple([1, 2, 3]) (1,

    2, 3) >>> Initialization / Conversion
  183. >>> >>> x = (1, 2, 3) Access Element >>>

    x = (1, 2, 3) >>> >>> x = (1, 2, 3) >>> x[1]
  184. >>> >>> x = (1, 2, 3) Access Element >>>

    x = (1, 2, 3) >>> >>> x = (1, 2, 3) >>> x[1] >>> x = (1, 2, 3) >>> x[1] 2 >>>
  185. >>> >>> x = (1, 2, 3) Access Element >>>

    x = (1, 2, 3) >>> >>> x = (1, 2, 3) >>> x[1] >>> x = (1, 2, 3) >>> x[1] 2 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x
  186. >>> >>> x = (1, 2, 3) Access Element >>>

    x = (1, 2, 3) >>> >>> x = (1, 2, 3) >>> x[1] >>> x = (1, 2, 3) >>> x[1] 2 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>>
  187. >>> >>> x = (1, 2, 3) Access Element >>>

    x = (1, 2, 3) >>> >>> x = (1, 2, 3) >>> x[1] >>> x = (1, 2, 3) >>> x[1] 2 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a
  188. >>> >>> x = (1, 2, 3) Access Element >>>

    x = (1, 2, 3) >>> >>> x = (1, 2, 3) >>> x[1] >>> x = (1, 2, 3) >>> x[1] 2 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a 1 >>>
  189. >>> >>> x = (1, 2, 3) Access Element >>>

    x = (1, 2, 3) >>> >>> x = (1, 2, 3) >>> x[1] >>> x = (1, 2, 3) >>> x[1] 2 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> b
  190. >>> >>> x = (1, 2, 3) Access Element >>>

    x = (1, 2, 3) >>> >>> x = (1, 2, 3) >>> x[1] >>> x = (1, 2, 3) >>> x[1] 2 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> b >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> b 2 >>>
  191. >>> >>> x = (1, 2, 3) Access Element >>>

    x = (1, 2, 3) >>> >>> x = (1, 2, 3) >>> x[1] >>> x = (1, 2, 3) >>> x[1] 2 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> b >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> b 2 >>> >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> b 2 >>> c
  192. >>> >>> x = (1, 2, 3) Access Element >>>

    x = (1, 2, 3) >>> >>> x = (1, 2, 3) >>> x[1] >>> x = (1, 2, 3) >>> x[1] 2 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> >>> x = (1, 2, 3) >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> b >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> b 2 >>> >>> x[1] 2 >>> a, b, c = x >>> a 1 >>> b 2 >>> c >>> a, b, c = x >>> a 1 >>> b 2 >>> c 3 >>>
  193. >>> >>> x = 1, 2, 3, 4, 5 length

    of tuple len(tuple)
  194. >>> >>> x = 1, 2, 3, 4, 5 >>>

    x = 1, 2, 3, 4, 5 >>> length of tuple len(tuple)
  195. >>> >>> x = 1, 2, 3, 4, 5 >>>

    x = 1, 2, 3, 4, 5 >>> >>> x = 1, 2, 3, 4, 5 >>> len(x) length of tuple len(tuple)
  196. >>> >>> x = 1, 2, 3, 4, 5 >>>

    x = 1, 2, 3, 4, 5 >>> >>> x = 1, 2, 3, 4, 5 >>> len(x) >>> x = 1, 2, 3, 4, 5 >>> len(x) 5 >>> length of tuple len(tuple)
  197. Dictionary >>> key-value relation key value >>> x = dict()

    >>> x = dict() >>> >>> x = dict() >>> x[‘abc’] = 123
  198. Dictionary >>> key-value relation key value >>> x = dict()

    >>> x = dict() >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x = dict() >>> x[‘abc’] = 123 >>>
  199. Dictionary >>> key-value relation key value >>> x = dict()

    >>> x = dict() >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x = dict() >>> x[‘abc’] = 123 >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’
  200. Dictionary >>> key-value relation key value >>> x = dict()

    >>> x = dict() >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x = dict() >>> x[‘abc’] = 123 >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>>
  201. Dictionary >>> key-value relation key value >>> x = dict()

    >>> x = dict() >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x = dict() >>> x[‘abc’] = 123 >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x
  202. Dictionary >>> key-value relation key value >>> x = dict()

    >>> x = dict() >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x = dict() >>> x[‘abc’] = 123 >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x {‘abc’: 123, 111: ‘aaa’} >>>
  203. Dictionary >>> key-value relation key value >>> x = dict()

    >>> x = dict() >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x = dict() >>> x[‘abc’] = 123 >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x {‘abc’: 123, 111: ‘aaa’} >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x {‘abc’: 123, 111: ‘aaa’} >>> {1: 20, 2: 30}
  204. Dictionary >>> key-value relation key value >>> x = dict()

    >>> x = dict() >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x = dict() >>> x[‘abc’] = 123 >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x {‘abc’: 123, 111: ‘aaa’} >>> >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x {‘abc’: 123, 111: ‘aaa’} >>> {1: 20, 2: 30} >>> x = dict() >>> x[‘abc’] = 123 >>> x[111] = ‘aaa’ >>> x {‘abc’: 123, 111: ‘aaa’} >>> {1: 20, 2: 30} {1: 20, 2: 30} >>>
  205. Initialization / Conversion >>> >>> dict() >>> dict() {} >>>

    >>> dict() {} >>> dict(one=1, two=2) >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>>
  206. Initialization / Conversion >>> >>> dict() >>> dict() {} >>>

    >>> dict() {} >>> dict(one=1, two=2) >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)])
  207. Initialization / Conversion >>> >>> dict() >>> dict() {} >>>

    >>> dict() {} >>> dict(one=1, two=2) >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) {‘one’: 1, ‘two’: 2} >>>
  208. Initialization / Conversion >>> >>> dict() >>> dict() {} >>>

    >>> dict() {} >>> dict(one=1, two=2) >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) {‘one’: 1, ‘two’: 2} >>> >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) {‘one’: 1, ‘two’: 2} >>> dict({‘one’: 1, {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) {‘one’: 1, ‘two’: 2} >>> dict({‘one’: 1, {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) {‘one’: 1, ‘two’: 2} >>> dict({‘one’: 1, ‘two’: 2})
  209. Initialization / Conversion >>> >>> dict() >>> dict() {} >>>

    >>> dict() {} >>> dict(one=1, two=2) >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) {‘one’: 1, ‘two’: 2} >>> >>> dict() {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) {‘one’: 1, ‘two’: 2} >>> dict({‘one’: 1, {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) {‘one’: 1, ‘two’: 2} >>> dict({‘one’: 1, {} >>> dict(one=1, two=2) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) {‘one’: 1, ‘two’: 2} >>> dict({‘one’: 1, ‘two’: 2}) {‘one’: 1, ‘two’: 2} >>> dict([('two', 2), (‘one’: 1)]) {‘one’: 1, ‘two’: 2} >>> dict({‘one’: 1, ‘two’: 2}) {‘one’: 1, ‘two’: 2} >>>
  210. >>> >>> x = {‘one’: 1, number of dictionary len(dict)

    >>> x = {‘one’: 1, ‘two’: 2}
  211. >>> >>> x = {‘one’: 1, number of dictionary len(dict)

    >>> x = {‘one’: 1, ‘two’: 2} >>> x = {‘one’: 1, ‘two’: 2} >>>
  212. >>> >>> x = {‘one’: 1, number of dictionary len(dict)

    >>> x = {‘one’: 1, ‘two’: 2} >>> x = {‘one’: 1, ‘two’: 2} >>> >>> x = {‘one’: 1, ‘two’: 2} >>> len(x)
  213. >>> >>> x = {‘one’: 1, number of dictionary len(dict)

    >>> x = {‘one’: 1, ‘two’: 2} >>> x = {‘one’: 1, ‘two’: 2} >>> >>> x = {‘one’: 1, ‘two’: 2} >>> len(x) >>> x = {‘one’: 1, ‘two’: 2} >>> len(x) 2 >>>
  214. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100:
  215. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ...
  216. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10
  217. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ...
  218. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100:
  219. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ...
  220. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10
  221. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ...
  222. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else:
  223. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ...
  224. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0
  225. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ...
  226. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>>
  227. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x
  228. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x 0 >>>
  229. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x 0 >>> >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x 0 >>>
  230. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x 0 >>> >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x 0 >>> else if
  231. Condition >>> >>> x = 100 >>> x = 100

    >>> >>> x = 100 >>> if x > 100: >>> x = 100 >>> if x > 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x 0 >>> >>> x = 100 >>> if x > 100: ... x = x + 10 ... elif x < 100: ... x = x - 10 ... else: ... x = 0 ... >>> x 0 >>> else if no switch statement in Python
  232. >>> >>> i = 0 >>> i = 0 >>>

    >>> i = 0 >>> while i < 3: Loop
  233. >>> >>> i = 0 >>> i = 0 >>>

    >>> i = 0 >>> while i < 3: >>> i = 0 >>> while i < 3: ... Loop
  234. >>> >>> i = 0 >>> i = 0 >>>

    >>> i = 0 >>> while i < 3: >>> i = 0 >>> while i < 3: ... >>> i = 0 >>> while i < 3: ... i = i + 1 Loop
  235. >>> >>> i = 0 >>> i = 0 >>>

    >>> i = 0 >>> while i < 3: >>> i = 0 >>> while i < 3: ... >>> i = 0 >>> while i < 3: ... i = i + 1 >>> i = 0 >>> while i < 3: ... i = i + 1 ... Loop
  236. >>> >>> i = 0 >>> i = 0 >>>

    >>> i = 0 >>> while i < 3: >>> i = 0 >>> while i < 3: ... >>> i = 0 >>> while i < 3: ... i = i + 1 >>> i = 0 >>> while i < 3: ... i = i + 1 ... >>> i = 0 >>> while i < 3: ... i = i + 1 ... print i Loop
  237. >>> >>> i = 0 >>> i = 0 >>>

    >>> i = 0 >>> while i < 3: >>> i = 0 >>> while i < 3: ... >>> i = 0 >>> while i < 3: ... i = i + 1 >>> i = 0 >>> while i < 3: ... i = i + 1 ... >>> i = 0 >>> while i < 3: ... i = i + 1 ... print i >>> i = 0 >>> while i < 3: ... i = i + 1 ... print i ... Loop
  238. >>> >>> i = 0 >>> i = 0 >>>

    >>> i = 0 >>> while i < 3: >>> i = 0 >>> while i < 3: ... >>> i = 0 >>> while i < 3: ... i = i + 1 >>> i = 0 >>> while i < 3: ... i = i + 1 ... >>> i = 0 >>> while i < 3: ... i = i + 1 ... print i >>> i = 0 >>> while i < 3: ... i = i + 1 ... print i ... >>> i = 0 >>> while i < 3: ... i = i + 1 ... print i ... 1 2 3 >>> Loop
  239. >>> >>> i = 0 >>> i = 0 >>>

    >>> i = 0 >>> while i < 3: >>> i = 0 >>> while i < 3: ... >>> i = 0 >>> while i < 3: ... i = i + 1 >>> i = 0 >>> while i < 3: ... i = i + 1 ... >>> i = 0 >>> while i < 3: ... i = i + 1 ... print i >>> i = 0 >>> while i < 3: ... i = i + 1 ... print i ... >>> i = 0 >>> while i < 3: ... i = i + 1 ... print i ... 1 2 3 >>> no do-while statement in Python Loop
  240. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> Traversal Sequence
  241. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> for i in x: Traversal Sequence
  242. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> for i in x: >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... Traversal Sequence
  243. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> for i in x: >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i Traversal Sequence
  244. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> for i in x: >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i ... Traversal Sequence
  245. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> for i in x: >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i ... >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i ... 1 2 3 4 5 >>> Traversal Sequence
  246. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> for i in x: >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i ... >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i ... 1 2 3 4 5 >>> Traversal Sequence >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i ... 1 2 3 4 5 >>>
  247. >>> >>> x = [1, 2, 3, 4, 5] >>>

    x = [1, 2, 3, 4, 5] >>> >>> x = [1, 2, 3, 4, 5] >>> for i in x: >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i ... >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i ... 1 2 3 4 5 >>> Traversal Sequence >>> x = [1, 2, 3, 4, 5] >>> for i in x: ... print i ... 1 2 3 4 5 >>> must be a iterable object
  248. >>> >>> for i in range(5): Addition for Loop continue

    skip remaining statement and continue loop
  249. >>> >>> for i in range(5): >>> for i in

    range(5): ... Addition for Loop continue skip remaining statement and continue loop
  250. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: Addition for Loop continue skip remaining statement and continue loop
  251. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... Addition for Loop continue skip remaining statement and continue loop
  252. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... >>> for i in range(5): ... if i == 2: ... continue Addition for Loop continue skip remaining statement and continue loop
  253. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... >>> for i in range(5): ... if i == 2: ... continue >>> for i in range(5): ... if i == 2: ... continue ... Addition for Loop continue skip remaining statement and continue loop
  254. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... >>> for i in range(5): ... if i == 2: ... continue >>> for i in range(5): ... if i == 2: ... continue ... >>> for i in range(5): ... if i == 2: ... continue ... print i Addition for Loop continue skip remaining statement and continue loop
  255. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... >>> for i in range(5): ... if i == 2: ... continue >>> for i in range(5): ... if i == 2: ... continue ... >>> for i in range(5): ... if i == 2: ... continue ... print i >>> for i in range(5): ... if i == 2: ... continue ... print i ... Addition for Loop continue skip remaining statement and continue loop
  256. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... >>> for i in range(5): ... if i == 2: ... continue >>> for i in range(5): ... if i == 2: ... continue ... >>> for i in range(5): ... if i == 2: ... continue ... print i >>> for i in range(5): ... if i == 2: ... continue ... print i ... ... if i == 2: ... continue ... print i ... 0 1 3 4 >>> Addition for Loop continue skip remaining statement and continue loop
  257. >>> >>> for i in range(5): >>> for i in

    range(5): ... Addition for Loop break exit from loop
  258. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: Addition for Loop break exit from loop
  259. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... Addition for Loop break exit from loop
  260. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... >>> for i in range(5): ... if i == 2: ... break Addition for Loop break exit from loop
  261. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... >>> for i in range(5): ... if i == 2: ... break >>> for i in range(5): ... if i == 2: ... break ... Addition for Loop break exit from loop
  262. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... >>> for i in range(5): ... if i == 2: ... break >>> for i in range(5): ... if i == 2: ... break ... >>> for i in range(5): ... if i == 2: ... break ... print i Addition for Loop break exit from loop
  263. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... >>> for i in range(5): ... if i == 2: ... break >>> for i in range(5): ... if i == 2: ... break ... >>> for i in range(5): ... if i == 2: ... break ... print i >>> for i in range(5): ... if i == 2: ... break ... print i ... Addition for Loop break exit from loop
  264. >>> >>> for i in range(5): >>> for i in

    range(5): ... >>> for i in range(5): ... if i == 2: >>> for i in range(5): ... if i == 2: ... >>> for i in range(5): ... if i == 2: ... break >>> for i in range(5): ... if i == 2: ... break ... >>> for i in range(5): ... if i == 2: ... break ... print i >>> for i in range(5): ... if i == 2: ... break ... print i ... >>> for i in range(5): ... if i == 2: ... break ... print i ... 0 1 >>> Addition for Loop break exit from loop
  265. >>> >>> for i in range(3): Addition for Loop else

    do something after unbroken loop
  266. >>> >>> for i in range(3): >>> for i in

    range(3): ... Addition for Loop else do something after unbroken loop
  267. >>> >>> for i in range(3): >>> for i in

    range(3): ... >>> for i in range(3): ... print i Addition for Loop else do something after unbroken loop
  268. >>> >>> for i in range(3): >>> for i in

    range(3): ... >>> for i in range(3): ... print i >>> for i in range(3): ... print i ... Addition for Loop else do something after unbroken loop
  269. >>> >>> for i in range(3): >>> for i in

    range(3): ... >>> for i in range(3): ... print i >>> for i in range(3): ... print i ... >>> for i in range(3): ... print i ... else: Addition for Loop else do something after unbroken loop
  270. >>> >>> for i in range(3): >>> for i in

    range(3): ... >>> for i in range(3): ... print i >>> for i in range(3): ... print i ... >>> for i in range(3): ... print i ... else: >>> for i in range(3): ... print i ... else: ... Addition for Loop else do something after unbroken loop
  271. >>> >>> for i in range(3): >>> for i in

    range(3): ... >>> for i in range(3): ... print i >>> for i in range(3): ... print i ... >>> for i in range(3): ... print i ... else: >>> for i in range(3): ... print i ... else: ... >>> for i in range(3): ... print i ... else: ... print “done” Addition for Loop else do something after unbroken loop
  272. >>> >>> for i in range(3): >>> for i in

    range(3): ... >>> for i in range(3): ... print i >>> for i in range(3): ... print i ... >>> for i in range(3): ... print i ... else: >>> for i in range(3): ... print i ... else: ... >>> for i in range(3): ... print i ... else: ... print “done” >>> for i in range(3): ... print i ... else: ... print “done” ... Addition for Loop else do something after unbroken loop
  273. >>> >>> for i in range(3): >>> for i in

    range(3): ... >>> for i in range(3): ... print i >>> for i in range(3): ... print i ... >>> for i in range(3): ... print i ... else: >>> for i in range(3): ... print i ... else: ... >>> for i in range(3): ... print i ... else: ... print “done” >>> for i in range(3): ... print i ... else: ... print “done” ... ... print i ... else: ... print “done” ... 0 1 2 done >>> Addition for Loop else do something after unbroken loop
  274. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1
  275. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>>
  276. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input()
  277. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2
  278. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>>
  279. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input()
  280. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2
  281. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>>
  282. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input()
  283. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb”
  284. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>>
  285. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input()
  286. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3]
  287. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>>
  288. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>> 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>> input()
  289. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>> 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>> input() 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>> input() 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>> input() 1 2
  290. Evaluated Input input read a string can be evaluated return

    an evaluated object >>> >>> input() >>> input() 1 >>> input() 1 1 >>> >>> input() 1 1 >>> input() >>> input() 1 1 >>> input() 1 + 2 >>> input() 1 1 >>> input() 1 + 2 3 >>> >>> input() 1 1 >>> input() 1 + 2 3 >>> input() >>> input() 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> 1 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() 1 >>> input() 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> 1 + 2 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() 3 >>> input() 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>> 5.0 / 2 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>> input() 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>> input() 2.5 >>> input() “aaa bbb” ‘aaa bbb’ >>> input() [1, 2, 3] [1, 2, 3] >>> input() 1 2 >>> input() 1 2 Traceback (most recent call last): File "<input>", line 1, in <module> File "<string>", line 1 1 2 ^ SyntaxError: unexpected EOF while parsing >>>
  291. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> Raw Input raw_input() read a string return a string
  292. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() Raw Input raw_input() read a string return a string
  293. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 Raw Input raw_input() read a string return a string
  294. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> Raw Input raw_input() read a string return a string
  295. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() Raw Input raw_input() read a string return a string
  296. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 Raw Input raw_input() read a string return a string
  297. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> Raw Input raw_input() read a string return a string
  298. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() Raw Input raw_input() read a string return a string
  299. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” Raw Input raw_input() read a string return a string
  300. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> Raw Input raw_input() read a string return a string
  301. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() Raw Input raw_input() read a string return a string
  302. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] Raw Input raw_input() read a string return a string
  303. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> Raw Input raw_input() read a string return a string
  304. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> raw_input() Raw Input raw_input() read a string return a string
  305. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> raw_input() ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> raw_input() ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> raw_input() 1 2 Raw Input raw_input() read a string return a string
  306. >>> >>> raw_input() >>> raw_input() 1 >>> raw_input() 1 ‘1’

    >>> >>> raw_input() 1 ‘1’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() >>> raw_input() 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> 1 ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() ‘1’ >>> raw_input() 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> 1 + 2 ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() ‘1 + 2’ >>> raw_input() 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> 5.0 / 2 ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> raw_input() ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> raw_input() ‘5.0 / 2’ >>> raw_input() “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> raw_input() 1 2 “aaa bbb” ‘“aaa bbb”’ >>> raw_input() [1, 2, 3] ‘[1, 2, 3]’ >>> raw_input() 1 2 ‘1 2’ >>> Raw Input raw_input() read a string return a string
  307. Output print print object to standard output >>> >>> print

    “Hello World!” >>> print “Hello World!” Hello World! >>>
  308. Output print print object to standard output >>> >>> print

    “Hello World!” >>> print “Hello World!” Hello World! >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!”
  309. Output print print object to standard output >>> >>> print

    “Hello World!” >>> print “Hello World!” Hello World! >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>>
  310. Output print print object to standard output >>> >>> print

    “Hello World!” >>> print “Hello World!” Hello World! >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> print 1 + 2
  311. Output print print object to standard output >>> >>> print

    “Hello World!” >>> print “Hello World!” Hello World! >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> print 1 + 2 >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> print 1 + 2 3 >>>
  312. Output print print object to standard output >>> >>> print

    “Hello World!” >>> print “Hello World!” Hello World! >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> print 1 + 2 >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> print 1 + 2 3 >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> print 1 + 2 3 >>> print [1, 2, 3]
  313. Output print print object to standard output >>> >>> print

    “Hello World!” >>> print “Hello World!” Hello World! >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> print 1 + 2 >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> print 1 + 2 3 >>> >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> print 1 + 2 3 >>> print [1, 2, 3] >>> print “Hello World!” Hello World! >>> print “Hello”, “World!” Hello World! >>> print 1 + 2 3 >>> print [1, 2, 3] [1, 2, 3] >>>
  314. >>> >>> def SQ(x): >>> def SQ(x): ... >>> def

    SQ(x): ... return x * x Define a Function
  315. >>> >>> def SQ(x): >>> def SQ(x): ... >>> def

    SQ(x): ... return x * x >>> def SQ(x): ... return x * x ... Define a Function
  316. >>> >>> def SQ(x): >>> def SQ(x): ... >>> def

    SQ(x): ... return x * x >>> def SQ(x): ... return x * x ... >>> def SQ(x): ... return x * x ... >>> Define a Function
  317. >>> >>> def SQ(x): >>> def SQ(x): ... >>> def

    SQ(x): ... return x * x >>> def SQ(x): ... return x * x ... >>> def SQ(x): ... return x * x ... >>> >>> def SQ(x): ... return x * x ... >>> SQ(10) Define a Function
  318. >>> >>> def SQ(x): >>> def SQ(x): ... >>> def

    SQ(x): ... return x * x >>> def SQ(x): ... return x * x ... >>> def SQ(x): ... return x * x ... >>> >>> def SQ(x): ... return x * x ... >>> SQ(10) >>> def SQ(x): ... return x * x ... >>> SQ(10) 100 >>> Define a Function
  319. >>> >>> def SQ(x): >>> def SQ(x): ... >>> def

    SQ(x): ... return x * x >>> def SQ(x): ... return x * x ... >>> def SQ(x): ... return x * x ... >>> >>> def SQ(x): ... return x * x ... >>> SQ(10) >>> def SQ(x): ... return x * x ... >>> SQ(10) 100 >>> Define a Function >>> def SQ(x): ... return x * x ... >>> SQ(10) 100 >>>
  320. >>> >>> def SQ(x): >>> def SQ(x): ... >>> def

    SQ(x): ... return x * x >>> def SQ(x): ... return x * x ... >>> def SQ(x): ... return x * x ... >>> >>> def SQ(x): ... return x * x ... >>> SQ(10) >>> def SQ(x): ... return x * x ... >>> SQ(10) 100 >>> Define a Function >>> def SQ(x): ... return x * x ... >>> SQ(10) 100 >>> function name
  321. >>> >>> def SQ(x): >>> def SQ(x): ... >>> def

    SQ(x): ... return x * x >>> def SQ(x): ... return x * x ... >>> def SQ(x): ... return x * x ... >>> >>> def SQ(x): ... return x * x ... >>> SQ(10) >>> def SQ(x): ... return x * x ... >>> SQ(10) 100 >>> Define a Function >>> def SQ(x): ... return x * x ... >>> SQ(10) 100 >>> function name parameter
  322. >>> >>> def SQ(x): >>> def SQ(x): ... >>> def

    SQ(x): ... return x * x >>> def SQ(x): ... return x * x ... >>> def SQ(x): ... return x * x ... >>> >>> def SQ(x): ... return x * x ... >>> SQ(10) >>> def SQ(x): ... return x * x ... >>> SQ(10) 100 >>> Define a Function >>> def SQ(x): ... return x * x ... >>> SQ(10) 100 >>> function name parameter function content
  323. Lambda Function >>> >>> CUBE = lambda k: k *

    k * k >>> CUBE = lambda k: k * k * k >>>
  324. Lambda Function >>> >>> CUBE = lambda k: k *

    k * k >>> CUBE = lambda k: k * k * k >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10)
  325. Lambda Function >>> >>> CUBE = lambda k: k *

    k * k >>> CUBE = lambda k: k * k * k >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>>
  326. Lambda Function >>> >>> CUBE = lambda k: k *

    k * k >>> CUBE = lambda k: k * k * k >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4)
  327. Lambda Function >>> >>> CUBE = lambda k: k *

    k * k >>> CUBE = lambda k: k * k * k >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) 12 >>>
  328. Lambda Function >>> >>> CUBE = lambda k: k *

    k * k >>> CUBE = lambda k: k * k * k >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) 12 >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) 12 >>>
  329. Lambda Function >>> >>> CUBE = lambda k: k *

    k * k >>> CUBE = lambda k: k * k * k >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) 12 >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) 12 >>> parameter
  330. Lambda Function >>> >>> CUBE = lambda k: k *

    k * k >>> CUBE = lambda k: k * k * k >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) 12 >>> >>> CUBE = lambda k: k * k * k >>> CUBE(10) 1000 >>> (lambda x, y: x * y)(3, 4) 12 >>> parameter return value
  331. range >>> >>> range(10) >>> range(10) [0, 1, 2, 3,

    4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10)
  332. range >>> >>> range(10) >>> range(10) [0, 1, 2, 3,

    4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>>
  333. range >>> >>> range(10) >>> range(10) [0, 1, 2, 3,

    4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2)
  334. range >>> >>> range(10) >>> range(10) [0, 1, 2, 3,

    4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>>
  335. range >>> >>> range(10) >>> range(10) [0, 1, 2, 3,

    4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1)
  336. range >>> >>> range(10) >>> range(10) [0, 1, 2, 3,

    4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] >>>
  337. range >>> >>> range(10) >>> range(10) [0, 1, 2, 3,

    4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] >>>
  338. range >>> >>> range(10) >>> range(10) [0, 1, 2, 3,

    4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] >>> range(stop)
  339. range >>> >>> range(10) >>> range(10) [0, 1, 2, 3,

    4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] >>> range(stop) range(start, stop)
  340. range >>> >>> range(10) >>> range(10) [0, 1, 2, 3,

    4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] >>> >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(3, 10) [3, 4, 5, 6, 7, 8, 9] >>> range(1, 10, 2) [1, 3, 5, 7, 9] >>> range(10, 0, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] >>> range(stop) range(start, stop) range(start, stop, step)
  341. >>> >>> x = range(1, 11) >>> x = range(1,

    11) >>> >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) filter
  342. >>> >>> x = range(1, 11) >>> x = range(1,

    11) >>> >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) [2, 4, 6, 8, 10] >>> filter
  343. >>> >>> x = range(1, 11) >>> x = range(1,

    11) >>> >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) [2, 4, 6, 8, 10] >>> >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) [2, 4, 6, 8, 10] >>> filter
  344. >>> >>> x = range(1, 11) >>> x = range(1,

    11) >>> >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) [2, 4, 6, 8, 10] >>> >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) [2, 4, 6, 8, 10] >>> filter a function receive one parameter and return boolean value
  345. >>> >>> x = range(1, 11) >>> x = range(1,

    11) >>> >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) [2, 4, 6, 8, 10] >>> >>> x = range(1, 11) >>> filter(lambda k: k % 2 == 0, x) [2, 4, 6, 8, 10] >>> filter a function receive one parameter and return boolean value iterable object
  346. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> map(lambda k: k * k, x) map
  347. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> map(lambda k: k * k, x) >>> x = range(1, 6) >>> map(lambda k: k * k, x) [1, 4, 9, 16, 25] >>> map
  348. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> map(lambda k: k * k, x) >>> x = range(1, 6) >>> map(lambda k: k * k, x) [1, 4, 9, 16, 25] >>> >>> x = range(1, 6) >>> map(lambda k: k * k, x) [1, 4, 9, 16, 25] >>> map
  349. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> map(lambda k: k * k, x) >>> x = range(1, 6) >>> map(lambda k: k * k, x) [1, 4, 9, 16, 25] >>> >>> x = range(1, 6) >>> map(lambda k: k * k, x) [1, 4, 9, 16, 25] >>> map any function receive one parameter
  350. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> map(lambda k: k * k, x) >>> x = range(1, 6) >>> map(lambda k: k * k, x) [1, 4, 9, 16, 25] >>> >>> x = range(1, 6) >>> map(lambda k: k * k, x) [1, 4, 9, 16, 25] >>> map any function receive one parameter iterable object
  351. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) reduce
  352. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) 21909 >>> reduce
  353. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) 21909 >>> >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) 21909 >>> reduce
  354. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) 21909 >>> >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) 21909 >>> reduce any function receive two parameters
  355. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) 21909 >>> >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) 21909 >>> reduce any function receive two parameters iterable object
  356. >>> >>> x = range(1, 6) >>> x = range(1,

    6) >>> >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) 21909 >>> >>> x = range(1, 6) >>> reduce(lambda a, b: a**2 + b, x) 21909 >>> reduce any function receive two parameters iterable object calculate ((((1^2)+2)^2+3)^2+4)^2+5
  357. >>> >>> reduce(lambda a, b: a * b, range(1, 6))

    >>> reduce(lambda a, b: a * b, range(1, 6)) 120 >>> factorial
  358. List Comprehension >>> >>> [i**2 for i in range(1, 6)]

    >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>>
  359. List Comprehension >>> >>> [i**2 for i in range(1, 6)]

    >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)]
  360. List Comprehension >>> >>> [i**2 for i in range(1, 6)]

    >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] ['0', '1', '2', '3', '4'] >>>
  361. List Comprehension >>> >>> [i**2 for i in range(1, 6)]

    >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] ['0', '1', '2', '3', '4'] >>> >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] ['0', '1', '2', '3', '4'] >>>
  362. List Comprehension >>> >>> [i**2 for i in range(1, 6)]

    >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] ['0', '1', '2', '3', '4'] >>> >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] ['0', '1', '2', '3', '4'] >>> processing & return value
  363. List Comprehension >>> >>> [i**2 for i in range(1, 6)]

    >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] ['0', '1', '2', '3', '4'] >>> >>> [i**2 for i in range(1, 6)] [1, 4, 9, 16, 25] >>> [str(i) for i in range(5)] ['0', '1', '2', '3', '4'] >>> processing & return value iterable object
  364. >>> >>> {i: i**2 for i in range(1, 6)} >>>

    {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> Dict Comprehension
  365. >>> >>> {i: i**2 for i in range(1, 6)} >>>

    {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} Dict Comprehension
  366. >>> >>> {i: i**2 for i in range(1, 6)} >>>

    {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} {0: '0', 1: '1', 2: '2', 3: '3', 4: '4'} >>> Dict Comprehension
  367. >>> >>> {i: i**2 for i in range(1, 6)} >>>

    {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} {0: '0', 1: '1', 2: '2', 3: '3', 4: '4'} >>> >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} {0: '0', 1: '1', 2: '2', 3: '3', 4: '4'} >>> Dict Comprehension
  368. >>> >>> {i: i**2 for i in range(1, 6)} >>>

    {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} {0: '0', 1: '1', 2: '2', 3: '3', 4: '4'} >>> >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} {0: '0', 1: '1', 2: '2', 3: '3', 4: '4'} >>> Dict Comprehension processing & return value
  369. >>> >>> {i: i**2 for i in range(1, 6)} >>>

    {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} {0: '0', 1: '1', 2: '2', 3: '3', 4: '4'} >>> >>> {i: i**2 for i in range(1, 6)} {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} >>> {i: str(i) for i in range(5)} {0: '0', 1: '1', 2: '2', 3: '3', 4: '4'} >>> Dict Comprehension processing & return value iterable object
  370. >>> >>> (i**2 for i in range(1, 6)) >>> (i**2

    for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> Generator Comprehension
  371. >>> >>> (i**2 for i in range(1, 6)) >>> (i**2

    for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) Generator Comprehension
  372. >>> >>> (i**2 for i in range(1, 6)) >>> (i**2

    for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> Generator Comprehension
  373. >>> >>> (i**2 for i in range(1, 6)) >>> (i**2

    for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> Generator Comprehension
  374. >>> >>> (i**2 for i in range(1, 6)) >>> (i**2

    for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> Generator Comprehension processing & return value
  375. >>> >>> (i**2 for i in range(1, 6)) >>> (i**2

    for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> Generator Comprehension processing & return value iterable object
  376. >>> >>> (i**2 for i in range(1, 6)) >>> (i**2

    for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> Generator Comprehension processing & return value iterable object it contains the rule in the object
  377. >>> >>> (i**2 for i in range(1, 6)) >>> (i**2

    for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> >>> (i**2 for i in range(1, 6)) <generator object <genexpr> at 0x110494690> >>> (str(i) for i in range(5)) <generator object <genexpr> at 0x1104946e0> >>> Generator Comprehension processing & return value iterable object it contains the rule in the object save the memory
  378. Use a Generator >>> >>> x = (i**2 for i

    in range(5)) >>> x = (i**2 for i in range(5)) >>>
  379. Use a Generator >>> >>> x = (i**2 for i

    in range(5)) >>> x = (i**2 for i in range(5)) >>> >>> x = (i**2 for i in range(5)) >>> x
  380. Use a Generator >>> >>> x = (i**2 for i

    in range(5)) >>> x = (i**2 for i in range(5)) >>> >>> x = (i**2 for i in range(5)) >>> x >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>>
  381. Use a Generator >>> >>> x = (i**2 for i

    in range(5)) >>> x = (i**2 for i in range(5)) >>> >>> x = (i**2 for i in range(5)) >>> x >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x:
  382. Use a Generator >>> >>> x = (i**2 for i

    in range(5)) >>> x = (i**2 for i in range(5)) >>> >>> x = (i**2 for i in range(5)) >>> x >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: ...
  383. Use a Generator >>> >>> x = (i**2 for i

    in range(5)) >>> x = (i**2 for i in range(5)) >>> >>> x = (i**2 for i in range(5)) >>> x >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: ... >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: ... print i
  384. Use a Generator >>> >>> x = (i**2 for i

    in range(5)) >>> x = (i**2 for i in range(5)) >>> >>> x = (i**2 for i in range(5)) >>> x >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: ... >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: ... print i >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: ... print i ...
  385. Use a Generator >>> >>> x = (i**2 for i

    in range(5)) >>> x = (i**2 for i in range(5)) >>> >>> x = (i**2 for i in range(5)) >>> x >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: ... >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: ... print i >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: ... print i ... >>> x = (i**2 for i in range(5)) >>> x <generator object <genexpr> at 0x110494690> >>> for i in x: ... print i ... 0 1 4 9 16 >>>
  386. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, Help
  387. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates Help
  388. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is Help
  389. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items Help
  390. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and Help
  391. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the Help
  392. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. Help
  393. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. (END) Help
  394. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. (END) Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. (END) Help
  395. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. (END) Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. (END) press q Help
  396. >>> >>> help(reduce) Help on built-in function reduce in module

    __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, __builtin__: reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is reduce(...) reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items reduce(function, sequence[, initial]) - > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and > value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. (END) Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. (END) press q >>> help(reduce) >>> Help
  397. pip

  398. pip Package manager for Python Download package in PyPI (Python

    Package Index) https://pypi.python.org/pypi
  399. Install Pip on Windows Go to https://pypi.python.org/pypi/distribute/0.6.45. Download the source

    code, and unzip it. Go to the directory and execute the following command. > python.exe setup.py install Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip, and download pip installer.
  400. Basic Command $ pip install [package_name] Install Package $ pip

    uninstall [package_name] Uninstall Package $ pip search [package_name] Search Package
  401. All Command bundle create pybundles freeze output all currently installed

    packages (exact versions) to stdout help show available commands install install packages search search PyPI uninstall uninstall packages unzip unzip individual packages zip zip individual packages
  402. Install lxml $ $ pip install lxml $ pip install

    lxml Downloading/unpacking lxml $ pip install lxml Downloading/unpacking lxml Downloading lxml-3.2.1.tar.gz (3.3MB): 3.3MB downloaded Running setup.py egg_info for package lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Downloading/unpacking lxml Downloading lxml-3.2.1.tar.gz (3.3MB): 3.3MB downloaded Running setup.py egg_info for package lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Downloading lxml-3.2.1.tar.gz (3.3MB): 3.3MB downloaded Running setup.py egg_info for package lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. 3.3MB downloaded Running setup.py egg_info for package lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt Running setup.py egg_info for package lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 warning: no previously-included files Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 warning: no previously-included files found matching '*.py' lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 warning: no previously-included files found matching '*.py' warning: no files found matching UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 warning: no previously-included files found matching '*.py' warning: no files found matching '*.txt' under directory 'src/lxml/tests' 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 warning: no previously-included files found matching '*.py' warning: no files found matching '*.txt' under directory 'src/lxml/tests' Installing collected packages: lxml warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 warning: no previously-included files found matching '*.py' warning: no files found matching '*.txt' under directory 'src/lxml/tests' Installing collected packages: lxml Running setup.py install for lxml Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 warning: no previously-included files found matching '*.py' warning: no files found matching '*.txt' under directory 'src/lxml/tests' Installing collected packages: lxml Running setup.py install for lxml /usr/local/Cellar/python/2.7.5/ Building without Cython. Using build configuration of libxslt 1.1.26 warning: no previously-included files found matching '*.py' warning: no files found matching '*.txt' under directory 'src/lxml/tests' Installing collected packages: lxml Running setup.py install for lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ Using build configuration of libxslt 1.1.26 warning: no previously-included files found matching '*.py' warning: no files found matching '*.txt' under directory 'src/lxml/tests' Installing collected packages: lxml Running setup.py install for lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: 1.1.26 warning: no previously-included files found matching '*.py' warning: no files found matching '*.txt' under directory 'src/lxml/tests' Installing collected packages: lxml Running setup.py install for lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: warning: no previously-included files found matching '*.py' warning: no files found matching '*.txt' under directory 'src/lxml/tests' Installing collected packages: lxml Running setup.py install for lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' found matching '*.py' warning: no files found matching '*.txt' under directory 'src/lxml/tests' Installing collected packages: lxml Running setup.py install for lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. warning: no files found matching '*.txt' under directory 'src/lxml/tests' Installing collected packages: lxml Running setup.py install for lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. '*.txt' under directory 'src/lxml/tests' Installing collected packages: lxml Running setup.py install for lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt Installing collected packages: lxml Running setup.py install for lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 Running setup.py install for lxml /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 building 'lxml.etree' extension /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 building 'lxml.etree' extension cc -fno-strict-aliasing -fno-common - Frameworks/Python.framework/Versions/2.7/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 building 'lxml.etree' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 building 'lxml.etree' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 'bugtrack_url' warnings.warn(msg) Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 building 'lxml.etree' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ Building lxml version 3.2.1. Building without Cython. Using build configuration of libxslt 1.1.26 building 'lxml.etree' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Building without Cython. Using build configuration of libxslt 1.1.26 building 'lxml.etree' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Using build configuration of libxslt 1.1.26 building 'lxml.etree' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ 1.1.26 building 'lxml.etree' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.etree.c -o cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -flat_namespace dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -flat_namespace clang: warning: argument unused during opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' src/lxml/lxml.etree.c:136289:17: libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' src/lxml/lxml.etree.c:136289:17: warning: enumeration value 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' src/lxml/lxml.etree.c:136289:17: warning: enumeration value '__pyx_e_4lxml_5etree_PARSER_DATA_INVALID' KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' src/lxml/lxml.etree.c:136289:17: warning: enumeration value '__pyx_e_4lxml_5etree_PARSER_DATA_INVALID' not handled in switch [-Wswitch] Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' src/lxml/lxml.etree.c:136289:17: warning: enumeration value '__pyx_e_4lxml_5etree_PARSER_DATA_INVALID' not handled in switch [-Wswitch] switch (__pyx_v_doc_ref->_type) { python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' src/lxml/lxml.etree.c:136289:17: warning: enumeration value '__pyx_e_4lxml_5etree_PARSER_DATA_INVALID' not handled in switch [-Wswitch] switch (__pyx_v_doc_ref->_type) { ^ lxml.etree.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' src/lxml/lxml.etree.c:136289:17: warning: enumeration value '__pyx_e_4lxml_5etree_PARSER_DATA_INVALID' not handled in switch [-Wswitch] switch (__pyx_v_doc_ref->_type) { ^ src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing clang: warning: argument unused during compilation: '-flat_namespace' src/lxml/lxml.etree.c:136289:17: warning: enumeration value '__pyx_e_4lxml_5etree_PARSER_DATA_INVALID' not handled in switch [-Wswitch] switch (__pyx_v_doc_ref->_type) { ^ src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext compilation: '-flat_namespace' src/lxml/lxml.etree.c:136289:17: warning: enumeration value '__pyx_e_4lxml_5etree_PARSER_DATA_INVALID' not handled in switch [-Wswitch] switch (__pyx_v_doc_ref->_type) { ^ src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct src/lxml/lxml.etree.c:136289:17: warning: enumeration value '__pyx_e_4lxml_5etree_PARSER_DATA_INVALID' not handled in switch [-Wswitch] switch (__pyx_v_doc_ref->_type) { ^ src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- warning: enumeration value '__pyx_e_4lxml_5etree_PARSER_DATA_INVALID' not handled in switch [-Wswitch] switch (__pyx_v_doc_ref->_type) { ^ src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] '__pyx_e_4lxml_5etree_PARSER_DATA_INVALID' not handled in switch [-Wswitch] switch (__pyx_v_doc_ref->_type) { ^ src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject not handled in switch [-Wswitch] switch (__pyx_v_doc_ref->_type) { ^ src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy switch (__pyx_v_doc_ref->_type) { ^ src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct { ^ src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext ^ src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! src/lxml/lxml.etree.c:140375:72: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct *)__pyx_v_self->_context))); if (unlikely(! __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext __pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext __LINE__; goto __pyx_L9;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:141781:70: src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:141781:70: warning: incompatible pointer types passing passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:141781:70: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:141781:70: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:141781:70: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:141781:70: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:141781:70: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy *__pyx_v_self) { ^ src/lxml/lxml.etree.c:141781:70: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct ^ src/lxml/lxml.etree.c:141781:70: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext ^ src/lxml/lxml.etree.c:141781:70: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if src/lxml/lxml.etree.c:141781:70: warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = warning: incompatible pointer types passing 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; 'struct __pyx_obj_4lxml_5etree__BaseContext *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto *' to parameter of type 'struct __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_obj_4lxml_5etree__XSLTContext *' [- Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} Wincompatible-pointer-types] __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *)__pyx_f_4lxml_5etree_12_XSLTContext__copy (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: (((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext __pyx_L1_error;} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:160712:19: src/lxml/lxml.etree.c:138310:138: note: passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:160712:19: warning: expression result unused [- passing argument to parameter '__pyx_v_self' here static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:160712:19: warning: expression result unused [- Wunused-value] static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:160712:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:160712:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ *__pyx_f_4lxml_5etree_12_XSLTContext__copy( struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:160712:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) { ^ src/lxml/lxml.etree.c:160712:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: *__pyx_v_self) { ^ src/lxml/lxml.etree.c:160712:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ^ src/lxml/lxml.etree.c:160712:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), ^ src/lxml/lxml.etree.c:160712:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) src/lxml/lxml.etree.c:160712:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:162525:19: PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- Wunused-value] /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ^ src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), ^ src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) src/lxml/lxml.etree.c:162525:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:168081:19: PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- Wunused-value] /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ^ src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), ^ src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) src/lxml/lxml.etree.c:168081:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:170771:19: PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- Wunused-value] /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ^ src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), ^ src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) src/lxml/lxml.etree.c:170771:19: warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) warning: expression result unused [- Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ Wunused-value] PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:12770:13: PyObject_INIT(o, t); ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:12770:13: warning: function ^ /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:12770:13: warning: function '__pyx_f_4lxml_5etree_displayNode' is not /usr/local/Cellar/python/2.7.5/ Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:12770:13: warning: function '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- Frameworks/Python.framework/Versions/2.7/ include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:12770:13: warning: function '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- internal-declaration] include/python2.7/objimpl.h:164:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:12770:13: warning: function '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- internal-declaration] static void expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:12770:13: warning: function '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- internal-declaration] static void __pyx_f_4lxml_5etree_displayNode(xmlNode ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:12770:13: warning: function '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- internal-declaration] static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) _Py_NewReference((PyObject *)(op)), (op) ) ^ src/lxml/lxml.etree.c:12770:13: warning: function '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- internal-declaration] static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ src/lxml/lxml.etree.c:12770:13: warning: function '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- internal-declaration] static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ ^ src/lxml/lxml.etree.c:12770:13: warning: function '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- internal-declaration] static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ 8 warnings generated. src/lxml/lxml.etree.c:12770:13: warning: function '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- internal-declaration] static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ 8 warnings generated. cc -bundle -undefined dynamic_lookup - warning: function '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- internal-declaration] static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ 8 warnings generated. cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib '__pyx_f_4lxml_5etree_displayNode' is not needed and will not be emitted [-Wunneeded- internal-declaration] static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ 8 warnings generated. cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ needed and will not be emitted [-Wunneeded- internal-declaration] static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ 8 warnings generated. cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm internal-declaration] static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ 8 warnings generated. cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ 8 warnings generated. cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ 8 warnings generated. cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so building 'lxml.objectify' extension *__pyx_v_c_node, PyObject *__pyx_v_indent) { ^ 8 warnings generated. cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - { ^ 8 warnings generated. cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ ^ 8 warnings generated. cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 8 warnings generated. cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ -o build/lib.macosx-10.8-x86_64-2.7/lxml/ etree.so building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ etree.so building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o building 'lxml.objectify' extension cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ cc -fno-strict-aliasing -fno-common - dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace dynamic -I/usr/local/include -I/usr/local/ opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace clang: warning: argument unused during opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' -Wall -Wstrict-prototypes -I/usr/include/ libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - libxml2 -I/private/var/folders/yx/ 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib 3cgqr5y50vnf9ts91m5x073r0000gn/T/pip-build- KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ KuoE0/lxml/src/lxml/includes -I/usr/local/ Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -lxslt -lexslt -lxml2 -lz Cellar/python/2.7.5/Frameworks/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/ Python.framework/Versions/2.7/include/ python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/ lxml/objectify.so python2.7 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/ lxml/objectify.so build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/ lxml/objectify.so warning: no files found matching lxml.objectify.o -flat_namespace clang: warning: argument unused during compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/ lxml/objectify.so warning: no files found matching '*.txt' under directory 'src/lxml/tests' clang: warning: argument unused during compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/ lxml/objectify.so warning: no files found matching '*.txt' under directory 'src/lxml/tests' Successfully installed lxml compilation: '-flat_namespace' cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/ lxml/objectify.so warning: no files found matching '*.txt' under directory 'src/lxml/tests' Successfully installed lxml Cleaning up... cc -bundle -undefined dynamic_lookup - L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/src/lxml/ lxml.objectify.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.8-x86_64-2.7/ lxml/objectify.so warning: no files found matching '*.txt' under directory 'src/lxml/tests' Successfully installed lxml Cleaning up... $
  403. Launch a Web Server $ $ pythom -m SimpleHTTPServer $

    pythom -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 ...