0% found this document useful (0 votes)
9 views4 pages

Python's Role in IT Development

This paper discusses the significance of Python in the IT world, highlighting its readability, development speed, and versatility across various applications, particularly in data science and sentiment analysis. It covers Python's history, dynamic typing, data structures, and libraries that enhance its functionality, making it a preferred choice for programmers. The conclusion emphasizes Python's open-source nature and its suitability for diverse programming tasks, ultimately facilitating efficient code development.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

Python's Role in IT Development

This paper discusses the significance of Python in the IT world, highlighting its readability, development speed, and versatility across various applications, particularly in data science and sentiment analysis. It covers Python's history, dynamic typing, data structures, and libraries that enhance its functionality, making it a preferred choice for programmers. The conclusion emphasizes Python's open-source nature and its suitability for diverse programming tasks, ultimately facilitating efficient code development.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

2019 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (Com-IT-Con), India, 14th -16th

Feb 2019

A Survey: How Python Pitches in IT-World


Arun Kumar, [Link]
Department of CSE,
MRIIRS, Faridabad
[Link]@[Link], [Link]@[Link]

Abstract- This paper lights on Python amongst other different has a good readability capability and its syntax goes well
programming paradigms used in the IT World, which enhances through the programmers’ mind. Python also encourages the
development speed. Although, Python was conceptualized in the creation of the reusable codes. Most of the developers in the IT
late 1980s and after its implementation in 1989, it has emerged as a
world are working on their own ideas but still some of the
new multi-paradigm language platform with advent of Big Data.
programmers are searching for that idea for better development.
Python includes various data structures, standard libraries with
the implementation of sentiment analysis and data science code.
Programmers are always in search of better development tools
The real aim is to provide awareness to all the programmers about and programming languages some languages come under the
various facts of python language. It tells how Python works with development of low language and some on the basis of high
various commercial and social communities and provides complete level language. Python is quickly taking over much of the
and desirable results. There are many areas and applications where programming world. Python produced magical code like a rapid
Python makes its own stand as compared to other programming application development (RAD) tools it can multiply the effort.
languages. It can do amazing things in few lines of code for example 1008
Keywords- Python data structures, Python Applications, Python
mm line of code in C and C++ can easily be converted into 100
standard libraries.
lines in Python can be used as proof of Concept so working with
a Python is very exciting; an amazing and entertaining
I. INTRODUCTION journey[7,8].

Many researchers believe that real programming language is all II. HISTORY OF PYTHON
about generating ideas and developed out in the research
progress. In other words, if the idea generates only a thought to It is invented by Dutch in 1991 by using the fact of ABC
actual code rather than analysis of language constructs that languages it is not confused with C most of the feature of ABC
language should come under complete system design. Many is converted into Python as Python is free extensions are free
languages like MATLAB focuses on the linear operations. On come with basic downloads[6].Python 2.0 was invented in 2000
the other hand R is used for interactive data analysis and also for with some marvelous features and python 3.0 was invented in
many statistical packages but problem arises when the perfect 2008. The best and supportive version of python is python 2.7
match is always there in many languages like the excellence of was released in [Link] can support to multiprogramming
the applications and Internet of Things (IoT) that is used for interfaces.
computer language design So we can say that Python is
everything from the system admin web design to the currency of III. PLAYING WITH DATA STRUCTURES IN
the numbers and it is a very hot sweet spot in the researchers’ PYTHON
mind and is germinating ideas that is becoming better and
better from MATLAB and R. So Python leads with the Python has various "types" of numbers (numeric literals). We'll
genuineness of the programming skill in the practical approach mainly focus on integers and floating point numbers [1, 2].
that it can solve many of the MATLAB and R problems and
have inbuilt libraries methods for real scientific research Rules for variable names
programming languages. Python lies between the object oriented
and functional design patterns. Python uses many features of C x Names cannot start with a number
language components, iterated libraries, class definitions, x Names can not contain spaces, use _ instead
functions, objects etc. pass very easily through Python. Python x Names can not contain any of these symbols:

978-1-7281-0211-5/19/$31.00 2019 ©IEEE 248


:'",<>/?|\!@#%^&*~-+ ‘Python is a good language’.

