Open in app

Sign In

Write

Sign In

Yong Cui
Yong Cui

5.5K Followers

Home

Books

About

Featured Book

Python How-To
Python How-To

63 specific techniques that help you write good Python code.

2023

·
Yong Cui
Yong Cui

Stories

Pinned

My Top 10 Articles for Python (Updated in August, 2021)

Some helpful Python tips — Greetings, readers! It’s been one and half years since I started blogging on Medium, and thank you all for the continous support. Here’s a list of my top 10 articles for Python. I hope you’ll find some of them useful. 30 Simple Tricks to Level Up Your Python Coding: a…

Python

2 min read

My Top 10 Articles for Python (Updated in August, 2021)
My Top 10 Articles for Python (Updated in August, 2021)
Python

2 min read


Published in

Better Programming

·Feb 28

8 Things to Know to Master Comprehension in Python

Your one-stop shop to know everything about comprehension. — Comprehension is regarded as one of the most Pythonic techniques. There are multiple forms of comprehension, such as list comprehension and dictionary comprehension. In addition, each comprehension has a variety of permutations, such as using nested for loops and applying a filtering condition. In this poster, I’m going to cover…

Python

6 min read

8 Things to Know to Master Comprehension in Python
8 Things to Know to Master Comprehension in Python
Python

6 min read


Feb 6

From Medium Blogger to Book Author — You Can Publish a Book Like Me!

Share my experience of three years of blogging, which led to a book. Also, introduce the general process of publishing a book with a reputable publisher. — One thing that all of us share in our childhood is reading books in various genres, such as history, mystery, fiction, and science. Some of us, maybe a small portion at a certain point like teenage, may have wondered how it feels to have your name on a book as…

Technology

12 min read

From Medium Blogger to Book Author — You Can Publish a Book Like Me!
From Medium Blogger to Book Author — You Can Publish a Book Like Me!
Technology

12 min read


Published in

Geek Culture

·Aug 11, 2022

Use These 5 Techniques to Write Concise Python Code

Make your Python code more readable — Python is a beginner-friendly language that many people start their learning to code with it. Once you have Python installed on your computer, it just takes one line of code to finish your “Hello World” program. After a while that you use Python, you’ll be fascinated by how flexible Python…

Python

5 min read

Use These 5 Techniques to Write Concise Python Code
Use These 5 Techniques to Write Concise Python Code
Python

5 min read


Published in

Towards Data Science

·Jul 28, 2022

How to Define Nonpublic Methods in a Python Class

Idiomatic ways to use Python as OOP — At its core, Python is an object-oriented programming (OOP) language, which builds its features around objects. A string is an object, an instance of a custom class is an object, and so is a class, module, and even package. One long-term principle in OOP coding is encapsulation — the design…

Python

6 min read

How to Define Nonpublic Methods in a Python Class
How to Define Nonpublic Methods in a Python Class
Python

6 min read


Published in

Towards Data Science

·Jul 19, 2022

Top 10 Categories of Pandas Functions That I Use Most

Get familiar with these functions to help you process data — People love to use Python because it has a versatile repository of third-party libraries for all kinds of work. For data science, one of the most popular libraries for data processing is Pandas. Over the years, because of its open-source nature, many developers have contributed to this project, making pandas…

Data Science

5 min read

Top 10 Categories of Pandas Functions That I Use Most
Top 10 Categories of Pandas Functions That I Use Most
Data Science

5 min read


Published in

Better Programming

·Jul 11, 2022

3 Things to Consider When You Define Functions

Level up your Python skills — The core of any application is data. If you’re building a social networking website, the users and their friendships are the data. If you’re building a game, the graphics and the user operations are the data. If you’re building an online shopping store, the product and client information are the…

Programming

6 min read

3 Things to Consider When You Define Functions
3 Things to Consider When You Define Functions
Programming

6 min read


Published in

Towards Data Science

·Jun 29, 2022

3 Things You May Not Know About Python Tuples

Getting better to use tuples — Tuples are one important built-in data type in Python. Like lists, we often use tuples to save multiple objects as a data container. However, what makes them different from lists is their immutability — an immutable sequence of data. The following code snippet shows you some common usages for tuples. …

Python

5 min read

3 Things You May Not Know About Python Tuples
3 Things You May Not Know About Python Tuples
Python

5 min read


Published in

Better Programming

·May 30, 2022

How To Inspect Objects in Python? 9 Functions To Know

To greatly improve your development — Python is a representative object-oriented language, in which everything is organized around objects — built-in and custom classes, instances, modules, and functions. When we deal with objects, it’s often needed to check what they are such that we can use them accordingly. In this article, I’d like to introduce nine…

Programming

8 min read

How To Inspect Objects in Python? 9 Functions To Know
How To Inspect Objects in Python? 9 Functions To Know
Programming

8 min read


Published in

Better Programming

·May 16, 2022

Running Python Scripts on the Web Using PyScript

Is it the next big thing? Probably if it continues to evolve — During the 2022 PyCon US conference, one of the keynote speakers Peter Wang unveiled PyScript — a way to write Python script directly within HTML. If you don’t know Peter, you may have heard of Anaconda, which is one of the most popular distributions of Python and R with a…

Python

6 min read

Running Python Scripts on the Web Using PyScript
Running Python Scripts on the Web Using PyScript
Python

6 min read

Yong Cui

Yong Cui

5.5K Followers

Book Author

Work at the nexus of biomedicine, data science & mobile dev. Author of Python How-to by Manning (https://www.manning.com/books/python-how-to).

Following
  • Bastiane Huang

    Bastiane Huang

  • Keno Leon

    Keno Leon

  • Yakko Majuri

    Yakko Majuri

  • Soner Yıldırım

    Soner Yıldırım

  • Przemek Chojecki

    Przemek Chojecki

See all (226)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams