5 967
Підписники
Немає даних24 години
-357 днів
-22530 днів
Архів дописів
5 967
STEP 3 − RUN EXECUTABLE INSTALLER
We downloaded the Python 3.9.1 Windows 64 bit installer. Run the installer. Make sure to select both the checkboxes at the bottom and then click Install New.
5 967
On clicking download, various available executable installers shall be visible with different operating system specifications. Choose the installer which suits your system operating system and download the instlaller. Let suppose, we select the Windows installer(64 bits).
The download size is less than 30MB.
5 967
STEP 1 − SELECT VERSION OF PYTHON TO INSTALL
Python has various versions available with differences between the syntax and working of different versions of the language. We need to choose the version which we want to use or need. There are different versions of Python 2 and Python 3 available.
STEP 2 − DOWNLOAD PYTHON EXECUTABLE INSTALLER
On the web browser, in the official site of python (www.python.org), move to the Download for Windows section. All the available versions of Python will be listed. Select the version required by you and click on Download. Let suppose, we chose the Python 3.9.1 version.
5 967
HOW TO INSTALL PYTHON ?
Python is a widely used high-level programming language. To write and execute code in python, we first need to install Python on our system.
Python is a widely used high-level programming language. To write and execute code in python, we first need to install Python on our system.
5 967
WHY LEARN PYTHON ?
There are many reasons to learn Python, including:
1. Easy to learn: Python has a simple syntax and is easy to read and write, making it an ideal language for beginners to learn programming.
2. Versatile: Python can be used for a wide range of applications, from web development and data analysis to machine learning and game development.
3. High demand: Python is one of the most popular programming languages in the world, with a growing demand for skilled Python developers in many industries, including tech, finance, healthcare, and more.
4. Large community: Python has a large and supportive community of developers and users, with many online resources and forums to help you learn and troubleshoot.
5. Extensive libraries: Python has many libraries and tools available for different applications, including data analysis, scientific computing, machine learning, and web development, making it easier to develop applications quickly and efficiently.
6. Career opportunities: Learning Python can open up many career opportunities in various fields, such as data science, software development, and machine learning.
5 967
WHAT CAN PYTHON DO ?
Python is a versatile programming language that can be used for a wide range of tasks, including:
1. Web development: Python can be used to build dynamic and interactive web applications using popular frameworks such as Django and Flask.
2. Data analysis and visualization: Python has numerous libraries for data analysis, scientific computing, and visualization, such as NumPy, pandas, and Matplotlib.
3. Machine learning and artificial intelligence: Python is one of the most popular languages for machine learning and AI development, with popular libraries such as scikit-learn, TensorFlow, and PyTorch.
4. Scripting and automation: Python's simple syntax and ease of use make it ideal for scripting and automating tasks, such as managing files and folders, sending emails, and performing system maintenance tasks.
5. Game development: Python has several game development libraries and frameworks, including Pygame and Panda3D.
6. Desktop applications: Python can be used to develop desktop applications with user interfaces using popular libraries such as Tkinter, PyQt, and wxPython.
5 967
PYTHON INTRO
Python is a high-level, interpreted programming language that was created by Guido van Rossum and released in 1991. It is a popular language for a wide range of applications, including web development, scientific computing, data analysis, artificial intelligence, and more.
Python is known for its simple syntax and readability, which make it easy for beginners to learn and write code. It has a large and active community of users and developers, who have created a vast ecosystem of libraries, frameworks, and tools that make it easy to accomplish complex tasks with relatively little code.
Python is an interpreted language, meaning that code is executed line-by-line at runtime rather than being compiled into machine code. This can make it slower than compiled languages like C or Java, but also makes it more flexible and easier to debug.
Python's standard library includes modules for a wide range of tasks, such as file input/output, networking, and regular expressions. Additionally, there are thousands of third-party modules available through the Python Package Index (PyPI) that can be installed with a simple command using Python's package manager, pip.
5 967
HIGH LEVEL LANGUAGES
The programming languages that are close to human languages (example like English languages) are called the high-level languages.
The examples of high-level languages are:
Fortran
COBOL
Basic
Pascal
C
C++
Java
The high level languages are similar to English language. The program instructions are written using English words, for example print, input etc. But each high level language has its own rule and grammar for writing program instructions. These rules are called syntax of the language.
The program written in high level language must be translated to machine code before to run it. Each high level language has its own translator program.
The high level programming languages are further divided into:
Procedural languages
Non procedural languages
Object oriented programming languages
5 967
DISADVANTAGE OF ASSEMBLY LANGUAGES
And here are some of the main disadvantages of using assembly language:
Machine dependent - each instructions of assembly language program is translated into exactly one machine language instruction, an assembly language programs are dependent on machine language.
Knowledge of hardware required - assembly languages are machine dependent, an assembly language programmer must have a good knowledge of characteristics and logical structure of his/her computer to write a good assembly language computer code.
Machine level coding - assembly language instruction is substituted for one machine language instruction. Hence like machine language programs, write assembly language program is also time consuming and difficult.
5 967
ADVANTAGE OF ASSEMBLY LANGUAGE
Here are some of the main advantages of using assembly language:
Easy to understand and use - due to the use of mnemonic instead of numeric op-codes and symbolic names for data location instead of numeric addresses, it is much easier to understand and use in contrast with machine language.
Easier to locate and correct errors - the programmers need not to keep track of storage location of the data and instruction, fewer errors are made while writing programs in assembly language and those that are made, are easier to find and correct.
Easy to modify - assembly language are easier to understand, it is easier to locate, correct and modify instruction of an assembly language program.
Efficiency of machine language - an assembly language program will be just as long as the resulting machine language program. Hence, leaving out the translation time required by the assembler, the actual execution time for an assembly language program and its equivalent machine language program.
5 967
ASSEMBLY LANGUAGE
It is another low-level programming language because the program instructions written in this language are close to machine language.
Assembly language is also known as second generation of programming language.
With assembly language, a programmer writes instructions using symbolic instruction code instead of binary codes.
Symbolic codes are meaningful abbreviations such as SUB is used for substation operation, MUL for multiply operation and so on. Therefore this language is also called the lowlevel symbolic language.
The set of program instructions written in assembly language are also called as mnemonic code.
Assembly language provides facilities for controlling the hardware.
5 967
DISADVANTAGE OF MACHINE LANGUAGE
Here are some of the main disadvantages of machine languages:
• Machine Dependent - the internal design of every computer is different from every other type of computer, machine language also differs from one computer to another. Hence, after becoming proficient in the machine language of one type of computer, if a company decides to change to another type, then its programmer will have to learn a new machine language and would have to rewrite all existing program.
• Difficult to Modify - it is difficult to correct or modify this language. Checking machine instructions to locate errors is very difficult and time consuming.
• Difficult to Program - a computer executes machine language program directly and efficiently, it is difficult to program in machine language. A machine language programming must be knowledgeable about the hardware structure of the computer.
5 967
ADVANTAGE OF MACHINE LANGUAGE
The only advantage of machine language is that the program of machine language runs very fast because no translation program is required for the CPU.
5 967
MACHINE LANGUAGE
The instructions in binary form, which can be directly understood by the computer (CPU) without translating them, is called a machine language or machine code.
Machine language is also known as first generation of programming language. Machine language is the fundamental language of the computer and the program instructions in this language is in the binary form (that is 0's and 1's).
This language is different for different computers.
It is not easy to learn the machine language.
5 967
LOW LEVEL LANGUAGES
The programming languages that are very close to machine code (0s and 1s) are called low-level programming languages.
The program instructions written in these languages are in binary form.
The examples of low-level languages are:
• Machine language
• Assembly language
5 967
TYPES OF COMPUTER PROGRAMMING LANGUAGES
There are basically two types of computer programming languages given below:
• Low Level Language
• High Level Language
