Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Random_State_Name_Generator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Unique Indian State Names Generator

This Python script generates unique and culturally-inspired names for imaginary Indian states by creatively combining real Indian state name components.

## How to Use

1. Ensure you have Python installed on your system.
2. download the `base.py` file.
3. Run the script by executing the following command in the terminal:
`python base.py`
4. Enter the number of unique state names you want to generate when prompted.
5. The script will generate and display the unique state names for you.

## Example Output
Enter the number of unique state names you want to generate: 5

Generated Unique State Names:
Madhya Bengal
Karnataka Pradesh
Assam Nadu
Rajasthan Pradesh
Himachal Pradesh

## Disclaimer

These state names are entirely fictional and do not correspond to real Indian states. The purpose of this script is to generate fun and creative names inspired by Indian state names.



27 changes: 27 additions & 0 deletions Random_State_Name_Generator/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import random

def generate_state_name():
state_prefixes = ["Andhra", "Arunachal", "Assam", "Bihar", "Chhattisgarh", "Goa", "Gujarat",
"Haryana", "Himachal", "Jharkhand", "Karnataka", "Kerala", "Madhya", "Maharashtra",
"Manipur", "Meghalaya", "Mizoram", "Nagaland", "Odisha", "Punjab", "Rajasthan",
"Sikkim", "Tamil", "Telangana", "Tripura", "Uttar", "Uttarakhand", "West"]

state_suffixes = [" Pradesh", " Pradesh", " Pradesh", " Nadu", " Pradesh", " Bengal", " Pradesh", " Pradesh",
" Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh",
" Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh",
" Pradesh", " Nadu", " Pradesh", " Pradesh", " Pradesh", " Pradesh"]

state_name = random.choice(state_prefixes) + random.choice(state_suffixes)
return state_name

if __name__ == "__main__":
num_names = int(input("Enter the number of unique state names you want to generate: "))

unique_state_names = set()
while len(unique_state_names) < num_names:
state_name = generate_state_name()
unique_state_names.add(state_name)

print("\nGenerated Unique State Names:")
for state_name in unique_state_names:
print(state_name)