Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/feed-rss2.php on line 8
‘#masterie18’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Wed, 25 Nov 2015 12:47:57 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ Nesting conditionals https://kenscourses.com/tc101fall2015/2015/nesting-conditionals/ Wed, 25 Nov 2015 12:47:57 +0000 http://saldabal.wordpress.com/?p=137 Continue Reading →]]> So far we’ve seen how to use loops, while and for loops. And we’ve learned that they are very useful in almost any program we want to do. But there will be a time when our programms become complex when we will want to evualte a condition if another turn out to be true, an example:

if variable < 200:

if variable == 150:

do something

elif variable == 100:

do something

else:

do something

else variable > 200:

do something

 

We can see how in here we evalate if our variable was in range below 200 and then if it had exactly the value of 150 and then of 100, if non of there were true we also state something.

This is what nested conditionals work for.

 

 

 

 

 

 

]]>
https://creativecommons.org/licenses/by/4.0/
Topic masterie 18 https://kenscourses.com/tc101fall2015/2015/topic-masterie-18/ Mon, 23 Nov 2015 01:29:06 +0000 https://miguelcardenas.withknown.com/2015/topic-masterie-18

Here is my video tutorial for the topic masterie 23

link: https://www.youtube.com/watch?v=st5XH_NzYsg&feature=youtu.be

 

]]>

Here is my video tutorial for the topic masterie 23

link: https://www.youtube.com/watch?v=st5XH_NzYsg&feature=youtu.be

 

]]>
https://creativecommons.org/licenses/by/4.0/