<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Control_flow :: CS1 course</title><link>https://robark.gitlab.io/control_flow/index.html</link><description>Chapter 4 If, While, For</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 05 Oct 2020 19:45:34 +0000</lastBuildDate><atom:link href="https://robark.gitlab.io/control_flow/index.xml" rel="self" type="application/rss+xml"/><item><title>If</title><link>https://robark.gitlab.io/control_flow/if/index.html</link><pubDate>Thu, 17 Sep 2020 19:19:53 +0000</pubDate><guid>https://robark.gitlab.io/control_flow/if/index.html</guid><description>Video: Lesson 4 (input and if ladders) watch the video and try the two mini programs.</description></item><item><title>If ladder</title><link>https://robark.gitlab.io/control_flow/if_ladder/index.html</link><pubDate>Fri, 18 Sep 2020 18:35:29 +0000</pubDate><guid>https://robark.gitlab.io/control_flow/if_ladder/index.html</guid><description>Lesson 5: Can you vote? Remember to pause the video and try the coding assignments.
Lesson 6: What month is it? Here is the solution to the assignment from Lesson 5. Remember: you won’t learn without trying to code it yourself first.
Lesson 7: What hemisphere are you in? Solution from lesson 6 on odd and even and a more involved assignment about the season based on the hemisphere. Remember to pause the video and try the coding assignments BEFORE watching the solution.</description></item><item><title>While</title><link>https://robark.gitlab.io/control_flow/while/index.html</link><pubDate>Tue, 22 Sep 2020 19:41:40 +0000</pubDate><guid>https://robark.gitlab.io/control_flow/while/index.html</guid><description>While Loops Lets begin by reading the while loop example in the Byte of Python in the Control Flow chapter. Then read the first two sections
The While loop The Python break and continue Statements from the RealPython website
Lesson 8 Assignment for next lesson: Complete the number guessing game in the byte of python textbook without copying the code.</description></item><item><title>for loops</title><link>https://robark.gitlab.io/control_flow/for/index.html</link><pubDate>Thu, 24 Sep 2020 19:14:44 +0000</pubDate><guid>https://robark.gitlab.io/control_flow/for/index.html</guid><description>Definite iteration Lesson 9: Get rich quick scheme?! Try the assignment at the end of the video before next lesson.</description></item><item><title>Loops</title><link>https://robark.gitlab.io/control_flow/loops/index.html</link><pubDate>Mon, 28 Sep 2020 19:01:10 +0000</pubDate><guid>https://robark.gitlab.io/control_flow/loops/index.html</guid><description>Lesson 10: For loops and While loops: Solution to get rich scheme and also infecting the planet.
Algebraic Solution:
if n=5 let S equal the sum of the series S=1+2+4+8+16 S=1+2(1)+2(2)+2(4)+2(8) S=1+2(1+2+4+8) S=1+2(S-tn) where tn is the nth term S=1+2S-2tn Collect S terms 2tn-1=S But the next term in the series, tn+1 is equal to 2tn So when we sub this in it becomes tn+1 -1 =S Hence, the sum of the series is equal to the next term in the series minus 1. Lesson 11: random module and guessing computer side Note: round() in python3 The round function has changed behavior from python2 -&gt; python3.</description></item><item><title>String Loops</title><link>https://robark.gitlab.io/control_flow/stringloops/index.html</link><pubDate>Wed, 30 Sep 2020 18:23:13 +0000</pubDate><guid>https://robark.gitlab.io/control_flow/stringloops/index.html</guid><description>Lesson 12: Counting vowels and words Lesson 13: Palindrome Solutions and practice tests</description></item><item><title>Slices</title><link>https://robark.gitlab.io/control_flow/slices/index.html</link><pubDate>Mon, 05 Oct 2020 19:45:34 +0000</pubDate><guid>https://robark.gitlab.io/control_flow/slices/index.html</guid><description>Lesson 14: String Slices Lesson 15: More slices plus ord/chr Lesson 16: Slicing example: Shuffle word A better solution for shuffle</description></item></channel></rss>