Neli Doxpdffinal
Neli Doxpdffinal
Abstract— In this paper we first introduce you to what is C++, Perl, and Java. There are also low-level languages,
Python and the application of Python programming like basic sometimes referred to as “machine languages” or “assembly
datatypes, naming rules, changing shared lists, understanding languages.” Loosely speaking, computers can only run
reference semantics, sequence types, operation and more. We programs written in low level languages. So programs
also introduce the benefits of python. Python is a powerful
high-level, object-oriented programming language created by
written in a high-level language have to be processed before
Guido van Rossum during 1985-1990. Python is also called as they can run. This extra processing takes some time, which
Interpreted Language. Python is relatively simple, so it's easy is a small disadvantage of high-level languages.
to learn since it requires a unique syntax that focuses on The advantages are enormous. First, it is much
readability. Python code much easier than other languages. easier to program in a high-level language. Programs written
in a high-level language take less time to write, they are
Keywords— programming, semantics, sequence, syntax, shorter and easier to read, and they are more likely to be
data-types, python correct. Second, high-level languages are portable, meaning
that they can run on different kinds of computers with few
or no modifications. Low-level programs can run on only
I. INTRODUCTION one kind of computer and have to be rewritten to run on
Python is developed by Guido van Rossum. Guido another.
van Rossum started implementing Python in 1989. Python is Python is an easy to learn, powerful programming
a very simple programming language so even if you are new language. It has efficient high-level data structures and a
to programming, you can learn python without facing any simple but effective approach to object-oriented
issues. Python is an interpreted, object- oriented, high-level programming. Python’s elegant syntax and dynamic typing,
programming language with dynamics semantics. Python is together with its interpreted nature, make it an ideal
dynamically typed and garbage-collected. It supports language for scripting and rapid application development in
multiple programming paradigms, including procedural, many areas on most platforms. The Python interpreter and
object-oriented, and functional programming. Python is the extensive standard library are freely available in source
often described as a "batteries included" language due to its or binary form for all major platforms from the Python Web
comprehensive standard library. Python is relatively simple, site, https://www.python.org/, and may be freely distributed.
so it's easy to learn since it requires a unique syntax that The same site also contains distributions of and pointers to
focuses on readability. Python code much easier than other many free third party Python modules, programs and tools,
languages. and additional documentation. The Python interpreter is
There are many benefits of learning Python, easily extended with new functions and data types
especially as your first language, which we will discuss. It is implemented in C or C++ (or other languages callable from
a language that is remarkably easy to learn, and it can be C). Python is also suitable as an extension language for
used as a stepping stone into other programming languages customizable applications.
and frameworks. If you're an absolute beginner and this is Python is simple to use, but it is a real
your first time working with any type of coding language, programming language, offering much more structure and
that's something you definitely want. Python can be used to support for large programs than shell scripts or batch files
develop prototypes, and quickly because it is so easy to can offer. On the other hand, Python also offers much more
work with and read. Most automation, data mining, and big error checking than C, and, being a very-high-level
data platforms rely on Python. This is because it is the ideal language, it has high-level data types built in, such as
language to work with for general purpose tasks. Python is flexible arrays and dictionaries. Because of its more general
easy to read, even if you're not a skilled programmer. data types Python is applicable to a much larger problem
Anyone can begin working with the language, all it takes is domain than Awk or even Perl, yet many things are at least
a bit of patience and a lot of practice. Plus, this makes it an as easy in Python as in those languages. Python allows you
ideal candidate for use among multi-programmer and large to split your program into modules that can be reused in
development teams. other Python programs. It comes with a large collection of
standard modules that you can use as the basis of your
programs — or as examples to start learning to program in
II. RELATED LITERATURE Python. Some of these modules provide things like file I/O,
The programming language you will learn is system calls, sockets, and even interfaces to graphical user
Python. Python is an example of a high-level language; interface toolkits like Tk. Python is an interpreted language,
other high-level languages you might have heard of are C, which can save you considerable time during program
development because no compilation and linking is Linux, Unix etc. This makes it a cross platform
necessary. The interpreter can be used interactively, which and portable language.
makes it easy to experiment with features of the language, to Python is a open source programming
write throw-away programs, or to test functions during language.
bottom-up program development. It is also a handy desk Python comes with a large standard library that
calculator. Python enables programs to be written compactly has some handy codes and functions which we
and readably. Programs written in Python are typically can use while writing code in Python.
much shorter than equivalent C, C++, or Java programs, for Python is free to download and use. This
several reasons: means you can download it for free and use it
• The high-level data types allow you to express in your application.
complex operations in a single statement; Python supports automatic memory
• Statement grouping is done by indentation instead management which means the memory is
of beginning and ending brackets; cleared and freed automatically. You do not
• No variable or argument declarations are have to bother clearing the memory.
necessary. Compare to Mathlab, Mathlab files have “.m”
Python is classified as a scripting language. estension whereas Python have “.py” file.
Generally speaking, this just means that it’s not compiled to
create the machine-readable code and that the code is “tied- Python has built-in list and dictionary data
into” another program as a control routine. Compiled structures which can be used to construct fast
languages, such as C++, require the programmer to run the runtime data structures.
source code through a compiler before the software is can be One of the most powerful features of a
used by a computer. Depending on the program’s size, the programming language is the ability to
compilation process can take minutes to hours. Using manipulate variables. A variable is a name that
Python as a control routine means Python can act as a refers to a value.
“glue” between different programs. For example, Python is
often used as the scripting language for video games; while Automatic garbage collection.
the heavy-duty work is performed by pre-compiled modules, Binding a variable in Python means setting a
Python can act in a call/response fashion, such as taking name to hold a reference to some object
controller input and passing it to the appropriate module. If you try to access a name before it’s been
Python is also considered a high-level language, meaning it properly created (by placing it on the left side
takes care of a lot of the grunt work involved in of an assignment), you’ll get an error.
programming. For example, Python has a built-in garbage Names are case sensitive and cannot start with
collector so you, as a programmer, don’t really need to a number. They can contain letters, numbers,
worry about memory management and memory leaks, a and underscores.
common occurrence when using older languages such as C. If you use parentheses (and commas) it is
called Tuples ; if you use square brackets (and
III. METHODOLOGY commas)it is called list; and it is Strings if
your using quotes (“, ‘, or “““).
Whitespace is meaningful in Python:
As we get the basic understanding of the function and especially indentation and placement of
method both, lt’s a highlight the key differences between
newlines.
them.
A reference is deleted via garbage collection
1. Unlike a function, method are called on an object. after any names bound to it have passed out of
Like in our example about we call our method scope.
whereas the function sum is called without any To make a copy of an entire sequence, you can
object. Also, because the method is called on an use [:].
object, it can access that data within it.
2. Unlike method which can alter the objects state, A. Program
python function doesn’t do this and normally
operates on it. a) Activity (Basic Python Syntax)
#The + Operator
K_Tuple= (11, 22, 33) + (44, 55, 66) #+ Operation of
Tuple
K_List= [14, 24, 37] + [49, 56, 68] #+ Operation of List
K_String= 'Happy' + ' ' + 'Birthday' #+ Operation of
String
#The * Operator
L_Tuple= (10,4,17)*2 #* Operation of
Tuple
L_List= [14,27,4]*4 # * Operation of List
L_String= 'Good Grade '*3 #* Operation of
Strings
#Mutability
M_List= [21,27,4.14,18, 'Neli',17] V. CONCLUSION
M_List2= M_List[1]= 35
In this paper concluded that Python code much easier
#Operations on lists Only than other languages and it is quite easy to learn and
N_List= [27,17,21,11,20] #Append takes a understand. The Python programming language is not
singleton as an argument fulfilling all the requirements of teachers, but compared to
N_List.append('John Carlo') #Sample of Append other languages it satisfies the most of them. Therefore in
the course of my paper, I will try to test the codes which is
shown as an example in the PDF. The main emphasis of
Python is readable code and enhancing programmer
productivity. Python is one of the most powerful features of
a programming language and it has the ability to manipulate
variables. A variable is a name that refers to a value. There
are many high-level languages. Python is one of the easiest
languages to learn and use, while at the same time being
very powerful. It is one of the most used languages by
highly productive professional programmers. Also Python is
a free language. If you have your own computer, you can
download it from the Internet easily. Python is very useful,
we can do many things using it like: it can be used on a
server to create web applications, can be used for rapid
prototyping, or for production-ready software development,
and many more.
REFERENCES
[1] https://beginnersbook.com/2018/01/introduction-to-python-
programming/
[2] https://www.pythonforbeginners.com/learn-python/what-is-python/
[3] https://www.pythonforbeginners.com/learn-python/benefits-of-
learning-python/
[4] John Paul Mueller, “Embracing the Four Python Programming
Styles,” Aug 27th, 2018.
[5] Cody Jackson, “Learning to Program Using Python”, 2009-2011,
pp.10-11.
[6] https://pythoninstitute.org/what-is-python/
[7] A. Dowey, “Think Python”, 2012, pp. 1