Author name: Akshay Patil

Capitalize first letter of all the words in a string in Python

In this tutorial, we will learn how to capitalize the first letter of all the words in a string using Python. This is a very simple tutorial. we are going to solve this problem shortly. First letter capitalization For the first letter capitalization, we have many approaches. To solve this problem we have to import …

Capitalize first letter of all the words in a string in Python Read More »

Iterate over words of a String in Python

String In Python, strings are used to represent data which is in the form of characters, numbers, and symbols. The string is a collection of data that is represented in single(”) or double quotes(“”).To strings we can say array like other programming languages. Examples: str=”hello” str1=”helloo123″ str2=”Namaste@ india” In above examples we show  different types …

Iterate over words of a String in Python Read More »

How to Get a List of Class Attributes in Python

In this tutorial, we have to get the list of attributes of the user-defined class. We have to define one class for it and derive the methods of the class in this class. Python is an oops-based high-level programming language. In Object-oriented programming language, all things are objects. In objects, there are methods, properties, variables, …

How to Get a List of Class Attributes in Python Read More »

Scroll to Top