Python Programming
What is Programming?
Just like we use Urdu and English to communicate with each other such like that we use a
programming language like (C, C++, Pyt , php & Java) to communicate with the computer.
Programming is the way to instruct the computer to perform a various task. Programming
language is an instruction that said to the computer what to do and how to do.
What is Python?
Python is a popular programming language. It was created by Guido Van Rossum, and released
in 1991. Python is a High Level Language. Python is a simple and easy language to understand
which feels like reading simple English. This Pseudo Code nature of python makes it easy to
learn and understand by beginners.
It is used for:
Web development (Server –side)
Software development
Mathematics
System scripting
What can Python do?
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
Python has a simple syntax similar to the English Language.
Python has syntax that allows developers to write programs with fewer lines than some
other programming languages.
Python can be used on a server to create web applications.
Python can connect to database systems. It can also read and modify files.
Languages of Programming in Computer
There are generally three types of Programming languages:
1) Machine language/ Machine Code: It is the raw binary code that a computers
central processing unit (CPU) can execute directly. It is the lowest-level Programming
language, but it is not human-readable and is difficult to write, debuge and maintain.
2) Assembly language: It is a low-level Programming language that uses mnemonic
codes to represent machine language instructions. Assembly architecture and are easier to
write, debug, and maintain than machine language, but still require a good understanding
of computer architecture and hardware.
3) High-level Programming languages: These languages are designed to be easier
for humans to read, write, and understand. They are translated into machine code by a
compiler or interpreter, and are not specific to a particular computer architecture.
Examples of high-level programming languages include Python, Java, C++, and
JavaScript.
Algorithm: An Algorithm is a step-by-step procedure for solving problem or achieving a
specific task. It is a well-defined set of instructions that, when followed, produces the desired
output. Algorithms are used in various fields, including mathematics, computer science, and
engineering, to solve problems and automate processes.