Home
Videos uploaded by user “Real Python”
What's the meaning of underscores (_ & __) in Python variable names?
 
06:01
https://dbader.org/python-tricks ► Make those underscores count and write clean and beautiful Python, by example Leading underscores in Python variable names (for example _foo and __foo) protect developers from naming conflicts. In this video you'll learn how to work with these Pythonic coding conventions and why they exist. A single underscore in front of a variable name (prefix) is a hint that a variable is meant for internal use only. A double underscore prefix causes the Python interpreter to rewrite the variable name in order to avoid naming conflicts in subclasses. Double underscores are also called "dunders" in Python. Watch the video tutorial to see the details of how double underscore name mangling works and how it affects your own Python classes. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 114772 Real Python
What Python skills are the most relevant in the industry today?
 
04:41
https://dbader.org/python-mastery ► Free course on getting the right mindset for building a successful Python career What Python skills are the most relevant in the industry today? What do you need to know to get a job as a Python developer? In this video I'll discuss a list of things that I believe to be the fundamental skills and experience that any professional Python developer should have. This includes things like knowing the Python syntax, how to manage dependencies, working with code quality tools, version control systems, and so on. After data I'll discuss different specializations that are popular in the Python job market today. This includes data science, web development, as well as machine learning and AI development. Got a question? Leave a comment with your Python or general software dev question on this video and I'll try to cover it question in one of the next "#PythonQ&A" videos. Full playlist here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 13243 Real Python
Optional Arguments in Python With *args and **kwargs
 
10:44
https://dbader.org/python-tricks ► Discover Python's advanced features & how to use them to write cleaner and more maintainable code An overview on Python's *args and **kwargs feature for writing functions with a variable number of arguments and/or making some parameters that a function accepts optional. In this tutorial I also demonstrate real world applications and use cases for optional parameters. For example, a design pattern you can use to extend the behavior of a parent class without having to replicate the full signature of its constructor in the child class. In summary, this is how optional function and method parameters work in Python: *args and **kwargs let you write functions with a variable number of arguments in Python. *args collects extra positional arguments as a tuple. **kwargs collects the extra keyword arguments as a dictionary. The actual syntax is * and **. Calling them args and kwargs is just a convention (one you should stick to). To learn how to use the full potential of Python check out "Python Tricks: The Book" at the link below. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery PYTHON TRICKS: THE BOOK https://dbader.org/pytricks-book SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 34161 Real Python
Will Python survive the NodeJS / JavaScript hype?
 
04:57
https://dbader.org/python-tricks ► Write better Python code, by example How is Python going to fare against JavaScript and NodeJS? Is NodeJS a danger to Python back-end development? How will this affect Python careers all around? In this video I'll discuss the strengths of NodeJS and how in the past Python didn't have a strong asynchronous programming story. I believe this has changed over the last 2-3 years and in this video I'll lay out some of my thoughts on how this will affect the development industry and the future of Python. Got a question you'd like me to discuss? Leave a comment with your Python or general software dev question on this video and I'll try to cover it question in one of the next "#PythonQ&A" videos. Full playlist here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 20114 Real Python
Python Context Managers and the "with" Statement (__enter__ & __exit__)
 
12:40
https://dbader.org/python-tricks ► Discover Python's advanced features and how to use them to your advantage The "with" statement in Python is regarded as an obscure feature by some. But when you peek behind the scenes of the underlying Context Manager protocol you'll see there's little "magic" involved. So what's the `with` statement good for? It helps simplify some common resource management patterns by abstracting their functionality and allowing them to be factored out and reused. In turn this helps you write more expressive code and makes it easier to avoid resource leaks in your programs. In this Python programming tutorial you'll see how you can add support for the "with" statement to your own objects either by implementing the "__enter__" and "__exit__" protocol or by using the contextlib @contextmanager decorator. You can use the approach demonstrated in the video to add support for the "open as" design pattern in your own Python classes to follow a more Pythonic style of OOP. To get more Python Tricks and to discover the full potential of Python check out "Python Tricks: The Book" at the link below. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery PYTHON TRICKS: THE BOOK https://dbader.org/pytricks-book SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 19077 Real Python
Make your Python Code More Readable with Custom Exceptions
 
05:27
How to make your Python code more readable with custom exception classes. In this screencast I'll walk you through a simple code example that demonstrates how you can use custom exception classes in your Python code to make it easier to understand, easier to debug, and more maintainable. ► Weekly Tips for Python Developers: https://dbader.org/newsletter
Views: 7255 Real Python
Method Types in Python OOP: @classmethod, @staticmethod, and Instance Methods
 
