For the purpose of this course, you may think of computer memory as a long list of storage locations where each location is identified with a unique number and each location houses a value. This unique number is called a memory address. Typically, we will write memory addresses as a number with an "id" as a prefix to distinguish them from other numbers (for example,
id201is memory address 201).
Variables are a way to keep track of values stored in computer memory. A variable is a named location in computer memory. Python keeps variables in a separate list from values. A variable will contain a memory address, and that memory address contains the value. The variable then refers to the value. Python will pick the memory addresses for you.
Some Terminology which are used in Python
A value has a memory address.
A variable contains a memory address.
A variable refers to a value.
A variable points to a value.
8.5has memory address
shoe_sizecontains memory address
The value of
shoe_sizerefers to value
shoe_sizepoints to value
This course provides an introduction to computer programming intended for people with no programming experience. It covers the basics of programming in Python including elementary data types (numeric types, strings, lists, dictionaries and files), control flow, functions, objects, methods, fields and mutability. Here is a tentative list of topics.
|1||Installing Python, IDLE, mathematical expressions, variables, assignment statement, calling and defining functions, syntax and semantic errors|
|2||Strings, input/output, function reuse, function design recipe, docstrings|
|3||Booleans, import, namespaces, if statements|
|4||for loops, fancy string manipulation|
|5||while loops, lists, mutability|
|6||for loops over indices, parallel lists and strings, files|
This course lecture will be provided in the form of short duration video consisting of 2- 10 minutes and besides that you can explore lecture summary and can take advantage of forum where you can put your problem and get solution /advise from expert. This course is basically conducted by University of Toronto and is available on www. coursera.org
Lecture No- 2 of 1st week
Python as a calculator
Programs are found in many places such as on your computer, your cell phone, or on the internet. A program is a set of instructions that are run or executed. There are many programming languages and, for this course, we will learn the use the Python programming language step by step. and the below mention video will teach you how and from where to down load and install Python .
How to install