Python Report PDF
Python Report PDF
March, 2020
Table of content-
1. Table of content -------------------------------------------- 2
2. Introduction ------------------------------------------------- 3-5
3. Literature Reviewed --------------------------------------- 6-12
3.1 Web Development ---------------------------------- 6-7
3.2 Desktop Applications ------------------------------- 8-10
3.3 Artificial Intelligence & Data Science ----------- 11-12
4. Summary ----------------------------------------------------- 13
5. Conclusion --------------------------------------------------- 14
6. Future Scope ------------------------------------------------ 15
7. Reference ---------------------------------------------------- 16
Introduction -
Python is an open source (as it has BSD (Berkeley Source Distribution)
licence) object oriented, function oriented, and structural
programming language which is used in almost all the fields of science
and technology and was developed by Guido van Rossum in 1991.
Keeping the history of Python apart it’s known as one of the popular
and emerging programming languages of these times and its usage is
increasing about 800 percent per year and is expected to acquire
more.
root = Tk()
root.title('My Calculator')
def button_click(number):
current = e.get()
e.delete(0, END)
e.insert(0, str(current) + str(number))
def button_clear():
e.delete(0, END)
def button_arithmetic(operator):
first_number = e.get()
global f_num
global math
math = operator
f_num = float(first_number)
e.delete(0, END)
def button_equal():
second_number = float(e.get())
e.delete(0, END)
if math == 'addition':
e.insert(0, f_num + second_number)
elif math == 'subtraction':
e.insert(0, f_num - second_number)
elif math == 'multiplication':
e.insert(0, f_num * second_number)
elif math == 'division':
e.insert(0, f_num / second_number)
# define buttons...
button_1 = Button(root, text='1', padx=40, pady=20, command=lambda:
button_click(1))
button_2 = Button(root, text='2', padx=40, pady=20, command=lambda:
button_click(2))
button_3 = Button(root, text='3', padx=40, pady=20, command=lambda:
button_click(3))
button_4 = Button(root, text='4', padx=40, pady=20, command=lambda:
button_click(4))
button_5 = Button(root, text='5', padx=40, pady=20, command=lambda:
button_click(5))
button_6 = Button(root, text='6', padx=40, pady=20, command=lambda:
button_click(6))
button_7 = Button(root, text='7', padx=40, pady=20, command=lambda:
button_click(7))
button_8 = Button(root, text='8', padx=40, pady=20, command=lambda:
button_click(8))
button_9 = Button(root, text='9', padx=40, pady=20, command=lambda:
button_click(9))
button_0 = Button(root, text='0', padx=40, pady=20, command=lambda:
button_click(0))
button_decimal = Button(root, text='.', padx=40, pady=20, command=lambda:
button_click('.'))
button_clear = Button(root, text='<', padx=40, pady=20, command=button_clear)
button_add = Button(root, text='+', padx=39, pady=20, command=lambda:
button_arithmetic('addition'))
button_subtract = Button(root, text='-', padx=41, pady=20, command=lambda:
button_arithmetic('subtraction'))
button_multiply = Button(root, text='*', padx=40, pady=20, command=lambda:
button_arithmetic('multiplication'))
button_divide = Button(root, text='/', padx=41, pady=20, command=lambda:
button_arithmetic('division'))
button_equal = Button(root, text='=', padx=91, pady=20, command=button_equal)
button_4.grid(row=2, column=0)
button_5.grid(row=2, column=1)
button_6.grid(row=2, column=2)
button_7.grid(row=1, column=0)
button_8.grid(row=1, column=1)
button_9.grid(row=1, column=2)
button_0.grid(row=4, column=0)
button_decimal.grid(row=4, column=1)
button_clear.grid(row=4, column=2)
button_add.grid(row=5, column=0)
button_equal.grid(row=5, column=1, columnspan=2)
button_subtract.grid(row=6, column=0)
button_multiply.grid(row=6, column=1)
button_divide.grid(row=6, column=2)
root.mainloop()
Artificial Intelligence and Data Science –
Python had been ruling this field form many years. When it comes to
AI and DS developers first think of Python over any other
programming languages because it has a number of libraries for
performing any kind of stuffs that involves learning artificially or
building an AI or ML models for predictions. I would like to mention
that Data Science had been one of the emerging fields of computer
science and has a lot of future scope as data is very important to all of
us even for a person who don’t even use a computer or a mobile
phone. Developers use to sell data and get paid for it, as for making a
prediction model one needs past data of whatever stuff he is going to
build.
I would like to mention some of my favourite Python libraries that I
like to use in my Data Science projects –
For numerical or scientific calculations, we need –
• NumPy
• Sci-py
For working with data frame or some kind of data we need –
• Pandas
For visualization (plotting graphs) we need –
• Matplotlib
• Seaborn
For building AI / ML models we need –
• Scikit-Learn
• TensorFlow
• Kera’s, etc.
Here’s a code snipped that depicts the use of the above-mentioned
libraries –
import numpy as np
import matplotlib.pyplot as plt
plt.hist(house_prices, 200)
plt.show()
While learning Python I got to know that how vast this programming
language is and how difficult that gets when learning to its advanced
level but it gets usual by building a habit of coding.
Python developers are paid high wages for their work and is expected
to increase with the passage of time.
References
I won’t have ever been able to complete this report without referring
to Guido van Rossum creator of Python, and help from some of the
below mentioned websites –
• www.wikipedia.org
• www.python.org