14:54
https://dbader.org/python-tricks ► Master OOP techniques in Python with bite-sized code examples What's the difference between @classmethod, @staticmethod, and "plain/regular" instance methods in Python? You'll know the answer after watching this Python video tutorial: Regular (instance) methods need a class instance and can access the instance through `self`. They can read and modify an objects state freely. Class methods, marked with the @classmethod decorator, don't need a class instance. They can't access the instance (self) but they have access to the class itself via `cls`. Static methods, marked with the @staticmethod decorator, don't have access to `cls` or `self`. They work like regular functions but belong to the class's namespace. In this video tutorial I go over the differences between these different kinds of methods in Python. I also explain when to use each with a simple example so you can improve your object-oriented programming (OOP) skills in Python. To learn how to use the full potential of Python check out "Python Tricks: The Book" at the link below. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery PYTHON TRICKS: THE BOOK https://dbader.org/pytricks-book SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 33784 Real Python
Coding Habits: How to make coding part of your daily life 💻
 
04:18
https://dbader.org/python-tricks ► Get a short & sweet Python Trick every couple of days If you want to become a great programmer you have to, well, program. In this video I discuss a question I got from a fledgling Pythonista about building a daily coding habit. In this video I'll talk about some strategies for finding coding challenges (check out the Project Euler website) and setting up coding side projects for yourself that you can use to improve your Python skills. It's all about keeping your motivation high. And whether you can stay motivated best by solving coding puzzles, working on side projects, or contributing to open-source projects that's up to your personal preference. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 8905 Real Python
Python Function Argument Unpacking Tutorial (* and ** Operators)
 
09:42
https://dbader.org/python-tricks ► Master advanced features in Python with easy to follow code examples A really cool but slightly arcane feature is the ability to “unpack” function arguments from sequences and dictionaries with the * and ** operators. These are sometimes also called "splat" operators. They're most frequently used in Python function definitions along with the *args and **kwargs pattern. Besides the * operator for unpacking sequences like tuples, lists, and generators into positional arguments there’s also the ** operator for unpacking keyword arguments from dictionaries. In this video I'll give you an introduction to function argument unpacking in Python with a few straightforward examples. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery PYTHON TRICKS: THE BOOK https://dbader.org/pytricks-book SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 15776 Real Python
How do you make money as a Python developer? 💰💰💰
 
03:19
https://dbader.org/python-tricks ► Actionable tips and code samples for writing better Python In this video I'm discussing the "ultimate" Python career question: "How do you make money as a Python developer?" You'll learn about the different ways you can make an income as a Python software developer. We'll discuss salaried jobs, freelancing, and other avenues for making a living from your Python programming skills. Got a question you'd like me to cover? Leave a comment with your Python or general software dev question on this video and I'll try to discuss it in one of the next "#PythonQ&A" videos. Full playlist for this series here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 18195 Real Python
"is" vs "==" in Python – What's the Difference? (And When to Use Each)
 
07:39
https://dbader.org/python-tricks ► Write clean & Pythonic code and start using advanced features in your Python code It's easy to get tripped up by Python's "is" and "==" operators for object comparison. In this video I'll explain the difference with a few easy to understand examples. There's a difference in meaning between equal and identical. And this difference is important when you want to understand how Python's is and == comparison operators behave. The == operator compares by checking for equality - the "is" operator, however, compares identities. The difference between them breaks down to down to two short definitions: An is expression evaluates to True if two variables point to the same (identical) object. An == expression evaluates to True if the objects referred to by the variables are equal (have the same contents). Check out this tutorial if you want to drill deeper: https://dbader.org/blog/difference-between-is-and-equals-in-python FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery PYTHON TRICKS: THE BOOK https://dbader.org/pytricks-book SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 31329 Real Python
What Python Projects Should I Build to Get a Job?
 
12:19
https://dbader.org/python-mastery ► On making the leap from hobbyist to professional Python dev What Python projects should you build and include in your portfolio in order to get a job as a Python developer? Which projects are going to help learn the skills you need to get a job as a professional developer? If your goal is to build a successful software development career it helps greatly if you build up a "developer portfolio" for yourself. This typically includes things like a personal website (blog), publicly available open-source code on GitHub/GitLab/BitBucket, contributing to other open-source projects and so on. This video is based on a question I received from a dbader.org reader and I hope my answer was helpful. If this was helpful let me know and leave a comment below :) FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 156976 Real Python
Cool New Features in Python 3.6
 
08:50
https://dbader.org/python-tricks ► Pick up the newest features in Python 3 with bite-sized code snippets and tips Python 3.6 adds a couple of new features and improvements that’ll affect the day to day work of Python coders. In this video I’ll give you an overview of the new features I found the most interesting and the ones that will make Python programming that much more enjoyable. → https://dbader.org/blog/cool-new-features-in-python-3-6 1) Improved numeric literals This is a syntactic tweak that makes numeric literals easier to read. You can now add underscores to numbers in order to group them to your liking. 2) String interpolation Python 3.6 adds yet another way to format strings called Formatted String Literals. This new way of formatting strings lets you use embedded Python expressions inside string constants. 3) Type annotations for variables In Python 3.6 you can use a syntax similar to type annotations for function arguments to type-hint standalone variables. Type-checking is purely optional and you’ll need a tool like Mypy for that, which basically works like a code linter. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com Want to learn Python with me? Check out the list below! FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 22096 Real Python
Is Python slower than Java and how to optimize its performance?
 
