python

python

Python dictionary get() method explanation with example

Python dictionary get() method is used to get the value of a python dictionary using its key. We can pass the key to this method and it returns the value for that key.

Read
python

Python find the base name of a given path

Python os.path.basename() method explanation with example. basename is used to find the base name of the given pathname.

Read
python

How to append a list, tuple or set to a set in python

Python program to append a list, tuple or a different set to a set in python. This post will show you how to do it with examples.

Read
python

Python program to remove special characters from a string

Python program to remove all special characters from a string. This blog post will show you how to remove all special characters from a user given string in python.

Read
python

Python string index method explanation with example

Python string index method is used to find the index of the first occurrence of a given string. This post will show you how to use index method with example.

Read
python

Python check if a string characters are ASCII using isascii

Python program to check if a string characters are ASCII. Python string provides isascii method to check that starting python 3.7

Read
python

Python check if a string is alphanumeric

Python string provides isalnum method to check if a string is alphanumeric or not. This post will show you how to to use it with example.

Read
python

How to copy string in python

Learn how to copy a string in python with example. We will learn three different ways to copy a string.

Read
python

Python string join() method explanation with example

Python string join() method explanation with examples. join() method can be used to concatenate all strings of an iterable.

Read
python

Python program to get the string between two substrings

Python program to get the string between two substrings in a given string. Two different ways to do that- using regex and by searching.

Read