Introduction My hand notes + Book (continuacion) Flashcards
who was Guido Van Rossum?
A dutch programmer and creator of Python
Python Disadvantages
It’s not very fast (but often better than PERL)
* Relatively inefficient for number crunching
* Can have high memory overhead
Python is CASE SENSITIVE
Compilation Process
The code a programmer creates is called the source code
Written in Python
– Saved as a .py file
– Must have the same name as the class
what is an IDE?
An IDE is an Integrated Development Environment
While not strictly required IDEs ease and facilitate
the creation and management of larger programs.
IDLE is the built-in IDE
What is Programming?
Program
–Sequence of basic operations executed in succession
Anatomy of a Computer
What is a computer and their tasks?
A computer is a machine that can perform certain tasks:
–Stores data
–Interacts with devices
–Executes programs
What is a CPU and what is it made of?
Central Processing Unit (CPU) - Heart of the computer
–Made of a chip (AMD, Intel, etc), millions of transistors
–Executes instructions given by a program
What is the anatomy of a computer and their explain their 3 types
Storage – where data is kept
–3 types – primary, secondary, removable
Anatomy of a computer
Computers communicate through a network
•Peripheral devices allow interaction with humans
–Speakers, screen, printer, scanner
•RAM, Disks, peripherals connected to CPU via the bus
Where is a program stored when it is not currently running?
Hard drive
Which part of the computer carries out arithmetic operations, such as addition and multiplication?
CPU
What is machine code?
The most basic level of instructions
–Everything is represented with numbers (read in binary)
This is the only language the CPU knows
What’s the problem w/ CPU
CPUs perform very primitive operations only Add, subtract, load from memory
–Leads to coding of several hundred lines to perform one simple operation
Each CPU uses a different set of instructions
–Each CPU translates different digits to mean different things