01:41
https://dbader.org/python-tricks ► Write better Python, by example Great question by Sonam: "Is Python slower than Java , and how to optimize its performance?" Python vs Java — which language is faster and how can you speed up your Python code? To get started with ctypes, check out this tutorial: https://dbader.org/blog/python-ctypes-tutorial Tweet your Python and software dev career questions at me (@dbader_org) or leave a comment on this video and I'll try to cover your question in one of the next videos. Full playlist here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 3528 Real Python
How can you get a job as junior Python developer without experience?
 
04:51
https://dbader.org/python-tricks ► Become a well-rounded Pythonista with these actionable tips How can you get a job as junior Python developer without experience? Is this even possible? What minimum knowledge do you need to find work as a Python dev? What does it take to pass a coding interview? Is finding freelance work possible as a Python newbie? How much money can you make as a Python developer? In this video I'll share my thoughts on some of these questions—dorky headset included free of charge :D Leave a comment with your Python or general software dev question on this video and I'll try to cover it question in one of the next "#PythonQ&A" videos. Full playlist here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 21767 Real Python
What's the future of Python on mobile platforms?
 
05:34
https://dbader.org/python-tricks ► Write better Python code with these short & actionable tips Historically Python didn't have a strong story when it came to mobile (iOS/Android) development. In this video I'll discuss a question that I got from a reader: "What's the future of Python on mobile platforms?" We'll go over Python GUI toolkits you can use to enable your applications to work on mobile platforms as well. You'll learn about Kivy and the Beeware project that will enable you to write iPhone and Android applications using your Python programming skills without learning another language like Swift or Java for this purpose. Got a question you'd like to me to discuss? Leave a comment with your Python or general software dev question on this video and I'll try to cover it question in one of the next "#PythonQ&A" videos. Full playlist here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 20862 Real Python
Experienced vs Inexperienced Python Developers — What's the Difference?
 
04:54
https://dbader.org/python-tricks ► Learn how to write "developer style" Python, step-by-step "What techniques do experienced Python developers use to solve problems, compared with inexperienced devs?" Super interesting question that I got from a dbader.org reader. There are clearly differences in how an experienced Python developer approaches writing code and solving problems compared to how an inexperienced developer does it. In this video I'll discuss these differences between Python beginners and Python experts and how you can cross that chasm. Tweet your Python and software dev career questions at me (@dbader_org) or leave a comment on this video and I'll try to cover your question in one of the next videos. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 2705 Real Python
Functional Programming in Python: Parallel Processing with "concurrent.futures"
 
10:01
https://dbader.org/python-tricks ► Master Python's advanced features and write faster + cleaner code In this Python tutorial you'll learn how to do multithreading and parallel programming in Python using functional programming principles and the "concurrent.futures" module. We'll take the example data set based on an immutable data structure that we previously transformed using the built-in "map" function. But this time we'll process the data it in parallel, across multiple threads using Python 3's "concurrent.futures" module available in the standard library. You'll see step by step how to parallelize an existing piece of Python code so that it can execute much faster and leverage all of your available CPU cores and computing power. You'll learn how to use the "ProcessPoolExecutor" and "ThreadPoolExecutor" classes and their parallel "map" implementations that makes parallelizing most Python code written in a functional style a breeze. By knowing the difference between both executors available in the concurrent.futures module you'll be able to parallelize your Python functions across multiple threads and across multiple processes. I'll also give you a brief introduction to the Python "Global Interpreter Lock", also known as the "GIL", and how you can work around its limitations by using the correct executor implementation. Once again we'll use our little testbed program from the last video to measure the execution time with the "time.time()" function. This allows us to compare the single-threaded and multithreaded implementations of the same algorithm. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 9136 Real Python
What other languages/platforms besides Python should you learn?
 
04:36
https://dbader.org/python-mastery ► 5 Thoughts On Mastering Python What other platforms or programming languages besides Python should you learn if you want to be a successful Python developer? Got a question? Leave a comment with your Python or general software dev question on this video and I'll try to cover it question in one of the next "#PythonQ&A" videos. Full playlist here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 2681 Real Python
String Conversion in Python: When to Use __repr__ vs __str__
 
