Numbers, Strings and Lists - Purdue University
Numbers, Strings and Lists
HORT 59000 Lecture 9
Instructor: Kranthi Varala
Variables and Objects
? Variables are the basic unit of storage for a program.
? Variables can be created and destroyed.
? At a hardware level, a variable is a reference to a location in memory.
? Programs perform operations on variables and alter or fill in their values.
? Objects are higher level constructs that include one or more variables and the set of operations that work on these variables.
? An object can therefore be considered a more complex variable.
Classes vs. Objects
? Every Object belongs to a certain class. ? Classes are abstract descriptions of the
structure and functions of an object. ? Objects are created when an instance of the
class is created by the program. ? For example, "Fruit" is a class while an "Apple"
is an object.
Core data types
? Numbers ? Strings ? Lists ? Dictionaries ? Tuples ? Files ? Sets
Reserved keywords
? A list of keywords are built in to Python and should be avoided as variable names.
? List of builtins can be retrieved using the `__builtin__' module in Python2 OR `builtins' module in Python 3.
Python 2
Python 3
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- ppyytthhoonn ssttrriinnggss tutorialspoint
- strings in python cs department
- strings ncert
- strings in python marquette university
- numbers strings and lists purdue university
- python strings methods
- numbers strings and lists
- sequences strings lists and files
- lists and strings calvin university
- strings lists sets dictionaries and files 4 1 strings
Related searches
- new york lottery numbers midday and evening
- polio numbers with and without the vaccine
- owl purdue edu research and citation mla
- powershell concatenate strings and variable
- replacement bow strings and cables
- bear bow strings and cables
- lucky numbers today and tomorrow
- purdue university plagiarism checker
- purdue university salaries
- matlab join strings and variables
- complex numbers multiplication and division calculator
- evening numbers 3 and 4 ny