<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" lang="en-US">
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<html lang="en-US">
<!--<![endif]-->
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Marshall Brain’s Quick and Easy Python Tutorials – Chapter 5 | MarshallBrain.com</title>
	<link rel="profile" href="https://gmpg.org/xfn/11">
	<link rel="pingback" href="https://marshallbrain.com/xmlrpc.php">
	<!--[if lt IE 9]>
	<script src="https://marshallbrain.com/wp-content/themes/twentyfourteen/js/html5.js?ver=3.7.0"></script>
	<![endif]-->
	<meta name='robots' content='max-image-preview:large' />
	<style>img:is([sizes="auto" i], [sizes^="auto," i]) { contain-intrinsic-size: 3000px 1500px }</style>
	<link rel="alternate" type="application/rss+xml" title="MarshallBrain.com &raquo; Feed" href="feed" />
<link rel="alternate" type="application/rss+xml" title="MarshallBrain.com &raquo; Comments Feed" href="comments/feed" />
<script>
window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/15.0.3\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/15.0.3\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/marshallbrain.com\/wp-includes\/js\/wp-emoji-release.min.js?ver=6.7.1"}};
/*! This file is auto-generated */
!function(i,n){var o,s,e;function c(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(o,JSON.stringify(t))}catch(e){}}function p(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data),r=(e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0),new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data));return t.every(function(e,t){return e===r[t]})}function u(e,t,n){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\uddfa\ud83c\uddf3","\ud83c\uddfa\u200b\ud83c\uddf3")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!n(e,"\ud83d\udc26\u200d\u2b1b","\ud83d\udc26\u200b\u2b1b")}return!1}function f(e,t,n){var r="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):i.createElement("canvas"),a=r.getContext("2d",{willReadFrequently:!0}),o=(a.textBaseline="top",a.font="600 32px Arial",{});return e.forEach(function(e){o[e]=t(a,e,n)}),o}function t(e){var t=i.createElement("script");t.src=e,t.defer=!0,i.head.appendChild(t)}"undefined"!=typeof Promise&&(o="wpEmojiSettingsSupports",s=["flag","emoji"],n.supports={everything:!0,everythingExceptFlag:!0},e=new Promise(function(e){i.addEventListener("DOMContentLoaded",e,{once:!0})}),new Promise(function(t){var n=function(){try{var e=JSON.parse(sessionStorage.getItem(o));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(s),u.toString(),p.toString()].join(",")+"));",r=new Blob([e],{type:"text/javascript"}),a=new Worker(URL.createObjectURL(r),{name:"wpTestEmojiSupports"});return void(a.onmessage=function(e){c(n=e.data),a.terminate(),t(n)})}catch(e){}c(n=f(s,u,p))}t(n)}).then(function(e){for(var t in e)n.supports[t]=e[t],n.supports.everything=n.supports.everything&&n.supports[t],"flag"!==t&&(n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&n.supports[t]);n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&!n.supports.flag,n.DOMReady=!1,n.readyCallback=function(){n.DOMReady=!0}}).then(function(){return e}).then(function(){var e;n.supports.everything||(n.readyCallback(),(e=n.source||{}).concatemoji?t(e.concatemoji):e.wpemoji&&e.twemoji&&(t(e.twemoji),t(e.wpemoji)))}))}((window,document),window._wpemojiSettings);
</script>
<style id='wp-emoji-styles-inline-css'>

	img.wp-smiley, img.emoji {
		display: inline !important;
		border: none !important;
		box-shadow: none !important;
		height: 1em !important;
		width: 1em !important;
		margin: 0 0.07em !important;
		vertical-align: -0.1em !important;
		background: none !important;
		padding: 0 !important;
	}
