<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#0b5394">Plus 1 for Code Academy. The 13 Lessons are broken down into sub lessons so there are between 22 and 24 total lessons/exercises that must be completed to move on with the course. You learn by doing which is the only way to really learn programing. The thing about Code Academy is that it is entirely free, there are no adds and if you get stuck at any point you can ask a question and get a response as well as see the questions from others. Your course work is saved so you can go back and review your work at any time. I'm not knocking other courses, books etc. I have several python books. But Code academy takes a beginner with no programing and by the last Lesson set you will be using Python to build classes in object oriented programing. It may not be as exhaustive as other courses but you will have a good feel for the basics of the language.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#0b5394"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#0b5394">It doesn't cost you anything to try it out and even if it isn't as in depth as other courses I would argue for a beginner it is very well balanced giving you the general concepts of all programing languages as applied to python. If you feel you need more, than at least you have a solid base in the language that cost you just your own time. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 11, 2014 at 3:22 PM, Kevin Fries <span dir="ltr"><<a href="mailto:kevin@fries-biro.com" target="_blank">kevin@fries-biro.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">%s will be the placeholder for a string and %d for a number. If you used say 15 as the value, and the template is %s you will get 15.to_s and is the value was "15" and the template was %d, the value will be "15".to_i. In other words it will try to do the appropriate conversion. So given your example it worked. But let's say your template was %d, if you pass as a value 15 or "15" that would work, but "fifteen" will throw an error. %s will work, in all cases, but may not be what you want.</p>
<p dir="ltr">HTH<span class="HOEnZb"><font color="#888888"><br>
Kevin</font></span></p>
<div class="gmail_quote"><span class="">On Oct 11, 2014 1:35 PM, "Michael Havens" <<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>> wrote:<br type="attribution"></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">Well, I've decided to try to learn python. Right now I'm on 'format string'.So there are different ones, right? Well, I'm working with %d and %s right now and if I change the %d to a %s I get the same result when I run the program. My question is %x just a place holder or do they have special meanings?<br clear="all"><div>:-)~MIKE~(-:</div>
</div>
<br></span><span class="">---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></span></blockquote></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font color="#0b5394">James</font><div><br><span style="color:rgb(255,255,255)"><span style="background-color:rgb(11,83,148)"><b><a href="http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/" target="_blank"><span style="background-color:rgb(255,255,255)"><span></span><span style="color:rgb(11,83,148)">Linkedin<span></span></span></span></a></b></span></span><br></div></div>
</div>