Sign in

Work at the nexus of biomedicine, data science & mobile dev. Love to write on these technological topics. Follow me @ycui01 on Twitter to get latest articles.

Leverage the power of Python as an OOP

Students in classroom
Students in classroom
Photo by National Cancer Institute on Unsplash.

1. Override Initialization Method


Know when to use deques as an alternative to Python lists

Sword
Sword
Photo by Jonathan Kemper on Unsplash.


Take advantage of the flexibility that Python has to offer

Books on a shelf
Books on a shelf
Photo by Sigmund on Unsplash.
grades = {"Anne": 98, "John": 95, "Bella": 97}


Have a deeper understanding of Python strings

closeup of typewriter keys
closeup of typewriter keys
Photo by Markus Winkler on Unsplash
text = 'è'…


Take advantage of this powerful tool

The night sky with stars and a shooting star
The night sky with stars and a shooting star
Photo by Vincentiu Solomon on Unsplash

Introduction


Put an end to the confusion about these concepts

Male facing the wall, frustrated. Wall has multiple squares and bricks
Male facing the wall, frustrated. Wall has multiple squares and bricks
Photo by Daniel Mingook Kim on Unsplash

Introduction


Let’s clarify some idiomatic Python usages

Man holding Rubik’s cube
Man holding Rubik’s cube
Photo by Juan Pablo Donadías on Unsplash.

1. Logical Operators: and, or


Advance your Python knowledge by bringing related topics together

Water washing up on rocks
Water washing up on rocks
Photo by Dan Stark on Unsplash.

Basic Concept


Highlighting some of the most common features

Photo by Yeshi Kangrang on Unsplash
pip install streamlit


Write Python code in a Pythonic way

Multi-colored dwellings
Multi-colored dwellings
Photo by Nick Fewings on Unsplash.

Yong Cui

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store