14:58
https://dbader.org/python-tricks ► String conversion in Python classes and other advanced OOP techniques When you define a custom class in Python and then try to print one of its instances to the console (or inspect it in an interpreter session) you get a relatively unsatisfying result. The default "to string" conversion behavior is basic and lacking in detail. By default all you get is a string containing the class name and the `id` of the object instance (which is the object's memory address in CPython). That's better than *nothing*, but it's also not very useful. The solution here is adding the `__str__` and `__repr__` "dunder" methods (some call them "magic methods") to your class. They are the Pythonic way to control how objects are converted to strings in different situations. In this tutorial video I'll do a deep dive on how Python's to-string conversion works and how you can add it to your own custom classes. I'll walk you through the __str__ and __repr__ methods, when to use each, and some tips on how to use them in real world scenarios. Just remember: * The result of `__str__` should be readable. * The result of `__repr__` should be unambiguous. * Always add a `__repr__` to your classes. The default implementation for `__str__` just calls `__repr__`, so you get the best of both worlds. To learn how to use the full potential of Python check out "Python Tricks: The Book" at the link below: https://dbader.org/pytricks-book FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery PYTHON TRICKS: THE BOOK https://dbader.org/pytricks-book SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 18974 Real Python
Immutable vs Mutable Objects in Python
 
09:55
https://dbader.org/python-tricks ► Improve your Python skills, one bite at a time and write Pythonic and beautiful code. In Python, immutable vs mutable data types and objects types can cause some confusion—and weird bugs. With this video you'll see what the difference between mutable and immutable data types is in Python, and how you can use it to your advantage in your own programs. You'll also see how to deal with a language quirk in Python that allows objects referenced by immutable types to me modified. Python's definition of "immutable" can be a bit misleading: Basically, the promise of "immutability" on tuples is only partly true. The tuple itself cannot be modified, but objects referenced by the tuple can be. This is sometimes called "non-transitive immutability." If the tuple has an immutable field like a string for example, then it cannot be modified. A mutable field like a list however, can be edited, even if it's embedded in the "immutable" tuple. When the Python documentation refers to an object as being "immutable" they mean the behavior above observed. Other immutable types in Python behave the same way, e.g. namedtuples or frozensets. If you've ever encountered the following exception and now you want to know why, this is the video for you: TypeError: 'tuple' object does not support item assignment * * * ► Python MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 10837 Real Python
Where can you find clients as a Python freelance developer?
 
05:33
https://dbader.org/python-tricks ► Master Python's advanced features and programming techniques Where can you find clients as a Python freelance developer? Finding good contracting opportunities and freelance clients that you enjoy working with isn't easy when you're just starting out. In this video I'm sharing some of my own experiences and ideas around finding great freelance clients as a Python developer. Leave a comment with your Python or general software dev question on this video and I'll try to cover it question in one of the next "#PythonQ&A" videos. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 4485 Real Python
Python GUI Frameworks (Guide)
 
04:50
https://dbader.org/python-tricks ► Learn how to write "developer style" Python, step-by-step What's the landscape for Python GUI frameworks and how can you use them to write graphical user interfaces using Python 2 or 3? In this video I'm covering a number of popular frameworks you can use to build Python GUIs: - TkInter (built into the Python standard library) - PyQt (Qt bindings for Python, available on PyPI) - Kivy (desktop + mobile GUI framework, available on PyPI) - BeeWare Project / PyBee (native desktop + mobile GUI framework, available on PyPI) - PyGame (Python game development framework) What's your favorite way of building GUI applications with Python? Leave a comment below and share your thoughts with us :) Tweet your Python and software dev career questions at me (@dbader_org) or leave a comment on this video and I'll try to cover your question in one of the next videos. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 48880 Real Python
My Python Code Looks Ugly and Confusing – Help!
 
05:49
LEARN MORE: https://dbader.org/blog/python-code-linting Automated code analysis tools can help you become a better Python developer quickly. In this video I'll explain what a code linter (like Pyflakes, Flake8, or Pycodestyle / Pep8) can do for you. Next I'll show you a few simple steps you can use immediately to run a code linter on your own Python programs. I'll also show you how to integrate linter feedback with your code editor (I'm using Sublime Text 3 in the video). This gives you immediate feedback on your Python code as you type it. I've seen great results from this technique. I believe it's one of the quickest ways to improve your Python skills. Give it a try and let me know how it went :) * In-depth guide for setting up Sublime Text (with integrated code linting and auto-completion for Python): https://SublimeTextPython.com * Flake8: https://pypi.python.org/pypi/flake8 * Pyflakes: https://pypi.python.org/pypi/pyflakes * Pycodestyle (former pep8): https://pypi.python.org/pypi/pycodestyle * Pylint: https://pypi.python.org/pypi/pylint * * * Shameless plug: If you want to get a Sublime Text setup just like the one in the video then check out my Sublime Text Setup Guide for Python Developers: https://SublimeTextPython.com 😊 ► Weekly Tips for Python Developers: https://dbader.org/newsletter
Views: 11232 Real Python
Python Tutorial: List Comprehensions Step-By-Step
 
