Beskrivning
Target Group
Programmers, testers and others involved in projects that will involve Python as a coding language.
Prerequisites
Knowledge of one ”major” programming languages is positive but not mandatory.
Course Overview
The focus of this course is to give you as a participant a fast introduction to history and usefullness of Python as a programming language and also give you a box of tools to work with directly in your own business.
During the course we discuss and highlights the differences in between Python v2 and v3. Exercises are done using Python v3. The exercises could also be done usinge Python v2 if requested
Day 1
– Python – history/ overview
– Basic Data Types
type-checking
base types
bindings
built-in objects
sequences
– lists
– tuples
– strings
mappings
– dictionaries
assignment
– Flow Control
comments
statements
operators
conditionals
loops
range
– Sequences and Mappings
mutable vs immutable
indexing sequences
slices
IN, NOT IN
list initialisation & methods
fast enumeration
iterations over lists
tuple initialisation & methods
strings
dictionaries
iteration over dictionaries
Day 2
– Basic Input/Output
input vs Raw_input
eval
the print statement
the print function
command line arguments
reading from STDIN
reading from files
writing to files
seek, tell
basic string formatting
– Functions
def keyword
LGB scope
return values
arguments & parameters
lambda functions
map
– Exceptions
raise
assert
try / except
exception object hierachy
warnings
Day 3
– Modules & Packages
standard modules
paths
packages vs modules
__init__ files
import keyword
namespaces
user-defined modules
docstring
pydoc
– Object-oriented Programming
basic principles
classes
instances
attributes
methods
self
instance attributes
class attributes
id
type
inheritance
– Subprocess
os.system
deprecated modules
sub.call
sub.check
sub.popen
redirect streams
subprocess32
Recensioner
Det finns inga recensioner än.