Immutability of Tuples

Immutability of Tuples

Lesson Details:
June 29, 2020


I: Introduction

Introduction:

A programming language is a formal language that separates the description of algorithms from the implementation of algorithms. Programming languages support many different programming paradigms, such as imperative, functional, and object-oriented to name a few. Programming languages can be viewed as a form of human machine interface. This means that the programmer is the user and the computer is a tool to be manipulated or controlled in some manner. Programming languages are designed in order to make writing certain types of programs much easier. These specialized programs are used to create even more complex programs, which are in turn used to create even more complex programs, and so on. The process is iterative, and when it reaches a level that can be seen as a program or a computer program, the process is called software development. In this process, humans write code which computers understand and execute to do what they are told.

I: Introduction

Programming languages generally have one or more following properties:

1. Syntax: The syntax of a programming language defines the rules for writing a program in that language. It also defines how a program will be interpreted or translated into a sequence of instructions that the computer can execute.

2. Semantics: The semantics define how well-formed programs from a given programming language will behave. It also defines how well-formed data from that language will behave. Semantics sometimes refers to the meaning of a program or its parts in contrast to its form. For example, if the semantics of an algorithm is defined by English prose, then clearly there are some differences between this meaning and the actual program text.

3. Eventual results: The result of running a program on a computer often has to be some sort of change in one or more of its components, such as memory contents, disk contents, output devices, etc.

1. Learn basic python programming for beginners

It is simple and easy to learn first Python programming language for beginners for learning first python programming language easily on your PC or on your Mac computer or on your Linux computer or on your android mobile phone or on your windows mobile phone or on your iPhone mobile phone or on your iPad mobile phone or on your windows tablet laptop notebook desktop personal computer (PC) or macintosh .

The best way of learning first Python programming language for beginners is that you must first install the python programming language on your PC or on your Mac computer or on your Linux computer or on your android mobile phone or on your windows mobile phone or on your iPhone mobile phone or on your iPad mobile phone or on your windows tablet laptop notebook desktop personal computer (PC) or macintosh .

First, you must first open the website https://www.python.org/ then click Download then select the correct operating system that you are using then download then click Next then finally click Install now then click Finish .

Then you must first open the application folder then find the python programming language application folder then double click to run it then open it then go to help then click Help Contents then search for general commands then select Command Line Tools then click Command Line Tools Reference then open command prompt then type cd then type python -V then press enter key .

Then you must first type python -m pip install virtualenv then press enter key . Then you must first open folder C:UsersyourusernameAppDataLocalProgramsPythonPython36-32Scripts then type virtualenv venv then press enter key . Then you must first type cd venv then press enter key . Then you must first type source bin/activate then press enter key . Now you are inside venv . You can use pip install any python package here using pip install packagename .

Then you must first type pip install Pygame then press enter key . Now Pygame is installed . Now you can start to program with Pygame . Open Pygame IDLE by clicking its icon Pygame IDLE icon on desktop . Copy and paste following code lines into new file named testprogram1.py , save it and run it .

import sys from pygame import * print('Hello World!') sys.exit()

Save file as testprogram1.py . To run it , open cmd prompt and navigate to directory where it is saved using cd directory_where_it_is_saved_and_r unned and type python testprogram1.py and press enter key . You will see Hello World! printed on screen and command prompt will close automatically after that .

loader
Course content