Take an hour at least to read all and practice so as to understand better. I would suggest to keep these basic steps in memory for sure to progress further. Remember! Connect the dots carefully so that your line goes to correct destination, Take small steps in the process of learning and do remember it. Knowledge is Consistency, not created in a day. It’s OK to give up whenever you feel it doesn’t fit enough to take it forward.
However, never stop trying and see how far you can go.
With that said, I tried to share three methods below which are basic easy way to try at any place you’re working,living or online. People who genuinely want to help will always keep it simple, and who impress others will generally show it complicated which can be taught only by him.
I want to start something simple, so that you can start, understand and develop interest in the progress of this learning.
I generally see any program can be divided in below four section, I believe it can be applied to any programming languages. Its just for the thought process to simplify any big programs, so that you can easily start with an approach.
Also, In python language there isn’t any standard defined way to bring your output. You can use your own logic just that output has to be how you want, like in below, The input, The value storage and Logical calculation can be done in any way as you want.
Python has 3 version of it and v1 is obsolete now, I would say its better to start with version 2 series and progress on 3, so that comparative study will help you develop more knowledge and its easy too.
Note:- A big program is a set of small program. So learn to find small small outcomes on the inputs so that you can use those in forming the big program. Example outcomes like Add, Subtract, Divide, Multiply, Split, Store , Strip, Concatenate, If condition, For Condition and Call the values you want in output etc.. Lets try with a Goal for baby steps, create a program to bring the outcome exactly as in the Thumbnail and please make sure you understand how we achieved the output.
Method 1
You can install Python 2.7 and Notepad++ on your desktop or laptop with below link for direct download.
Python URL:- https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi
Notepad URL:- https://notepad-plus-plus.org/downloads/v7.9.4/
After installation, Make sure if you can start python command line with below commands, and able to print “Hello” as you see. Always be in c:\>Python27> to execute.
Now that you’re done with installation, we can start some basic commands. In python 2.7, commands are pretty simple and more you practice, commands will eventually be on your brain.
Note:- You can put the commands directly in Python prompt like above print Hello. However, its best practice to write on Notepad++ save as .py in desktop for easier access and drag drop the file in command prompt to execute the program like below.
Step 1:- INPUT!! How to take Input. In Python 2, as far as I know you can use below three ways to take input
Self Work:- I will leave it to you to find out what is the difference of these 3 method from google.
Note:- Num1, Num2 and Num3 are the variables holding/storing the value and you used that value in print output.
One example of difference between input () and Raw_input() is below, In Input() if you put words/string its considered as object will take storage holder variable and print value of the variable, if no value present then it will give error below.
In Raw_Input, input is taken as it is converting to string only and print the storage variable content what you given as input.
Whereas, you get lot of more control in taking the input with Sys library and I generally use it most of the time. What is library will explain later. In short, libraries are like micro programs/Functions kept in python directory so if you use them like Add(1,2) will give result 3 directly by calling function/MicroProgram Add of inputs inside () from directory.
As you can see, only 5 digits of the input are taken and stored in such a way you can have multiple variation to make the input control in Sys Library.
Step 2:- STORE VLAUES!! How to store the input in a place, We use Alphabet or Word to hold the value thaz called Variables and use it wherever you need in output. Here Name, R_No, Height are the value storage, and you can call the values wherever you want the output.
Below example to store in Array for many input given. There are many example to store high volume of information in Array and process the array as you want. Self Work:- Google or youtube and check methods to store as inputs as arrays.
I will explain later what split command does, however here the inputs are stored in variable A as array, and you can get the values in array as below.
Below inputs are given in list followed by Ctrl+z in Putty, and it shows the list stored in Array, also last value is called in output below. Extend command will keep on putting/storing the value in the X Array as long as input is given in the IP as list.
Step 3:- LOGICAL CALCULATIONS!! Input values need to be processed for logical calculation/conditions like Add,Sub,Divide,Split, If Condition or For condition etc.
>>Addition Logic below and Store the value in Add variable. So is for Substraction you can try changing variable and see.
>>Division Logic below and Store the value in Add variable. So is for Multiplication you can try changing variable and see.
>>Split the input by in between space or dot “.”
>>Split the input by words and so on you can try to split.
>>Strip command will remove the spaces in the start and end of the input, as at times while copy paste we leave extra space unknowingly and cause problem in exact value match.
>>Concatenation means Merging or having 2 lines merged together in same line with operator “+” Lets say filling the blank spaces in a line with the stored value.
Here when input is taken, its not defined the input is an Integer or String so we have to define wherever there is logical operation like Add,Sub,Divide. Also, you cannot concatenate string with integer. Print has string words inside so to concatenate string with Integer we have to call variable value as string like shown in below.
>>IF Condition of logic, below simple program would give an idea of IF logic. Wherein I used strip bcoz whenever you give input there is default space in end “\n”
To remove the space and match the exact word I used the strip. It eliminates all the spaces if entered by mistake also in the input. SelfWork:- Try your own IF logic and experiment with simple programs and check if that works, remember space/indentation is very important in If logic.
>>For Condition of logic, in below example the data is taken as input and stored in Array. If array is long then you can use for logic to process all data in Array. As in below the data is printed one by one in the array.
>>As in below the data is processed and expected value is matched, hence action is taken based on the match.
Hope so far you understand an idea to start learning python, with the topics covered can you try to make your own program to build the output as shown in the thumbnail.
I would be very glad if you’re able to bring that output, and please leave me a comment that you have successfully done it.
!! Thank you and Wish you all the best in your learning !!






Very GOOD prabhu, Keep it up