_CourseReview

Flipped Classroom

The course was different to any course that I have had before, it consisted in having all the material available and a professor there to guide you. The time inside the classroom was merely dedicated to actively programming and asking questions about programming issues to your classmates or the teacher.

 

My experience

I really liked the methodology of the course. I believe every person is a different world with different perspectives and they learn in different ways as well, this method allows you to learn at your own pace giving you the responsability on what you want to learn and most important giving you the possibility to schedule yourself in order to achieve all your goals.

Having the posibility of learning on your own was incredible, because some of us learn in a way and solve the program with some functions but others research different stuff and solved the same problem in a different way.

This methodology was helpful for me and I really liked to go at my own pace, it made me more responsible and I really liked to help my classmates with what I learnt. This methodology is helpful for some of us, but we have to be honest that is difficult when you’re used to be told what to do, but even though I think is important to keep this methodology because it takes you out of your comfort zone and improve some soft skills that in a normal course you wouldn’t be able to.

 

 

 

Advertisements

_CreatingAndUsingDictionaries

A dictionary is a type of data that contains a lot of information (without order) and unique tags (keys) for every piece of information, this allows you to store information and access to that information easily.

Example of how to define a dictionary:

dictionary1 = {‘car_1’ : ‘black’, ‘car_2’ : ‘white’, ‘car_3’ : ‘red}

If you want to know the color of the car_1, you just have to write dictionary1[car_1] and it will return ‘black’.

Here’s a tutorial that explains better how to do it.

_CreatingAndUsingModules/Libraries

A library or module is a file that contains functions that you’ve already defined.

To create a library you just have to have a file in which you store all your functions.

To use it, you just have to call the function with import, this will work only if the two files are in the same folder.

Here’s a tutorial that explains better how to do it.

_ValidatedUserInput

As programmers we have to prevent all the possible scenarios that can happen while the user is running the program, sometimes we could ask for something but the user give another value that can also be accepted by the program. So, we have to create fail-safes in order to prevent that the program runs as desire.

In this example where asking the user to introduce a non-negative integer and the while loop will repeat till it gets a integer above zero.

#WSQ13

Task

File input/output is our access to permanent stores of data that last beyond the run time of our application.

Write a program that opens and reads the file 93cars.dat.txt and produces the following data:

  • average gas mileage in city (City MPG)
  • average gas mileage on highway (Highway MPG)
  • average midrange price of the vehicles in the set.