14:48
https://dbader.org/python-tricks ► See how to leverage Python's best features, like List Comprehensions, in your own programs This video tutorial breaks down Python list comprehensions for you step by step. See how Python's comprehensions can be transformed from and to equivalent "for"-loops so you'll know exactly what's going on behind the scenes. One of my favorite features in Python are list comprehensions. They can seem a bit arcane at first but when you break them down they are actually a very simple construct. The key to understanding Python's list comprehensions is that they’re just for-loops over a collection expressed in a more terse and compact syntax. In the video I also discuss when to use list comprehensions in your own Python programs and when not to. Basically, the caveat to Python’s comprehensions is this—as you get more proficient at using them it becomes easier and easier to write code that’s difficult to read. If you’re not careful you might have to deal with monstrous list, set, dict comprehensions soon. Too much of a good thing is usually a bad thing. To deepen your learning also check out this longer tutorial article I wrote on Python's comprehensions, including dictionary comprehensions and set comprehensions: https://dbader.org/blog/list-dict-set-comprehensions-in-python FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 20971 Real Python
"For Each" Loops in Python with enumerate() and range()
 
09:45
https://dbader.org/python-tricks ► Write clean and Pythonic for, while, and "for each" loops in Python One of the easiest ways to spot a developer with a background in C-style languages who only recently picked up Python is to look at how they loop through a list. In this tutorial you'll learn how to take a "C-style" (Java/PHP/C/C++) loop and turn it into a nice and "native" Python loop. You can use these techniques to refactor your existing Python for loops and while loops in order to make them easier to read and more maintainable. You'll learn how to use Python's range()/xrange() and enumerate() built-ins to refactor your loops and to avoid having to keep track of loop indexes manually. The main takeaways in this tutorial are: • Writing C-style loops in Python is considered unpythonic. Avoid managing loop indexes and stop conditions manually if possible. • Python’s for-loops are really “for-each” loops that can iterate over items from a container or sequence directly. Read the complete tutorial at → https://dbader.org/blog/pythonic-loops To get more Python Tricks and to discover the full potential of Python check out "Python Tricks: The Book" at the link below. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery PYTHON TRICKS: THE BOOK https://dbader.org/pytricks-book SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 11281 Real Python
Achieving C-like performance in Python without Cython or other libraries?
 
04:00
https://dbader.org/python-tricks ► Speed up your Python code with these actionable tips I'm covering another Python optimization question this time: "What is the easiest way to achieve C-like performance in Python without in-depth knowledge of Cython or other libraries?" Got a question? Leave a comment with your Python or general software dev question on this video and I'll try to cover it question in one of the next "#PythonQ&A" videos. Full playlist here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 8317 Real Python
A Shorthand for Merging Dictionaries in Python 3.5+
 
03:15
In Python 3.5 (and above) you can use a handy shorthand for merging/combining two or more dictionaries. This is part of the "unpacking generalizations" changes in Python 3.5. You can learn more about those here in PEP 448: https://www.python.org/dev/peps/pep-0448/ The video doesn't show that this technique works with more than 2 dictionaries – but it actually works just fine for merging an arbitrary number of them. The syntax stays the same, for example: {**aa, **bb, **cc} If you're interested in learning more "Python tricks" like the one I showed in the video – check out this experiment I'm running at the moment: https://dbader.org/python-tricks * * * ► Weekly Tips for Python Developers: https://dbader.org/newsletter
Views: 11987 Real Python
Object-Oriented Programming (OOP) in Python – A Good Idea? 🚨🐍
 
05:10
https://dbader.org/python-oop-cheatsheet ► Object-Oriented Programming in Python: The 7 Best Resources Got this Python question from Kevin over Twitter: "Hello Dan, are you for or against object-oriented programming in Python and also in general? If against, why?" In this video I share some of my thoughts on OOP in Python and whether or not you should invest time into learning OOP skills as a Python developer. Tweet your Python and software dev career questions at me (@dbader_org) or leave a comment on this video and I'll try to cover your question in one of the next videos. Full playlist here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 5167 Real Python
Installing Python Packages with pip and virtualenv / venv
 
08:42
https://dbader.org/python-dependency-pitfalls ► Take a free 5-day Python class on Dependency Management & Packaging When you install Python packages globally there can be only one version of a Python library across all of your programs. This means you'll quickly run into version conflicts. The solution to these problems is separating your Python environments with so-called virtual environments. They allow you to separate Python dependencies by project, including selecting between different versions of the Python interpreter. A Virtual Environment (or "virtualenv", "venv" for short) is an isolated Python environment. Physically, it lives inside a folder containing all the packages and other dependencies, like native-code libraries and the interpreter runtime, that a Python project needs. To demonstrate how virtual environments work as a "sandbox" I'll give you a quick walkthrough where we'll set up a new environment (or virtualenv, as they're called for short) and then install a third-party package into it using the Python pip command. To get more Python Tricks and to discover the full potential of Python check out "Python Tricks: The Book" at the link below: ► Write Clean & Beautiful Python: https://dbader.org/pytricks-book SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 15819 Real Python
pep8.org — The Prettiest Way to View the PEP 8 Python Style Guide
 
