Skip to content
Facebook page opens in new windowX page opens in new windowFacebook page opens in new window
Search:
中文
Zhe Li
Zhe LiZhe Li
  • Home
  • Python
  • About me
  • Contact
  • Home
  • Python
  • About me
  • Contact

A Basic Python main()

PythonBy Zhe16 October 2024Leave a comment

In some python scripts, you may see a function definition and a conditional statement that looks like the example below: In this code, there is…

Read more

Regular Expressions Based on Syntax Used by Perl

ProgrammingBy Zhe20 August 2024Leave a comment

Symbol(s) Meaning Example Example Matches * Matches the preceding character, subexpression, or bracketed character, 0 or more times a*b* aaaaaaaa, aaaaabbbb, bbbbbbb + Matches the…

Read more

Vehicle usage per month question

Programming, PythonBy Zhe20 November 2023Leave a comment

You want to find out which fraction of your car’s use is for commuting to work, and which is for personal use. You know the…

Read more

Transportation question

Programming, PythonBy Zhe20 November 2023Leave a comment

You want to decide whether you should drive your car to work or take the train. You know the one-way distance from your home to…

Read more

Painting Question

Programming, PythonBy Zhe20 November 2023Leave a comment

In order to estimate the cost of painting a house, a painter needs to know the surface area of the exterior. Develop an algorithm for…

Read more

Bank Account Question

Programming, PythonBy Zhe20 November 2023Leave a comment

Write an algorithm to settle the following question: A bank account starts out with $10,000. Interest is compounded monthly at 0.5 per cent per month.…

Read more

Create a virtual environment for a Python project

PythonBy Zhe18 November 2023Leave a comment

A virtual environment is created on top of an existing Python installation, known as the virtual environment’s “base” Python. It may optionally be isolated from…

Read more

How to get remote from Yahoo Finance

PythonBy Zhe22 August 2023Leave a comment

According to the “datareader” official site, to access the remote Yahoo Finance Data, it is suggested to use the following code: These codes will pop…

Read more

How to fix no module named ‘pandas-datareader'[Solved]

PythonBy Zhe22 August 2023Leave a comment

The following code doesn’t work. Without any reason, the code above will give you an error message: ModuleNotFoundError: No module named ‘pandas_datareader’ After seeking a…

Read more

urllib and “SSL:CERTIFICATE_VERIFY_FAILD” Error

Programming, PythonBy Zhe28 May 2023Leave a comment

I’m trying to test my blog site by the urllib.request. Unfortunately, my blog site has SSL (Secure Sockets Layer) enabled, and returns an urlopen error,…

Read more

Part 1 Machine Learning for Trading – From Idea to Execution

Machine Learning, Python, TradingBy Zhe7 March 2023Leave a comment

Algorithms are a sequence of steps or rules designed to achieve a goal. They can take many forms and facilitate optimisation throughout the investment process,…

Read more

Bash: Reading Input

BashBy Zhe4 November 2021Leave a comment

The read command is a builtin command that reads from the standard input. By default, it reads until a newline is received. The input is…

Read more

Bash: Printf

BashBy Zhe4 November 2021Leave a comment

printf: formatting and printing data printf FORMAT ARG … The FORMAT string can contain ordinary characters, escape sequences, and format specifiers. Ordinary characters are printed…

Read more

Install Python Packages on Visual Studio Code

PythonBy Zhe20 June 2021Leave a comment

Visual Studio Code is a free programming software. It is multiple platforms software that you can install it on Windows, Linux and Mac OS. As…

Read more

How to Install Python on Ubuntu

Programming, PythonBy Zhe21 February 2021Leave a comment

The latest version of Python is 3.9.2 on the date of posting this tutorial that shows how to install Python on Ubuntu. Installing Python 3.9…

Read more
Zhe Li
Copyright © 2025 Zhe Li All Rights Reserved!
  • Home
  • Contact
  • About me
Bottom Menu
Go to Top