#Python
If you need to generate a random string that looks something like this: VUNBXJ-230411, then you can use the following random generator:
import random, …
Read Article →
#CLI
#Python
If you need to count down a specific amount of time, say for example, when a token is set to expire, then a countdown timer will be useful.
Step 1 – …
Read Article →
#Python
If you are trying to print() to the console/stdout in your Flask app, but nothing is happening, then you just need to flush your prints, as follows: …
Read Article →
#CLI
#Docker
#Python
If you have a Flask app that you would like packaged in a Docker container, then you can do the following. The steps outlined below will help you …
Read Article →
#Python
Python gives the ability to generate random strings out of the box, by using a combination of the string and random modules.
import string
import …
Read Article →
#Python
The challenge
The depth of an integer n is defined to be how many multiples of n it is necessary to compute before all 10 digits have appeared at …
Read Article →
#Python
The challenge
Implement a function reverse_list that takes a singly-linked list of nodes and returns a matching list in the reverse order.
Assume the …
Read Article →
#Python
The challenge
In this challenge, you will be given a series of times at which an alarm goes off. Your task will be to determine the maximum time …
Read Article →
#Python
The challenge
Given an integer n return "odd" if the number of its divisors is odd. Otherwise, return "even".
Note: big inputs …
Read Article →
#Python
The challenge
In this challenge, you will be given an integer n, which is the number of times that is thrown a coin. You will have to return an array …
Read Article →
#Python
The challenge
Hereinafter, [space] refers to " ", [tab] refers to "\t", and [LF] refers to "\n" for illustrative …
Read Article →
#Python
The challenge
You have an array of integers and have a frog at the first position
[Frog, int, int, int, ..., int]
The integer itself may tell you the …
Read Article →