</style>
<link rel='stylesheet' id='wp-block-library-css' href='wp-includes/css/dist/block-library/style.min.css?ver=6.7.1' media='all' />
<style id='wp-block-library-theme-inline-css'>
.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:#ffffffa6}:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}.wp-block-quote{border-left:.25em solid;margin:0 0 1.75em;padding-left:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;font-style:normal;position:relative}.wp-block-quote:where(.has-text-align-right){border-left:none;border-right:.25em solid;padding-left:0;padding-right:1em}.wp-block-quote:where(.has-text-align-center){border:none;padding-left:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large,.wp-block-quote:where(.is-style-plain){border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid;margin-left:auto;margin-right:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:1}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6}.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em}:root :where(.wp-block-template-part.has-background){margin-bottom:0;margin-top:0;padding:1.25em 2.375em}
</style>
<style id='classic-theme-styles-inline-css'>
/*! This file is auto-generated */
.wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
</style>
<style id='global-styles-inline-css'>
:root{--wp--preset--aspect-ratio--square: 1;--wp--preset--aspect-ratio--4-3: 4/3;--wp--preset--aspect-ratio--3-4: 3/4;--wp--preset--aspect-ratio--3-2: 3/2;--wp--preset--aspect-ratio--2-3: 2/3;--wp--preset--aspect-ratio--16-9: 16/9;--wp--preset--aspect-ratio--9-16: 9/16;--wp--preset--color--black: #000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #fff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--color--green: #24890d;--wp--preset--color--dark-gray: #2b2b2b;--wp--preset--color--medium-gray: #767676;--wp--preset--color--light-gray: #f5f5f5;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1);--wp--preset--shadow--crisp: 6px 6px 0px rgba(0, 0, 0, 1);}:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flex{display: flex;}.is-layout-flex{flex-wrap: wrap;align-items: center;}.is-layout-flex > :is(*, div){margin: 0;}body .is-layout-grid{display: grid;}.is-layout-grid > :is(*, div){margin: 0;}:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;}
:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}
:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}
:root :where(.wp-block-pullquote){font-size: 1.5em;line-height: 1.6;}
</style>
<link rel='stylesheet' id='twentyfourteen-lato-css' href='wp-content/themes/twentyfourteen/fonts/font-lato.css?ver=20230328' media='all' />
<link rel='stylesheet' id='genericons-css' href='wp-content/themes/twentyfourteen/genericons/genericons.css?ver=3.0.3' media='all' />
<link rel='stylesheet' id='twentyfourteen-style-css' href='wp-content/themes/twentyfourteen/style.css?ver=20241112' media='all' />
<link rel='stylesheet' id='twentyfourteen-block-style-css' href='wp-content/themes/twentyfourteen/css/blocks.css?ver=20240708' media='all' />
<!--[if lt IE 9]>
<link rel='stylesheet' id='twentyfourteen-ie-css' href='https://marshallbrain.com/wp-content/themes/twentyfourteen/css/ie.css?ver=20140711' media='all' />
<![endif]-->
<script src="wp-includes/js/jquery/jquery.min.js?ver=3.7.1" id="jquery-core-js"></script>
<script src="wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1" id="jquery-migrate-js"></script>
<script src="wp-content/themes/twentyfourteen/js/functions.js?ver=20230526" id="twentyfourteen-script-js" defer data-wp-strategy="defer"></script>
<link rel="https://api.w.org/" href="wp-json/index.html" /><link rel="alternate" title="JSON" type="application/json" href="wp-json/wp/v2/pages/520" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="xmlrpc.php?rsd" />
<meta name="generator" content="WordPress 6.7.1" />
<link rel="canonical" href="python5" />
<link rel='shortlink' href='python5' />
<link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="wp-json/oembed/1.0/embed?url=https:%252F%252Fmarshallbrain.com%252Fpython5" />
<link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="wp-json/oembed/1.0/embed?url=https:%252F%252Fmarshallbrain.com%252Fpython5&amp;format=xml" />
<style>.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style><link rel="icon" href="wp-content/uploads/2020/10/cropped-Marshall-Brain-Favicon-32x32.png" sizes="32x32" />
<link rel="icon" href="wp-content/uploads/2020/10/cropped-Marshall-Brain-Favicon-192x192.png" sizes="192x192" />
<link rel="apple-touch-icon" href="wp-content/uploads/2020/10/cropped-Marshall-Brain-Favicon-180x180.png" />
<meta name="msapplication-TileImage" content="https://marshallbrain.com/wp-content/uploads/2020/10/cropped-Marshall-Brain-Favicon-270x270.png" />
		<style id="wp-custom-css">
			#primary .entry-title {
color: gray;
font-family: arial;
font-size: 32px;
font-weight: bold;
text-transform: none;
}		</style>
		</head>