07:36
Improve your Python skills, one bite at a time: https://dbader.org/python-tricks PEP 8 is the most popular code style guide for Python. It's widely known and used by the Python community. If you're looking for formatting advice on your Python code, look no further. It's a good time investment to spend a few hours reading through PEP 8 and learning how to apply its recommendation to your own projects. A common challenge with applying PEP 8 is that the original web page on python.org for it is kind of difficult to read—for example there's no code highlighting or a persistent table of contents you can use to navigate around. pep8.org is a project that aims to change this. It's a "nicely formatted" version of the original PEP 8 document with the goal to make this wonderful Python style guide more accessible and easier to share. pep8.org is an open-source project that was started by Kenneth Reitz, the creator of Requests and many other popular Python packages. I was happy to bump into Kenneth at PyCon 2017 (because he's one of my personal "Python heroes") and in the course of that I became a co-maintainer for pep8.org and brought it up to date and made some small fixes to the website over the last couple of days. In this video you'll see how pep8.org can help you write cleaner and more beautiful Python code that follows the PEP 8 community style guide. Here's how to find it: → https://pep8.org → https://github.com/kennethreitz/pep8.org * * * ► Subscribe to this channel: https://dbader.org/youtube/ ► Free Python Articles & Tutorials: https://dbader.org/newsletter
Views: 16691 Real Python
Where's the job market headed for Python?
 
03:02
https://dbader.org/python-tricks ► Actionable tips you can use to write more Pythonic code "Where's the job market headed for Python?" -- Another Python career question from a reader that I'll discuss in this video. Should you switch to Python from another language if you love Python? Is Python really the most popular programming language right now? I'll go over some of the recent changes in the job market and where that puts us as Python developers. I think there are some big changes coming as far as Python job opportunities go and now is a great time to take advantage of them. Tweet your Python and software dev career questions at me (@dbader_org) or leave a comment on this video and I'll try to cover your question in one of the next videos. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 5322 Real Python
Do I Need a GitHub/GitLab/Bitbucket Profile as a Developer?
 
05:46
► Build Your Own Programming Blog from Scratch, with Python: http://bit.ly/python-blog-course Many developers today use their GitHub profile as a replacement for or supplement to a classical resume. Let's talk about whether you need a GitHub profile as part of your programming portfolio and online presence as a developer. I'll also go over some alternatives to GitHub like GitLab and Bitbucket. * * * ► Weekly Tips for Python Developers: https://dbader.org/newsletter
Views: 4331 Real Python
I completed Python Tricks: The Book — Am I a Beginner or Intermediate Python Dev?
 
03:11
https://dbader.org/python-tricks ► Write better Python, by example Great question by YouTube commenter Tony James: "Hi Dan, at what level can I assume myself to be if I have completed your 'Python Tricks' book. Beginner or Intermediate?" My book "Python Tricks: A Buffet of Awesome Python Features" covers a wide range of topics and skills important to any Python developer. In this video I'll share some of my thoughts on the idea of "Python skill levels" like beginner/intermediate/advanced and how my book can help you become a more skillful Pythonista. Learn more about the book here: https://dbader.org/pytricks-book Tweet your Python and software dev career questions at me (@dbader_org) or leave a comment on this video and I'll try to cover your question in one of the next videos. Full playlist here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 3136 Real Python
Python vs PHP: Why are there so few (free) shared hosting offers?
 
04:18
https://dbader.org/python-tricks ► Free tips for writing more Pythonic code "Why are there so few Python shared (free) hosting offers compared to PHP?" -- Interesting question I got from a web developer who's also a dbader.org newsletter reader. In this video I'll share some of my thoughts on the matter. Whether you're a PHP developer looking to learn Python, or a Python developer looking at PHP hosting options with envy I'll explain what's going on in the hosting world and how this perceived difference in the number of hosting options comes down to differences in advertising and the preferences of PHP vs Python developers. Where do you host your Python web applications? Leave a comment below and let me know! FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 2202 Real Python
Setting Up a Programmer Portfolio/Developer Blog – How To Get Started
 
06:29
► Build Your Own Programming Blog from Scratch, with Python: http://bit.ly/python-blog-course Starting a programming blog was one of the best things I ever did for my career as a Python developer. In this video I give you a few reasons why you should start a programming portfolio website right now. I'm going over my own website (dbader.org) as an example and how it looks very different today compared to when I started it in 2012. It doesn't take much to get started with your own programming portfolio website and the benefits can be huge. If you'd like to learn more about starting your own programming blog then check out my newsletter for Python developers at https://dbader.org/newsletter * * * ► Weekly Tips for Python Developers: https://dbader.org/newsletter
Views: 9501 Real Python
Contributing to Open-Source Projects as a New Python Developer: How to Do It
 
