Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update slack links for the new class #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 1 addition & 32 deletions class1.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,37 +278,6 @@ <h3>Data types - continued ...</h3>

</section>

<!-- STATEMENTS & ERRORS -->
<section>
<section>
<h3>Errors</h3>
<ul class="list--tall copy--small box--small">
<li class="fragment">There are different kinds of errors that can occur.<br/><small>We've seen a few already.</small></li>
<li class="fragment">A "runtime error" results in an <strong>Exception</strong>, which has several types.<br/><small>Each type gives us some information about the nature of the error and how to correct it</small></li>
<li class="fragment">One type of exception is a <strong>SyntaxError</strong>. This results when our <span class="red">code can not be evaluated because it is incorrect</span> at a syntactic level.<br/><small>In other words, we are not following the "rules" of the language.</small></li>
<li class="fragment">Some other examples are the <strong>TypeError</strong> and <strong>NameError</strong> exceptions.</li>
</ul>
</section>

<section>
<h3>Errors - continued ...</h3>
<div class="box--small"><pre><code contenteditable class="python">
# SyntaxError - Doesn't conform to the rules of Python.
# This statement isn't meaningful to the computer
4spam)eggs(garbage) + 10

# NameError - Using a name that hasn't been defined yet
a = 5
print(d)
d = 10

# TypeError - Using an object in a way that its type does not support
'string1' - 'string2'
</code></pre></div>
<p class="copy--small">There are also <strong>semantic</strong> errors.<br/><small>These are harder to catch because the computer can't catch them for us.</small></p>
</section>
</section>

<!-- Let's develop it: 10 minutes -->
<section>
<h3>Let's Develop It</h3>
Expand Down Expand Up @@ -442,7 +411,7 @@ <h3>Homework</h3>
<section>
<h3>Want help?</h3>
<div class="box">
<p class="box"><a href="https://gdiaa.slack.com/messages/0516-intro-python/details/" target="_blank" class="roll"><span>#0516-intro-python</span></a></p>
<p class="box"><a href="https://gdiaa.slack.com/messages/C8PGD0VFE" target="_blank" class="roll"><span>#0118-intro-python</span></a></p>
<p><small>Not on Slack? <a target="_blank" href="http://bit.ly/gdiaa-slack" class="roll"><span data-title="bit.ly/gdiaa-slack">bit.ly/gdiaa-slack</span></a></small></p>
</div>
</section>
Expand Down
25 changes: 1 addition & 24 deletions class2.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,6 @@ <h3>Chained conditionals</h3>
</code></pre></div>
</section>

<section>
<h3>Nested conditionals</h3>
<p class="box--small copy--small">Conditionals can also be <strong>nested</strong></p>
<div class="fragment"><p class="box--small copy--small">Nested conditionals occur inside of other conditionals and are indented over once more.</p><p class="box--small copy--small">When the code block is complete, they are unindented</p>
<pre><code contenteditable class="small python">
if x > 5:
print('x is greater than 5')
if x > 10:
print('...it is also greater than 10')
print('Done evaluating the x > 10 block')
print('Done evaluating the x > 5 block')
</code></pre></div>
</section>

<!-- Let's develop it: 10 minutes -->
<section>
<h3>Let's Develop It</h3>
Expand Down Expand Up @@ -497,19 +483,10 @@ <h3>Optional Function Practice</h3>
</code></pre>
</section>

<section>
<h3>Boolean Practice</h3>

<p>Do this excercise from Learn Python The Hard Way</p>
<i>Make sure to do these problems by hand, not with python! </i>

<h6><a href="http://learnpythonthehardway.org/book/ex28.html">http://learnpythonthehardway.org/book/ex28.html</a></h6>
</section>

<section>
<h3>Want help?</h3>
<div class="box">
<p class="box"><a href="https://gdiaa.slack.com/messages/0516-intro-python/details/" target="_blank" class="roll"><span>#0516-intro-python</span></a></p>
<p class="box"><a href="https://gdiaa.slack.com/messages/C8PGD0VFE" target="_blank" class="roll"><span>#0118-intro-python</span></a></p>
<p><small>Not on Slack? <a target="_blank" href="http://bit.ly/gdiaa-slack" class="roll"><span data-title="bit.ly/gdiaa-slack">bit.ly/gdiaa-slack</span></a></small></p>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion class3.html
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ <h3>Homework</h3>
<section>
<h3>Want help?</h3>
<div class="box">
<p class="box"><a href="https://gdiaa.slack.com/messages/0516-intro-python/details/" target="_blank" class="roll"><span>#0516-intro-python</span></a></p>
<p class="box"><a href="https://gdiaa.slack.com/messages/C8PGD0VFE" target="_blank" class="roll"><span>#0118-intro-python</span></a></p>
<p><small>Not on Slack? <a target="_blank" href="http://bit.ly/gdiaa-slack" class="roll"><span data-title="bit.ly/gdiaa-slack">bit.ly/gdiaa-slack</span></a></small></p>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion class4.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ <h3>Questions?</h3>
<section>
<h3>Wanna chat Python?</h3>
<div class="box">
<p class="box"><a href="https://gdiaa.slack.com/messages/python/details/" target="_blank" class="roll"><span>#python</span></a></p>
<p class="box"><a href="https://gdiaa.slack.com/messages/C04MVD89X" target="_blank" class="roll"><span>#python</span></a></p>
<p><small>Not on Slack? <a target="_blank" href="http://bit.ly/gdiaa-slack" class="roll"><span data-title="bit.ly/gdiaa-slack">bit.ly/gdiaa-slack</span></a></small></p>
</div>
</section>
Expand Down