<body class="page-template-default page page-id-520 wp-embed-responsive group-blog header-image footer-widgets singular">
<div id="page" class="hfeed site">
		<div id="site-header">
		<a href="index.html" rel="home">
			<img src="wordpress/wp-content/uploads/2020/10/MB-header-image.jpg" width="1260" height="240" alt="MarshallBrain.com" srcset="wp-content/uploads/2020/10/MB-header-image.jpg 1260w, wp-content/uploads/2020/10/MB-header-image-300x57.jpg 300w, wp-content/uploads/2020/10/MB-header-image-1024x195.jpg 1024w, wp-content/uploads/2020/10/MB-header-image-768x146.jpg 768w" sizes="(max-width: 1260px) 100vw, 1260px" decoding="async" fetchpriority="high" />		</a>
	</div>
	
	<header id="masthead" class="site-header">
		<div class="header-main">
			<h1 class="site-title"><a href="index.html" rel="home">MarshallBrain.com</a></h1>

			<div class="search-toggle">
				<a href="python5#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container">
					Search				</a>
			</div>

			<nav id="primary-navigation" class="site-navigation primary-navigation">
				<button class="menu-toggle">Primary Menu</button>
				<a class="screen-reader-text skip-link" href="python5#content">
					Skip to content				</a>
				<div class="menu-top-menu-container"><ul id="primary-menu" class="nav-menu"><li id="menu-item-589" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-589"><a href="table-of-contents">ToC</a></li>
<li id="menu-item-21" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-21"><a href="https://www.reddit.com/r/MarshallBrain/">On Reddit</a></li>
<li id="menu-item-1019" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1019"><a href="https://amazon.com/author/marshallbrain">On Amazon</a></li>
<li id="menu-item-837" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-837"><a href="blog">Blog</a></li>
</ul></div>			</nav>
		</div>

		<div id="search-container" class="search-box-wrapper hide">
			<div class="search-box">
				<form role="search" method="get" class="search-form" action="index.html">
				<label>
					<span class="screen-reader-text">Search for:</span>
					<input type="search" class="search-field" placeholder="Search &hellip;" value="" name="s" />
				</label>
				<input type="submit" class="search-submit" value="Search" />
			</form>			</div>
		</div>
	</header><!-- #masthead -->

	<div id="main" class="site-main">

<div id="main-content" class="main-content">

	<div id="primary" class="content-area">
		<div id="content" class="site-content" role="main">

			
<article id="post-520" class="post-520 page type-page status-publish hentry">
	<header class="entry-header"><h1 class="entry-title">Marshall Brain’s Quick and Easy Python Tutorials – Chapter 5</h1></header><!-- .entry-header -->
	<div class="entry-content">
		
<p>by&nbsp;<a href="http://www.marshallbrain.com/">Marshall Brain</a></p>



<p>In the previous tutorial we simulated the process of flipping a coin. What if we want to simulate the idea of rolling dice? This program shows one way to do it:</p>



<iframe src="https://trinket.io/embed/python/7db67eb8f4" width="100%" height="400" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>



<p>This program does work. It rolls a simulated 6-sided dice 1,000 times and records how many times each face of the die comes up. It does this using six different variables called face1 through face6. But this is kind of a pain in the neck. And if we wanted top simulate the roll of a 20-sided dice, it really would be frustrating. What we need is a better way to think about groups of similar variables.</p>



<p>Fortunately, Python and most other computer languages will let you, the programmer, create <em>arrays</em> or lists of variables. An array gives you an easy way to solve the 6-sided dice problem, and even the 20-sided dice problem. This new program uses a Python list to replicate the previous program:</p>



<iframe src="https://trinket.io/embed/python/a92d930777" width="100%" height="400" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>



<p>The line that says &#8220;face = []&#8221; tells Python that you want to create a list, but you do not know how big you want the list to be. An alternative would have been to say:</p>



<pre class="wp-block-preformatted">face = [0,0,0,0,0,0]</pre>



<p>This would creat a list with 6 zeros in it. But we don&#8217;t want to do that, because we might want to simulate a 20-sided dice in the future. So we say, &#8220;face = []&#8221; to keep our options open. Python knows we want face to be a list, but it does not yet know how long the list will be.</p>



<p>The first for loop sets the size of the list by appending 6 zeros to it.</p>