x it's considered best practice (PEP8) that names are # we can also used double quotes
lowercase with underscores
x avoid using Python bult-in keywords like list and str “Python is much better than C”
x avoid using the single characters like l ,O, as they can
be confused with 1 and 0 [1].
# Be careful with quotes

A. Dynamic Typing
‘I’m using python to for web scrapping’
Python uses dynamic typing. It can reassign variables to
different data types. This makes Python very flexible in
assigning data types; it differs from other languages that File "<ipython-input-4-da9a34b3dc31>", line 2
are statically typed.
‘I’m using python for web scrapping, but this will create an
My_friends = 2 error'
^
When we run this code in python simply it give result 2 as a Syntax Error: invalid syntax
integer value.
The correct one:
my_friends = [‘samy’,’frankie’]
"I'm using Python for web scrapping!"
When we run this code in Python it replaces the integer value
into a list. It shows the dynamic behaviour in Python. It’s a very
C. String Indexing
powerful feature used in Python as compared to other languages
[8].
As we discuss earlier that strings can make a sequence of letters
and to find the particular position of a letter we can use indexing
with string. This is a powerful feature of Python. For this task
B. Creating a String brackets [] can be used to find the position of a given string. We
can create a string by name it as S and store a string like
As we know that strings are the important part of any among sentiment analysis in it [8].
various data structures. In Python to create a string we can use
either single quotes or double quotes [3].
S = ‘sentiment analysis’
Strings are used to store various records as a text like names,
departments. It is like a sequence that can make a sequence of S[1] = s ; S[2] = e ; S[9] = t ; S[11] = n
alphabets and other elements. If we talk about a string sentiment
as a single word it will be recorded as a sequence with the we can use a: to perform slicing which grabs everything up to a
information of each and every element we can also used designated point.
indexing with string and work on particular positions of
letters[6,8]. For example:

To create a string in Python you need to use either single S[:] = ‘Hello World’ S[1:] = ‘ello world’
quotes or double quotes. For example:
S[:3] = ‘Hel’ S[-1] = ‘d’
# single word
String can be used as the concept of immutability. It is the
‘sentiment’ process in which when we create a string then the elements of
that string cannot be replaced or changed.
#Enire Phrase

249
From the above if we want to change the first letter of the given Note: You will probably need to install certain libraries or
string then it gives an error message. modules to interact with those various file types, but they are
easily available. (We will cover downloading modules later on
S[0] = ‘x’ in the course)
------------------------------------------------------
Type Error Trace back (most recent call Python has a built-in open function that allows us to open and
last) play with basic file types. First we will need a file though. We're
<ipython-input-26-976942677f11> in <module>() going to use some IPython magic to create a text file!
# Let's try to change the first letter to 'x'
----> 2 s[0] = 'x' %%writefile [Link]

Type Error: 'str' object does not support item assignment. Hello, this is quick testfile.

my_file = open (‘[Link])


D. Print Formatting Method
------------------------------------------------------
File Not Found Error
Objects can be formatted by using format () method to write
various strings formatted statements. Here is the example of To avoid this error make sure your .txt file is saved in the same
using this method: location as your notebook, to check your notebook location,
use pwd :
‘string can be used in curly brackets{}’.format(insert string)
'C:\\Users\\Marcial\\Pierian-Data-Courses\\Complete-Python-3-
Bootcamp\\00-Python Object and Data Structure Basics'
E. Format Conversion Methods
IV. SENTIMENT ANALYSIS USING PYTHON
It should be noted that two methods %s and %r convert any
Python objects to a string by using two separate methods str()
As we know that Sentiment Analysis (SA) is a solution to
and repr().
extract the feelings of customers through various sentiments.
These sentiments can be positive, negative or neutral in different
aspects [3].
F. Dictionaries
from textblob import Textblob
We've been learning about sequences in Python but now we're text = 'python is a great tool'
going to switch gears and learn about mappings in Python. If obj= TextBlob(text)
you're familiar with other languages you can think of these sentiment = [Link]
Dictionaries as hash tables [6]. print(sentiment)

my_dic = { ‘Key1 : ’value1’ , ‘Key2 : ’value2’} 0.8

The above code finds the sentiments of any given text by using
Python. As the polarity of any sentence lies between -1 to +1,
we can say that the above text is a positive statement.
G. File Handling in Python
from textblob import Textblob
Python uses file objects to interact with external files on your text = 'C is much harder than python’
computer. These file objects can be any sort of file you have on obj= TextBlob(text)
your computer, whether it be an audio file, a text file, emails, sentiment = [Link]
Excel documents, etc [4]. print(sentiment)

