Python is very beginner-friendly. In this last week we discuss about python.we follow the book"Learn PYTHON 3 the HARD WAY " by ZED A. SHAW.The book cover many basics and python exercises.

All most every UNIX based systems contain python itself or It can be downloaded from or check updates and install Python 3 via commands

sudo apt-get update
sudo apt-get install python3

What Makes Python Special?

Python is a general-purpose language ,which is designed to be simple to read and write. The point that it’s not a complex language is important. The designers placed less of an emphasis on conventional syntax,

Furthermore, because it’s considered truly universal and used to meet various development needs, it’s a language that offers a lot of options to programmers in general.The language is used for system operations, web development, server and administrative tools, deployment, scientific modeling and much more.

Now we try exercises of  ZED A. SHAW's book and every thing push in to git hub

Let's push to git hub

In the previous blog we stop with making account in git hub.we can start account in git hub by this link  

  1. Go to the GitHub sign up page.
  2. Enter a username, valid email address, and password.
  3. Review carefully the GitHub Terms of Service and Privacy Policy
  4. continuing. ...
  5. You finished!

Then make a new repository and give a repository name to it and create a repository. now you got a URL from this repository,copy it.

Then you come back to your directory having file to be push to git hub.make sure that you commit every thing.then use commend

syntax: git remote add origin <copied URL from git hub>

$ git remote add origin

then check is it OK.

$ git remote -v
origin (fetch)
origin (push)

Now it is the time for pushing to git hub.

$ git push origin master
Username for '': user name
Password for '': password
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 441 bytes | 441.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
[new branch] master -> master

It is now in git hub.check here


Suppose you are implementing a new feature for your product. Your code is in progress and suddenly a customer escalation comes. Because of this, you have to keep aside your new feature work for a few hours. You cannot commit your partial code and also cannot throw away your changes. So you need some temporary space, where you can store your partial changes and later on commit it.after save your modification .

Now, you want to switch branches for customer escalation, but you don’t want to commit what you’ve been working on yet; so you’ll stash the changes. To push a new stash onto your stack, run the git stash command

$ git stash save "message"
Saved working directory and index state On new: message

Now the modified file stored in some where.and you can check it through.

$ git stash list
stash@{0}: On new: message

if you now check difference in between old file(before modification) and file after modified and stashed it doesn't  show any difference. because it is stashed.

Suppose you have resolved the customer escalation and you are back on your new feature looking for your half-done code, just execute the git stash pop command, to remove the changes from the stack and place them in the current working directory.

$ git stash pop
On branch new
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)


no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (3b27be367945c97601f9d64ef253edfddb62f95e)

The above command will produce such a result and you can work with further modification.