Completed engineering? Placed in an IT company or trying for jobs???
So many questions, but one important one. Which language should one specify in the resume so has to get more attention of recruiters?
Today's job market has only IT companies as the dominant recruiters. So, we'll always like to learn basics of any programming language and specify it in our resume. There are a number of languages available to study, but one has to be very careful while choosing one from them. Some of them are:
1. C
2. C++
3. Java
4. Python
5. Pearl
6. Ruby ... etc.... All these names 4,5,6 Sounds exciting? Don't they ? :)
Always one will go for "C", the creator language. But we'll prefer to go for the 4th one. The Python.
C is the first language created but that doesn't means you need to study it first.
Let's see what Python and C have when they are compared.
1. Ease --> Python syntax is very easy and any begineer can easily wrap up the basic python programming very easily :D
e,g Print "Hello World" in C vs Python
C -->
#include<stdio.h>
void main()
{
printf("Hello World");
}
Python -->
print("Hello World")
2. Power of documentation --> Python has lot's of documentation and tutorial present so its way up easy to learn python faster than C.
3. No compiler need --> simple python requires no compiler has an IDE that provides easy access to write and run modules.
4. Portability --> Both have it "your choice"
5. Apps fun --> Using python one can develop many GUI's games etc. very easily, while C requires intense coding, maybe a kind of fun though for some
6. Speed --> Python lacks in speed since C works on machine cycle its much faster.
So, we can say C IS FOR POWER , while PYTHON IS FOR EASE.
Also you may think of "JAVA" being the language to study and get hired, but you may just have a look at following examples and may just change your decision :)
Examples:
1. Hello World
JAVA -->
public class Main {
public static void main(String[] args) {
System.out.println("hello world");
}
}
PYTHON -->
print("Hello World")
2. String Operations
JAVA -->
public static void main(String[] args) {
String test = "compare Java with Python";
for(String a : test.split(" "))
System.out.print(a);
}
PYTHON -->
a="compare Python with Java"
print a.split()
3. CONTROL FLOW -->
JAVA
int condition=10;
//if
if(condition>10)
System.out.println("> 10");
else
System.out.println("<= 10");
//while
while(condition>1){
System.out.println(condition);
condition--;
}
//switch
switch(condition){
case 1:
System.out.println("is 1");
break;
case 2:
System.out.println("is 2");
break;
}
//for
for(int i=0; i<10; i++){
System.out.println(i);
}
PYTHON
condition=10;
# if
if condition > 10:
print ">10";
elif condition == 10:
print "=10";
else:
print "<10";
#while
while condition > 1:
print condition;
condition = condition-1;
#switch
def f(x):
return {
1 : 1,
2 : 2,
}[x]
print f(condition);
#for
for x in range(1,10):
print x;
So, you might just change your decision to learn C or Java, and go for "Python".
Comments
Post a Comment