Are you over 18 and want to see adult content?
More Annotations
A complete backup of shinko-keirin.co.jp
Are you over 18 and want to see adult content?
A complete backup of michaelkorshandbagsclearance75off.com
Are you over 18 and want to see adult content?
A complete backup of schudnijnaturalnie.pl
Are you over 18 and want to see adult content?
A complete backup of theback-upplan.com
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of https://rokinawa.co.jp
Are you over 18 and want to see adult content?
A complete backup of https://qcitymetro.com
Are you over 18 and want to see adult content?
A complete backup of https://keithhennessey.com
Are you over 18 and want to see adult content?
A complete backup of https://hyeres.fr
Are you over 18 and want to see adult content?
A complete backup of https://lapakjudiqq.com
Are you over 18 and want to see adult content?
A complete backup of https://musiklists.com
Are you over 18 and want to see adult content?
A complete backup of https://ssuregirl.com
Are you over 18 and want to see adult content?
A complete backup of https://alfayomega.es
Are you over 18 and want to see adult content?
A complete backup of https://multiply.com
Are you over 18 and want to see adult content?
A complete backup of https://irionline.org
Are you over 18 and want to see adult content?
Text
and staff.
REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better PYTHON DICTS AND MEMORY USAGE Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new, empty dict consume? We can find out with “ sys.getsizeof “: >>> import sys. >>> sys.getsizeof (d) 240. In other words, our dictionary, with nothing in it at all, consumes 240 bytes. PYTHON'S OBJECTS AND CLASSES 19 Python’s objects and classes — a visual guide. Python developers love to say that “everything is an object.” And indeed, when I teach Python classes, I say this several times, and many people nod in agreement, assuming that I’m merely repeating something they’ve heard before. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC Python’s str.isdigit vs. str.isnumeric. Let’s say that I want to write some Python code that invites the user to enter a number, and then prints that number, tripled. We could say: >>> n = input ("Enter a number: ") >>> print (f" {n} * 3 = {n*3}") The good news is that this code works just fine. The bad news is that it probably doesn’tdo
IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. UNDERSTANDING PYTHON SLICES Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so is with a “slice”: >>> s = 'abcdefghij'. >>> print (s ) defgh. In the above code, we’ve defined a string. We’ve then asked for the string to be returned, starting at index 3 and up to (and not IMPLEMENTING "MIN" AND "MAX" WITH "REDUCE" 0 Implementing “min” and “max” with “reduce” This is the third installment of my “reduce” series of blog posts. For the first, see here, and for the second, see here.. If you have been reading this series, then you know that “reduce” can be used to sum numbers, or to calculate scores. TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
TURNING A POSTGRESQL ARRAY TO ROWS 8 Turning a PostgreSQL array to rows. I’ve spent the last few blog posts in this series talking about PostgreSQL’s arrays — how to create them, query them, and even create them with the ARRAY function.. But there are cases in which I would like to do the opposite — turn a PostgreSQL array to rows. TEACHING PYTHON AND DATA SCIENCE AROUND Teaching. Python. and. Data Science. around the world. Hi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways to make you a better developer, too! Most days, I work on-site with companies around the world (US, Europe, Israel, India, and China), teaching their engineersand staff.
REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better PYTHON DICTS AND MEMORY USAGE Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new, empty dict consume? We can find out with “ sys.getsizeof “: >>> import sys. >>> sys.getsizeof (d) 240. In other words, our dictionary, with nothing in it at all, consumes 240 bytes. PYTHON'S OBJECTS AND CLASSES 19 Python’s objects and classes — a visual guide. Python developers love to say that “everything is an object.” And indeed, when I teach Python classes, I say this several times, and many people nod in agreement, assuming that I’m merely repeating something they’ve heard before. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC Python’s str.isdigit vs. str.isnumeric. Let’s say that I want to write some Python code that invites the user to enter a number, and then prints that number, tripled. We could say: >>> n = input ("Enter a number: ") >>> print (f" {n} * 3 = {n*3}") The good news is that this code works just fine. The bad news is that it probably doesn’tdo
IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. UNDERSTANDING PYTHON SLICES Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so is with a “slice”: >>> s = 'abcdefghij'. >>> print (s ) defgh. In the above code, we’ve defined a string. We’ve then asked for the string to be returned, starting at index 3 and up to (and not IMPLEMENTING "MIN" AND "MAX" WITH "REDUCE" 0 Implementing “min” and “max” with “reduce” This is the third installment of my “reduce” series of blog posts. For the first, see here, and for the second, see here.. If you have been reading this series, then you know that “reduce” can be used to sum numbers, or to calculate scores. TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
TURNING A POSTGRESQL ARRAY TO ROWS 8 Turning a PostgreSQL array to rows. I’ve spent the last few blog posts in this series talking about PostgreSQL’s arrays — how to create them, query them, and even create them with the ARRAY function.. But there are cases in which I would like to do the opposite — turn a PostgreSQL array to rows. MAKING SENSE OF GENERATORS, COROUTINES, AND "YIELD FROM A number of years ago, Python introduced the “send” method for generators, and a modification of how “yield” can be used. Consider this code: def myfunc (): x = '' while True: print (f'Yielding x ( {x}) and waiting') x = yield x if x is None: break print (f'Got x {x}. Doubling.') x = x * 2. The above code looks a bitweird, in that
IMPLEMENTING "MIN" AND "MAX" WITH "REDUCE" 0 Implementing “min” and “max” with “reduce” This is the third installment of my “reduce” series of blog posts. For the first, see here, and for the second, see here.. If you have been reading this series, then you know that “reduce” can be used to sum numbers, or to calculate scores. ONE YEAR OF "PYTHON FOR NON-PROGRAMMERS" 0 One year of “Python for non-programmers” In the spring of last year, as the coronavirus pandemic began, it was pretty clear that this would be the major event of our lives, and that a lot of people were going to be affected in big, terrible ways — beyond the issues related to the virus itself, and the injury it created. DATA ANALYTICS WITH NUMPY AND PANDAS 0 Data analytics with NumPy and Pandas. Course length: 4 days (32 hours). Description: This course introduces the NumPy and Pandas packages for Python, and shows how they can be used to ask and answer a variety of questions involving data analysis.NumPy and Pandas are the foundation of the “SciPy stack,” a set of Python packages that have become extremely popular in recent years. ABOUT REUVEN M. LERNER About Reuven M. Lerner. Reuven is a full-time Python trainer. In a given year, he teaches courses at companies in the United States, Europe, Israel, India, and China — as well as to people around the world, via his online courses. Reuven created one of the first 100 Web sites in the world just after graduating from MIT’s computer science TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
THE FIVE-MINUTE GUIDE TO SETTING UP A JUPYTER NOTEBOOK 13 The five-minute guide to setting up a Jupyter notebook server. Nearly every day, I teach a course in Python.. And nearly every day, I thus use the Jupyter notebook: I do my live-coding demos in it, answer students’ questions using it, and also send it to my students at the end of the day, so that they can review my code without having to type furiously or take pictures of my screen. FOUR WAYS TO ASSIGN VARIABLES IN PYTHON Method 1: Plain ol’ assignment. The first way to define a variable is with the assignment operator, =. Once again, I can say. x = 100. and I have assigned to x. If x didn’t exist before, then it does now. If it did exist before, then x now points to a new and differentobject.
A VERY SAD DAY
3 A very sad day — the end of Linux Journal [Update, as of August 8, 2019: Since I wrote this post, Linux Journal re-opened, thanks to a generous investment/purchase, and FOO(Y=Y), AND SIMILAR CODE THAT CONFUSES PYTHON NEWBIES I agree that having different, more specific, names for parameters is often a good idea. One area where I typically DO use the same name is when I am doing text templating, such as using string.Template or a templating engine (ex. jinja2). TEACHING PYTHON AND DATA SCIENCE AROUND Teaching. Python. and. Data Science. around the world. Hi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways to make you a better developer, too! Most days, I work on-site with companies around the world (US, Europe, Israel, India, and China), teaching their engineersand staff.
REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better ONE YEAR OF "PYTHON FOR NON-PROGRAMMERS" One year of “Python for non-programmers”. In the spring of last year, as the coronavirus pandemic began, it was pretty clear that this would be the major event of our lives, and that a lot of people were going to be affected in big, terrible ways — beyond the issues related to the virus itself, and the injury it created. PYTHON DICTS AND MEMORY USAGE Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new, empty dict consume? We can find out with “ sys.getsizeof “: >>> import sys. >>> sys.getsizeof (d) 240. In other words, our dictionary, with nothing in it at all, consumes 240 bytes. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC Python’s str.isdigit vs. str.isnumeric. Let’s say that I want to write some Python code that invites the user to enter a number, and then prints that number, tripled. We could say: >>> n = input ("Enter a number: ") >>> print (f" {n} * 3 = {n*3}") The good news is that this code works just fine. The bad news is that it probably doesn’tdo
IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. PLAYING WITH PYTHON STRINGS, LISTS, AND VARIABLE NAMES 4 Playing with Python strings, lists, and variable names — or, a complex answer to a simple question. I recently received a question from a reader of my “Better developers” list.He asks: TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
THE FIVE-MINUTE GUIDE TO SETTING UP A JUPYTER NOTEBOOK 13 The five-minute guide to setting up a Jupyter notebook server. Nearly every day, I teach a course in Python.. And nearly every day, I thus use the Jupyter notebook: I do my live-coding demos in it, answer students’ questions using it, and also send it to my students at the end of the day, so that they can review my code without having to type furiously or take pictures of my screen. AVOIDING WINDOWS BACKSLASH PROBLEMS WITH PYTHON'S RAW Thank you for this article, it helped to get a grasp of using raw strings in Python. One addition: Users can not always get around using “/”. If you want to automate starting applications, you’ll have to use the OS specific path seperators while emulating command line calls with the subprocess library for example. TEACHING PYTHON AND DATA SCIENCE AROUND Teaching. Python. and. Data Science. around the world. Hi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways to make you a better developer, too! Most days, I work on-site with companies around the world (US, Europe, Israel, India, and China), teaching their engineersand staff.
REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better ONE YEAR OF "PYTHON FOR NON-PROGRAMMERS" One year of “Python for non-programmers”. In the spring of last year, as the coronavirus pandemic began, it was pretty clear that this would be the major event of our lives, and that a lot of people were going to be affected in big, terrible ways — beyond the issues related to the virus itself, and the injury it created. PYTHON DICTS AND MEMORY USAGE Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new, empty dict consume? We can find out with “ sys.getsizeof “: >>> import sys. >>> sys.getsizeof (d) 240. In other words, our dictionary, with nothing in it at all, consumes 240 bytes. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC Python’s str.isdigit vs. str.isnumeric. Let’s say that I want to write some Python code that invites the user to enter a number, and then prints that number, tripled. We could say: >>> n = input ("Enter a number: ") >>> print (f" {n} * 3 = {n*3}") The good news is that this code works just fine. The bad news is that it probably doesn’tdo
IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. PLAYING WITH PYTHON STRINGS, LISTS, AND VARIABLE NAMES 4 Playing with Python strings, lists, and variable names — or, a complex answer to a simple question. I recently received a question from a reader of my “Better developers” list.He asks: TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
THE FIVE-MINUTE GUIDE TO SETTING UP A JUPYTER NOTEBOOK 13 The five-minute guide to setting up a Jupyter notebook server. Nearly every day, I teach a course in Python.. And nearly every day, I thus use the Jupyter notebook: I do my live-coding demos in it, answer students’ questions using it, and also send it to my students at the end of the day, so that they can review my code without having to type furiously or take pictures of my screen. AVOIDING WINDOWS BACKSLASH PROBLEMS WITH PYTHON'S RAW Thank you for this article, it helped to get a grasp of using raw strings in Python. One addition: Users can not always get around using “/”. If you want to automate starting applications, you’ll have to use the OS specific path seperators while emulating command line calls with the subprocess library for example. MAKING SENSE OF GENERATORS, COROUTINES, AND "YIELD FROM A number of years ago, Python introduced the “send” method for generators, and a modification of how “yield” can be used. Consider this code: def myfunc (): x = '' while True: print (f'Yielding x ( {x}) and waiting') x = yield x if x is None: break print (f'Got x {x}. Doubling.') x = x * 2. The above code looks a bitweird, in that
DATA ANALYTICS WITH NUMPY AND PANDAS 0 Data analytics with NumPy and Pandas. Course length: 4 days (32 hours). Description: This course introduces the NumPy and Pandas packages for Python, and shows how they can be used to ask and answer a variety of questions involving data analysis.NumPy and Pandas are the foundation of the “SciPy stack,” a set of Python packages that have become extremely popular in recent years. THE FIVE-MINUTE GUIDE TO SETTING UP A JUPYTER NOTEBOOK 13 The five-minute guide to setting up a Jupyter notebook server. Nearly every day, I teach a course in Python.. And nearly every day, I thus use the Jupyter notebook: I do my live-coding demos in it, answer students’ questions using it, and also send it to my students at the end of the day, so that they can review my code without having to type furiously or take pictures of my screen. WORKING WITH WARNINGS IN PYTHON (OR: WHEN IS AN EXCEPTION The simplest filter is “warnings.simplefilter”, and the simplest way to invoke it is with a single string argument. That argument tells the warning system what to do if it encounters a warning: “default” — display a warning the first time it is encountered. “error” — turn the warning into an exception. “ignore” —ignore
IMPLEMENTING "MIN" AND "MAX" WITH "REDUCE" 0 Implementing “min” and “max” with “reduce” This is the third installment of my “reduce” series of blog posts. For the first, see here, and for the second, see here.. If you have been reading this series, then you know that “reduce” can be used to sum numbers, or to calculate scores. UNDERSTANDING PYTHON SLICES Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so is with a “slice”: >>> s = 'abcdefghij'. >>> print (s ) defgh. In the above code, we’ve defined a string. We’ve then asked for the string to be returned, starting at index 3 and up to (and not FOUR WAYS TO ASSIGN VARIABLES IN PYTHON Method 1: Plain ol’ assignment. The first way to define a variable is with the assignment operator, =. Once again, I can say. x = 100. and I have assigned to x. If x didn’t exist before, then it does now. If it did exist before, then x now points to a new and differentobject.
IN PYTHON, IT'S ALL ABOUT THE ATTRIBUTES In Python, it’s all about the attributes. Newcomers to Python are often amazed to discover how easily we can create new classes. For example: class Foo (object): pass. is a perfectly valid (if boring) class. We can even create instances of this class: PYTHON PARENTHESES PRIMER 11 Python parentheses primer. If you have children, then you probably remember them learning to walk, and then to read. If you’re like me, you were probably amazed by how long it took to do things that we don’t even think about. IF YOU DON'T USE "WITH", WHEN DOES PYTHON CLOSE FILES? THE The undefined nature of the result otherwise, is a perfect argument for using “with”. It would also constrain implementations unnecessarily and add to the baggage of the language, to specify what happens when you don’t explicitly close a file, or when it should begarbage collected.
TEACHING PYTHON AND DATA SCIENCE AROUND Teaching. Python. and. Data Science. around the world. Hi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways to make you a better developer, too! Most days, I work on-site with companies around the world (US, Europe, Israel, India, and China), teaching their engineersand staff.
REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better ONE YEAR OF "PYTHON FOR NON-PROGRAMMERS" One year of “Python for non-programmers”. In the spring of last year, as the coronavirus pandemic began, it was pretty clear that this would be the major event of our lives, and that a lot of people were going to be affected in big, terrible ways — beyond the issues related to the virus itself, and the injury it created. PYTHON DICTS AND MEMORY USAGE Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new, empty dict consume? We can find out with “ sys.getsizeof “: >>> import sys. >>> sys.getsizeof (d) 240. In other words, our dictionary, with nothing in it at all, consumes 240 bytes. PLAYING WITH PYTHON STRINGS, LISTS, AND VARIABLE NAMES 4 Playing with Python strings, lists, and variable names — or, a complex answer to a simple question. I recently received a question from a reader of my “Better developers” list.He asks: IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC Python’s str.isdigit vs. str.isnumeric. Let’s say that I want to write some Python code that invites the user to enter a number, and then prints that number, tripled. We could say: >>> n = input ("Enter a number: ") >>> print (f" {n} * 3 = {n*3}") The good news is that this code works just fine. The bad news is that it probably doesn’tdo
TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
AVOIDING WINDOWS BACKSLASH PROBLEMS WITH PYTHON'S RAW Thank you for this article, it helped to get a grasp of using raw strings in Python. One addition: Users can not always get around using “/”. If you want to automate starting applications, you’ll have to use the OS specific path seperators while emulating command line calls with the subprocess library for example. IF YOU DON'T USE "WITH", WHEN DOES PYTHON CLOSE FILES? THE The undefined nature of the result otherwise, is a perfect argument for using “with”. It would also constrain implementations unnecessarily and add to the baggage of the language, to specify what happens when you don’t explicitly close a file, or when it should begarbage collected.
TEACHING PYTHON AND DATA SCIENCE AROUND Teaching. Python. and. Data Science. around the world. Hi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways to make you a better developer, too! Most days, I work on-site with companies around the world (US, Europe, Israel, India, and China), teaching their engineersand staff.
REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better ONE YEAR OF "PYTHON FOR NON-PROGRAMMERS" One year of “Python for non-programmers”. In the spring of last year, as the coronavirus pandemic began, it was pretty clear that this would be the major event of our lives, and that a lot of people were going to be affected in big, terrible ways — beyond the issues related to the virus itself, and the injury it created. PYTHON DICTS AND MEMORY USAGE Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new, empty dict consume? We can find out with “ sys.getsizeof “: >>> import sys. >>> sys.getsizeof (d) 240. In other words, our dictionary, with nothing in it at all, consumes 240 bytes. PLAYING WITH PYTHON STRINGS, LISTS, AND VARIABLE NAMES 4 Playing with Python strings, lists, and variable names — or, a complex answer to a simple question. I recently received a question from a reader of my “Better developers” list.He asks: IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC Python’s str.isdigit vs. str.isnumeric. Let’s say that I want to write some Python code that invites the user to enter a number, and then prints that number, tripled. We could say: >>> n = input ("Enter a number: ") >>> print (f" {n} * 3 = {n*3}") The good news is that this code works just fine. The bad news is that it probably doesn’tdo
TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
AVOIDING WINDOWS BACKSLASH PROBLEMS WITH PYTHON'S RAW Thank you for this article, it helped to get a grasp of using raw strings in Python. One addition: Users can not always get around using “/”. If you want to automate starting applications, you’ll have to use the OS specific path seperators while emulating command line calls with the subprocess library for example. IF YOU DON'T USE "WITH", WHEN DOES PYTHON CLOSE FILES? THE The undefined nature of the result otherwise, is a perfect argument for using “with”. It would also constrain implementations unnecessarily and add to the baggage of the language, to specify what happens when you don’t explicitly close a file, or when it should begarbage collected.
DATA ANALYTICS WITH NUMPY AND PANDAS 0 Data analytics with NumPy and Pandas. Course length: 4 days (32 hours). Description: This course introduces the NumPy and Pandas packages for Python, and shows how they can be used to ask and answer a variety of questions involving data analysis.NumPy and Pandas are the foundation of the “SciPy stack,” a set of Python packages that have become extremely popular in recent years. UNDERSTANDING PYTHON SLICES Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so is with a “slice”: >>> s = 'abcdefghij'. >>> print (s ) defgh. In the above code, we’ve defined a string. We’ve then asked for the string to be returned, starting at index 3 and up to (and not THE FIVE-MINUTE GUIDE TO SETTING UP A JUPYTER NOTEBOOK 13 The five-minute guide to setting up a Jupyter notebook server. Nearly every day, I teach a course in Python.. And nearly every day, I thus use the Jupyter notebook: I do my live-coding demos in it, answer students’ questions using it, and also send it to my students at the end of the day, so that they can review my code without having to type furiously or take pictures of my screen. WORKING WITH WARNINGS IN PYTHON (OR: WHEN IS AN EXCEPTION The simplest filter is “warnings.simplefilter”, and the simplest way to invoke it is with a single string argument. That argument tells the warning system what to do if it encounters a warning: “default” — display a warning the first time it is encountered. “error” — turn the warning into an exception. “ignore” —ignore
FOUR WAYS TO ASSIGN VARIABLES IN PYTHON Method 1: Plain ol’ assignment. The first way to define a variable is with the assignment operator, =. Once again, I can say. x = 100. and I have assigned to x. If x didn’t exist before, then it does now. If it did exist before, then x now points to a new and differentobject.
PYTHON PARENTHESES PRIMER 11 Python parentheses primer. If you have children, then you probably remember them learning to walk, and then to read. If you’re like me, you were probably amazed by how long it took to do things that we don’t even think about. TURNING A POSTGRESQL ARRAY TO ROWS 8 Turning a PostgreSQL array to rows. I’ve spent the last few blog posts in this series talking about PostgreSQL’s arrays — how to create them, query them, and even create them with the ARRAY function.. But there are cases in which I would like to do the opposite — turn a PostgreSQL array to rows. IN PYTHON, IT'S ALL ABOUT THE ATTRIBUTES In Python, it’s all about the attributes. Newcomers to Python are often amazed to discover how easily we can create new classes. For example: class Foo (object): pass. is a perfectly valid (if boring) class. We can even create instances of this class: FOO(Y=Y), AND SIMILAR CODE THAT CONFUSES PYTHON NEWBIES I agree that having different, more specific, names for parameters is often a good idea. One area where I typically DO use the same name is when I am doing text templating, such as using string.Template or a templating engine (ex. jinja2). IF YOU DON'T USE "WITH", WHEN DOES PYTHON CLOSE FILES? THE The undefined nature of the result otherwise, is a perfect argument for using “with”. It would also constrain implementations unnecessarily and add to the baggage of the language, to specify what happens when you don’t explicitly close a file, or when it should begarbage collected.
TEACHING PYTHON AND DATA SCIENCE AROUND Teaching Python and Data Science around the worldHi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better PLAYING WITH PYTHON STRINGS, LISTS, AND VARIABLE NAMES 4 Playing with Python strings, lists, and variable names — or, a complex answer to a simple question. I recently received a question from a reader of my “Better developers” list.He asks: PYTHON DICTS AND MEMORY USAGE 7 Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new,empty dict consume?
IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC As you’ve already pointed out, the unicode power-of-2 , ² , is recognized as a digit by str.isdigit, so str.isdigit is an unreliable test for a string that UNDERSTANDING PYTHON SLICES 0 Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so iswith a “slice”:
TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
TURNING A POSTGRESQL ARRAY TO ROWS 8 Turning a PostgreSQL array to rows. I’ve spent the last few blog posts in this series talking about PostgreSQL’s arrays — how to create them, query them, and even create them with the ARRAY function.. But there are cases in which I would like to do the opposite — turn a PostgreSQL array to rows. FOO(Y=Y), AND SIMILAR CODE THAT CONFUSES PYTHON NEWBIES I agree that having different, more specific, names for parameters is often a good idea. One area where I typically DO use the same name is when I am doing text templating, such as using string.Template or a templating engine (ex. jinja2). TEACHING PYTHON AND DATA SCIENCE AROUND Teaching Python and Data Science around the worldHi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better PLAYING WITH PYTHON STRINGS, LISTS, AND VARIABLE NAMES 4 Playing with Python strings, lists, and variable names — or, a complex answer to a simple question. I recently received a question from a reader of my “Better developers” list.He asks: PYTHON DICTS AND MEMORY USAGE 7 Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new,empty dict consume?
IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC As you’ve already pointed out, the unicode power-of-2 , ² , is recognized as a digit by str.isdigit, so str.isdigit is an unreliable test for a string that UNDERSTANDING PYTHON SLICES 0 Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so iswith a “slice”:
TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
TURNING A POSTGRESQL ARRAY TO ROWS 8 Turning a PostgreSQL array to rows. I’ve spent the last few blog posts in this series talking about PostgreSQL’s arrays — how to create them, query them, and even create them with the ARRAY function.. But there are cases in which I would like to do the opposite — turn a PostgreSQL array to rows. FOO(Y=Y), AND SIMILAR CODE THAT CONFUSES PYTHON NEWBIES I agree that having different, more specific, names for parameters is often a good idea. One area where I typically DO use the same name is when I am doing text templating, such as using string.Template or a templating engine (ex. jinja2). ABOUT REUVEN M. LERNER Reuven is a full-time Python trainer. In a given year, he teaches courses at companies in the United States, Europe, Israel, India, and China — as well as to people around the world, via his online courses.. Reuven created one of the first 100 Web sites in the world just after graduating from MIT’s computer science department. He opened Lerner Consulting in 1995, and has been offering REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better ONE YEAR OF "PYTHON FOR NON-PROGRAMMERS" 0 One year of “Python for non-programmers” In the spring of last year, as the coronavirus pandemic began, it was pretty clear that this would be the major event of our lives, and that a lot of people were going to be affected in big, terrible ways — beyond the issues related to the virus itself, and the injury it created. PRACTICE YOUR PYTHON! Weekly Python Exercise — a family of 15-week courses, with new cohorts (at beginning and advanced levels) starting every 1-2 months. WPE combines weekly challenges, a private forum, and live office hours for lots of Python practice. Python Morsels — weekly challenges on a variety of Python topics.; PyBytes — weekly challenges, often using Django or Flask to create Web applications. DATA ANALYTICS WITH NUMPY AND PANDAS 0 Data analytics with NumPy and Pandas. Course length: 4 days (32 hours). Description: This course introduces the NumPy and Pandas packages for Python, and shows how they can be used to ask and answer a variety of questions involving data analysis.NumPy and Pandas are the foundation of the “SciPy stack,” a set of Python packages that have become extremely popular in recent years. IMPLEMENTING "MIN" AND "MAX" WITH "REDUCE" 0 Implementing “min” and “max” with “reduce” This is the third installment of my “reduce” series of blog posts. For the first, see here, and for the second, see here.. If you have been reading this series, then you know that “reduce” can be used to sum numbers, or to calculate scores. THE FIVE-MINUTE GUIDE TO SETTING UP A JUPYTER NOTEBOOK 13 The five-minute guide to setting up a Jupyter notebook server. Nearly every day, I teach a course in Python.. And nearly every day, I thus use the Jupyter notebook: I do my live-coding demos in it, answer students’ questions using it, and also send it to my students at the end of the day, so that they can review my code without having to type furiously or take pictures of my screen. FOUR WAYS TO ASSIGN VARIABLES IN PYTHON 4 Four ways to assign variables in Python. Within minutes of starting to learn Python, everyone learns how to define a variable. You cansay: x = 100
AVOIDING WINDOWS BACKSLASH PROBLEMS WITH PYTHON'S RAW Thank you for this article, it helped to get a grasp of using raw strings in Python. One addition: Users can not always get around using “/”. If you want to automate starting applications, you’ll have to use the OS specific path seperators while emulating command line calls with the subprocess library for example. FOO(Y=Y), AND SIMILAR CODE THAT CONFUSES PYTHON NEWBIES I agree that having different, more specific, names for parameters is often a good idea. One area where I typically DO use the same name is when I am doing text templating, such as using string.Template or a templating engine (ex. jinja2). TEACHING PYTHON AND DATA SCIENCE AROUND Teaching. Python. and. Data Science. around the world. Hi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways to make you a better developer, too! Most days, I work on-site with companies around the world (US, Europe, Israel, India, and China), teaching their engineersand staff.
REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. PLAYING WITH PYTHON STRINGS, LISTS, AND VARIABLE NAMES 4 Playing with Python strings, lists, and variable names — or, a complex answer to a simple question. I recently received a question from a reader of my “Better developers” list.He asks: PYTHON DICTS AND MEMORY USAGE Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new, empty dict consume? We can find out with “ sys.getsizeof “: >>> import sys. >>> sys.getsizeof (d) 240. In other words, our dictionary, with nothing in it at all, consumes 240 bytes. UNDERSTANDING PYTHON SLICES Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so is with a “slice”: >>> s = 'abcdefghij'. >>> print (s ) defgh. In the above code, we’ve defined a string. We’ve then asked for the string to be returned, starting at index 3 and up to (and not PYTHON'S OBJECTS AND CLASSES 19 Python’s objects and classes — a visual guide. Python developers love to say that “everything is an object.” And indeed, when I teach Python classes, I say this several times, and many people nod in agreement, assuming that I’m merely repeating something they’ve heard before. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC Python’s str.isdigit vs. str.isnumeric. Let’s say that I want to write some Python code that invites the user to enter a number, and then prints that number, tripled. We could say: >>> n = input ("Enter a number: ") >>> print (f" {n} * 3 = {n*3}") The good news is that this code works just fine. The bad news is that it probably doesn’tdo
TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
TURNING A POSTGRESQL ARRAY TO ROWS 8 Turning a PostgreSQL array to rows. I’ve spent the last few blog posts in this series talking about PostgreSQL’s arrays — how to create them, query them, and even create them with the ARRAY function.. But there are cases in which I would like to do the opposite — turn a PostgreSQL array to rows. TEACHING PYTHON AND DATA SCIENCE AROUND Teaching. Python. and. Data Science. around the world. Hi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways to make you a better developer, too! Most days, I work on-site with companies around the world (US, Europe, Israel, India, and China), teaching their engineersand staff.
REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. PLAYING WITH PYTHON STRINGS, LISTS, AND VARIABLE NAMES 4 Playing with Python strings, lists, and variable names — or, a complex answer to a simple question. I recently received a question from a reader of my “Better developers” list.He asks: PYTHON DICTS AND MEMORY USAGE Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new, empty dict consume? We can find out with “ sys.getsizeof “: >>> import sys. >>> sys.getsizeof (d) 240. In other words, our dictionary, with nothing in it at all, consumes 240 bytes. UNDERSTANDING PYTHON SLICES Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so is with a “slice”: >>> s = 'abcdefghij'. >>> print (s ) defgh. In the above code, we’ve defined a string. We’ve then asked for the string to be returned, starting at index 3 and up to (and not PYTHON'S OBJECTS AND CLASSES 19 Python’s objects and classes — a visual guide. Python developers love to say that “everything is an object.” And indeed, when I teach Python classes, I say this several times, and many people nod in agreement, assuming that I’m merely repeating something they’ve heard before. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC Python’s str.isdigit vs. str.isnumeric. Let’s say that I want to write some Python code that invites the user to enter a number, and then prints that number, tripled. We could say: >>> n = input ("Enter a number: ") >>> print (f" {n} * 3 = {n*3}") The good news is that this code works just fine. The bad news is that it probably doesn’tdo
TURNING POSTGRESQL ROWS INTO ARRAYS 8 Turning PostgreSQL rows into arrays. So far in this series, I have described how you can create arrays and retrieve information from them — both the actual data stored in the array, and information about the array, such as its length.But the coolest trick, or set of tricks, that I use in PostgreSQL is the ability to turn arrays into rows, andvice versa.
TURNING A POSTGRESQL ARRAY TO ROWS 8 Turning a PostgreSQL array to rows. I’ve spent the last few blog posts in this series talking about PostgreSQL’s arrays — how to create them, query them, and even create them with the ARRAY function.. But there are cases in which I would like to do the opposite — turn a PostgreSQL array to rows. REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better PRACTICE YOUR PYTHON! Weekly Python Exercise — a family of 15-week courses, with new cohorts (at beginning and advanced levels) starting every 1-2 months. WPE combines weekly challenges, a private forum, and live office hours for lots of Python practice. Python Morsels — weekly challenges on a variety of Python topics.; PyBytes — weekly challenges, often using Django or Flask to create Web applications. ONE YEAR OF "PYTHON FOR NON-PROGRAMMERS" 0 One year of “Python for non-programmers” In the spring of last year, as the coronavirus pandemic began, it was pretty clear that this would be the major event of our lives, and that a lot of people were going to be affected in big, terrible ways — beyond the issues related to the virus itself, and the injury it created. ABOUT REUVEN M. LERNER About Reuven M. Lerner. Reuven is a full-time Python trainer. In a given year, he teaches courses at companies in the United States, Europe, Israel, India, and China — as well as to people around the world, via his online courses. Reuven created one of the first 100 Web sites in the world just after graduating from MIT’s computer science DATA ANALYTICS WITH NUMPY AND PANDAS 0 Data analytics with NumPy and Pandas. Course length: 4 days (32 hours). Description: This course introduces the NumPy and Pandas packages for Python, and shows how they can be used to ask and answer a variety of questions involving data analysis.NumPy and Pandas are the foundation of the “SciPy stack,” a set of Python packages that have become extremely popular in recent years. IMPLEMENTING "MIN" AND "MAX" WITH "REDUCE" 0 Implementing “min” and “max” with “reduce” This is the third installment of my “reduce” series of blog posts. For the first, see here, and for the second, see here.. If you have been reading this series, then you know that “reduce” can be used to sum numbers, or to calculate scores. THE FIVE-MINUTE GUIDE TO SETTING UP A JUPYTER NOTEBOOK 13 The five-minute guide to setting up a Jupyter notebook server. Nearly every day, I teach a course in Python.. And nearly every day, I thus use the Jupyter notebook: I do my live-coding demos in it, answer students’ questions using it, and also send it to my students at the end of the day, so that they can review my code without having to type furiously or take pictures of my screen. FOUR WAYS TO ASSIGN VARIABLES IN PYTHON Method 1: Plain ol’ assignment. The first way to define a variable is with the assignment operator, =. Once again, I can say. x = 100. and I have assigned to x. If x didn’t exist before, then it does now. If it did exist before, then x now points to a new and differentobject.
AVOIDING WINDOWS BACKSLASH PROBLEMS WITH PYTHON'S RAW Thank you for this article, it helped to get a grasp of using raw strings in Python. One addition: Users can not always get around using “/”. If you want to automate starting applications, you’ll have to use the OS specific path seperators while emulating command line calls with the subprocess library for example. FOO(Y=Y), AND SIMILAR CODE THAT CONFUSES PYTHON NEWBIES I agree that having different, more specific, names for parameters is often a good idea. One area where I typically DO use the same name is when I am doing text templating, such as using string.Template or a templating engine (ex. jinja2). TEACHING PYTHON AND DATA SCIENCE AROUND Teaching. Python. and. Data Science. around the world. Hi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways to make you a better developer, too! Most days, I work on-site with companies around the world (US, Europe, Israel, India, and China), teaching their engineersand staff.
REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better PLAYING WITH PYTHON STRINGS, LISTS, AND VARIABLE NAMES 4 Playing with Python strings, lists, and variable names — or, a complex answer to a simple question. I recently received a question from a reader of my “Better developers” list.He asks: UNDERSTANDING PYTHON SLICES Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so is with a “slice”: >>> s = 'abcdefghij'. >>> print (s ) defgh. In the above code, we’ve defined a string. We’ve then asked for the string to be returned, starting at index 3 and up to (and not PYTHON'S OBJECTS AND CLASSES 19 Python’s objects and classes — a visual guide. Python developers love to say that “everything is an object.” And indeed, when I teach Python classes, I say this several times, and many people nod in agreement, assuming that I’m merely repeating something they’ve heard before. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC Python’s str.isdigit vs. str.isnumeric. Let’s say that I want to write some Python code that invites the user to enter a number, and then prints that number, tripled. We could say: >>> n = input ("Enter a number: ") >>> print (f" {n} * 3 = {n*3}") The good news is that this code works just fine. The bad news is that it probably doesn’tdo
IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. FOUR WAYS TO ASSIGN VARIABLES IN PYTHON Method 1: Plain ol’ assignment. The first way to define a variable is with the assignment operator, =. Once again, I can say. x = 100. and I have assigned to x. If x didn’t exist before, then it does now. If it did exist before, then x now points to a new and differentobject.
TURNING A POSTGRESQL ARRAY TO ROWS 8 Turning a PostgreSQL array to rows. I’ve spent the last few blog posts in this series talking about PostgreSQL’s arrays — how to create them, query them, and even create them with the ARRAY function.. But there are cases in which I would like to do the opposite — turn a PostgreSQL array to rows. AVOIDING WINDOWS BACKSLASH PROBLEMS WITH PYTHON'S RAW Thank you for this article, it helped to get a grasp of using raw strings in Python. One addition: Users can not always get around using “/”. If you want to automate starting applications, you’ll have to use the OS specific path seperators while emulating command line calls with the subprocess library for example. TEACHING PYTHON AND DATA SCIENCE AROUND Teaching. Python. and. Data Science. around the world. Hi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways to make you a better developer, too! Most days, I work on-site with companies around the world (US, Europe, Israel, India, and China), teaching their engineersand staff.
REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better PLAYING WITH PYTHON STRINGS, LISTS, AND VARIABLE NAMES 4 Playing with Python strings, lists, and variable names — or, a complex answer to a simple question. I recently received a question from a reader of my “Better developers” list.He asks: UNDERSTANDING PYTHON SLICES Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so is with a “slice”: >>> s = 'abcdefghij'. >>> print (s ) defgh. In the above code, we’ve defined a string. We’ve then asked for the string to be returned, starting at index 3 and up to (and not PYTHON'S OBJECTS AND CLASSES 19 Python’s objects and classes — a visual guide. Python developers love to say that “everything is an object.” And indeed, when I teach Python classes, I say this several times, and many people nod in agreement, assuming that I’m merely repeating something they’ve heard before. PYTHON'S STR.ISDIGIT VS. STR.ISNUMERIC Python’s str.isdigit vs. str.isnumeric. Let’s say that I want to write some Python code that invites the user to enter a number, and then prints that number, tripled. We could say: >>> n = input ("Enter a number: ") >>> print (f" {n} * 3 = {n*3}") The good news is that this code works just fine. The bad news is that it probably doesn’tdo
IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. FOUR WAYS TO ASSIGN VARIABLES IN PYTHON Method 1: Plain ol’ assignment. The first way to define a variable is with the assignment operator, =. Once again, I can say. x = 100. and I have assigned to x. If x didn’t exist before, then it does now. If it did exist before, then x now points to a new and differentobject.
TURNING A POSTGRESQL ARRAY TO ROWS 8 Turning a PostgreSQL array to rows. I’ve spent the last few blog posts in this series talking about PostgreSQL’s arrays — how to create them, query them, and even create them with the ARRAY function.. But there are cases in which I would like to do the opposite — turn a PostgreSQL array to rows. AVOIDING WINDOWS BACKSLASH PROBLEMS WITH PYTHON'S RAW Thank you for this article, it helped to get a grasp of using raw strings in Python. One addition: Users can not always get around using “/”. If you want to automate starting applications, you’ll have to use the OS specific path seperators while emulating command line calls with the subprocess library for example. REUVEN LERNER'S PYTHON COURSES I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better DATA ANALYTICS WITH NUMPY AND PANDAS 0 Data analytics with NumPy and Pandas. Course length: 4 days (32 hours). Description: This course introduces the NumPy and Pandas packages for Python, and shows how they can be used to ask and answer a variety of questions involving data analysis.NumPy and Pandas are the foundation of the “SciPy stack,” a set of Python packages that have become extremely popular in recent years. ONE YEAR OF "PYTHON FOR NON-PROGRAMMERS" 0 One year of “Python for non-programmers” In the spring of last year, as the coronavirus pandemic began, it was pretty clear that this would be the major event of our lives, and that a lot of people were going to be affected in big, terrible ways — beyond the issues related to the virus itself, and the injury it created. ABOUT REUVEN M. LERNER About Reuven M. Lerner. Reuven is a full-time Python trainer. In a given year, he teaches courses at companies in the United States, Europe, Israel, India, and China — as well as to people around the world, via his online courses. Reuven created one of the first 100 Web sites in the world just after graduating from MIT’s computer science PYTHON DICTS AND MEMORY USAGE Python dicts and memory usage. Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new, empty dict consume? We can find out with “ sys.getsizeof “: >>> import sys. >>> sys.getsizeof (d) 240. In other words, our dictionary, with nothing in it at all, consumes 240 bytes. UNDERSTANDING PYTHON SLICES Understanding Python slices. Let’s say that you have a Python string, and want to grab a substring from it. The best way to do so is with a “slice”: >>> s = 'abcdefghij'. >>> print (s ) defgh. In the above code, we’ve defined a string. We’ve then asked for the string to be returned, starting at index 3 and up to (and not THE FIVE-MINUTE GUIDE TO SETTING UP A JUPYTER NOTEBOOK 13 The five-minute guide to setting up a Jupyter notebook server. Nearly every day, I teach a course in Python.. And nearly every day, I thus use the Jupyter notebook: I do my live-coding demos in it, answer students’ questions using it, and also send it to my students at the end of the day, so that they can review my code without having to type furiously or take pictures of my screen. IMPLEMENTING "ZIP" WITH LIST COMPREHENSIONS Without importing anything, the following should work on just about any sequence up to 18,446,744,073,709,551,616 items in length. It is important to realize that zip does works on sequences that do not have any predetermined size. PYTHON PARENTHESES PRIMER 11 Python parentheses primer. If you have children, then you probably remember them learning to walk, and then to read. If you’re like me, you were probably amazed by how long it took to do things that we don’t even think about.A VERY SAD DAY
3 A very sad day — the end of Linux Journal [Update, as of August 8, 2019: Since I wrote this post, Linux Journal re-opened, thanks to a generous investment/purchase, and * Corporate training * Introduction to Python* Advanced Python
* Python for non-programmers * Data science and machine learning in Python * Python for system administrators * Python Practice Workshop * Regular expressions * Introduction to Git* Online training
* Weekly Python Exercise* NumPy
* Intro Python: Fundamentals * Object-oriented Python * Comprehending Comprehensions * Understanding and mastering Git* Python Workout
* Practice Makes Regexp * Free e-mail courses * Regular expressions crash course * Boolean indexing in NumPy and Pandas * Variable scoping in Python * Working with files in Python * Teach programming better* Blog
* About Reuven
0
TEACHING PYTHON AND DATA SCIENCE AROUND THE WORLD Hi, I’m Reuven Lerner. I help developers around the world to become more fluent in Python. I’d love to find ways to make _you _a better developer, too! Most days, I work on-site with companies around the world (US, Europe, Israel, and China), teaching their engineers and staff. IF YOU WANT YOUR TEAM TO WRITE BETTER, SHORTER PYTHON CODE IN LESS TIME, THENLET'S TALK!
And if you're an individual? Read on, to learn about my various online training options.Schedule a Call
MY SERVICES
CORPORATE PYTHON TRAINING No matter your team's Python level, I can help you do more in lesstime.
See full syllabi
WEEKLY PYTHON EXERCISE Do you still need to search Stack Overflow several times each day, because your Python isn't fluent? Weekly Python Exercise is here to help you, with a family of 15-week courses for both newcomers to Python and experienced developers.Learn more
ONLINE PYTHON VIDEO COURSES Do you want to take the courses I give at the world’s biggest companies? Now you can, with my online courses. Learn from your homeor office!
Learn more
CORPORATE TRAINING
*
Intro Python (4 Days)*
Advanced Python (4 Days)*
Python for non-programmers(4 Days)
*
Python for system administrators(2 Days)
*
Data science & machine learning in Python(4 Days)
*
Python Practice Workshop(1-3 Days)
*
Introduction to Git (2Days)
*
Regular expressions (2Days)
------------------------- WEEKLY PYTHON EXERCISE "Weekly Python Exercise" is a set of 15-week courses that MAKE YOU A MORE FLUENT PYTHON PROGRAMMER. HOW IT WORKS: Every Tuesday, you get a new problem sent to you via e-mail. The following Monday, you get a detailed solution, complete with explanations. In between, you can exchange ideas and solutions with others in your cohort. And every month, you can join live office hours, asking questions about the exercises or Python ingeneral.
WPE is all about improving your Python, one week at a time. New cohorts open every 1-2 months, at the beginner and advanced levels. Students say that WPE provided the boost they needed to make them better Python developers. Learn more, and get a free trial of WPE, at https://WeeklyPythonExercise.com/. ------------------------- ONLINE VIDEO COURSES*
Weekly Python Exercise, next cohort*
NumPy
*
Intro Python: Fundamentals*
Understanding and mastering Git*
Comprehending comprehensions*
Object Oriented Python*
Practice Makes Regexp — complete package*
Python decorators (live edition) -------------------------HOW I'M DIFFERENT
INTERACTIVE
My courses are highly interactive, with numerous exercises and opportunities for discussion. I rarely use slides, instead live-coding into the Jupyter notebook as I demonstrate the techniques I’m teaching. After class each day, I send my Jupyter notebooks to my students, for review and future reference. LEARNING BY DOING I know that people learn best not by listening to long lectures, but by actually trying, failing, and then understanding where they went wrong. That's why my courses consist of 30-40% hands-on labs. Each exercise will push you to understand Python at a deeper level, contextualizing the ideas we've discussed. SOME OF MY REPEAT CLIENTS*
Apple
*
ARM
*
Cisco
*
Citibank
*
IBM
*
Intel
*
PayPal
*
VMWare
*
Western Digital
WHAT PEOPLE SAY
Many thanks for this brilliant course! It was well structured, highly organized, and had a good combination of theory and hands-on assignments. None of us left with unanswered questions. _Software Engineer, IBM_ The best instructor in programming I have ever had the pleasure of learning from. His mastery of the content and delivery is excellent. The content of the material, practical examples and attention to detail make this an excellent course. _Software Engineer, Cisco_ The content, clear delivery and explanation of the concepts was of highest quality. The instructor is supremely knowledgeable and experienced in breaking down the complexities of material. He is really good at using examples for each subject material from a foundational level and gradually building up to more advancedconcepts.
_Software Engineer, Fortune 100 Company_ The instructor's knowledge and deep understanding of python is unique and exceptional. His ability to decouple the complexities of the language to make it easier to grasp. The content and examples of the class were of highest quality.
_Software Engineer, Fortune 100 Company_GET STARTED
Want me to come and train developers in your company? I’d be delighted to chat! Just e-mail me at reuven@lerner.co.il, and we’ll schedule a call to discuss your needs. Note: I’m typically booked months in advance, so it’s better to talk about this soonerthan later.
Schedule a Call
Copyright text 2019 by Reuven Lerner.>
BECOME A BETTER DEVELOPER×
BECOME A BETTER DEVELOPER Join more than 10,000 other developers who receive my free, weekly tips about programming, with an emphasis on Python.* Email Address
* Name
* Website
×
THANKS FOR SUBSCRIBING! Thanks so much for joining my "Better developers" newsletter. Don't forget to confirm your subscription. And you'll probably want to whitelist "reuven@lerner.co.il" while you're at it, to make sure my messages don't go straight into your spam file.Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0