Python for Non-Programmers

מק"ט: #40829 | משך קורס: 40 שעות אק'
| מספר מפגשים: 5

Python is one of the largest growing programming languages in the world. While it is one of the easier languages to learn, it is still extremely powerful, and its applications are endles, from financial plot and data analysis, web development, machine learning and so on.
This training Provides an in-depth, hands-on introductions to the Python Programming language. Throughout this course you will understand the language fundamentals and core concepts, as well as how to apply it to common programming tasks.

לפרטים נוספים, מלא את פרטיך או התקשר 03-7100673
*שדות חובה
PDF version

מטרות

  • Use the Python interactive interpreter to write and run Python 2 programs
  • Understand Python  language elements
  • Exploit the rich library of Python libraries and modules
  • Recognize simple and complex variable types and select appropriately
  • Use Python  operators and built-in functions
  • Understand procedural control flow in Python 
  • Program file input/output, including persistent data objects
  • Create well organized and efficient code using functions and modules
  • Use Object Oriented programming techniques in Python 
  • Build robust applications with error trapping and reporting

קהל יעד

This course is suitable to those who are new to programming, and wish to learn it through Python

תנאי קדם

  • No previous knowledge of Python is assumed, a
  • Experience of another scripting language, such as Perl or PHP, will be an advantage

נושאים

Chapter 1: Introduction to Python

  • What is Python ?
  • Why Python?
  • Performance downsides
  • The community
  • Running Python interactively
  • Python scripts
  • Python help
  • Anatomy of a Python script
  • Modules
  • Functions and built-ins

 

Chapter 2: Fundamental Variables

  • Python is Object Oriented
  • Python variables
  • Variable names
  • Type specific methods
  • Operators and type
  • Augmented assignments
  • Python types
  • Numeric types
  • Switching types
  • Python lists introduced
  • Python tuples introduced
  • Python dictionaries introduced

 

Chapter 3: Flow Control

  • Python conditionals
  • Indentation
  • What is truth?
  • Boolean and logical operators
  • Chained comparisons
  • Sequence and collection tests
  • Object types
  • A note on Exception Handling
  • While loops
  • Loop control statements
  • For loops
  • enumerate
  • Counting ‘for’ loops
  • Zipping through multiple lists
  • Conditional expressions
  • Unconditional flow control


Chapter 4: String Handling

  • The print function
  • Cooking strings
  • String concatenation
  • “Quotes”
  • String methods
  • String tests
  • String formatting
  • Other string formatting aids
  • Slicing a string
  • String methods – split and join

 

Chapter 5: Collections

  • Python types – reminder
  • Useful tuple operations
  • Python lists
  • Tuple & list slicing
  • Adding items to a list
  • Removing items by position
  • Removing list items by content
  • Sorting
  • Miscellaneous list methods
  • List methods
  • Sets
  • Exploiting sets
  • Set operators
  • Python dictionaries
  • Dictionary values
  • Removing items from a dictionary
  • Dictionary methods

 

Chapter 6: Data Storage and File Handling

  • New file objects
  • Reading files into Python
  • Reading tricks
  • Filter programs – fileinput module
  • Writing to files from Python
  • Standard streams
  • More tricks
  • Random access
  • Python Pickle Persistence
  • Pickle Protocols
  • Build some shelves
  • Compression
  • Database interface overview

 

Chapter 7: Functions

  • Python functions
  • Function parameters
  • Assigning default values to parameters
  • Variadic functions
  • Keyword parameters
  • Returning objects from a function
  • Variables in functions
  • Nested functions
  • Function documentation
  • Lamdba functions
  • Lambda as a sort key
  • Lambda in re.sub

 

Chapter 8: Advanced Collections

  • Advanced list functions – filter and map
  • List comprehensions
  • Lazy lists
  • Generators
  • Generator objects and next – coroutines
  • List comprehensions as generators
  • Copying collections – problem
  • Copying collections – slice solution?
  • Copying collections – deepcopy solution

 

Chapter 9: Modules and Packages

  • What are modules?
  • What are packages?
  • Multiple source files
  • How does Python find a module?
  • Importing a module
  • Importing names
  • Directories as packages
  • Writing a module
  • Module documentation
  • Testing a module
  • Python debugger
  • Python profiler

 

Chapter 10: Introduction to Classes and OOP

  • Object-Oriented Programming
  • Using objects
  • A simple class

Chapter 11: Error Handling and Exceptions

  • Writing to stderr
  • Controlling warnings
  • Exception handling
  • Exception syntax
  • Multiple exceptions
  • Exception arguments
  • The finally block
  • Order of execution
  • The Python exception hierarchy
  • A common mistake
  • The raise statement
  • Raising our own Exceptions
  • assert
תגיות