\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{Kawazoe} \pdfinfo{ /Title (python-cheat-sheet-cliff.pdf) /Creator (Cheatography) /Author (Kawazoe) /Subject (Python - Cliff 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}{6D37A3} \definecolor{LightBackground}{HTML}{F5F2F9} \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 - Cliff Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Kawazoe} via \textcolor{DarkBackground}{\uline{cheatography.com/25791/cs/6922/}}} \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}Kawazoe \\ \uline{cheatography.com/kawazoe} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 12th February, 2016.\\ Updated 11th May, 2016.\\ 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*}{3} \begin{tabularx}{5.377cm}{x{0.9954 cm} x{3.9816 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Function}} \tn % Row 0 \SetRowColor{LightBackground} print() & display given info. \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} input() & receives info from user \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} int() & converts a value to an integer \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} float() & converts a value to a floationg point \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} str() & converts a value to a string \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} len() & the length of the string \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} == & equal to \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} \textless{}= & less than or equal to \tn % Row Count 9 (+ 1) % Row 8 \SetRowColor{LightBackground} \textgreater{}= & more than or equal to \tn % Row Count 10 (+ 1) % Row 9 \SetRowColor{white} \% & Modulo, Find the remainder \tn % Row Count 11 (+ 1) % Row 10 \SetRowColor{LightBackground} \# & Comment, no effect on programming \tn % Row Count 13 (+ 2) % Row 11 \SetRowColor{white} whlie True & continues \tn % Row Count 15 (+ 2) % Row 12 \SetRowColor{LightBackground} for & looping forever \tn % Row Count 16 (+ 1) % Row 13 \SetRowColor{white} \seqsplit{if...then} & "if true" will work, "if false" won't work loop stops \tn % Row Count 18 (+ 2) % Row 14 \SetRowColor{LightBackground} // & int outcome \tn % Row Count 19 (+ 1) % Row 15 \SetRowColor{white} / & float outcome \tn % Row Count 20 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.54287 cm} x{3.43413 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Multiplication and Exponent}} \tn % Row 0 \SetRowColor{LightBackground} string * string & Crash \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{string*number} & combines the string multiple times \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{number*number} & Math - Multiply \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{string**number} & Crash \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{number**number} & Math - Exponent \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{string**string} & Crash \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Palindrome}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{""" \newline Cliff 1003 \newline """ \newline def isPalindrome (word): \newline index = 0 \newline \# word{[}0{]} len(word)-1 -0 \newline numberOfLoops = 0 \newline while index \textless{} 1/2*len(word): \newline numberOfLoops += 1 \newline print('Comparing',word{[}index{]} ,word{[}len(word)-1-index{]}) \newline if word{[}index{]} == word{[}len(word)-1-index{]}: \newline index = index + 1 \newline else: \newline print ('loops:',numberOfLoops) \newline return False \newline \newline print ('loops:',numberOfLoops) \newline return True \newline \newline \newline while True: \newline user\_input =input("what is your word? ") \newline if user\_input == "quit": \newline break \newline print (len(user\_input)) \newline \newline myword = \seqsplit{isPalindrome(user\_input)} \newline if myword == True: \newline print ((user\_input),"is a palindrome") \newline else: \newline print ((user\_input),"isn't a palindrome")} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Max Value in list / Max value}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{def max2(num1,num2): \newline maxvalue = num1 \newline if num2 \textgreater{} maxvalue: \newline maxvalue = num2 \newline return maxvalue \newline print (max2 (4,3)) \newline print (max2 (3,22)) \newline \newline answer = max2 (1,5) \newline print (answer) \newline \newline def max3(num1,num2,num3): \newline maxvalue = num1 \newline if num2 \textgreater{} maxvalue: \newline maxvalue = num2 \newline if num3 \textgreater{} maxvalue: \newline maxvalue = num3 \newline return maxvalue \newline print (max3 (10,7,8)) \newline print (max3 (7,10,8)) \newline print (max3 (7,8,10)) \newline \newline def maxlist(list): \newline maxvalue = list{[}0{]} \newline for num in list: \newline if maxvalue \textless{} num: \newline maxvalue = num \newline return maxvalue \newline print (maxlist(range(0,101))) \newline mylist = 1,5,76,23,78,34,5678,2,5,8,675,2,6,86,54,23,6,8 \newline print (maxlist(mylist))} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Randomizer}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{import random \newline \newline intlist = {[}1,2,3,4,5{]} \newline random\_int = random.choice(intlist) \newline print (intlist,random\_int) \newline \newline fplist = {[}2.0,2.1,2.2,2.3,2.4,2.5{]} \newline random\_fp = random.choice(fplist) \newline print (fplist,random\_fp) \newline \newline strlist = {[}'a','b','c','d','e','f'{]} \newline random\_str = random.choice(strlist) \newline print (strlist,random\_str) \newline \newline mylist = {[}1,9.9,"hello"{]} \newline random\_mylist = random.choice(mylist) \newline print (mylist,random\_mylist) \newline \newline myvar1 = 1 \newline myvar2 = 2 \newline myvar3 = 3 \newline varlist = {[}myvar1,myvar2,myvar3{]} \newline random\_var = random.choice(varlist) \newline print (varlist,random\_var)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.89126 cm} x{3.08574 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{commands}} \tn % Row 0 \SetRowColor{LightBackground} import & imports program \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} random & given written program \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \seqsplit{random.choice()} & random items in the list \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.09494 cm} x{3.88206 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vocabulary}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{Variable} & something that can change \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} String & a list of characters \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Print & display given info. \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Syntax & Grammar/Structure of language \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Modulo & Find the remainder \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Boolean & True/False \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Reverse word}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{while True \newline word = input("Please enter a word") \newline index = 0 \newline reverse = "" \newline \newline while int(index) \textless{} len(word) \newline reverse = word{[}index{]} + (reverse) \newline index = int(index) + 1 \newline \newline print ("Reverse: ", reverse)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.24425 cm} x{3.73275 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Conditionals}} \tn % Row 0 \SetRowColor{LightBackground} if else & if the statement is true then do the command under. Else do command under else \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} elif & Similar to if else, but allows more conditions. (short abbreviation for if else \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} for loop & Will loop through every element of the set \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} while loop & A loop condition with conditions 1.initial value 2.ending condition 3.update \tn % Row Count 11 (+ 3) % Row 4 \SetRowColor{LightBackground} while true & While the statement is true keep looping \tn % Row Count 13 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{Concatenation} & Joins the strings by linking then end to end \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Convert into binary}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{user\_number = "" \newline \newline while user\_number != ' 0 ': \newline user\_number = input ("Enter a number to convert into binary") \newline number = int(user\_number) \newline binary\_string = "" \newline \newline while (number \textgreater{} 0): \newline remainder = number\%2 \newline binary\_string = str(remainder) = binary\_string \newline number = number // 2 \newline \newline print ("Binary string is ",binary\_string)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Finding the triangle (area,volume)}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{def areaoftriangle(num1,num2): \newline area = 1/2{\emph{num1}}num2 \newline return area \newline \newline user\_base = float(input('what is your base of the triangle; ')) \newline user\_height = float(input('what is your height of the triangle; ')) \newline print ('The area of the triangle is: ',areaoftriangle(user\_base,user\_height)) \newline \newline \newline def volofprism(base,height,prism\_height): \newline volume = areaoftriangle(base,height) * prism\_height \newline return volume \newline user\_prism = int(input('Enter the prism height; ')) \newline print ("The volume of the prism is; ", volofprism(user\_base,user\_height,user\_prism))} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Guessing Game}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{import random \newline \newline score = 0 \newline chances = 5 \newline print ("Score:", score) \newline print ("Chances:", chances) \newline \newline mylist = {[}'apple', 'banana', 'orange', 'mango', 'cherry'{]} \newline \newline print (mylist) \newline \newline random\_item = random.choice(mylist) \newline \newline while chances \textgreater{} 0 : \newline user\_guess = input("Guess a word:") \newline if user\_guess == random\_item: \newline print ("That's correct!") \newline score = score+100 \newline print ("Score:", score) \newline print ("Chances:", chances) \newline random\_item = random.choice(mylist) \newline else: \newline if user\_guess in mylist: \newline print ("Sorry, wrong choice!") \newline chances = chances-1 \newline print ("Score:", score) \newline print ("Chances:", chances) \newline else: \newline print ("Sorry, that is not even in the list") \newline chances = chances-1 \newline print ("Score:", score) \newline print ("Chances:", chances) \newline print ("Game over! The word was", random\_item) \newline print ("Final Score", score)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Countdown Machine}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{user\_number = input("What number do you want to countdown? ") \newline % Row Count 2 (+ 2) number = int(user\_number) \newline % Row Count 3 (+ 1) countdown\_string = ' ' \newline % Row Count 4 (+ 1) while number \textgreater{} 0 \newline % Row Count 5 (+ 1) countdown = countdown\_string - str(number) + " " \newline % Row Count 6 (+ 1) number = number - 1 \newline % Row Count 7 (+ 1) \#print(number) \newline % Row Count 8 (+ 1) print (countdown\_string)% Row Count 9 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Math Operation Function Writing}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{def calc(num1,num2,operation): \newline if operation == "sum": \newline return sum(num1,num2) \newline \newline elif operation == "product": \newline return product(num1,num2) \newline \newline elif operation == "diff": \newline return diff(num1,num2) \newline \newline elif operation == "div": \newline return div(num1,num2) \newline \newline def sum(a,b): \newline return (a+b) \newline \newline def product(a,b): \newline return (a*b) \newline def diff(a,b): \newline return (a-b) \newline def div(a,b): \newline if b != 0 : \newline return a//b \newline else: \newline print ("ERROR") \newline \newline print(calc(10,0,"div")) \newline print(calc(1,2,"sum")) \newline print(calc(4,2,"diff")) \newline print(calc(9,3,"div")) \newline print(calc(2,12,"product"))} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Naming Convention}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Rules for giving names \newline % Row Count 1 (+ 1) - letter \newline % Row Count 2 (+ 1) - numbers \newline % Row Count 3 (+ 1) - underscore\_ \newline % Row Count 4 (+ 1) Valid name \newline % Row Count 5 (+ 1) - \_mystr \newline % Row Count 6 (+ 1) - my6 \newline % Row Count 7 (+ 1) - Kawazoe\_Kyousuke \newline % Row Count 8 (+ 1) Invalid name \newline % Row Count 9 (+ 1) - 3my = "whatever" \#can't start with a number \newline % Row Count 11 (+ 2) - Kawa zoe = "whatever" \#can't have space \newline % Row Count 12 (+ 1) - first-name = "somthing" \#can't have "-"% Row Count 13 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.23045 cm} p{0.74655 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{True / False}} \tn % Row 0 \SetRowColor{LightBackground} True or ... / ... or True & True \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} False and ... / ... and False & False \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{22/03/16 code}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{''' \newline theList = {[}'1','2','3'{]} \newline for item in theList: \newline print(item) \newline ''' \newline ''' \newline index = 0 \newline whileList = {[}'1','2','3','4'{]} \newline while index \textless{} len(whileList): \newline print (whileList{[}index{]}) \newline index = index + 1 \newline ''' \newline """ \newline while True: \newline user\_input = (input("your word?: ")) \newline print ("your length of the word is: ",len(user\_input)) \newline if user\_input == "exit": \newline break \newline """ \newline """ \newline def theFunction(): \newline while True: \newline user\_input = input("word: ") \newline if user\_input == "stop": \newline break \newline theFunction() \newline """ \newline """ \newline def computeThis(a1,b2): \newline product = a1{\emph{b2 \newline print (product) \newline return \newline computeThis (2,5) \newline """ \newline """ \newline def finalFunction(string): \newline print ("{\bf{}}{\emph{",(string),"}}}}*") \newline return \newline finalFunction ("cliff") \newline """} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{print item using while}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{index = 0 \newline whileList = {[}'1','2','3','4'{]} \newline while index \textless{} len(whileList): \newline print (whileList{[}index{]}) \newline index = index + 1} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}