Challenge: Wikipedia Dates

Using the Python docs, and strftime and strptime, make a script that accepts a month and day date in whatever […]

Read More

strftime & strptime

strftime() Date and time formatting is important. strftime – Method to create a string from a datetime. It takes a […]

Read More

Today

Now & Today As you can see, the methods now() and today() will give the same results. The difference is […]

Read More

Time Delta

What Is TimeDelta? timedelta objects represent a duration of time, in days, seconds and/or microseconds. >>> datetime.timedelta(hours=5) datetime.timedelta(0, 18000) >>> […]

Read More

Create Date & Time

The datetime Library >>> import datetime >>> dir(datetime) [‘MAXYEAR’, ‘MINYEAR’, ‘__builtins__’, ‘__cached__’, ‘__doc__’, ‘__file__’, ‘__loader__’, ‘__name__’, ‘__package__’, ‘__spec__’, ‘_divide_and_round’, ‘date’, […]

Read More

The Python Debugger (PDB)

Import & Trace To start the debugger, find the troubling lines in your code, and before it type in the […]

Read More

Logging

Logging Levels Logging is used for informational or debugging purposes. There are 6 levels of logging that you can utilize. […]

Read More

Docstrings

You should never read the code to know what the library does. That’s the job of the documentation or readme […]

Read More

Python Enhancement Proposals

PEP8 Rules http://legacy.python.org/dev/peps/pep-0008/ Imports are at the top. Import one library on each line. Two newlines between top level functions […]

Read More

Set Functions & Operands

Let’s pretend we have two sets. The first set will be the first ten positive whole numbers. The second will […]

Read More

Set Basics

Set Characteristics Unique A set is a collection of unique items that belong together for some reason. Example: A set […]

Read More

Best Practices

1. Loose Ends Pay attention to orphans, widows, rivers, and rags. Orphans An orphan is a single word in a […]

Read More

Typography Design: Step-by-Step

Starting with a basic stylesheet. Know the Content – Know the type and amount of content you’ll be placing on […]

Read More

Responsive Typography

Type Resizing On smaller screens, body text should be a bit smaller than its original size. Also headings can often […]

Read More

Typographic Hierarchy

Know the Content Before you begin styling anything, it’s smart to familiarize yourself with the site’s content to get an […]

Read More

Letterspacing & Kerning

Letterspacing Letterspacing Rules: Headings can usually use a little tighter letterspacing. Do not letterspace body text unless it’s absolutely necessary […]

Read More

Line Heights & Widths

* Measure Single Column Page Remember, 45 to 75 as the number of characters per line works well, with the […]

Read More

Type Sizes

EM & REM EM 1em is equal to the font-size value of the parent element. The default font size for […]

Read More

The Big Picture

When a Client logs onto the Internet, the ISP tells it what DNS to start with when looking up IP […]

Read More

The Web

The Web is the software that makes up websites, applications, games, wikis, and videos that you can access on a […]

Read More