Search the Blog

Thursday, September 12, 2019

pip installtion on window 10

5 Semple Steps to install pip in Window 10

I decide to write this post after facing the issue when i am not able to download libarary via cmd in pythan. Becuase what problem i faced a lot of new begineer will face this issue.

Step 1:- Check your python download folder. In my case it is in F drive. Copy the path

Pip Installtion window 10 python step 1


Copied URL in my case is :-                F:\python-3.7.4.exe


Note i have downloaded the version    Python 3.7.2

python environment setting for pip

Step 2:- Now open advance environment settings and create a new varible in path with the name of your python version.

   In My Case it was                             c:\python37\Scripts

Note:- python varible will be according to version of python may be possible you have downloaded someother versions also

pythan setup opening via cmd


Save the environment varible and Restart the System

Step 3:- Open cmd and paste following cmd

                                                            F:\python-3.7.4.exe TargetDic:C\Python37

pythan set reconfigure of pip


Step 4:- it will Ask to install some packeges do all and save.


pythan pip installation guide


Step 5:- now close the cmd and open again and run

                                       pip                                                             

Pip Complete istalation in Python



Wednesday, September 4, 2019

Python pattern from from incresing and descresing sequnce of numbers

This post will explain the logic, code and Syntax for pattern program in Python Programming. In this post you will understand how to right the code of a pattern which have the sequence in  descreasing and incresinng sequence.


Python pattern from from incresing and descresing sequnce of numbers


 Pattern Code-
def python_pattern(n):
    for i in range(0, n):
        if n/2 >= i:
            for j in range(1, i+1):
                print(j, end=" ")
            print("\r")
        else:
            for j in range(1, n - i + 1):
                print(j, end=" ")
            print("\r")
n=10python_pattern(n)

Output:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1

Youtube Video of Complete Program


See Also-Python patthern program of all types


Thursday, August 29, 2019

Palindrome number program in Pythan

In this post i will explain the palindome number program in python and also to expalin the same i also created a youtube video so you can check also complete step by step and also output in IDE. 

Palindrome number program in Pythan

Palindrome number program in Pythan


Palindrome No Program in Python-



num = int(input("enter a number: "))
temp = num
rev = 0while temp:
    rev = (rev * 10) + (temp % 10)
    temp = temp // 10if num == rev:
    print("No is palindrome")
else:
    print("No is not palindrome")



Output-
When entered Item is- 747
   No is Palindrome.

when entered Item is- 67
   No is notb Palindrome.


See Also-Pythan All type of program







Translate