Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (29 sloc) 2.06 KB

Day 4

I want to continue list comprehension exercises. My goal is to learn enough about list comprehension to efficiently finish the coding for day 2.

I also got interested yesterday in someone's GitHub.io biography which made me want to learn how to do that.

My Approach

List Comprehension

To find more resources with exercises and to come up with exercises on my own. I will expand on the existing Python notebook I created in day 3.

Google might be a good start:

GitHub Pages

To find (and follow) a resource related to creating pages on githib.io (AKA GitHub pages) and adapt my existing bio to it.

Solution

List Comprehension

This discussion on Reddit had quite a few challenges that I was able to incorporate into my notebook.

GitHub Pages

I successfully followed the directions here to create my new GitHub.io bio page at https://pbeens.github.io.

What I Learned

List Comprehension

I am learning to get the hang of list comprehension. You just have to remember the basic format, which is:

s = data_to_manipulate
[c for c in s if c equals or doesn't equal something]

View my updated Jupyter notebook of exercises here.

GitHub Pages

I learned that if you create a GitHub repository named <username>.github.io and put your content in the main README.md file that it becomes the website at that URL.

See mine here!

Other Learning

I learned that Markdown doesn't like anything other than alphanumeric characters and hyphens in the headers if you want to create a table of contents. All of these were a no-go:

, | & ' " `

You can’t perform that action at this time.