Lecture 0
Lecture 0
Programming ..??
Algorithms v/s programming
Algorithm: how to systematically perform a task
Write down as a sequence of steps
“Recipe”, or program
Programming language : describes the steps
What is a step? Degrees of detail
“Arrange the chairs” vs “Make 8 rows with 10
chairs in each row”
Which Programming Language ??
What is Python?
• C++ Program :
#include <iostream><br>
int main()
{
cout << "Hello World" << endl;
return 0;
}
C Program
#include <stdio.h>
int main(int argc, char ** argv)
{
printf(“Hello, World!\n”);
}
Java Program :
public class Hello
{
public static void main(String argv[])
{
System.out.println(“Hello, World!”);
}
}
Python Program :
• print ( "Hello World")
The programming language Python was conceived
in the
A. 1955
B. 1981
C. 1989
D.1976
COMPARISON WITH JAVA
• Python programs are typically 3-5 times shorter than equivalent Java
programs.
https://www.anaconda.com/products/individual
Python is
A. Compiled based language
B. Byte code Interpreted based language
Competitive Programming is a sport. Its like
Olympics of the programming.
• Makes you a desirable candidate to major companies:Participation
in the ACM International Collegiate Programming Contest (ACM
ICPC) is a great opportunity to be seen by Apple, Facebook, Google,
IBM and many other authorities in the IT sphere.
• Makes you faster and more focused:In the competition, you must
solve problems in stressful situations and do it up against a deadline
or you will lose. Taking part in competitive programming teaches you
how to be more focused on the task and not only complete it quickly,
but accurately. These skills are highly beneficial for any job, not just in
coding.
Companies