O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Java to Python in 100 Easy Steps - The Fastest Way to Learn Python for Experienced Java Programmers

Video Description

The fastest way to learn Python for experienced Java programmers

About This Video

  • How to develop object-oriented programs with Python.
  • How to use a combination of Python Shell and PyCharm as an IDE to illustrate Python coding exercises.

In Detail

This course will help you learn Python, one of the most popular programming languages. Python offers both object oriented and structural programming features. We take a hands-on approach using a combination of Python Shell and PyCharm as an IDE to illustrate more than 100 Python coding exercises, puzzles, and code examples. We convert a number of Java examples to Python. You will learn about implementing Object Oriented Programming concepts in Python, inheritance, abstract classes, and constructors; you will also get a better understanding of a wide variety of Python data structures: lists, sets, dictionaries, and tuples.

Table of Contents

  1. Chapter 1 : Introduction
    1. Introduction-to-the-Course 00:02:41
    2. Introduction-to-the-Course-Guide 00:01:26
    3. Installing Python 3 and Launch Python Shell 00:03:50
    4. Installing PyCharm 00:01:42
  2. Chapter 2 : Getting Started With Python
    1. Hello World in Python 00:03:06
    2. Hello World in Python - Making Sense 00:05:07
    3. Importing-Java-Code-into-Eclipse 00:02:36
    4. Your First Python Method 00:05:15
    5. Your First Python Method - A Few Tips 00:05:56
    6. Passing Parameters and Your First Python Loop 00:03:58
    7. Exercises with Python Methods and For Loop 00:04:43
    8. Python For Loop – Puzzles 00:03:25
    9. Writing Java Example in Python - Part 1 00:04:12
    10. Writing Java Example in Python - Part 2 00:03:46
    11. Returning values from methods 00:03:06
    12. Introduction to Basic Data Types in Python 00:03:57
    13. Python is Strongly Typed and Dynamic Language 00:03:55
    14. Numberic Operators and Functions in Python 00:06:11
    15. Boolean Operators in Python 00:04:21
    16. Python Text Data Type – String 00:08:47
    17. Data Type Conversion – Puzzles 00:04:38
    18. Strings are immutable 00:06:15
    19. There is no separate Character data type 00:03:27
    20. String module 00:04:37
    21. Exercise - is vowel, print lower case and upper case characters 00:07:06
    22. String - Exercises and Puzzles 00:05:39
  3. Chapter 3 : Conditionals and Loops
    1. Overview of Conditionals and Loops in Python 00:06:49
    2. Shortcut If Statement 00:02:25
    3. If Else and Elif in Python 00:03:24
    4. If Elif Exercise - Java to Python 00:04:53
    5. Conditionals - Java vs Python 00:06:39
    6. For Loop - A Review 00:03:15
    7. For Loop - A few examples 00:06:19
    8. While Loop in Python - Introduction and Exercise 00:03:57
    9. Implementing Do While with While 00:06:10
  4. Chapter 4 : Object Oriented Programming with Python
    1. OOPS in Python - An overview 00:03:35
    2. Your First Python Class - Empty Class and Instances 00:04:52
    3. Instance Variables and Constructors in Python 00:07:09
    4. Exercise - Part 1 - Add an attribute 00:03:15
    5. Exercise - Part 2 - Create a new Class 00:02:09
    6. Constructors in Python - A few tips 00:09:04
    7. Adding instance methods 00:03:42
    8. OOPS Under the Hood 00:07:47
    9. Inheritance in Python 00:06:50
    10. Multiple Inheritance in Python 00:02:57
    11. Every class extends object 00:02:23
    12. Creating an Abstract Class 00:08:43
    13. Representing an Interface using Abstract Class 00:06:46
    14. Polymorphism and Duck Typing 00:06:31
    15. Static Variables at Class Level 00:05:53
    16. Static Methods in Python 00:03:26
  5. Chapter 5 : Python Data Structures
    1. Introduction to Data Structures in Python 00:01:43
    2. Operations on List Data Structure 00:03:12
    3. Puzzles with Strings Lists 00:06:46
    4. List Slicing 00:06:05
    5. List Sorting, Looping and Reversing 00:07:18
    6. List as a Stack and Queue 00:03:50
    7. List with a custom class - Country and representation 00:04:48
    8. List with a custom class - Part 2 - sorting, max and min 00:04:58
    9. List Comprehension 00:05:20
    10. Introduction to Set 00:05:40
    11. Introduction to Dictionary 00:04:59
    12. Puzzles with Data Structures 00:05:47
    13. Tuples 00:06:59
  6. Chapter 6 : Exception Handling in Python
    1. Part 1 - Overview of Exception Handling 00:02:17
    2. Part 2 - Exceptions in Python 00:04:10
    3. Exception Handling with try except else finally block 00:05:05
    4. Throwing Custom Exceptions in Python 00:06:31
  7. Chapter 7 : Functional Programming
    1. Functions are First Class Citizens in Python 00:05:26
    2. Introduction to Lambdas 00:05:02
    3. Filtering a list using filter method 00:08:01
    4. Mapping a List with map method 00:06:28
    5. Reduce a List to one result value 00:05:41
    6. Combining map, filter and reduce - Example 1 00:05:03
    7. Combining map, filter and reduce - Example 2 00:04:58
  8. Chapter 8 : Built-In Python Modules
    1. Tip 1 - Using Predefined Python Modules 00:04:01
    2. Tip 2 - Math Module and Decimal Class 00:04:33
    3. Tip 3 - Statistics Module - find mean and median 00:02:30
    4. Tip 4 - Collections Module - deque for Queue and Stack 00:02:52
    5. Tip 5 - Date Module 00:06:07
  9. Chapter 9 : Python Tips
    1. Tip 1 - Loop - Getting Index Element 00:02:52
    2. Tip 2 - Enum in Python 00:03:35
    3. Tip 3 - Methods and Arguments – Basics 00:07:15
    4. Tip 4 - Methods and Arguments - Keyword Arguments 00:04:50
    5. Tip 5 - Methods and Arguments - Unpacking Lists and Dictionaries 00:03:45
    6. Tip 6 - PEP8 - Python Style Guide 00:04:02
    7. Tip 7 - PEP20 - Zen of Python 00:03:21
    8. Tip 8 - Creating Custom Modules and Using Them 00:06:34
    9. Tip 9 – None 00:05:53
    10. Tip 10 - repr vs str 00:02:57
    11. Tip 11 - No Switch in Python 00:02:28
    12. Tip 12 - Generating Random Values in Python 00:04:00
    13. Tip 13 - Returning Multiple Values using Tuples 00:01:53
    14. Tip 14 - Implementing Data Classes with namedtuple 00:02:51
    15. Tip 15 - Getters and Setters is Python Anti Pattern 00:05:20
    16. Tip 16 - Implementing Property Decorators 00:06:10
    17. Tip 17 - Operator Overloading - Adding and subtracting amounts 00:05:28
    18. Tip 18 - Operator Overloading - Other Operators 00:02:23
    19. Tip 19 - Comparing equality of objects 00:05:31
    20. Tip 20 - Using greater than and less than to compare objects 00:04:08
    21. Tip 21 - Total Ordering - Simplifying object comparison 00:04:02
    22. Congratulations 00:00:59