\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{HiBe (HiBe)} \pdfinfo{ /Title (hibe.pdf) /Creator (Cheatography) /Author (HiBe (HiBe)) /Subject (HiBe 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}{780B16} \definecolor{LightBackground}{HTML}{FAF7F7} \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{HiBe Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{HiBe (HiBe)} via \textcolor{DarkBackground}{\uline{cheatography.com/196652/cs/41358/}}} \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}HiBe (HiBe) \\ \uline{cheatography.com/hibe} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 19th November, 2023.\\ Updated 19th November, 2023.\\ 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{tabularx}{17.67cm}{x{8.635 cm} x{8.635 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Strings {[}immutable, iterable{]}}} \tn % Row 0 \SetRowColor{LightBackground} `string = "hello world"` & "hello world" \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} `string = "hello \seqsplit{world".capitalize()`} & "Hello world" \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} `string = "Hello World".lower()` & "hello world" \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} `string = "Hello World".upper()` & "HELLO WORLD" \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} `string = "hello world".title()` & "Hello Word" \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} `string = "Hello wOrld".swapcase()` & "hELLO WoRLD" \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} `string = "{\ss}".casefold()` & "ss" \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`.casefold()` is a more aggressive `.lower()` used for string comparisons.} \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} `int = "abaaba \seqsplit{ababa".count("aba")`} & 3 \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{"ababa" is counted to have 1 "aba"} \tn % Row Count 19 (+ 1) % Row 10 \SetRowColor{LightBackground} `int = \seqsplit{"acadacad".find("cad")`} & 1 \tn % Row Count 21 (+ 2) % Row 11 \SetRowColor{white} `int = \seqsplit{"acadacad".rfind("cad")`} & 5 \tn % Row Count 23 (+ 2) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{`string.find({\bf{{\emph{value}}}}, {\bf{{\emph{start}}}}, {\bf{{\emph{end}}}})` finds the {\bf{{\emph{first}}}} occurrence of the {\bf{{\emph{value}}}} after {\bf{{\emph{start}}}} before {\bf{{\emph{end}}}}.} \tn % Row Count 26 (+ 3) % Row 13 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`{\bf{{\emph{str}}}}.find({\bf{{\emph{str2}}}}) == {\bf{{\emph{str}}}}.index({\bf{{\emph{str2}}}})`, except for when {\bf{{\emph{str2}}}} isn't found `.find()` returns 0 while `.index()` throws an error} \tn % Row Count 30 (+ 4) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{8.635 cm} x{8.635 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Strings {[}immutable, iterable{]} (cont)}} \tn % Row 14 \SetRowColor{LightBackground} `string = "ab ab aa ab ab".replace("ab", "x", 3)` & "x x aa x ab" \tn % Row Count 3 (+ 3) % Row 15 \SetRowColor{white} `{\bf{{\emph{str}}}}.replace({\bf{{\emph{oldvalue}}}}, {\bf{{\emph{newvalue}}}}, {\bf{{\emph{count}}}})` & replaces {\bf{{\emph{count}}}} of {\bf{{\emph{oldvalues}}}} in the {\bf{{\emph{string}}}} with {\bf{{\emph{newvalues}}}}. Default {\bf{{\emph{count}}}} is alll. \tn % Row Count 9 (+ 6) % Row 16 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{`{\bf{{\emph{str}}}}.format() == f'{\bf{{\emph{str}}}}' `} \tn % Row Count 10 (+ 1) % Row 17 \SetRowColor{white} `bool = "\_,\_.\_ban\_ana\_\_..,".strip("\_,.")` & "ban\_ana" \tn % Row Count 13 (+ 3) % Row 18 \SetRowColor{LightBackground} `bool = "\_,\_.\_ban\_ana\_\_..,".lstrip("\_,.")` & "ban\_ana\_\_..," \tn % Row Count 16 (+ 3) % Row 19 \SetRowColor{white} `bool = "\_,\_.\_ban\_ana\_\_..,".rstrip("\_,.")` & "ban\_ana\_\_..," \tn % Row Count 19 (+ 3) % Row 20 \SetRowColor{LightBackground} `string = "hello".center(10, '.')` & "..hello..." \tn % Row Count 21 (+ 2) % Row 21 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`{\bf{{\emph{str}}}}.center({\bf{{\emph{int}}}}, {\bf{{\emph{char}}}})` returns a string of {\bf{{\emph{int}}}} characters, with {\bf{{\emph{string}}}} in the middle and {\bf{{\emph{chars}}}} on the front and the end.} \tn % Row Count 25 (+ 4) % Row 22 \SetRowColor{LightBackground} `bool = "ab".isalpha()` & True \tn % Row Count 27 (+ 2) % Row 23 \SetRowColor{white} `bool = "a1".isalnum()` & True \tn % Row Count 29 (+ 2) % Row 24 \SetRowColor{LightBackground} `bool = "-12".isnumeric()` & False \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{8.635 cm} x{8.635 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Strings {[}immutable, iterable{]} (cont)}} \tn % Row 25 \SetRowColor{LightBackground} `bool = "1.2".isdigit()` & False \tn % Row Count 2 (+ 2) % Row 26 \SetRowColor{white} `bool = \seqsplit{"aba".endswith("ba")`} & True \tn % Row Count 4 (+ 2) % Row 27 \SetRowColor{LightBackground} `bool = \seqsplit{"aba".startswith("ab")`} & True \tn % Row Count 6 (+ 2) % Row 28 \SetRowColor{white} `bool = "a12".islower()` & True \tn % Row Count 8 (+ 2) % Row 29 \SetRowColor{LightBackground} `bool = "A12".isupper()` & True \tn % Row Count 10 (+ 2) % Row 30 \SetRowColor{white} `list = "Master \seqsplit{Lordern".split("er")} & {[}'Mast', ' Lord', 'n'{]} \tn % Row Count 12 (+ 2) % Row 31 \SetRowColor{LightBackground} `string = "-10.2".zfill(7)` & "-0010.2" \tn % Row Count 14 (+ 2) % Row 32 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`.zfill()` fills the beginning of the string with zeroes until the specified amount of characters are taken up, -, + and . included. Unlike .rjust(), .zfill() puts 0s after - and + signs.} \tn % Row Count 18 (+ 4) % Row 33 \SetRowColor{LightBackground} `string = "hello world".title()` & "Hello Word" \tn % Row Count 20 (+ 2) % Row 34 \SetRowColor{white} `string = "Hello wOrld".swapcase()` & "hELLO WoRLD" \tn % Row Count 22 (+ 2) % Row 35 \SetRowColor{LightBackground} `string = "hello world"{[}2:7{]}` {\emph{string slicing}} & "llo w" \tn % Row Count 25 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{{\bf{{\emph{All}}}} string methods {\bf{{\emph{return}}}} a new string {\bf{{\emph{without mutating}}}} the original string} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{9.3258 cm} x{7.9442 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Lists {[}mutable, iterable{]}}} \tn % Row 0 \SetRowColor{LightBackground} `list = {[}{]}` & {[}{]} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} list = list() & {[}{]} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} `list = {[}1, 2, 3{]}` & {[}1, 2, 3{]} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} `list.append(4)` & {[}1, 2, 3, 4{]} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} `list.insert(1, 8)` & {[}1, 8, 2, 3, 4{]} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`list.insert({\bf{{\emph{ind}}}}, {\bf{{\emph{elem}}}})` inserts {\bf{{\emph{elem}}}} at position {\bf{{\emph{ind}}}}} \tn % Row Count 7 (+ 2) % Row 6 \SetRowColor{LightBackground} `list.extend({[}8, 9, 1, 4, 3{]})` & {[}1, 8, 2, 3, 4, 8, 9, 1, 4, 3{]} \tn % Row Count 9 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`list.extend({\bf{{\emph{\textless{}iterable\textgreater{}}}}})` extends the list by the elements of the {\bf{{\emph{iterable}}}}} \tn % Row Count 11 (+ 2) % Row 8 \SetRowColor{LightBackground} `list.pop()` & {[}1, 8, 2, 3, 4, 8, 9, 1, 3{]} \tn % Row Count 13 (+ 2) % Row 9 \SetRowColor{white} `list.pop(0)` & {[}8, 2, 3, 4, 8, 9, 1, 3{]} \tn % Row Count 15 (+ 2) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{`list.pop({\bf{{\emph{ind}}}})` pops the element at position {\bf{{\emph{ind}}}}} \tn % Row Count 17 (+ 2) % Row 11 \SetRowColor{white} `list.remove(8)` & {[}2, 3, 4, 8, 9, 1, 3{]} \tn % Row Count 19 (+ 2) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{`list.remove({\bf{{\emph{elem}}}})` removes the {\bf{{\emph{first}}}} instance of {\bf{{\emph{elem}}}}} \tn % Row Count 21 (+ 2) % Row 13 \SetRowColor{white} `list.index(3)` & 1 \tn % Row Count 22 (+ 1) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{`list.index({\bf{{\emph{elem}}}})` {\bf{{\emph{returns}}}} the index of the {\bf{{\emph{first}}}} {\bf{{\emph{elem}}}}} \tn % Row Count 24 (+ 2) % Row 15 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`list.index()` {\bf{{\emph{does not mutate}}}} the original list} \tn % Row Count 26 (+ 2) % Row 16 \SetRowColor{LightBackground} `list.count(3)` & 2 \tn % Row Count 27 (+ 1) % Row 17 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`list.count({\bf{{\emph{elem}}}})` {\bf{{\emph{returns}}}} the count of elements with value {\bf{{\emph{elem}}}}} \tn % Row Count 29 (+ 2) % Row 18 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{`list.count()` {\bf{{\emph{does not mutate}}}} the original list} \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{9.3258 cm} x{7.9442 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Lists {[}mutable, iterable{]} (cont)}} \tn % Row 19 \SetRowColor{LightBackground} `list.sort()` & {[}1, 2, 3, 3, 4 ,8, 9{]} \tn % Row Count 2 (+ 2) % Row 20 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`list.sort()` cannot sort {\bf{{\emph{int}}}} against {\bf{{\emph{str}}}}} \tn % Row Count 4 (+ 2) % Row 21 \SetRowColor{LightBackground} `list.reverse()` & {[}9, 8, 4, 3, 3, 2, 1{]} \tn % Row Count 6 (+ 2) % Row 22 \SetRowColor{white} {\emph{list slicing}}: `list2 = list{[}1:5{]}` & {[}8, 4, 3, 3{]} \tn % Row Count 8 (+ 2) % Row 23 \SetRowColor{LightBackground} `list2 = list.copy()` & list2 is {[}9, 8, 4, 3, 3, 2, 1{]} \tn % Row Count 10 (+ 2) % Row 24 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{{\emph{list slicing}} or `list.copy()` {\bf{{\emph{do not mutate}}}} the original list, and create {\bf{{\emph{shallow copies}}}}.} \tn % Row Count 13 (+ 3) % Row 25 \SetRowColor{LightBackground} `list.clear()` & {[}{]} \tn % Row Count 14 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{15.543 cm} p{1.727 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Tuples {[}immutable, iterable{]}}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{`tuple = ()`} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} `int = ("a", "a", "ab").count('a')` & 2 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} `int = ("a", "a", "ab").index('a')` & 0 \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`.index()` returns the position of the first instance} \tn % Row Count 5 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{8.635 cm} x{8.635 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Dictionaries {[}mutable, iterable{]}}} \tn % Row 0 \SetRowColor{LightBackground} `dictionary = \{\}` & \{\} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} `dictionary = dict()` & \{\} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} `dictionary = \{key1: value1, key2: value2\}` & \{key1: value1, key2: value2\} \tn % Row Count 6 (+ 3) % Row 3 \SetRowColor{white} `dictionary{[}"str1"{]} = "str2"` & \{key1: value1, key2: value2, 'str1': 'str2'\} \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} \seqsplit{`dictionary.pop('str1')`} & \{key1: value1, key2: value2\} \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{`dictionary.popitem()`} & \{key1: value1\} \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{`.popitem()` removes the {\bf{{\emph{last}}}} added element} \tn % Row Count 14 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{dictionary2 = \{key2: value2\}} \tn % Row Count 15 (+ 1) % Row 8 \SetRowColor{LightBackground} \seqsplit{dictionary.update(dictionary2)} & \{key1: value1, key2: value2\} \tn % Row Count 17 (+ 2) % Row 9 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{.update({\bf{{\emph{dict}}}}) updates the dictionary with the key:value pairs of {\bf{{\emph{dict}}}}. In case of a conflict, {\bf{{\emph{dict}}}} is prioritized.} \tn % Row Count 20 (+ 3) % Row 10 \SetRowColor{LightBackground} `list = dictionary.keys()` & {[}key1, key2{]} \tn % Row Count 22 (+ 2) % Row 11 \SetRowColor{white} `list = \seqsplit{dictionary.values()`} & {[}value1, value2{]} \tn % Row Count 24 (+ 2) % Row 12 \SetRowColor{LightBackground} `list = dictionary.items()` & {[}(key1, value1), (key2, value2){]} \tn % Row Count 26 (+ 2) % Row 13 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{`.items()`returns a list of tuples} \tn % Row Count 27 (+ 1) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{`something = dictionary.get({\bf{{\emph{keyname}}}}, {\bf{{\emph{value}}}})`} \tn % Row Count 29 (+ 2) % Row 15 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{if {\bf{{\emph{keyname}}}} in a dictionary does not exist as a key, {\bf{{\emph{value}}}} is returned.} \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{8.635 cm} x{8.635 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Dictionaries {[}mutable, iterable{]} (cont)}} \tn % Row 16 \SetRowColor{LightBackground} `dictionary2 = dictionary.copy()` & \{key1: value1, key2: value2\} \tn % Row Count 2 (+ 2) % Row 17 \SetRowColor{white} \seqsplit{`dictionary.clear()`} & \{\} \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{`def function({\bf{{\emph{parameter1}}}}, {\bf{{\emph{parameter2}}}} = {\bf{{\emph{defaultvalue}}}}):` \newline % Row Count 2 (+ 2) ` \textless{}something\textgreater{}` \newline % Row Count 3 (+ 1) ` return {\bf{{\emph{value}}}}` \newline % Row Count 4 (+ 1) `function({\bf{{\emph{argument1}}}}, {\bf{{\emph{argument2}}}})`% Row Count 5 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \end{document}