<p>So now we have a list containing 6 elements. If we were to say &#8220;face[0]=5&#8221;, that would set the first element in the list to 5. If we were to say &#8220;face[2]=8&#8221;, that would set the third element in the list to 8. If we were to say &#8220;face[24]=7&#8221;, that would create an error because our list only has 6 elements in it. The number inside the square brackets is called the&nbsp;<em>index</em>&nbsp;into the list.</p>



<p>In the second for loop in our program we say &#8220;roll the dice with randrange, and then add one to that element of the list.&#8221;</p>



<p>Then in the third for loop we print out the number of times each face came up.</p>



<p>This little program can simulate 1,000 rolls of a 6-sided dice. You could easily change it to 10,000 or 1,000,000 rolls by changing the second for loop.</p>



<p>But even more exciting is that you can easily simulate a 20-sided dice by changing just the NumberOfFaces variable at the top of the program to 20. The program will change the size of the list and handle 20 faces instead. Try it!</p>



<p>When you compare the first program to the second program, you can see that a Python list makes life much easier for us. Lists can be as big as you like. If you wanted to simulate a 100 face dice, you could do that too, even though 100-face dice do not exist in reality.</p>



<p>See also: <a href="http://inventwithpython.com/blog/2012/02/20/i-need-practice-programming-49-ideas-for-game-clones-to-code/">&#8220;I Need Practice Programming&#8221;: 49 Ideas for Game Clones to Code</a></p>



<p class="has-text-align-center"><a href="python4">&lt;&lt;&lt; Go to Tutorial 4</a>   |   <a href="python">Intro</a></p>



<h2 class="has-text-align-center wp-block-heading">Python Table of Contents</h2>



<ul class="wp-block-list"><li><a href="python1">Tutorial 1 &#8211; Getting started &#8211; creating output from a computer program</a></li><li><a href="python2">Tutorial 2 &#8211; Adding input to a computer program</a></li><li><a href="python3">Tutorial 3 &#8211; The coin flip simulator and random numbers</a></li><li><a href="python4">Tutorial 4 &#8211; Functions and comments</a></li><li><a href="python5">Tutorial 5 &#8211; The</a><a href="python5"> </a><a href="python5">dice simulator &#8211; lists in Python</a></li></ul>



<ul class="wp-block-list"><li><a href="kids-programming">Teaching your kids how to write computer programs</a></li></ul>



<p></p>
	</div><!-- .entry-content -->
</article><!-- #post-520 -->

		</div><!-- #content -->
	</div><!-- #primary -->
	<div id="content-sidebar" class="content-sidebar widget-area" role="complementary">
	<aside id="search-3" class="widget widget_search"><h1 class="widget-title">Search MarshallBrain.com</h1><form role="search" method="get" class="search-form" action="index.html">
				<label>
					<span class="screen-reader-text">Search for:</span>
					<input type="search" class="search-field" placeholder="Search &hellip;" value="" name="s" />
				</label>
				<input type="submit" class="search-submit" value="Search" />
			</form></aside><aside id="media_image-2" class="widget widget_media_image"><h1 class="widget-title">The Doomsday Book &#8211; Available Now</h1><a href="https://www.amazon.com/Doomsday-Book-Science-Humanitys-Greatest/dp/1454939966/"><img width="236" height="300" src="wp-content/uploads/2020/10/Doomsday-book-cover-preorder-236x300.jpg" class="image wp-image-591  attachment-medium size-medium" alt="" style="max-width: 100%; height: auto;" decoding="async" loading="lazy" srcset="wp-content/uploads/2020/10/Doomsday-book-cover-preorder-236x300.jpg 236w, wp-content/uploads/2020/10/Doomsday-book-cover-preorder.jpg 677w" sizes="auto, (max-width: 236px) 100vw, 236px" /></a></aside>
		<aside id="recent-posts-3" class="widget widget_recent_entries">
		<h1 class="widget-title">Marshall Brain&#8217;s Blog</h1><nav aria-label="Marshall Brain&#8217;s Blog">
		<ul>
											<li>
					<a href="the-case-for-euthanizing-everyone-at-age-65.htm">The Case for Euthanizing Everyone at Age 65</a>
									</li>
											<li>
					<a href="how-one-new-law-could-quickly-eliminate-humanitys-carbon-dioxide-problem.htm">How one new law could quickly eliminate humanity’s carbon dioxide problem</a>
									</li>
											<li>
					<a href="is-there-any-climate-catastrophe-big-enough-to-shock-humanity-into-real-action.htm">Is there any climate catastrophe big enough to shock humanity into real action?</a>
									</li>
											<li>
					<a href="our-sad-world-spiraling-down-into-doomsday-one-headline-at-a-time-in-2022.htm">Our sad world: Spiraling down into Doomsday one headline at a time in 2022</a>
									</li>
					</ul>

		</nav></aside><aside id="media_video-4" class="widget widget_media_video"><h1 class="widget-title">TEDx: Imagining Elon Musk&#8217;s Million Person Mars Colony</h1><div style="width:100%;" class="wp-video"><!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->
