10:00am-10:00pm (Fri Off)

061-6511828, 061-6223080 / 0333-6110619

In "1000 Python Examples," Gabor Szabo offers a comprehensive compendium of Python code snippets designed to cater to learners and seasoned programmers alike. With an exhaustive collection of practical examples, Szabo meticulously curates a resource that serves as a roadmap for mastering Python programming. Each example is crafted to elucidate fundamental concepts, advanced techniques, and common programming challenges, providing readers with a hands-on approach to understanding Python's versatility and power.

The book begins with elementary examples that introduce Python syntax, data types, and control structures, making it accessible to beginners. As readers progress, they encounter progressively complex examples that delve into topics such as object-oriented programming, file handling, and web development. Szabo's lucid explanations and structured progression ensure that learners can navigate seamlessly through the material, gaining confidence with each example tackled. Whether readers seek to reinforce their understanding of Python fundamentals or explore niche topics like data visualization and machine learning, "1000 Python Examples" equips them with the tools necessary to excel in Python development.

Key Points: 


1. Comprehensive Collection: "1000 Python Examples" encompasses a wide array of Python programming scenarios, ranging from basic concepts to advanced applications, providing readers with a holistic learning experience.
2. Hands-on Learning: Through practical examples and clear explanations, readers can actively engage with Python code, reinforcing their understanding of core concepts and programming best practices.
3. Progressive Difficulty: The examples in the book are structured in a manner that facilitates gradual skill development, ensuring that learners can comfortably transition from simple to complex topics at their own pace.
4. Versatile Resource: Whether readers are beginners seeking a solid foundation in Python or experienced programmers looking to expand their skill set, "1000 Python Examples" caters to diverse learning needs, making it an indispensable resource in the Python programming landscape.


                                                     ════ ⋆★⋆ ═══

Writer          ✤        Gabor Szabo


Table of Contents

  • Fixtures and Mocking in Python
    • How do you test Moon-landing?
    • How do you test a system …
    • Plan
    • About me
    • Goal
    • Fixtures
    • Fixtuers in Pytest
    • Traditional xUnit fixtures
    • Dependency Injection
    • Temporary directory - tmpdir
    • Capture STDOUT and STDERR - capsys
    • Home-made fixture
    • Home-made fixture - conftest
    • Home-made fixture with tempdir
    • Home-made fixture with yield
    • Fixture Autouse
    • Fixture Autouse with yield
    • Fixture for MongoDB
    • Test Doubles
    • Test Doubles explained
    • Verify behavior or state?
    • What is Mocking and Monkey Patching?
    • Situations
    • Unit testing vs. Integration testing
    • Experiment with mocking in various situations
    • Examples are simple
    • Hard coded path
    • Manually Patching attribute
    • Monkey Patching attribute
    • Monkey Patching functions
    • Monkey Patching dictionary items
    • Mocking a whole class
    • Mocking input/output
    • Mocking input/output
    • Mocking random numbers
    • Exercises
    • Work in pairs
    • Exercise: test login expiration
    • Solution: test login expiration
    • Exercise: Record e-mail sending
    • Solution: Record e-mail sending
    • Exercise: Fixture database
    • Exercise: One Dimentsional space-fight
    • Exercise: web client
    • Exercise: Open WeatherMap client
    • Exercise: Mocking A Bank
    • Testing the whole application
    • Resources
    • Retrospective
    • Job searching help
    • Solutions - game
    • Solutions - Mocking the database access
  • First steps
    • What is Python?
    • What is needed to write a program?
    • The source (code) of Python
    • Python 2 vs. Python 3
    • Installation
    • Installation on Linux
    • Installation on Apple Mac OSX
    • Installation on MS Windows
    • Editors, IDEs
    • Documentation
    • Program types
    • Python on the command line
    • First script - hello world
    • Examples
    • Comments
    • Variables
    • Exercise: Hello world
    • What is programming?
    • What are the programming languages
    • A written human language
    • A programming language
    • Words and punctuation matter!
    • Literals, Value Types in Python
    • Floating point limitation
    • Value Types in Numpy
    • Rectangle (numerical operations)
    • Multiply string
    • Add numbers
    • Add strings
    • Exercise: Calculations
    • Solution: Calculations
  • Second steps
    • Modules
    • A main function
    • The main function - called
    • Indentation
    • Conditional main
    • Input - Output I/O
    • print in Python 2
    • print in Python 3
    • print in Python 2 as if it was Python 3
    • Exception: SyntaxError: Missing parentheses in call
    • Prompting for user input in Python 2
    • Prompting for user input in Python 3
    • Python2 input or raw_input?
    • Prompting both Python 2 and Python 3
    • Add numbers entered by the user (oups)
    • Add numbers entered by the user (fixed)
    • How can I check if a string can be converted to a number?
    • Converting string to int
    • Converting float to int
    • Conditionals: if
    • Conditionals: if - else
    • Divide by 0
    • Conditionals: if - else (other example)
    • Conditionals: else if
    • Conditionals: elif
    • Ternary operator (Conditional Operator)
    • Case or Switch in Python
    • Exercise: Rectangle
    • Exercise: Calculator
    • Exercise: Age limit
    • Exercise: What is this language?
    • Exercise: Standard Input
    • Solution: Area of rectangle
    • Solution: Calculator
    • Solution: Calculator eval
    • Solution: Age limit
    • Solution: What is this language?
    • Command line arguments
    • Command line arguments - len
    • Command line arguments - exit
    • Exercise: Rectangle (argv)
    • Exercise: Calculator (argv)
    • Solution: Area of rectangle (argv)
    • Solution: Calculator (argv)
    • Solution: Calculator eval
    • Compilation vs. Interpretation
    • Is Python compiled or interpreted?
    • Flake8 checking
    • Pylint checking
  • Numbers

Recently Viewed Products