Maheswari Public School Kalwar Road: Project File Session 2023-24
Maheswari Public School Kalwar Road: Project File Session 2023-24
KALWAR ROAD
INFORMATIC PRACTICES
CLASS: 1271H
PROJECT FILE SESSION 2023-24
CERTIFICATE
VY
ACKNOWLEDGMENT
V
INTRODUCTION TO PYTHON
V
OVJECTIVE
VY
What is Covid-197?
VV
Covid-19 in India
Worst affected states form Covid-19 in India
VY
to Covid-19
> Covid-19 test conducted by different Countries
in the World
» CONCLUSION
» REFERENCE
CERTIFICATE
What is Python?
Python is a popular programming language. It was
created by Guido van Rossum, and released in 1991.
It is used for:
Why Python?
. Python works on different platforms (Windows,
Mac, Linux, Raspberry Pi, etc).
. Python has a simple syntax similar to the English
language.
. Python has syntax that allows developers to write
programs with fewer lines than some other
programming languages.
. Python runs on an interpreter system, meaning
that code can be executed as soon as it is written.
This means that prototyping can be very quick.
. Python can be treated in a procedural way, an
object-oriented way or a functional way.
OBJECTIVE
The world was grappling with an invisible, deadly
enemy CORONA VIRUS.
X Ee NES
A B C
EC r d
2 1913382 1806298 49129
3 914488 888917 12044
4 880430 869478 7091
5 812142 790965 12048
6 732084 664951 2930
7
g
9
OO
md
ad | al |
N=
PROGRAM
import numpy as np
import pandas as pd
a=pd.read_csv('/storage/emulated/0/
Download/Covidip.csv')
x=np.linspace(1,61,5)
plt.xticks(x+6/2, [Maharashtra
'Karnataka',AP',TN','Kerala'])
plt.bar(x,a['c',width=3,color="blue’,
label='Cases')
plt.bar(x+3,a['r'],width=3,color='green,
label="Recover")
plt.bar(x+6,a['d"],width=3,color="red,
label='Death’)
plt.title('Most affected states due to
covid19)
plt.legend()
plt.xlabel('States')
plt.ylabel('Number')
plt.show(()
OUTPUT
1750000 -
1500000 +
1250000 +
Number
1000000 -
750000
500000
250000
A € > +Q/=
LEAST AFFECTED STATES FROM
CoVvID-19 IN INDIA
Five least affected states in India are Mizoram, Sikkim, Nagaland,
Meghalaya and Arunachal Pradesh. Given belowis the bar graph
as on 26™ December, 2020.
CSV FILE
Ee x ~~ +S :
A B C D
Efe r d
2 4178 4036 8
3 5684 5142 125
4 11845 11544 77
5 13396 12940 135
16678 16454 56
PROGRAM
import numpy as np
import pandas as pd
a=pd.read_csv('/storage/emulated/0/
Download/covidip2.csv')
x=np.linspace(1,61,5)
plt.xticks(x+6/2, Mizoram, ‘Sikkim,
‘Nagaland’, Meghalaya’, Arunachal
Pradesh)
plt.bar(x,a['c'l,width=3,color="blue,
label="Cases")
plt.bar(x+3,a['r'],width=3,color='green’,
label="Recover")
plt.bar(x+6,a['d"],width=3,color="red',
label='"Death)
plt.title('Least affected states due to
covid19')
plt.legend()
plt.xlabel('States’)
plt.ylabel('Number’)
plt.show(()
OUTPUT
14000 +
12000 A
10000 +1
Number
8000
6000
4000 +
2000 A
A €> $Q|=
DEATHS IN EACH AGE GROUP
DUE TO CovID-19
Deaths caused in each age groups is shown below
through a line graph as at 2" September, 2020.
CSV FILE
Jil
bo
dh
)
)
=
WN
dl
on
13.4
25.13
NN
28.6
00
OO
wd | «a
=O
|
WINN
wd | wd
PROGRAM
import pandas as pd
a=pd.read_csv('/storage/emulated/0/
Download/covidip3.csv')
plt.plot(a['x],al'y'],marker="*',
REN
markeredgecolor="r")
plt.title('% of death in each age group)
OO
plt.xlabel('Ages’)
plt.ylabel('percent’)
~N
plt.show()
0
OUTPUT
25 +
20 A
15
percent
10 +
0-10 11-20 21-30 31-40 41-50 51-60 61-70 71-80 81-90 >90
Ages
# €> $Q=
DEATHS IN EACH AGE GROUP IN MALE
AND FEMALE DUE TO CovID-19
Deaths caused in each age groups in male and female isshown
below through a bar graph as at 24 September, 2020.
CSV FILE
v = ~~ A 4+ BH
A B Cc
1 f m
2 109 180
3 195 202
4 529 926
5 952 2484
6 2308 5230
7 4548 9683
8 4947 11142
9 2766 6788
10 857 2141
104 197
—_
—
N
wll
PROGRAM
IB
import matplotlib.pyplot as plt
import numpy as np
BR WN
import pandas as pd
a=pd.read_csv('/storage/emulated/0/
Download/covidip4.csv])
x=np.linspace(1,81,10)
plt.xticks(x+3/2, [0-10',11-20', '21-30','31
40',41-50', '51-60',61-70',71-80',81-90/,
'>90")
plt.bar(x,a['f],width=3,color='g,
label="Female")
plt.bar(x+3,a['m’,width=3,color="b',
label="Male")
plt.legend()
plt.xlabel('Age’)
plt.ylabel('Number')
plt.title('No. of Deaths up to 2nd Sep
2020")
plt.show()
OUTPUT
10000 A
8000 1
£T 6000 +
=
=
=
4000 +
2000 1
0 -
a €> PQ = \B
COVID-19 TEST CONDUCTED BY
DIFFERENT COUNTRIES IN THE WORLD
Number of Covid-19 test conducted by different countries
all over the world upto 16™ December, 2020.
India has done 3™ largest testing in the world.
CSV FILE
“ CN ~ +S
0
224938642 USA
ON
160000000 China
On|
S|
156646280 India
83867186 Russia
48488168 UK
(IN|
30494036 Germany
29323706 France
OO
25700000 Brazil
10 24918644 Spain
11 24482190 Italy
PROGRAM
import pandas as pd
a=pd.read_csv('/storage/emulated/0/
Download/covidip5.csv')
plt.barh(a['n,a['c],color="r")
plt.title('Number of coronavirus tests
performed in the most \n impacted
countries worldwide as of December 16,
2020’)
plt.xlabel('No. of test’)
Nie)
plt.ylabel('Country')
plt.show()
oe
OUTPUT
Number of coronavirus tests performed in the most
impacted countries worldwide as of December 16,2020
italy
Spain
Brazil
France
Germany
Lounuy
UK
Russia
India
China
USA
#l€> $Q=
CONCLUSION
in females.
e https.//indianexpress.com
e hitps.// www.who.int
e hitps.//en.m.wikipedia.org
e hittps.//www statista.com
e hittps.//m.hindustantimes.com
e Sumita arora — information practices book
e NCERT class 12 —information practices book