Example code of Modules Part - 1

Example code of Modules Part - 1

Lesson Details:
June 29, 2020


I: Introduction

1. The term programming language is one of the most used terms in computer science. A programming language is a tool that enables people to tell computers what to do. Programming languages are used to create the computer programs, which are then executed by the computer to produce desired results.

2. The definition of programming language is not very clear. It depends on who you ask, but there are several properties that are commonly agreed upon.

3. There are many different programming languages in use today. They can be divided into two general categories: low-level languages and high-level languages.

4. Low-level languages are generally machine-dependent (or “platform dependent”). This means that the instructions that they use to control the computer are specific to the type of computer on which it is run. Low-level languages are also referred to as “close to the hardware” or “assembly language”.

5. High-level languages are generally independent of the actual hardware of the computer on which they are run. They are also referred to as “close to the problem” or “programming languages”.

6. Python is a high-level language because it is independent of the hardware on which it is run. However, it is not quite as close to the problem as other high-level languages, since it was originally intended for scripting rather than large projects. That said, Python code can be compiled down to assembly code, so it is still fairly close to the hardware.

7. There are various ways to classify programming languages based on their level of abstraction. One way is to look at how much work the computer has to do in order to execute a program written in a particular language. In a low-level language, a lot of work is done by the computer, while in a high-level language, a lot of work is done by the programmer. Languages can be placed along a continuum from low-level to high-level, depending on how much work is done by the computer and how much is done by the programmer.

8. In general, high-level languages provide more structure and automation for the programmer, while low-level languages require more from the programmer but provide more control over the execution environment. There are advantages and disadvantages to each approach, but most modern programming environments include a mix of both low-level and high-level languages.

9. One important factor in determining how abstract a language is is its level of detail in describing operations performed on data structures. Assembly language and C have few built-in data types and perform operations on these data types that are very detailed as opposed to Pascal or FORTRAN that have many built-in data types and only general statements about these data types as opposed to assembly language and C.

II: Body

10. In this section we will learn some basic python programming concepts with examples and also we will learn some python programs regarding modules and classes and their usage like program using modules and program using class and finally we will see how we can use them together in our programs..

loader
Course content