A Brief Review on the Logical and Mathematical Aspects of Programming in Python
Archishman Dash
Abstract
Computers are excellent machines that are used for various purposes, calculation is one of them. Being a machine, a computer can not perform any task voluntarily, some specific instructions must be given by the user to get the computer to do the task. Computers can not make out languages of humans, that’s why these instructions can be given to the computer using any programming language, python is amongst them.
Python is a beginner friendly and versatile programming language, it can be used to write a variety of different programs and its use is not limited to any specific type of problems. Web and mobile applications, search en- gines, games and animation software have python at their core. It’s used in artificial intelligence and machine learning to perform data manipulation, analysis and visualisation. It is a high level language, meaning its closer to natural language like English, which makes it easier to understand and thus is beginner friendly.
Mathematics has always been shrouded in mystery, the more a person tries to make things out, the more and more mysteries of mathematics are surfaced. To perform any specific task on a small size of samples seems easier but as the size of the samples increase it becomes more and more difficult to perform the task manually. However computers being excellent calculators, can perform these specific tasks flawlessly and very fast. To do this the user needs to feed the instructions to the computer using any programming lan- guage. Python being a high level and versatile language can be of great use. To do any mathematical task with a computer, first the computer needs to be fed with a set of specific instructions, that are collectively called a pro- gram. These instructions can be fed to the computer using simple functions like ’input’, logical statements such as ’if’, ’else’ and ’elif’, data structures namely lists, dictionaries and tuples, arithmetic, assignment and compari- son operators and other predefined functions in python. After running the program, the computer prints the required output in just seconds. In this project several mathematical calculations are done using the com- puter. First the set of instructions are prepared by the user by doing the mathematics for a small sample, then the set of instructions are written in the form of a program using python and fed to the computer. Finally the program is run to do the task for a large sample and the output is printed.