RELEVANT INFO ABOUT MASTERY TOPICS

--Originally published at Dude, Suckin' at something is the first step to being sorta good at something!

1. Use of comments    LOCATION: QUIZ 6

2. Python conventions (Zen of Python but others for other languages)    LOCATION:WSQ02

3. Basic types and their use  LOCATION: QUIZ 6

4. Basic output (print)    LOCATION: WSQ01

5. Basic user input (text based)  LOCATION: WSQ01

6. Calling functions    LOCATION: QUIZ 5

7. Creating functions  LOCATION: QUIZ 5

8. Importing and using modules/libraries  LOCATION: QUIZ3

10. Use of the conditional “if”    LOCATION: QUIZ4

11. Use of “else” with a conditional (and elif for Python)  LOCATION: QUIZ4

12. Nesting of conditional statements  LOCATION: QUIZ 8

13. Use of loops with “while”  LOCATION: QUIZ3

14. Use of loops with “for”    LOCATION: WSQ08

15. Use of recursion for repetitive algorithms  LOCATION: WSQ06

16. When to use what type of repetition in a program   LOCATION: WSQ06

17. Creation and use of Lists/Tuples in Python    LOCATION: WSQ04

18. Creation and use of strings    LOCATION: WSQ05

19. Validated user input (ensure correct/expected data entry)    LOCATION: Quiz 8

20. Reading and writing of text files    LOCATION: WSQ11

21. Creation and use of ranges in Python    LOCATION: WQS04


WSQ13

--Originally published at Dude, Suckin' at something is the first step to being sorta good at something!

I was asked to analyze a file containing around of 153 lines of technial information about cars. Every two lines a new car will show its technical spec’s, so the program had to cound spaces in order to find the correct spaces in where he desired information was written. So after finding the info I converted it to float. Then I was able to manipulate the data to my own desire which was to get the city, highway MPG average and the mid price average. Thanks oscar blog for offering a clean code and good structure.

THE CODE

WSQ13 CODE

THE PRINTSWSQ13 SS


WSQ12

--Originally published at Dude, Suckin' at something is the first step to being sorta good at something!

I was asked to deploy the number of decimal points of accuracy numerical value for e (2.718281828459045235360) depending on the number of decimal points of accuracy the user asked for. So I first asked the user how many decimal points of accuracy he will wanted then I turned e to a string and started printing the string places up too the number the user typed in.  Thanks chinbrown  for your simple perspective on how to tackle this problem I found your way the best and most simple way of doing it.

THE CODE

WSQ12 CODE

THE PRINTS

WSQ12 SS


WSQ11

--Originally published at Dude, Suckin' at something is the first step to being sorta good at something!

The activity asked us for us to create a function who asked for the name of a file with the .txt extention. Inside that file the word banana had to be in place for the program to count how many times the word banana was inside the text. I will like to thanks the python book web page for the great help they offered during my times of distress. Specially when I was looking for the .split() and read file commands that I didn’t know.

THE CODE

Screen Shot 2017-05-02 at 11.18.10 PM

THE PRINTS

Screen Shot 2017-05-02 at 11.18.00 PM


WSQ10

--Originally published at Dude, Suckin' at something is the first step to being sorta good at something!

THANKS ELU ONCE AGAIN however this time I didn’t oponed your code this time you spiritually guided me throught the cyclic babylonian method. What I learn was to use the Babylonian method formula to generate a number which after several cicles it compared the last two results who are on a list and if the difference between the last two is less than 0.0001. Then the while will stop and print that answer.

THE CODE

WSQ10 CODE

THE RESULTS

WSQ10 SS


WSQ09

--Originally published at Dude, Suckin' at something is the first step to being sorta good at something!

This was intense definitely one of the most challenging learning curve WSQ I have ever done however the process was pretty straigth forward and simple. So the instrucions where to call a file by its name located by preference in a folder. The user had to add the name of the file so inside te code it can be added to the path location. Once the function has located the file its going to open the file and read it. Its going to count the lines of the file with the ” .split(\n) ” after that is going to count all of the caracters inside the file with len(text).

THE CODE

WSQQ09 CODE

THE RESULTS

WSQ09 SS


QUIZ 9

--Originally published at Dude, Suckin' at something is the first step to being sorta good at something!

The user needs to input four coordinate points in order to receive the distance between these two points. The pythagorean theorem was a key on the process to calculate the distance between them. This was made possible as always thanks to Elus Blog which he makes the best blogs!

THE CODE

QUIZ9 CODE

THE WORKS

QUIZ9 SS


WSQ08

--Originally published at Dude, Suckin' at something is the first step to being sorta good at something!

So the instructions where to ask the user for a range in which they call it a lower bound(meaning the lowest number from the range) to the upper bound (the highest number of the range). In that range of numbers I needed to analyze the existence of palindromes, and lychrels numbers with in the range. Thanks to Elu’s Blog the man to trust when giddens is more needed he is the man too trust.

THE CODE

WSQ08 CODE

 

THE WORKS
WSQ08 SS


WSQ07

--Originally published at Dude, Suckin' at something is the first step to being sorta good at something!

So, the programs ask us to ask the user nae for ten numbers after that find out the sum of the variables in the list. Show the average or mean of the 10 numbers and finaly show the deviation. The first two were pretty simple using a sum(list) you get the value of all the numbers on the list. After that you get the sum you divide the sum by 10 the number of variables inserted and you got your mean. The standard deviation is a little bit more tricky since first you repeat the first two steps. After that you subtract the mean too each and everysingle one of the varibables then you square them and after that you sum them up again. To finally square root it at the end.

THE CODE

WSQ07 CODE

THE RESULTS (USING 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)

SS