PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: biology

Real Python: Python 3 Cheat Sheet

Back to document page

Real Python : Python 3 Cheat SheetContents1 Introduction22 Primitives3Numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3Strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5Booleans. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 Collections9Lists. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9Dictionaries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 Control Statements12IF Statements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12Loops. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .145 Functions151Chapter 1IntroductionPython is a beautiful language. It s easy to learn and fun, and its syntax is simple yet ele-gant. Python is a popular choice for beginners, yet still powerful enough to back some of theworld smostpopularproductsandapplicationsfromc ompanieslikeNASA,Google,Mozilla,Cisco, Microsoft, and Instagram, among others.

8 1.5 9 >>> 3 * 3 10 9 11 >>> 3 ** 3 12 27 13 >>> num = 3 14 >>> num = num - 1 15 >>> print(num) 16 2 17 >>> num = num + 10 18 >>> print(num) 19 12 20 >>> num += 10 21 >>> print(num) 22 22 23 >>> num -= 12 24 >>> print(num) 25 10 26 >>> num *= 10 27 >>> num 28 100 There’s also a special operator called modulus, %, that returns the remainder after integer …

  Python, Sheet, Teach, Cheat sheet

Download Real Python: Python 3 Cheat Sheet


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Related search queries