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

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

Microsoft BizTalk Server| Interview Questions| Set 2

Hi folks, We are back with set 2 of Biztalk server developer Interview Questions. Let's have a look then. State and explain stages of receive and send pipeline. Difference Between XML receive pipeline and passThru pipeline. State minimum components required in a pipeline. State maximum components used in a pipeline. Which property is required using Flat file dissambler and what happens if it is not set. What are the base types of pipeline components. What Interfaces are used for developing a general custom component pipeline. What Interfaces are used for implementing a dissambler custom pipeline component. How to execute a pipeline in an Orchestration. How to set properties of an adaptor dynamically in an Orchestration. What is message box and its purpose in Biztalk server. Types of subscription in Biztalk. Is it possible to have more than one port with same name. In which state can a send port do not subscribe to a message. Why multiple receive locations can

Microsoft C# - Basics

What is C#? We'll Take this definition from Wiki: Basic Points we should cover up: We would be learning following points in this Post: Writing and Reading from Console Variables, Data Types and Conversions Operators Conditions Passing Values to methods Handling Nullables Arrays, String, Struct and Enums Let's Code: The below Program will help you understand the basics of the above points listed. Go through each region separately and get to know the syntax of C#. We Believe, it's always better to Code and Learn than Read and Learn! If you want theoretical help related the basics, please visit here: C# Basics   Hope this helps to get you to start off with C# Coding! We would be adding more to this soon! And don't forget to visit  Joodle  to compile your codes online. Thanks! 😀