-0.1

250
SciPy : SciP is a one of the user friendly and efficient libraries It
The above code finds the sentiments of any given text by using has a capability to solve various numerical routines for
python. As the polarity of any sentence lies between -1 to +1, optimization and numerical integration[4,6].
we can safely say that the above text is a negative statement. So
the game of data structures & libraries still continue with the use VI. CONCLUSION
of social media tools.
With the above ideas and discussions, we came to conclude that
Python is pitched to give complete solution in the world of
V. PYTHON LIBRARIES & PACKAGES programming. It is an open source language and can be used for
many social and commercial purposes. It can also be used on
The Python Standard Library is a collection of exact syntax, any of the platforms as operating systems such as Windows,
token, and semantics of Python. It comes bundled with core Mac, and Linux to name a few. Python is well suited for web
Python distribution. We mentioned this when we began with an scrapping commercial developments, and also for various
introduction. It is written in C, and handles functionality like I/O scientific computations. So the journey with python is
and other core modules. All this functionality together makes enlightening for the programmers. So working with Python is a
Python the language it is. More than two hundred core modules comfortable task for the programmers by which they can easily
sit at the heart of the standard library. This library ships with implement the desirable output with lesser line of code(LoC), as
Python. But in addition to this library, you can also access a an estimate for productivity, maintainability and hence the
growing collection of several thousand components from the development speed.
Python Package Index (PyPI). We mentioned it in the previous
blog [1, 8]. REFERENCES

[1] Brown, M.C., Python: The complete reference. Osberone McGraw-


Matplotlib: Matplotlib helps with data analyzing, and is a Hill Professional, Janyary 23, 2001.
[2] Ceder, V.L., McDonald, K. and Harms, D.D,, The quick Python
numerical plotting [Link] also provide the publication quality book (p. 335),Manning, 2010.
figures [1, 8]. [3] Gonçalves, P., Araújo, M., Benevenuto, F. and Cha, M., , October,
Comparing and combining sentiment analysis methods, Proceedings
Pandas : Pandas in python is most powerful data structure is of the first ACM conference on Online social networks (pp. 27-
38),ACM, 2013.
used for data analysis. It can be used many commercial and [4] Guo, P.J., March, Online python tutor: embeddable web-based
social communities to process various stastical economical program visualization for CS education, proceedings of the 44th
financial data to create and analyze various models. It can also ACM technical symposium on Computer science education (pp. 579-
be helpful in academic and analytical point of view. It is an open 584), ACM, 2013.
[5] Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B.,
source library and can be very useful areas like data science and Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V. and
sentiment analysis. Vanderplas, J., Scikit-learn: Machine learning in Python. Journal of
machine learning research, pp.2825-2830, 2011.
Request: Requests is a Python Library that is used to send [6] Pandarachalil, R., Sendhilkumar, S and Mahalakshmi, G.S., Twitter
sentiment analysis for large-scale data: an unsupervised approach,
HTTP requests, multiple files and various form of data by using Cognitive computation, 7(2), pp.254-262, 2015,.
other python packages [1, 8]. [7] Koepke, [Link] Python rocks for research. Hacker Monthly, 8,2011
[8] Overland, B., Python Without Fear, Addisson Wesley Professional,
NumPy : It has advanced math functions and a rudimentary September, 2017.
[9] Sanner, M.F., Python: a programming language for software
scientific computing package. It can also be used as a multi- integration and development,. J Mol Graph Model, 17(1), pp.57-61,
dimensional container for generic data. 1999.
[10] Smedt, T.D. and Daelemans, W., , Pattern for Python. Journal of
BeautifulSoup: It may be a bit slow, BeautifulSoup has an Machine Learning Research, 13(Jun), pp.2063-2067, 2012.
excellent XML- and HTML- parsing library for beginners.[4]

Pyglet : Pyglet is an excellent choice for an object-oriented


programming interface in developing games. In fact, it also
finds use in developing other visually-rich applications for Mac
OS X, Windows, and Linux. In the 90s, when people were
bored, they resorted to playing Mine craft on their computers.
Pyglet is the engine behind Mine craft.[9,10]

251

You might also like