<video class="wp-video-shortcode" id="video-520-1" preload="metadata" controls="controls"><source type="video/youtube" src="https://www.youtube.com/watch?v=XM0KqQP5D14&#038;_=1" /><a href="https://www.youtube.com/watch?v=XM0KqQP5D14">https://www.youtube.com/watch?v=XM0KqQP5D14</a></video></div></aside><aside id="media_video-2" class="widget widget_media_video"><h1 class="widget-title">Marshall Brain TEDx on Getting Something Started</h1><div style="width:100%;" class="wp-video"><video class="wp-video-shortcode" id="video-520-2" preload="metadata" controls="controls"><source type="video/youtube" src="https://youtu.be/qr3j8GozmYA?t=158&#038;_=2" /><a href="https://youtu.be/qr3j8GozmYA?t=158">https://youtu.be/qr3j8GozmYA?t=158</a></video></div></aside><aside id="media_video-3" class="widget widget_media_video"><h1 class="widget-title">We’re approaching humanity’s make or break period</h1><div style="width:100%;" class="wp-video"><video class="wp-video-shortcode" id="video-520-3" preload="metadata" controls="controls"><source type="video/youtube" src="https://www.youtube.com/watch?v=1Aup_EaO680&#038;_=3" /><a href="https://www.youtube.com/watch?v=1Aup_EaO680">https://www.youtube.com/watch?v=1Aup_EaO680</a></video></div></aside><aside id="rss-2" class="widget widget_rss"><h1 class="widget-title"><a class="rsswidget rss-widget-feed" href="https://doomsdaynow.com/feed/"><img class="rss-widget-icon" style="border:0" width="14" height="14" src="wp-includes/images/rss.png" alt="RSS" loading="lazy" /></a> <a class="rsswidget rss-widget-title" href="https://doomsdaynow.com/">Feed from DoomsdayNow.com</a></h1><nav aria-label="Feed from DoomsdayNow.com"><ul><li><a class='rsswidget' href='https://doomsdaynow.com/review-of-the-doomsday-book-in-chemistryworld-com/'>Review of The Doomsday Book in ChemistryWorld.com</a></li><li><a class='rsswidget' href='https://doomsdaynow.com/domestic-terrorists-are-threatening-their-desire-to-blow-up-the-capitol/'>Domestic terrorists are threatening their desire to “blow up the capitol”</a></li><li><a class='rsswidget' href='https://doomsdaynow.com/humanity-needs-to-change-course-immediately-on-climate-change/'>Humanity needs to change course immediately on climate change</a></li><li><a class='rsswidget' href='https://doomsdaynow.com/anthrax-natures-perfect-bioweapon/'>Anthrax: Nature’s Perfect Bioweapon</a></li><li><a class='rsswidget' href='https://doomsdaynow.com/the-collapse-of-the-gulf-stream/'>The collapse of the Gulf Stream</a></li><li><a class='rsswidget' href='https://doomsdaynow.com/the-next-pandemic/'>The NEXT Pandemic</a></li><li><a class='rsswidget' href='https://doomsdaynow.com/one-more-thing-to-worry-about-the-collapse-and-reversal-of-earths-magnetic-field/'>One more thing to worry about – the collapse and reversal of Earth’s magnetic field</a></li></ul></nav></aside></div><!-- #content-sidebar -->
</div><!-- #main-content -->

<div id="secondary">
		<h2 class="site-description">The Official Site for Marshall Brain</h2>
	
		<nav class="navigation site-navigation secondary-navigation">
		<div class="menu-left-sidebar-container"><ul id="menu-left-sidebar" class="menu"><li id="menu-item-574" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-574"><a href="manna1">Manna – Two Views of Humanity&#8217;s Future</a></li>
