You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

72 lines
3.4 KiB

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My Learning Website</title>
<link href="/styles/styles.css" rel="stylesheet" type="text/css">
<link href="/programming/styles/styles.css" rel="stylesheet" type="text/css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="banner">
<h1 class="courselink">Python Essential Traning</h1>
<h2 class="lecturer">LinkedIn Learning : Bill Weinman</h2>
<h2 class="episodetitle">Introduction and Installation</h2>
</div>
<article>
<h2 class="sectiontitle">Python Philosophy</h2>
<p>The Zen of Python, by Tim Peters</p>
<pre class="sectiontitle">
&bull; Beautiful is better than ugly.
&bull; Explicit is better than implicit.
&bull; Simple is better than complex.
&bull; Complex is better than complicated.
&bull; Flat is better than nested.
&bull; Sparse is better than dense.
&bull; Readability counts.
&bull; Special cases aren't special enough to break the rules.
&bull; Although practicality beats purity.
&bull; Errors should never pass silently.
&bull; Unless explicitly silenced.
&bull; In the face of ambiguity, refuse the temptation to guess.
&bull; There should be one-- and preferably only one --obvious way to do it.
&bull; Although that way may not be obvious at first unless you're Dutch.
&bull; Now is better than never.
&bull; Although never is often better than *right* now.</pre>
<p>You can get this list by typing import this into a Python interpreter.</p>
<h2 class="sectiontitle">Python3</h2>
<p>Python 3 is not backward compatible so Python 2 code must be ported to be used in Python 3.</p>
<p>Everything in Python 3 is an object.</p>
<p>Print was a keyword in Python 2 (it didn't need parentheses) but it is a function in Python 3 so now it needs parentheses.</p>
<p>Python 2 has integers and long integers, Python 3 only has integers.</p>
<p>Python 2 has string types for Unicode, ASCII and APID data. Python 3 only has Unicode for strings and a separate data type for APID data.</p>
<p>The online documentation for Python can be found at <a href="https://docs.python.org/3/">docs.python.org</a> and you should familiarise yourself with these.</p>
<h2 class="sectiontitle">Installation</h2>
<p>In the course, the PyCharm IDE is used, but I am using VS Code so most of this section is not relevant. I also have IDLE installed so I can use that if needed or I could use Jupyter Notebook.</p>
</article>
<div class="btngroup">
<button class="button" onclick="window.location.href='overview.html';">
Next Chapter - Language Overview
</button>
<button class="button" onclick="window.location.href='pythonessentialtraining.html'">
Course Contents
</button>
<button class="button" onclick="window.location.href='/programming/programming.html'">
Programming Page
</button>
<button class="button" onclick="window.location.href='/index.html'">
Home
</button>
</div>
</body>
</html>