Open in app

Sign In

Write

Sign In

Liu Zuo Lin
Liu Zuo Lin

19.6K Followers

Home

Lists

About

Published in

Level Up Coding

·Pinned

30 Python Concepts I Wish I Knew Way Earlier

# Stuff I wish I Learnt Much Earlier in my Python Journey — Everyone’s Python journey is different, and we all learn different concepts at different speeds, in different sequences. But some things ay off a lot more when you learn them early. Here are 30 Python concepts I wish I learn much earlier in my own Python journey. 1) f-strings (formatted strings) I was taught to…

Python

14 min read

30 Python Concepts I Wish I Knew Way Earlier
30 Python Concepts I Wish I Knew Way Earlier
Python

14 min read


Published in

Level Up Coding

·Pinned

10 Tools That Vastly Brighten Up My Coding Experience

# My Updated Home-Office Setup — If you do work from home sometimes, I do recommend getting some of these to brighten up your coding experience too! 1) A long long screen Mine is a 34-Inch monitor from Dell with a longer-than-normal screen aspect ratio. Longer screen == more screen real estate == happier coding 2) External screens I work from my laptop (16-Inch…

Software Engineering

4 min read

10 Tools That Vastly Brighten Up My Coding Experience
10 Tools That Vastly Brighten Up My Coding Experience
Software Engineering

4 min read


Published in

Level Up Coding

·Pinned

Return VS Yield in Python — A Short Comic

# Why ‘yield’ can make your Python code faster — And this problem gets worse the more data we deal with. What if there are 1000 people in the line? The ‘return’ keyword def add10(x): return x + 10 x = add10(4) # x = 14 def get_takoballs(orders): output = [] for order in orders: output.append(f'{order} …

Python

3 min read

Return VS Yield in Python — A Short Comic
Return VS Yield in Python — A Short Comic
Python

3 min read


Published in

Level Up Coding

·Pinned

20 Python Concepts I Wish I Knew Way Earlier

# Stuff I wish I learnt earlier as a beginner — There are lots of concepts we need to grasp in Python. And everyone learns them differently, in different sequences. Here are some things I wish I learnt much earlier when I was still a Python beginner. 1) Tuple Unpacking + Tuple Unpacking With * person = ['bob', 30, 'male'] name, age, gender = person # name='bob, age=30, gender='male' …

Python

9 min read

20 Python Concepts I Wish I Knew Way Earlier
20 Python Concepts I Wish I Knew Way Earlier
Python

9 min read


Published in

Level Up Coding

·Pinned

48 Things I Never Knew About Python Until Recently (Compilation)

# this list keeps getting longer — 1) We can set variables dynamically using globals() a = 4 b = 5 ^ this is the same as: globals()['a'] = 4 globals()['b'] = 5 globals() is a dictionary containing all global variables, and we can set variables by add key-value pairs into globals(). (don’t do this in production code tho) 2) re.sub can take in functions # replacing vowels with - import re x…

Python

11 min read

48 Things I Never Knew About Python Until Recently (Compilation)
48 Things I Never Knew About Python Until Recently (Compilation)
Python

11 min read


3 hours ago

Making A Button Do Stuff in JavaScript For Beginners

# Another super step-by-step guide — I remember being confused as hell the first few times I tried this back when I was still learning JavaScript. This articles goes out to new JavaScript learners, and hopefully it makes your journey less painful. What we want to build A page with a button that increases a number by 1 when clicked. …

HTML

5 min read

Making A Button Do Stuff in JavaScript For Beginners
Making A Button Do Stuff in JavaScript For Beginners
HTML

5 min read


1 day ago

Using Python To Automate Button Clicks (on a website)

# A Super Step-By-Step Tutorial Using Selenium — Let’s say there’s a website. And on that website there’s a button. And we want to click on this button multiple times for some reason. And we want to automate this clicking using Python rather than manually clicking it. The website I’ve put together a simple (ugly) site with a button. When…

Python

6 min read

Using Python To Automate Button Clicks (on a website)
Using Python To Automate Button Clicks (on a website)
Python

6 min read


Published in

Level Up Coding

·2 days ago

Deploying A Simple HTML Site With Minimal Nonsense For Free

# The power of github pages — Some things Github Pages allows us to do: Create a site simply using a HTML file (we can add more tho) Deploy it for free Allow others on the internet to see your site (you are given a URL) Which could be an option for you if you want to…

Github Pages

4 min read

Deploying A Simple HTML Site With Minimal Nonsense For Free
Deploying A Simple HTML Site With Minimal Nonsense For Free
Github Pages

4 min read


Published in

Level Up Coding

·3 days ago

6+4 Built-in Python Functions You Cannot Miss Out On

# Other than print(), type() and len() — Built-in functions mean that we do not need to install any 3rd party library using pip to use them. At worst, we simply import the function from a built-in library and at best, we simply use the function. 1) pprint.pprint() pprint.pprint prints complicated data structures in an automatically-formatted manner. To use it…

Python

5 min read

6+4 Built-in Python Functions You Cannot Miss Out On
6+4 Built-in Python Functions You Cannot Miss Out On
Python

5 min read


Published in

Level Up Coding

·3 days ago

Creating Custom Exceptions in Python

# Why it’s a good idea & how to do this — As you start working on larger applications, chances are that you’ll start seeing custom exceptions more and more. And there is a good reason for this trend. Built-in VS Custom Exceptions Built-in exceptions are already defined and we don’t need to define them. print(1/0) # ZeroDivisionError x =…

Python

3 min read

Creating Custom Exceptions in Python
Creating Custom Exceptions in Python
Python

3 min read

Liu Zuo Lin

Liu Zuo Lin

19.6K Followers

Software Engineer, Tech Writer, Python Tutor (zlliu.co | zlliu.co/ebooks)

Following
  • Josef Cruz

    Josef Cruz

  • Tim Denning

    Tim Denning

  • Elena

    Elena

  • Aldric Chen

    Aldric Chen

  • Attila Vágó

    Attila Vágó

See all (56)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams