2 Ways to convert string to list in Python
The split method is used to split a string based on a specified delimiter. Once split, it returns the split string in a list, using this method we can convert string to list in Python. Using Split() to convert string to list in Python The split method is used to split a string based on […]
2 ways to check ansible version in Linux
If you are a Linux user who is using Ansible to manage your systems, you may want to know how to check the Ansible version. In this blog post, we will show you two ways to do that. The first way is to use the ansible –version command, and the second way is to use […]
3 Ways to Append to list in Python
List in Python are indexed and have a definite count while initializing. The elements in a list are indexed according to a definite sequence and the indexing of a list is done with 0 being the first index and the last item index is n-1 where n is the number of items in a list. […]
Python 3 String Operations
lower(): Converts a string to the lowercase letter. upper(): Converts a string to the uppercase letter. islower() / isupper(): Checks if the whole string is in lower case or upper case and returns bool value respectively. startswith(): Returns a bool value. Check if the given string starts with a particular text. endswith(): Returns a bool […]
3 Examples of List Append Method in Python3
List in Python are indexed and have a definite count while initializing. The elements in a list are indexed according to a definite sequence and the indexing of a list is done with 0 being the first index and the last item index is n-1 where n is the number of items in a list. […]