Author image

Jacob Stopak

10 Posts San Diego, CA Twitter Website
Jacob Stopak is a software developer and creator of InitialCommit.io - a site dedicated to teaching people how popular programs are coded. Its main project helps people learn Git at the code level.

Python: Print without Newline

In this article, we'll examine how to print a string without a newline character using Python.

In Python, the built-in print function is used to print content to the standard output, which is usually the console. By default, the print function adds a newline character at the end of the

Continue Reading

The Python Assert Statement

In this article, we'll examine how to use the assert statement in Python.

In Python, the assert statement is used to validate whether or not a condition is true, using the syntax:

assert <condition>

If the condition evaluates to True, the program continues executing as if nothing out

Continue Reading

The Python String strip() Function

In this article, we'll examine how to strip characters from both ends of a string in Python.

The built-in String type is an essential Python structure, and comes with a built-in set of methods to simplify working with text data. There are many situations in which a programmer may want

Continue Reading

The Python zip() Function

In this article, we'll examine how to use the built-in Python zip() function.

The zip() function is a Python built-in function that allows us to combine corresponding elements from multiple sequences into a single list of tuples. The sequences are the arguments accepted by the zip() function. Any number of

Continue Reading

Git: Merge Branch into Master

One of Git's most powerful features is the ability to easily create and merge branches. Git's distributed nature encourages users to create new branches often and to merge them regularly as a part of the development process. This fundamentally improves the development workflow for most projects by encouraging smaller, more

Continue Reading

Python: Append Contents to a File

In this article, we'll examine how to append content to an existing file using Python.

Let's say we have a file called helloworld.txt containing the text "Hello world!" and it is sitting in our current working directory on a Unix file system:

$ cat ./helloworld.txt
Hello world!
Continue Reading