The first excercise was the same as a WSQ, i just had to change it a little bit. I got in trouble when i tried to make excercise 2 because i didn´t know how to work with files.
I researched a little bit on the book and then i played a little bit with what i found, to make the excercise i just had to combine my new knowledge with my list and string knowledge and that was all. At the end the excercise was very simple, i just had to know how to open a file.
Hint (thinks that you need to know to open a file):
open( “filename.txt”)     This will return a file value so put it on a variable
file = open( “filename.txt”)
file.read()        This read what is inside that file, returns whatever is written on it so i recommend you to put in on a variable too

If you want to see my code i will post it on Github, here is the link:
https://github.com/Jocapear/TC1014/blob/master/Quiz11.py

CC BY 4.0 Quiz11 by Jose Carlos Peñuelas Armenta is licensed under a Creative Commons Attribution 4.0 International License.