Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

CVS Python

Uploaded by

Saran Kumar N
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

CVS Python

Uploaded by

Saran Kumar N
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

C VS PYTHON

Programming languages
WHAT IS PROGRAMMING
LANGUAGE
programming language is a way for
programmers (developers) to
communicate with computers.
HISTORY OF PROGRAMMING
LANGUAGE
The first programming language was
developed in 1883 when Ada Lovelace
and Charles Babbage worked together on
the Analytical Engine, which was a
primitive mechanical computer.
ALGOL
ALGOL is an acronym that stands
for ALGOrithmic Language. It is a
computer language designed specifically
for calculation.
COMPARISON
C LANGUAGE PYTHON LANGUAGE

 C is a structured, mid-  Python is a general-purpose,


level, general-purpose high-level programming
programming language language that was
developed by Guido Rossum
that was developed at in 1989. What makes
Bell Laboratories Python amazing is its simple
between 1972-73 by syntax that is almost similar
Dennis Ritchie. to the English language and
dynamic typing capability.
VARIABLE DECLARATION
C PYTHON

 In C, the type of a variable must  There is no need to declare the


be declared when it is created, type of variable. Variables are
and only values of that type must untyped in Python. A given
be assigned to it. variable can be stuck on values of
 EXAPMLE: different types.
 EXAPMLE:
 Int 12;
 no = 1
 float 4.9;
 flt= 5.9
 char “SARAN”;
 letter = 'A'
EXECUTION
C PYTHON

 C is a compiled  Python is an interpreted


language, meaning the language, meaning the
code is translated code is executed line-
directly into machine by-line by an
code by a compiler interpreter.
before execution.
SYNTAX
C PYTHON

 Syntax of C is harder than python


 It is easy to learn, write and
because of which programmers prefer read Python programs than
to use python instead of C . C.
 EXAMPLE:
 EXAMPLE:
 #include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;  print("Hello, World!")
 }

You might also like