TechBeamers Python: Generate a Python Random Number

Here is a quick guide on Python’s random number. You can always refer to it whenever you need to generate a random number in your programs. Python has a built-in random module for this purpose. It exposes several methods such as randrange(), randint(), random(), seed(), uniform(), etc. You can call any of these functions to generate a Python random number. Usually, a random number is an integer, but you can generate float random also. However, you first need to understand the context as a programmer and then pick the right…

Read More

A. Jesse Jiryu Davis: PyGotham 2019 Speaker Coaching Recap

I’m one of the organizers for PyGotham, the yearly Python programming conference in New York City. This year thirteen PyGotham speakers received training from opera singer and speaking coach Melissa Collom, paid for by the conference and free for the speakers. Eight of the speakers were new to the conference scene; Melissa helped them focus on delivering value to their audience, structuring their talks clearly, and speaking with conviction. All the speakers who responded to a survey said they felt more confident and they were more likely to propose conference…

Read More

Zato Blog: Auto-generating API specifications as OpenAPI, WSDL and Sphinx

This article presents a workflow for auto-generation of API specifications for your Zato services – if you need to share your APIs with partners, external or internal, this is how it can be done. Sample services Let’s consider the services below – they represent a subset of a hypothetical API of a telecommunication company. In this case, they are to do with pre-paid cards. Deploy them on your servers in a module called api.py. Note that their implementation is omitted, we only deal with their I/O, as it is expressed…

Read More
Programming 

PyCoder’s Weekly: Issue #397 (Dec. 3, 2019)

#397 – DECEMBER 3, 2019 View in Browser » Guido van Rossum Withdraws From the Python Steering Council “Part of my reason is that in the end, SC duty feels more like a chore to me than fun, and one of the things I’m trying to accomplish in my life post Dropbox retirement is to have more fun. To me, fun includes programming in and contributing to Python, for example the PEG parser project.” PYTHON.ORG Python Descriptors: An Introduction Learn what Python descriptors are and how they’re used in Python’s…

Read More

Andre Roberge: Friendly-traceback, Real Python, Pycon, and more

After an interruption that lasted a few months, I’ve finally been able to return to programming, more specifically working mostly on Friendly-traceback. For those that do not know Friendly-traceback: it aims to replace the sometimes obscure traceback generated by Python with something easier to understand. Furthermore, Friendly-traceback is designed with support for languages other than English so that, in theory, beginners (who are the main target audience for Friendly-traceback) could benefit no matter what their native language is … provided someone would have done the translation into that language, of…

Read More
java 

PyDev of the Week: Bob Belderbos

This week we welcome Bob Belderbos (@bbelderbos) as our PyDev of the Week! Bob is a co-founder of PyBites. Bob has also contributed to Real Python and he’s a Talk Python trainer. You can learn more about Bob by checking out his website or visiting his Github profile. Let’s spend some quality time getting to know Bob better! Can you tell us a little about yourself (hobbies, education, etc): I am a software developer currently working at Oracle in the Global Construction Engineering group. But I am probably better known…

Read More

Trey Hunner: Black Friday Sale: Gift Python Morsels to a Friend

From today until the end of Monday December 2nd, I’m selling bundles of two 52-week Python Morsels redemption codes. You can buy 12 months of Python Morsels for yourself and gift 12 months of Python Morsels to a friend for free! Or, if you’re extra generous, you can buy two redemption codes (for the price of one) and gift them both to two friends. What is Python Morsels?🐍🍪 Python Morsels is a weekly Python skill-building service for professional Python developers. Subscribers receive one Python exercise every week in the Python…

Read More
Programming 

Reuven Lerner: My Black Friday sale is live! Take 50% off any course in Python or data science

As promised, the Black Friday sale has begun in my online store. Through Monday, my courses and books are all 50% off with the coupon code BF2019. This includes all eight of the video courses: Intro Python: Fundamentals (basic syntax and data structures) Intro Python: Functions (*NEW* writing and using functions) Comprehending comprehensions (using list, set, and dict comprehensions) Object-oriented Python (classes, instances, attributes, and methods) NumPy (using NumPy for numeric analysis) Pandas (*NOW COMPLETE* using Pandas for data analysis) Understanding and mastering Git Practice Makes Regexp (50 exercises to…

Read More
Programming 

PyCoder’s Weekly: Issue #396 (Nov. 26, 2019)

#396 – NOVEMBER 26, 2019 View in Browser » PyCon 2020 Registration Is Now Open PyCon is the largest annual gathering for the community that uses and develops the open-source Python programming language. April 15–23 in Pittsburgh. Pro-tip: Get your early bird tickets today. PYCON.ORG Python KeyError Exceptions and How to Handle Them KeyError exceptions are often caused by a bad key lookup in a dictionary, but there are a few other situations when a KeyError can be raised as well. Knowing how to handle these exceptions is essential to…

Read More

Reuven Lerner: Black Friday: All of my Python courses are 50% off!

This coming Friday is “Black Friday,” when many stores offer big discounts on their products. I’m happy to say that from Friday through Monday, every course in my online store will be 50% off. This includes all eight of the video courses in my online store: Intro Python: Fundamentals (basic syntax and data structures) Intro Python: Functions (writing and using functions) Comprehending comprehensions (using list, set, and dict comprehensions) Object-oriented Python (classes, instances, attributes, and methods) NumPy (using NumPy for numeric analysis) Pandas (using Pandas for data analysis) Understanding and…

Read More