This article will at how we can use Python modules to generate over 50k Indian names. IndianNameGenerator and getindianname are two modules that will help in this task.

Let’s have a look at the step-by-step implementation

Step 1: Install the following modules given below

pip install IndianNameGenerator
pip install getindianname

Step 2: Import the following modules

from IndianNameGenerator import * 
from getindianname import *

Step 3: Let’s have a look at the working of the IndianNameGenerator module

It includes four categories

  • Punjabi
  • Gujarati
  • Bengali

for generating any name, you just need to write:

Python3

from IndianNameGenerator import…

PyWebIO provides a set of imperative methods for obtaining user input and output on the browser, thereby converting it into a “rich text terminal,” and may be used to create simple web apps or browser-based GUI applications. PyWebIO is a Python library that allows you to build simple web applications without the knowledge of HTML and Javascript. We will dive deep into the textarea() method, examining how we may use the textarea method for taking text from the user.

Syntax:

textarea(label='', rows=6, code=None, maxlength=None, minlength=None, placeholder=None, 
required=None, readonly=None, help_text=None)
textarea(label="GeeksForGeeks")

PyWebIO provides a set of imperative methods for obtaining user input and output on the browser, thereby converting it into a “rich text terminal,” and may be used to create simple web apps or browser-based GUI applications. PyWebIO is a Python library that allows you to build simple web applications without the knowledge of HTML and Javascript. We will dive deep into the input() function, examining how we may obtain more effective input from the user.

Syntax:

input(label='', type='', validate=None, placeholder=None, required=None,
readonly=None, datalist=None, help_text=None)
input(label="Hello")

Description:

  • Let’s look at a Python script that will place all of your files in the appropriate folder.
  • This script will first list all of the files and place them in folders based on their extensions, such as “.pdf” which will be placed in the PDFs folder, and so on for all of the files.
  • Finally, all of the files will be placed in their proper directories.

Procedure to follow:

  • Import OS module
  • Using the chdir function, change the location where the files will be imported.
  • List all of the files using the listdir function, and then delete any files that don’t have an…

Given a string, the task is to check the occurrences of each character and print them in such a way like for every character print numbers of times it occurs before occurrences of any new character along with the character which occurs and so on.

Example:

Input: aabbccad

Output: 2a2b2c1a1d

We can see that a occurs 2 times before occurrences of new character and same for other characters.

Input: abcde

Output: 1a1b1c1d1e

Approach:

This approach is very native. Initialize a count variable to one and take another variable named Result and initialize it with an empty string. Then run a…


Clustered Operating Systems work similarly to Parallel Operating Systems as they have many CPUs. Cluster systems are created when two or more computer systems are merged. Basically, they have an independent computer but have common storage and the systems work together.

Diagram for better understanding:

For making cluster more efficient there exist two clusters:

  • Software Cluster

Hardware Cluster helps in enable high-performance disk sharing between systems, while the Software Cluster allows all systems to work together.

Types of Cluster Systems:

Primarily, there are two types of Cluster Systems:


Given an unsorted array of integers, print all elements which are greater than all elements present to its right.

Examples:

Input: [10, 4, 6, 3, 5]
Output: [10, 6, 5]
Explanation: The only elements that are higher than all of the ones to their right are 10, 6, and 5.
Point out 10 and look for all of the elements—we can see that all of the items following
10 are smaller than 10, and the same is true for 6.
Input: [8, 5 , 6, 3]
Output: [3, 6, 8]

Let’s have a look at the stepwise implementation:

Step 1…


In this article, we’ll look at how to divide Excel sheets into distinct Excel files. We all know how crucial Excel sheets are today for holding large data packets. We will divide the sheets using the xlwings package, which is defined in Python. We will first copy all of the sheets and then try to convert them into individual Excel files.

Let’s have a look at the process step by step:

pip install xlwings
# Import the modules
import xlwings as xw # pip install xlwings
import os

Satyam Tripathi

I’m a passionate and innovative programmer that likes contributing to open source, writing articles, and implementing new ideas.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store