Wednesday, September 24, 2014

Introduction to Programming in Python Jump Start Day 1

OK, I already have some experience in Python programming thanks to Codecademy and Coursera where I took some course related to that and it was a challenge but this Jump Start features everything including what was not taught in that Coursera course. Also, there are already additional challenges to take if I want to attempt from this Jump Start to see if I can use the experience to complete them. Using the latest version of Visual Studio with Python Tools for Visual Studio installed, you should be able to start Python programming straight away just like you do with C# or C++. I already used Visual Studio Express before and it shouldn't be a problem in running the program I wrote as part of the other MVA course.
Now, there's no related course at MVA in Python Programming whatsoever but at least, we got the challenges to do if we accept. It should take me some time to memorize the new concepts from this Jump Start as well as new tips and if you forget, you can check out the documentation on the specific functions such as the variables, if, else if, nested if, boolean operation, Mathematics elements, Print, Input, Quotes and so on. And what was up with the respective sports teams in the Jump Start?
Another thing is the \n along with unncessary triple quotes. Having triple quotes takes up more space a little bit I guess but if you split up the statement into two lines with triple quotes only, the print statement does the same thing as having double quotes and \n in the print statement overall.
The last thing was something I have to memorize completely such as the Date and Time. You can customize the format as well as to specify how many 0s you want with the .format feature. What that does is based on something like this {0:3} for example in which the 0 on the left represents the position which can be determined through the Find function. Other functions include the Count function, Replace function, Upper, Lower and Swap case functions, etc. Using the Count function, it counts like how many things are there based on your specification as well as the Replace function which says it all.
More tips ahead when it comes to variables. They SHOULD NOT start with numbers and that there SHOULDN'T BE SPACING. Also, when using print statements, you should have quotes for whatever text you want to display on the console otherwise, the text will be treated as variable. Any variable that is not found on the code will throw an error. What else can I recall, the Integer, Float, String, %d or something as well as the one where you can specify how many decimal places you want for the Float as there are already too much 0s without that specification.