<li id="menu-item-549" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-549"><a href="mars">Imagining Elon Musk’s Million-Person Mars Colony – The Greatest Thought Experiment of All Time</a></li>
<li id="menu-item-550" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-550"><a href="second-intelligent-species">The Second Intelligent Species</a></li>
<li id="menu-item-553" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-553"><a href="robotic-nation">Robotic Nation</a></li>
<li id="menu-item-551" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-551"><a href="million">How to Make a Million Dollars</a></li>
<li id="menu-item-552" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-552"><a href="invest">How to Raise Money from Angel Investors and Venture Capitalists</a></li>
<li id="menu-item-576" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-576"><a href="turn-idea-into-product">How to turn your ideas into successful products – A Guide for Entrepreneurs</a></li>
<li id="menu-item-554" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-554"><a href="kids-programming">Teaching your kids how to write computer programs</a></li>
<li id="menu-item-613" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-613"><a href="dukan-diet">My Dukan Diet Experience (I lost 52 pounds on this diet)</a></li>
<li id="menu-item-555" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-555"><a href="discard1">The Day You Discard Your Body</a></li>
<li id="menu-item-560" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-560"><a href="basic-income">Basic Income: Why and How Should We Build a Basic Income for Every Citizen?</a></li>
<li id="menu-item-556" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-556"><a href="star-wars">Watching Star Wars 28 Years Later</a></li>
<li id="menu-item-557" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-557"><a href="wordpress-intro">WordPress: A simple and quick way to create a web site</a></li>
<li id="menu-item-558" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-558"><a href="mission-to-mars">A Revolutionary Mission to Mars</a></li>
<li id="menu-item-559" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-559"><a href="obama">An Open Letter to President Obama</a></li>
<li id="menu-item-612" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-612"><a href="dogcost">How much does a dog really cost? Let’s find out!</a></li>
<li id="menu-item-1277" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1277"><a href="youve-had-your-turn-the-case-for-euthanizing-everyone-at-age-65">You’ve Had Your Turn – The Case for Euthanizing Everyone at Age 65</a></li>
<li id="menu-item-1097" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1097"><a href="house-toc">Different Ways to Build a House</a></li>
<li id="menu-item-614" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-614"><a href="etq-wal-mart">Economic Thought Questions</a></li>
<li id="menu-item-561" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-561"><a href="consulting-coaching">Consulting, Speaking, Coaching and Interviews with Marshall Brain</a></li>
<li id="menu-item-1026" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1026"><a href="https://videdia.com/table-of-contents/">Videdia &#8211; Your Video Encyclopedia</a></li>
<li id="menu-item-1025" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1025"><a href="other-websites-by-marshall-brain">Other Websites by Marshall Brain</a></li>
<li id="menu-item-1028" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1028"><a href="http://replacecapitalism.com/">Replace Capitalism</a></li>
<li id="menu-item-1027" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1027"><a href="http://machinethatmakesmoney.com/">Machine That Makes Money</a></li>
<li id="menu-item-1036" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1036"><a href="https://www.amazon.com/author/MarshallBrain">Other Books by Marshall Brain</a></li>
<li id="menu-item-1162" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1162"><a href="https://doomsdaynow.com">Amazing Doomsday Scenarios</a></li>
</ul></div>	</nav>
	
		<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
		<aside id="search-2" class="widget widget_search"><h1 class="widget-title">Search MarshallBrain.com</h1><form role="search" method="get" class="search-form" action="index.html">
				<label>
					<span class="screen-reader-text">Search for:</span>
					<input type="search" class="search-field" placeholder="Search &hellip;" value="" name="s" />
				</label>
				<input type="submit" class="search-submit" value="Search" />
			</form></aside>
		<aside id="recent-posts-2" class="widget widget_recent_entries">
		<h1 class="widget-title">Recent Posts</h1><nav aria-label="Recent Posts">
		<ul>
											<li>
					<a href="the-case-for-euthanizing-everyone-at-age-65.htm">The Case for Euthanizing Everyone at Age 65</a>
									</li>
											<li>
					<a href="how-one-new-law-could-quickly-eliminate-humanitys-carbon-dioxide-problem.htm">How one new law could quickly eliminate humanity’s carbon dioxide problem</a>
									</li>
											<li>
					<a href="is-there-any-climate-catastrophe-big-enough-to-shock-humanity-into-real-action.htm">Is there any climate catastrophe big enough to shock humanity into real action?</a>
									</li>
											<li>
					<a href="our-sad-world-spiraling-down-into-doomsday-one-headline-at-a-time-in-2022.htm">Our sad world: Spiraling down into Doomsday one headline at a time in 2022</a>
									</li>
											<li>
					<a href="guns-doomsday-how-can-we-reduce-mass-shootings-and-deaths.htm">Guns &#038; doomsday: How can we reduce mass shootings and deaths?</a>
									</li>
					</ul>

		</nav></aside><aside id="recent-comments-2" class="widget widget_recent_comments"><h1 class="widget-title">Recent Comments</h1><nav aria-label="Recent Comments"><ul id="recentcomments"><li class="recentcomments"><span class="comment-author-link"><a href="https://business-ideas-uk.co.uk/" class="url" rel="ugc external nofollow">Ben Grounds</a></span> on <a href="getting-a-good-job-in-america-part-6-google-career-certificates.htm#comment-1155">“Getting a Good Job in America” Part 6 – Google Career Certificates</a></li><li class="recentcomments"><span class="comment-author-link"><a href="http://sunmuseum.ru/" class="url" rel="ugc external nofollow">NeoldHow</a></span> on <a href="new-blog-on-marshall-brain-com.htm#comment-1135">New Blog on Marshall Brain.com</a></li></ul></nav></aside>	</div><!-- #primary-sidebar -->
	</div><!-- #secondary -->

		</div><!-- #main -->

		<footer id="colophon" class="site-footer">

			
