Read 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 MoreLoop through a dictionary
Aug 8,97Just like you can do it with lists, you can use a for loop to loop through a dictionary. To …
Read MoreDelete a key-value pair in a dictionary
Aug 8,97It is really easy to remove a key-value pair from a dictionary – you only need to specify the key …
Read More
