#Solving problems using Python 

##Table of Contents
  * [Solving problems using Python](#solving-problems-using-python)
    * [Q1: Join elements in an array](#q1-join-elements-in-an-array)
    * [Q2: Pop elements in an array](#q2-pop-elements-in-an-array)
    * [Q3: Print n elements in a string](#q3-print-n-elements-in-a-string)


##Q1: Join elements in an array
    a1 = ['this','is','a','sentence']      
    a2 = '### '.join(a1)      
    print a2

##Q2: Pop elements in an array
    a1 = ['this','is','a','sentence']
    print a1.pop(-1) #last element in array
    print a1.pop(0) #first element in array
    print a1.pop(1) #new second element in array

##Q3: Print n elements in a string
    a1 = "Hello World!"
    #print 5 characters starting from position 0
    print a1[0:5] #Hello  


[![Analytics](https://ga-beacon.appspot.com/UA-55381661-1/tools/cmd/readme)](https://github.com/igrigorik/ga-beacon)

#Solving problems using Python 

##Table of Contents
  * [Solving problems using Python](#solving-problems-using-python)
    * [Q1: Join elements in an array](#q1-join-elements-in-an-array)
    * [Q2: Pop elements in an array](#q2-pop-elements-in-an-array)
    * [Q3: Print n elements in a string](#q3-print-n-elements-in-a-string)


##Q1: Join elements in an array
    a1 = ['this','is','a','sentence']      
    a2 = '### '.join(a1)      
    print a2

##Q2: Pop elements in an array
    a1 = ['this','is','a','sentence']
    print a1.pop(-1) #last element in array
    print a1.pop(0) #first element in array
    print a1.pop(1) #new second element in array

##Q3: Print n elements in a string
    a1 = "Hello World!"
    #print 5 characters starting from position 0
    print a1[0:5] #Hello  

##Q4: How can you get more information about python modules?
    $>pip freeze   #list all python modules and their version
    $>pip freeze > requirements.txt #generate requirements file
    $>pip show py2neo  #show information about py2neo; output includes version #
    $>
[![Analytics](https://ga-beacon.appspot.com/UA-55381661-1/tools/cmd/readme)](https://github.com/igrigorik/ga-beacon)

Add question to get information about python modules
Add question to get information about python modules
