-
Notifications
You must be signed in to change notification settings - Fork 0
/
A visit to India.py
165 lines (140 loc) · 4.65 KB
/
A visit to India.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
import pandas as pd
import matplotlib.pyplot as plt
def intro():
print("India is one of the oldest civilizations in the world and boasts of many ethnic groups following different cultures and religions.")
print("Being a diverse civilization, India is a land of myriad tongue with over 1650 spoken languages and dialects.")
print("Despite of different cultures, religions and languages, people of India live together with love and brotherhood.")
print("The immense unity in diversity makes India an example of cultural brotherhood.It is home to the largest number of different socio-cultural")
print("groups based on race,religion, language, etc.")
print("Being a large country with a large population, India presents endless varieties of physical features and cultural patterns.")
print("It is only in India, people profess all the major religions of the world. In short, India is THE EPITOME OF THE WORLD.")
print("The vast population is composed of people having diverse creeds, customs, and colours.")
def language():
print("LINGUISTIC DIVERSITY")
df=pd.read_csv("IndianLanguages.csv",index_col=0)
print(df)
x=df["LANGUAGES"]
y=df["NO. OF SPEAKERS"]
plt.title("Linguistic Diversity")
plt.xlabel("Languages")
plt.ylabel("No. of speakers")
plt.xticks(rotation=30)
plt.plot(x,y,marker="X",ls="dashed",linewidth=4,color="c")
plt.show()
def handicrafts():
print("STATES, THEIR CAPITALS AND HANDICRAFTS")
print()
print()
df=pd.read_csv("IndianHandicrafts.csv",index_col=0)
print(df)
def tourist():
print("PLACES OF TOURIST ATTRACTION")
df=pd.read_csv("IndianMonuments.csv")
print(df)
x=df["MONUMENTS"]
y=df["NO. OF VISITORS IN MILLIONS"]
plt.title("Places of tourist attraction")
plt.xlabel("Monuments")
plt.ylabel("No. of visitors in millions")
plt.xticks(rotation=30)
plt.bar(x,y,color="blue")
plt.show()
def festival():
print("A VARIETY OF FESTIVALS")
print()
print()
df=pd.read_csv("IndianFestivals.csv",index_col=0)
print(df)
def religion():
print("RELIGIOUS DIVERSITY")
df=pd.read_csv("IndianReligions.csv")
print(df)
x=df["RELIGIONS"]
y=df["FOLLOWERS"]
plt.title("Religious Diversity")
plt.xlabel("Religions")
plt.ylabel("Followers")
plt.barh(x,y,color="orange",edgecolor="black")
plt.show()
def cuisine():
print("DELIGHTS OF INDIAN CUISINES")
print()
print()
df=pd.read_csv("IndianCuisines.csv",index_col=0)
print(df)
def dance():
print("VARIOUS DANCE FORMS")
print()
print()
df=pd.read_csv("IndianDance.csv", index_col=0)
print(df)
def flora():
print("FLORAL STATISTICS OF INDIA")
df=pd.read_csv("IndianFlora.csv",index_col=0)
print(df)
x=df["FLORA"]
y=df["NO. OF SPECIES"]
plt.title("Floral Statictics of India")
plt.xticks(rotation=30)
plt.plot(x,y,marker="d",ls="solid",linewidth=4,color="y")
plt.show()
def fauna():
print("FAUNA IN INDIA")
df=pd.read_csv("IndianFauna.csv",index_col=0)
print(df)
x=df["FAUNA"]
y=df["NO. OF SPECIES"]
plt.title("Fauna in India")
plt.xlabel("Fauna")
plt.ylabel("No. of species")
plt.xticks(rotation=30)
plt.plot(x,y,marker="o",ls="dashed",linewidth=4,color="m")
plt.show()
def minerals():
print("MINERAL RESOURCES")
print()
print()
df=pd.read_csv("IndianMinerals.csv", index_col=0)
print(df)
def showMenu():
print("-------------------------------")
print(" A VISIT TO INDIA ")
print("-------------------------------")
print("Press 0 - A mirror to Indian Culture")
print("Press 1 - Linguistic Diversity")
print("Press 2 - States, their capitals and Handicrafts")
print("Press 3 - Places of Tourist attraction")
print("Press 4 - A variety of festivals")
print("Press 5 - Religious diversity")
print("Press 6 - Delights of Indian Cuisines")
print("Press 7 - Various dance forms")
print("Press 8 - Floral Statistics")
print("Press 9 - Fauna in India")
print("Press 10 - Mineral Resources")
a=showMenu()
opt=int(input("Enter your choice:"))
if opt==0:
intro()
elif opt==1:
language()
elif opt==2:
handicrafts()
elif opt==3:
tourist()
elif opt==4:
festival()
elif opt==5:
religion()
elif opt==6:
cuisine()
elif opt==7:
dance()
elif opt==8:
flora()
elif opt==9:
fauna()
elif opt==10:
minerals()
else:
print("invalid option")
print("\a")