
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
2K+ Views
When it is required to find the length of the last word in a string, a method is defined that removes the extra empty spaces in a string, and iterates through the string. It iterates until the last word has been found. Then, its length is found and returned as ... Read More

AmitDiwan
2K+ Views
When it is required to accept a string that starts with a vowel, a ‘startswith’ function is used to check if the string begins with a specific character (vowel) or not.ExampleBelow is a demonstration of the samemy_list = ["Hi", "there", "how", "are", "u", "doing"] print("The list is : ") ... Read More

AmitDiwan
887 Views
To fill NaN with Polynomial Interpolation, use the interpolate() method on the Pandas series. With that, set the “method” parameter to “polynomial”.At first, import the required libraries −import pandas as pd import numpy as npCreate a Pandas series with some NaN values. We have set the NaN using the numpy ... Read More

AmitDiwan
1K+ Views
When it is required to find words that are greater than a specific length, a method is defined that splits the string, and iterates through it. It checks the length of the word and compares it with the given length. If they match, it is returned as output.ExampleBelow is a ... Read More

AmitDiwan
469 Views
When it is required to check if a given string contains specific characters using regular expression, a regular expression pattern is defined, and the string is subjected to follow this pattern.ExampleBelow is a demonstration of the sameimport re def check_string(my_string, regex_pattern): if re.search(regex_pattern, my_string): ... Read More

AmitDiwan
628 Views
When it is required to check if a string ends with an alphanumeric character or not, the regular expression is used. A method is defined that checks to see an alphanumeric characters, and returns the string as output.ExampleBelow is a demonstration of the sameimport re regex_expression = '[a-zA-z0-9]$' ... Read More

AmitDiwan
1K+ Views
When it is required to check if a string begins and ends with the same character or not, regular expression can be used. A method can be defined that uses the ‘search’ function to see if a string begins and ends with a specific character.ExampleBelow is a demonstration of the ... Read More

AmitDiwan
465 Views
When it is required to check if a string starts with a specific substring or not, with the help of regular expression, a method is defined that iterates through the string and uses the ‘search’ method to check if a string begins with a specific substring or not.ExampleBelow is a ... Read More

AmitDiwan
853 Views
When it is required to find sequences of an upper case letter followed by lower case using regular expression, a method named ‘match_string’ is defined that uses the ‘search’ method to match a regular expression. Outside the method, the string is defined, and the method is called on it by ... Read More

AmitDiwan
905 Views
When it is required to remove all characters except for letters and numbers, regular expressions are used. A regular expression is defined, and the string is subjected to follow this expression.ExampleBelow is a demonstration of the sameimport re my_string = "python123:, .@! abc" print ("The string is : ... Read More