\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Venkatesh Jeyakumaresan (codegutsy)} \pdfinfo{ /Title (python-core-language.pdf) /Creator (Cheatography) /Author (Venkatesh Jeyakumaresan (codegutsy)) /Subject (Python Core Language Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{D6CB2F} \definecolor{LightBackground}{HTML}{FCFBF2} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Python Core Language Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Venkatesh Jeyakumaresan (codegutsy)} via \textcolor{DarkBackground}{\uline{cheatography.com/122776/cs/23864/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Venkatesh Jeyakumaresan (codegutsy) \\ \uline{cheatography.com/codegutsy} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 29th July, 2020.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{2} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Lexical Analysis}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Line Structure} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Joining Lines} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Blank Lines} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Comments} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Encoding Declaration} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Indentation} \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.368 cm} x{3.572 cm} x{2.66 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Input and Output}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{Printing} output & print(*objects, sep=' ', end='\textbackslash{}n', file=sys.stdout, flush=False) & print("Hello world!", end=" ") \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \seqsplit{Getting} input & input({[}prompt{]}) & input("Enter your age") \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Indentation}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Leading whitespace (spaces and tabs) at the beginning of a logical line is used to compute the indentation level of the line, which in turn is used to determine the grouping of statements.} \tn % Row Count 4 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Encoding Declaration}} \tn % Row 0 \SetRowColor{LightBackground} If a comment in the first or second line of the Python script matches the regular expression, this comment is processed as an encoding declaration; the first group of this expression names the encoding of the source code file. & \#!/usr/bin/env python \{\{nl\}\} \# -*- coding: utf-8 -*- \tn % Row Count 12 (+ 12) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.216 cm} x{0.988 cm} x{5.396 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Comments}} \tn % Row 0 \SetRowColor{LightBackground} Hash & \# & \# some comment \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \seqsplit{DocString} & """ """ & """Demonstrates docstrings and does nothing really.""" \tn % Row Count 3 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Blank Lines}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{A logical line that contains only spaces, tabs, formfeeds and possibly a comment, is ignored.} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{During interactive input of statements, handling of a blank line may differ depending on the implementation of the read-eval-print loop.} \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{In the standard interactive interpreter, an entirely blank logical line terminates a multi-line statement.} \tn % Row Count 8 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.596 cm} x{2.964 cm} x{3.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Joining Lines}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{Explicit} line joining & Two or more physical lines may be joined into logical lines using backslash characters (\textbackslash{}), as follows: when a physical line ends in a backslash that is not part of a string literal or comment, it is joined with the following forming a single logical line, deleting the backslash and the following end-of-line character. & if 1900 \textless{} year \textless{} 2100 and 1 \textless{}= month \textless{}= 12 \textbackslash{} and 1 \textless{}= day \textless{}= 31 and 0 \textless{}= hour \textless{} 24 \textbackslash{} and 0 \textless{}= minute \textless{} 60 and 0 \textless{}= second \textless{} 60: \# Looks like a valid date return 1 \tn % Row Count 22 (+ 22) % Row 1 \SetRowColor{white} \seqsplit{Implicit} line joining & Expressions in parentheses, square brackets or curly braces can be split over more than one physical line without using backslashes. & month\_names = \{\{nl\}\}{[}'Januari', 'Februari', 'Maart', \# These are the \{\{nl\}\} 'April', 'Mei', 'Juni', \# Dutch names 'Juli', 'Augustus', 'September', \# for the months 'Oktober', 'November', 'December'{]} \# of the year \tn % Row Count 40 (+ 18) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{Remember: \newline -\textgreater{} A line ending in a backslash cannot carry a comment. \newline -\textgreater{} A backslash does not continue a comment. \newline -\textgreater{} A backslash does not continue a token except for string literals (i.e., tokens other than string literals cannot be split across physical lines using a backslash). \newline -\textgreater{} A backslash is illegal elsewhere on a line outside a string literal.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.14 cm} x{3.192 cm} x{3.268 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Line Structure}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{Logical} Lines & A logical line is what Python sees as a single statement & Here is one logical on a physical line:\{\{nl\}\} 1) my\_list = {[}1, 2, 3, 4{]} \{\{nl\}\} 2) print("Hello world!") \tn % Row Count 7 (+ 7) % Row 1 \SetRowColor{white} \seqsplit{Physical} Lines & A physical line is what you see when you write the program. Two or more physical lines may be joined into logical lines using backslash characters. & Here is one logical line on two physical lines:\{\{nl\}\} 1) my\_list = {[}1, 2, \{\{nl\}\}3, 4{]} \{\{nl\}\} 2) s = 'This is a string. \textbackslash{} This continues the string.' \tn % Row Count 17 (+ 10) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.16 cm} x{5.84 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Introduction}} \tn % Row 0 \SetRowColor{LightBackground} Founder & {\bf{Guido van Rossum}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} First release & February 20, 1991 \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{Developers} & {\emph{Python Software Foundation}} \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} Paradigm & Multi-paradigm: functional, imperative, object-oriented, structured, reflective \tn % Row Count 7 (+ 3) % Row 4 \SetRowColor{LightBackground} Type \seqsplit{Discipline} & Duck, dynamic, gradual \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} Language Type & Interpreted \tn % Row Count 11 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.812 cm} x{1.596 cm} x{3.192 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Identifiers}} \tn % Row 0 \SetRowColor{LightBackground} Lu - uppercase letters & A..Z & UPPERCASENAME \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Ll - lowercase letters & a...z & LOWERCASENAME \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Lt - titlecase letters & \seqsplit{a..zA..z} & titleCaseName \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Nl - letter numbers & \seqsplit{a...zA...z1...n} & name2000 | NAME999 \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} Pc - connector punctuations & a\_zA\_Z & name\_connector | NAME\_CONNECTOR \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{A Python identifier is a name used to identify a variable, function, class, module or other object. \newline Identifier naming standards are mentioned above.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.088 cm} p{1.512 cm} p{1.512 cm} x{2.088 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{Keywords and Reserved words}} \tn % Row 0 \SetRowColor{LightBackground} False & await & else & import \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} pass & None & break & except \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} in & raise & True & class \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} finally & is & return & and \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} continue & for & lambda & try \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} as & def & from & nonlocal \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} while & assert & del & global \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} not & with & async & elif \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} if & or & yield & \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}----} \SetRowColor{LightBackground} \mymulticolumn{4}{x{8.4cm}}{Keywords cannot be used as ordinary identifiers.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.92 cm} x{4.08 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Variables}} \tn % Row 0 \SetRowColor{LightBackground} Definition & Variable is a reserved memory location to store values \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} Syntax & IDENTIFIER\_NAME = VALUE\textasciicircum{}(1)\textasciicircum{} \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} Assignment Operator & = \tn % Row Count 6 (+ 1) % Row 3 \SetRowColor{white} Walrus \seqsplit{Operator/Assignment} Expressions & := \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} Example & number = 10 | name = "Some name" | print(walrus := True) \tn % Row Count 11 (+ 3) % Row 5 \SetRowColor{white} Multiple Assignment & a = b = c = 1 | a,b,c = 1,2,"john" \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} Deleting variable & del VARIABLE\_NAME \tn % Row Count 14 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{(1) VALUE =\textgreater{} any built-in type or user-defined class or function} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.28 cm} x{4.408 cm} x{0.912 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Built-in Types}} \tn % Row 0 \SetRowColor{LightBackground} Boolean types & Truthy Falsy values & \seqsplit{Scalar} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Numeric types & Integer, Float, Complex & \seqsplit{Scalar} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Sequence types & List, Tuple, Range & \seqsplit{Compound} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Text Sequence types & String & \seqsplit{Scalar} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} Mapping types & dictionary & \seqsplit{Compound} \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} Binary Sequence types & bytes, bytesarray, memoryview & \seqsplit{Compound} \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} Set types & set, frozenset & \seqsplit{Compound} \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} Other types & functions, modules, class, methods, code objects, type objects, elipsis object, null object, notImplemented objects & \tn % Row Count 19 (+ 5) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{Special attributes} \tn % Row Count 20 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{5.52 cm} p{2.48 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Boolean Type}} \tn % Row 0 \SetRowColor{LightBackground} Reference & Link \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{5.12 cm} p{2.88 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Numeric Type}} \tn % Row 0 \SetRowColor{LightBackground} Integer & Link \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Float & Link \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Complex & Link \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{6.96 cm} p{1.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Sequence Types}} \tn % Row 0 \SetRowColor{LightBackground} Common sequence operations & Link \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} List & Link \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Tuple & Link \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Range & LInk \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} String & Link \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{5.68 cm} p{2.32 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Mapping type}} \tn % Row 0 \SetRowColor{LightBackground} Dictionary & Link \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{5.68 cm} p{2.32 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Binary Sequence Types}} \tn % Row 0 \SetRowColor{LightBackground} Bytes & Link \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Bytesarray & Link \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Memoryview & Link \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{5.52 cm} p{2.48 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Sets ypes}} \tn % Row 0 \SetRowColor{LightBackground} Set & Link \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Frozenset & Link \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{6.56 cm} p{1.44 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Other Types}} \tn % Row 0 \SetRowColor{LightBackground} Functions & Link \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Class & Link \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Modules & Link \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Elipsis & Link \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Null & Link \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} NotImplemented & Link \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} Special Attributes & Link \tn % Row Count 7 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}