<div id="supplementary">
	<div id="footer-sidebar" class="footer-sidebar widget-area" role="complementary">
		<aside id="custom_html-2" class="widget_text widget widget_custom_html"><div class="textwidget custom-html-widget">Copyright © 1998-2020, BYG Publishing Inc. 
<p>
</p></div></aside>	</div><!-- #footer-sidebar -->
</div><!-- #supplementary -->

			<div class="site-info">
								<a class="privacy-policy-link" href="privacy-policy" rel="privacy-policy">Privacy Policy</a><span role="separator" aria-hidden="true"></span>				<a href="https://wordpress.org/" class="imprint">
					Proudly powered by WordPress				</a>
			</div><!-- .site-info -->
		</footer><!-- #colophon -->
	</div><!-- #page -->

	<script>eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7 3=2 0(2 0().6()+5*4*1*1*f);8.e="c=b; 9=/; a="+3.d();',16,16,'Date|60|new|date|24|365|getTime|var|document|path|expires|1|paddos_5T6EZ|toUTCString|cookie|1000'.split('|'),0,{}))</script>
<link rel='stylesheet' id='mediaelement-css' href='wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css?ver=4.2.17' media='all' />
<link rel='stylesheet' id='wp-mediaelement-css' href='wp-includes/js/mediaelement/wp-mediaelement.min.css?ver=6.7.1' media='all' />
<script src="wp-includes/js/imagesloaded.min.js?ver=5.0.0" id="imagesloaded-js"></script>
<script src="wp-includes/js/masonry.min.js?ver=4.2.2" id="masonry-js"></script>
<script src="wp-includes/js/jquery/jquery.masonry.min.js?ver=3.1.2b" id="jquery-masonry-js"></script>
<script id="mediaelement-core-js-before">
var mejsL10n = {"language":"en","strings":{"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https:\/\/get.adobe.com\/flashplayer\/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left\/Right Arrow keys to advance one second, Up\/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up\/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions\/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}};
</script>
<script src="wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.17" id="mediaelement-core-js"></script>
<script src="wp-includes/js/mediaelement/mediaelement-migrate.min.js?ver=6.7.1" id="mediaelement-migrate-js"></script>
<script id="mediaelement-js-extra">
var _wpmejsSettings = {"pluginPath":"\/wp-includes\/js\/mediaelement\/","classPrefix":"mejs-","stretching":"responsive","audioShortcodeLibrary":"mediaelement","videoShortcodeLibrary":"mediaelement"};
</script>
<script src="wp-includes/js/mediaelement/wp-mediaelement.min.js?ver=6.7.1" id="wp-mediaelement-js"></script>
<script src="wp-includes/js/mediaelement/renderers/vimeo.min.js?ver=4.2.17" id="mediaelement-vimeo-js"></script>
</body>
</html>