Skip to main content

Python or C? What will raise your resume level .


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

Popular posts from this blog

VLSI viva compilation

All the below stuff is a compiled post from google of all the viva questions asked on vlsi and avlsi , do take a look  I've actually made this for me :P ( Last minute Reading Stuff :) ;) ) 1. Why does the present VLSI circuits use MOSFETs instead of BJTs? Compared to BJTs, MOSFETs can be made very small as they occupy very small silicon area on IC chip and are relatively simple in terms of manufacturing. Moreover digital and memory ICs can be implemented with circuits that use only MOSFETs i.e. no resistors, diodes, etc. 2. What are the various regions of operation of MOSFET? How are those regions used? MOSFET has three regions of operation: the cut-off region, the triode region, and the saturation region. The cut-off region and the triode region are used to operate as switch. The saturation region is used to operate as amplifier. 3. What is threshold voltage? The value of voltage between Gate and Source i.e. V GS at which a sufficient number of mobile e...

Pylove

For the PyLovers , here we bring more coding examples. Written and tested by us, today we have 5 of the codes from basic to moderate that would help you get more attract towards #Python. Here are some codes that we have been practicing. Hope you try them too!!! Don't just copy+paste, edit too and see what changes can be done :) 1. Stringers: In this code, we have created a function that will take any string as a input and perform various string operations using the inbuilt string function as follows: 1. length of string using len 2. First occurrence of a char in string using  .index 3. Counting the number of times the char as appeared using .count 4. Convert string to upper and lower case using .upper and .lower respectively 5. Checking if the string starts and ends with a particular letter using .startswith and .endswith  6. Splitting the string using .split and storing it in a list. THE CODE: def stringers():     s=input('Enter ...

Microsoft BizTalk Server | Interview Questions | Set 1

Hi Folks, Below is list of Some important questions that you may want to go through for a Biztalk developer role opening. Sharing the set 1 now just with questions. Will be sharing more soon. What is BizTalk Server? List down components of Biztalk server Biztalk architecture how is it? Types of schemas Document schema vs Envelope schema How to create envelope schema and its properties What is Property schema , how to create and its basic properties Purpose of using Flat file schema How to create a Flat file schema What do you mean by Canonical Schema What's is a message type Can a schema be without namespace What is min max and group min max property in a schema Explain Block default property Property promotion and types Distinguished field vs Promoted field Is it possible to promote XML record of complex content What is <Any> element in a schema Max length Promoted field and distinguished field What's Auto mapping and Default mapping  Can w...