KING_KOHLI:-
a =["Virat Kohli,one of the most of the celebrated cricketers has amassed and numerous awards and records throughout his career."]
print(a)
OUTPUT:-
Virat Kohli,one of the most of the celebrated cricketers has amassed and numerous awardsa nd records throughout his career.
KOHLI_AWARDS_OF_THE_YEAR:-
#import module
from tabulate import tabulate
# assigns data
mydata = [["ICC Cricketer of the year",2017,2018],
["ODI Player of the year",2012,2017,2018,2023],
["Test Player of the year",2018],
["ICC Cricketer of the Decade",2011,2018],
["Spirit of cricket",2019],
["Wished leading cricketer",2016,2017,2018],
["Khel ratna award ",2018]]
# create header
head = ["Awards","Year","Year"]
# display table
print(tabulate(mydata,headers=head,tablefmt="grid"))
OUTPUT:-
+-----------------------------+--------+--------+
| Awards | Year | Year |
+=============================+========+========+
| ICC Cricketer of the year | 2017 | 2018 |
+-----------------------------+--------+--------+
| ODI Player of the year | 2012 | 2017 |
+-----------------------------+--------+--------+
| Test Player of the year | 2018 | |
+-----------------------------+--------+--------+
| ICC Cricketer of the Decade | 2011 | 2018 |
+-----------------------------+--------+--------+
| Spirit of cricket | 2019 | |
+-----------------------------+--------+--------+
| Wished leading cricketer | 2016 | 2017 |
+-----------------------------+--------+--------+
| Khel ratna award | 2018 | |
+---------------------------
STATISTICS:-
import matplotlib.pyplot as plt
fig,ax1 = plt.subplots()
years = [2017,2018,2012,2017,2018,2011,2018,2011,2018,2019,2016,2017,2018]
first = [1,2,1,2,1,2,1,2,1,2,1,2,1]
second = [10,15,17,11,12,18,13,11,15,16,19,20,10]
ax1.plot(years,first,color="blue")
ax2 = ax1.twinx()
ax2.plot(years,first,color="green")
plt.show()
OUTPUT:-
import matplotlib.pyplot as plt
labels=['Test Centuries','Test Fifities','ODIS Centuries','ODIS Fifities','T20s Centuries','T20s Fifities']
sizes=[29,30,54,80,1,38]
plt.pie(sizes,labels=labels,autopct='%1.1f%%',startangle=140)
plt.title('Records')
plt.show()
OUTPUT:-
0 Comments