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
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"> |
|
• Beautiful is better than ugly. |
|
• Explicit is better than implicit. |
|
• Simple is better than complex. |
|
• Complex is better than complicated. |
|
• Flat is better than nested. |
|
• Sparse is better than dense. |
|
• Readability counts. |
|
• Special cases aren't special enough to break the rules. |
|
• Although practicality beats purity. |
|
• Errors should never pass silently. |
|
• Unless explicitly silenced. |
|
• In the face of ambiguity, refuse the temptation to guess. |
|
• There should be one-- and preferably only one --obvious way to do it. |
|
• Although that way may not be obvious at first unless you're Dutch. |
|
• Now is better than never. |
|
• 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> |