Now a days coding is becoming
more and more popular among youngsters as well as some Primary School Students. itβs good to
know the students are Having their interests in programming and coding as
well . But remember programming and coding are different sports.
Programming:- To Write a sequence of instructions
that will automate the performance of a task on a computer, often Used in solving a
given problem.
Lets
take a example of addition of program. you have written a program that will
automate the addition operation . Then you just have to give the numbers and the
computer will add them based on the program that you have Written .
Whereas, coding is the process
of using a programming language to get a computer to behave how you want it to.
Every line of code tells the computer to do something, and a document full
of lines of code is called a script.
Lets take an example of adding two numbers you have written some code to tell computer to how to add then:-
1)number1 = int(input('Enter first number: '))
2)number2 = int(input('Enter second number: '))
3)sum = number1 + number2
4)print(sum)
Description:-
1) number1 = input('Enter first number: ')
This
code tells computer to take the input from keyboard as integer number and store it in a variable called
number1.
2) number2 = input('Enter second number: ')
This
code tells computer to take the input from keyboard as integer number and store it in a variable
called
number2.
3) sum = number1 + number2
This
code tells that the numbers that we got from the keyboard i.e number1 and number2 perform addition operation on them and store it in variable sum.
4) print(sum)
This code tells us to display the value
that is in the sum variable.
The group of codes together forms
Program.
Excellent π
ReplyDeletethank u so much
DeleteNice blog to read keep it up π
ReplyDeletethanks Ritika
DeleteContent useful π
ReplyDeletewill make it more usefull. thanks hitesh
DeleteSimply superb aman ππ
ReplyDeleteThank Shaik really appreciate it
Delete