13:47
https://dbader.org/python-tricks ► Get the Python skills you need to contribute to the open-source community and build your portfolio In this video we'll discuss how you can break into open-source as a new Python developer. I got this question from a dbader.org reader and I'm replying to it in this video: ~~ "How do I start to contribute to an open-source project as a relatively new Python developer? I want to build up a portfolio of projects I have worked on and contributed to, and not just a portfolio of my own contrived projects. I'm thinking that evidence shown on GitHub or similar could be useful to a relatively new Python programmer like myself in order to demonstrate credibility." ~~ Contributing to open source projects is a great way to build your programming skills, take part in the community, and to make a real impact with your code. It'll also help you get a job as Python developer. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 16560 Real Python
Where to Find Real-World Python Projects
 
08:45
https://dbader.org/python-tricks ► Improve your Python with actionable code snippets and examples Where to find inspiration for Python projects that will help you develop real-world coding skills and lay the foundation of your programming portfolio. In this video I'll share a technique you can use to grow your Python skills with an infinite number of small Python projects you can complete in a day or two. Even if you fail at first, this approach constantly creates new questions you can then set out to answer. These questions will be your “Python learning roadmap” and give you directions on what to focus on next. If you're learning Python right now and want to start using this technique be sure to also check out this related article on my website: https://dbader.org/blog/python-projects-inspiration FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 31069 Real Python
🐍🌟 What projects is Python ideal for?
 
04:22
https://dbader.org/python-tricks ► Discover how to write clean and Pythonic code, one tip at a time "What projects is Python ideal for?" Got this question from a reader and I'll discuss it in this video from a "what are Python's strengths?" perspective. So what's Python good at? Especially compared to other programming languages that are gaining in popularity like Go or JavaScript. I'll go over the main areas where Python is popular at the moment, like Machine Learning, Data Science, and Web Development (Django, Flask, etc.) What's your favorite use case for Python? Leave a comment below and join the discussion. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 4713 Real Python
Functional Programming in Python: Parallel Processing with "multiprocessing"
 
16:45
https://dbader.org/python-tricks ► Write better & cleaner code using Python's advanced features In this tutorial you'll learn how to do parallel programming in Python using functional programming principles and the "multiprocessing" module. We'll take the example data set based on an immutable data structure that we previously transformed using the built-in "map" function. But this time we'll process the data it in parallel, across multiple CPU cores using the Python "multiprocessing" module available in the standard library. You'll see step by step how to parallelize an existing piece of Python code so that it can execute much faster and leverage all of your available CPU cores. You'll learn how to use the "multiprocessing.Pool" class and it's parallel "map" implementation that makes parallelizing most Python code that's written in a functional style a breeze. As part of this video we'll build a little testbed program first that we can use to measure the execution time with the "time.time()" function, so that we can compare the single-threaded and multithreaded implementations of the same algorithm. Stay tuned for the next video in the series where you'll learn how to make your Python programs multithreaded using the "concurrent.futures" module as an alternative way to implement concurrency. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 21485 Real Python
🎓 Advice on Going to College for a Computer Science / Software Engineering Degree
 
06:42
https://dbader.org/python-mastery ► What's the right mindset for taking your Python coding skills to the next level? If you're considering in going to university and getting a college degree in Computer Science or Software Engineering, here's some advice on how to make the best use of your time. This video is a response to a question I got on YouTube: "What would be your advice for a graduating high school student who wants to study CS (Computer Science) and Software Engineering?" I'm sharing some of my own experiences getting a bachelor's and a master's degree in Computer Science in Munich (TUM). The most important thing to look out for is to make sure you're getting enough practical programming experience—if your goal is to get a programming job after completing your degree. So whatever you can do to *not* get stuck in the "theory ivory tower" is super important. And in my experience building up your practical coding skills is mostly on you. Got any more tips or questions related to getting a CS college degree? Leave a comment below and join the discussion :) FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 17489 Real Python
What Code Should I Put On My GitHub/GitLab/BitBucket Profile?
 
07:30
► Build Your Own Programming Blog from Scratch, with Python: http://bit.ly/python-blog-course What code should you put on your GitHub/Bitbucket/GitLab developer portfolio? Should you upload your older code and share it? What if it's not that interesting for other people? Many developers today use their GitHub profile as a replacement for or supplement to a classical resume. And I think that's a great idea. I'm a big proponent of that. In this video I'll answer a question from a YouTube commenter about what kind of code you should upload to your public open-source portfolio in order to build your developer resume. * * * ► Weekly Tips for Python Developers: https://dbader.org/newsletter
Views: 2946 Real Python
The skills and knowledge that will impact your Python career the most ❓🐍
 
