How to Make PIP work in your machine & Python connection with MySQL

How to Make PIP work in your machine & Python connection with MySQL

https://www.youtube.com/watch?v=UG5_OvovAmE

Working with PIP is one of the import task which every python developer need to know. Many time people face issues during installing PIP in their machine or facing issue to make pip run in command prompt. This video will help them to understand the concept of PIP and how to install new packages of Python using PIP command.

Second section of this video tutorial is for Database connection with Python. In this section a sample code has been given for demonstrating the concept. One another example is available in git project https://github.com/pythonport/python/blob/master/DBProgram/PYDBConnect.py

Hope this will help you.

Part-1 | Computer Science (083) CBSE Sample paper discussion (2020-21) of for Class – 12

Part-1 | Computer Science (083) CBSE Sample paper discussion (2020-21) of for Class – 12

Computer Science (083) CBSE Sample paper discussion (2020-21) of for Class – 12 is totally new section we started on our YouTube channel (pythonport). In this section we have discussed how questions will get divided into different parts and subsections. Each part and subsection will have some optional questions to solve. Hope you will like this video tutorial for the same.

https://www.youtube.com/watch?v=rFIzR19kdZE
Sample paper discussion of Computer Science for class 12 for session 2020-21

Help on Python IDE Selection, find the best IDE as per your requirement.

Find the best Python IDE as per your requirement

Help on Python IDE Selection

Python integrated development environment (IDE) selection for your development work is one of the primary and important work you should do. A good IDE can improve your performance of coding and can also help you to write clear robust code. Here is few choice and ups and downs of those IDEs –

  1. IDLE
  2. eclipse – pydev
  3. anaconda – heavy weight software around 1.5 GB
  4. JetBrains – PyCharm
  5. Sublime

Hope this Video will help you to choose your IDE for python development. Feel free to give comment in comment section of video.

Python hello world program video tutorial.

Video Tutorial on Python hello world program

Video Tutorial of Hello world program in Python

This is Video tutorial uploaded on youtube to understand how to write first python program. This also includes

  1. From where you can download Python setup
  2. How to install it
  3. How to open IDLE script
  4. How to write code in interactive mode of IDLE.

Hope you will like this video and will give your valuable suggestion on this video link.

Insertion Sort in Python

Insertion Sort in Python

Insertion sort is also one of the common sorting technique used. In this technique sorting place after each element encounter. Story of sorting is very simple. Very first node is ignored as it is known as sentinel node. Now from second element will be chosen for sorting. The insertion sort technique checks it position in 0 to n-1 element in the same list where n is the current position and insert the element. This works get repeated till the last element gets sorted. So you will observe that after every elements sorting the list get sorted till the element position. Here is the code and example of Insertion sort.

lst = [15, 6, 13, 22, 3, 52, 2]
print("original list is - ", lst)
for i in range(1, len(lst)):
    key = lst[i]
    j = i - 1
    while j >= 0 and key < lst[j] :
        lst[j + 1] = lst[j]
        j = j - 1        
    else :
        lst[j + 1] = key
    print("List after {0} pass - ".format(i),lst)
print('Now sorted list is - ', lst)

Now we will see the output of the code –

original list is – [15, 6, 13, 22, 3, 52, 2]
List after 1 pass – [6, 15, 13, 22, 3, 52, 2]
List after 2 pass – [6, 13, 15, 22, 3, 52, 2]
List after 3 pass – [6, 13, 15, 22, 3, 52, 2]
List after 4 pass – [3, 6, 13, 15, 22, 52, 2]
List after 5 pass – [3, 6, 13, 15, 22, 52, 2]
List after 6 pass – [2, 3, 6, 13, 15, 22, 52]
Now sorted list is – [2, 3, 6, 13, 15, 22, 52]

Thank you. If you have any query you can ask and post comments to me. I will try to reply.