Make a list of lines from a file
Aug 10,97It is possible to the place a lines in a file in a list, with each line representing a single …
Read MoreRead and write – with statement
Aug 10,97Another way in which you can read and write files is by using the with statement. The main benefit of …
Read MoreRead a file
Aug 10,97To read a file we’ve created in the previous lesson, we need to create a file object, but this time …
Read MoreHow to read and write files
Aug 10,97Reading and writing files in Python is really easy since you don’t need to import a library – everything needed …
Read MoreLooping over a tuple
Aug 9,97Just like with lists, to loop through each item in a tuple, the for loop can be used: names = …
Read MoreWhat are tuples?
Aug 9,97Tuples in Python are similar to lists in a way that they are used to store a set of elements …
Read More