04:38
https://dbader.org/python-tricks ► Python's best features, explained with simple code examples "What set of knowledge and skills, beyond the language basics, will have the most impact on my career as a Python developer?" In this video I'm covering another Python career question from a dbader.org reader. We'll touch on the idea of the "T-shaped engineer" and breadth vs depth in terms of expertise and specialization. To build a successful career as a Python software developer you'll also need to learn how to "market yourself" as a software developer. "Soft skills" and "marketing" are often frowned upon in our industry but they are extremely important in my opinion. Tweet your Python and software dev career questions at me (@dbader_org) or leave a comment on this video and I'll try to cover your question in one of the next videos. Full playlist here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 2704 Real Python
Should you stick with Python 2 or migrate to Python 3?
 
02:44
https://dbader.org/python-tricks ► Tips and code samples for writing better Python Should you stick with Python 2 or migrate to Python 3? In this video I'll share some of my thoughts on this topic. We'll discuss what to do with Python 2.x libraries that are not compatible with Python 3.x, what you should focus your learning on to grow your Python career. So, Python2 vs Python3—what's it going to be? Got a question you'd like me to cover? Leave a comment with your Python or general software dev question on this video and I'll try to discuss it in one of the next "#PythonQ&A" videos. Full playlist for this series here: https://www.youtube.com/playlist?list=PLP8GkvaIxJP2Z1rqBxlWmqYmhJ9vG2Jm_ FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 1678 Real Python
PyCon 2018 Vlog 03 – AMA with Corey Schafer on Friday @ 11am
 
01:12
Come meet us at the Open Space session on Friday, Room 14 at 11am
Views: 2121 Real Python
PyPI vs Warehouse, the Next-Generation Python Package Repository
 
02:33
► Free 5-day class on Python Dependency Management: https://dbader.org/python-dependency-pitfalls In this video we'll compare the PyPI package repository with its successor called "Warehouse." Warehouse is a next generation Python Package Repository designed to replace the legacy code base that currently powers PyPI. Warehouse is open-source and developed publicly at https://github.com/pypa/warehouse. Compared to the current PyPI website, Warehouse brings a number of usability improvements, a more modern look, improved search and a host of other features. Watch the video to learn how PyPI and Warehouse compare and how you can access Warehouse today. To see how to go from “writing scripts” to “building applications” with Python and master the tools of the trade for Dependency Management check out my in-depth video course for Python developers at the link below: https://dbader.org/products/managing-python-dependencies/ You'll master the Pip package manager, learn how to work with Requirements Files, Virtualenv & discover how to pick quality Python libraries. ► Get the full course: https://dbader.org/products/managing-python-dependencies/ ► Free 5-day class on Python Dependency Management: https://dbader.org/python-dependency-pitfalls * * * ► Subscribe to this channel: https://dbader.org/youtube/ ► Weekly Tips for Python Developers: https://dbader.org/newsletter ► Python Articles & Tutorials: https://dbader.org/newsletter
Views: 2784 Real Python
Python Plugin System: Load Modules Dynamically With "importlib"
 
14:54
https://dbader.org/python-tricks ► Unleash the "Power of Python" with actionable tips and code snippets In this video you'll learn how to load Python modules dynamically in your application using the "importlib" module from the Python standard library. Given a user-configurable string like "plugins.my_plugin" we'll dynamically load a Python module while the application is already running and then call methods on imported module. This programming technique is highly useful for writing configurable plugin systems that can make your applications user-extensible. I'll walk you through an end-to-end example demonstrating this technique so that you can apply it in your own Python programs. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 8190 Real Python
Type-Checking Python Programs With Type Hints and mypy
 
10:50
https://dbader.org/python-tricks ► Avoid the bugs that Python type hinting will catch in the first place and see how to write clean and Pythonic code Get quick intro to Python type hinting using the mypy type checker, in order to catch bugs and improve the quality of your existing Python code. In this video I'll walk you through a simple example of what Python's new type hints allow you to do, then I'll show you how to install and use the mypy type checker as a static analysis tool from the command line. At the end you'll get an outlook of the future of type checking and the type hinting syntax in Python. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 14880 Real Python
Emulating switch/case Statements in Python with Dictionaries
 
12:51
https://dbader.org/python-tricks ► See how to emulate switch/case statements in Python and other "tricks" for advanced Pythonistas Python doesn't have switch/case statements so it's often necessary to write long if/elif/else chains as a workaround. Here's a little trick you can use to emulate switch/case statements in Python using dictionaries and first-class functions. Basically we're using Python dictionaries as a lookup table to replace a nested "if elif else" statement with a cleaner and more maintainable implementation. In some cases this can be faster than if-then-else chains and easier to maintain, too. To see if this method is right for you watch the video tutorial and learn how to apply this technique to write nice and clean Python. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery PYTHON TRICKS: THE BOOK https://dbader.org/pytricks-book SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 40728 Real Python

Bon iver songs download free
Pacific power kent
Free download lagu galang bunga
Mercy health partners toledo ohio
Free download novel karya mira