Python coding – File handling
In anything you do with computers (python coding), you must surely work with files in one way or the other. In this post, we will be learning how to create, modify or even delete files using Python programming.
In anything you do with computers (python coding), you must surely work with files in one way or the other. In this post, we will be learning how to create, modify or even delete files using Python programming.
String substitution is a very important aspect of strings and string manipulations in Python. In this article, you’ll learn 3 ways of performing string substitutions in Python.
There are so many built-in methods for strings in Python. With these methods, you can easily or conveniently manipulate strings.
Strings in python are collections of characters like digits, letters of the alphabet, symbols and even non-printable characters. A string is a series of characters treated as a single unit.
Dictionaries in Python are a sequence of key-value pairs, with each key having an associated value. In other languages, dictionaries are known as associative memories or associative arrays.
Python set comprehension is very similar to list comprehension. In set comprehension, curly braces are used, while in list comprehension, square brackets are used.
Sets in Python are unordered sequences of items with no duplicates. It’s closely related to sets in mathematics. Sets do not support indexing and as such are considered an ordered collection.
Tuples in Python, also known as immutable lists, are ordered sequences of items. Like lists, tuples are made up of items separated by commas. However, unlike the lists, items are enclosed in parentheses instead of square brackets.
Essentially, python does not have stack and queues like programming languages like Java. In this post, we will be exploring the implementation of Python stack and queues using the collections library.