Skip to content

Commit ac34009

Browse files
authored
culturally-inspired names imaginary
1 parent c0b68a7 commit ac34009

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

Random_State_Name_Generator/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Unique Indian State Names Generator
2+
3+
This Python script generates unique and culturally-inspired names for imaginary Indian states by creatively combining real Indian state name components.
4+
5+
## How to Use
6+
7+
1. Ensure you have Python installed on your system.
8+
2. download the `base.py` file.
9+
3. Run the script by executing the following command in the terminal:
10+
`python base.py`
11+
4. Enter the number of unique state names you want to generate when prompted.
12+
5. The script will generate and display the unique state names for you.
13+
14+
## Example Output
15+
Enter the number of unique state names you want to generate: 5
16+
17+
Generated Unique State Names:
18+
Madhya Bengal
19+
Karnataka Pradesh
20+
Assam Nadu
21+
Rajasthan Pradesh
22+
Himachal Pradesh
23+
24+
## Disclaimer
25+
26+
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+
28+
29+

Random_State_Name_Generator/base.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import random
2+
3+
def generate_state_name():
4+
state_prefixes = ["Andhra", "Arunachal", "Assam", "Bihar", "Chhattisgarh", "Goa", "Gujarat",
5+
"Haryana", "Himachal", "Jharkhand", "Karnataka", "Kerala", "Madhya", "Maharashtra",
6+
"Manipur", "Meghalaya", "Mizoram", "Nagaland", "Odisha", "Punjab", "Rajasthan",
7+
"Sikkim", "Tamil", "Telangana", "Tripura", "Uttar", "Uttarakhand", "West"]
8+
9+
state_suffixes = [" Pradesh", " Pradesh", " Pradesh", " Nadu", " Pradesh", " Bengal", " Pradesh", " Pradesh",
10+
" Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh",
11+
" Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh", " Pradesh",
12+
" Pradesh", " Nadu", " Pradesh", " Pradesh", " Pradesh", " Pradesh"]
13+
14+
state_name = random.choice(state_prefixes) + random.choice(state_suffixes)
15+
return state_name
16+
17+
if __name__ == "__main__":
18+
num_names = int(input("Enter the number of unique state names you want to generate: "))
19+
20+
unique_state_names = set()
21+
while len(unique_state_names) < num_names:
22+
state_name = generate_state_name()
23+
unique_state_names.add(state_name)
24+
25+
print("\nGenerated Unique State Names:")
26+
for state_name in unique_state_names:
27+
print(state_name)

0 commit comments

Comments
 (0)