0% found this document useful (0 votes)
150 views13 pages

Differences Between Other Languages and Python

Python uses whitespace indentation instead of semicolons to indicate statement endings. It has a simpler syntax than languages like C which makes code more readable. Python code is typically 2-5 times shorter than equivalent Java code and often 5-10 times shorter than equivalent C++ code. Python is an interpreted language commonly used for general programming, web development, engineering tasks like data analysis, simulations, and scientific computing due to its many available libraries.

Uploaded by

Ishaan Gupta
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views13 pages

Differences Between Other Languages and Python

Python uses whitespace indentation instead of semicolons to indicate statement endings. It has a simpler syntax than languages like C which makes code more readable. Python code is typically 2-5 times shorter than equivalent Java code and often 5-10 times shorter than equivalent C++ code. Python is an interpreted language commonly used for general programming, web development, engineering tasks like data analysis, simulations, and scientific computing due to its many available libraries.

Uploaded by

Ishaan Gupta
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

How Python's Different

Comparison with other languages

Syntactical Simplicity

Here's some C code

Compared to languages like C


Python does not have semicolons

Wait...what? Then how come it knows where statements end?

Whitespaces
Python instead uses whitespaces Every line a ter a colon !"# must have a ta$. i %&'"
print ()es*

The while loop


n+% while n & ,"
print n n + n-.

print '/lasto 0'

or loop
1t's easier to use. 2or e3ample4 let's print . to .,, or i in range !.,.#"
print i

Python has
Strict synta34 $etter reada$ility Compact and simple code: Python code is typically '-% times shorter than e5uivalent 6ava code4 it is o ten %-., times shorter than e5uivalent C77 code

Target Users

Python is an interpreted language that came rom the 891: scripting World 1t's now evolved into a general purpose language4 much like 6ava and C77 ;ost we$ services use Python as a glue language to inter ace we$ gateways

In Addition to General programming python is very !sef!l as an engineering lang!age" ;ost o the research going on these days uses python or computing E3. /ig <ata4 Statistics4 Simulations

Python has many li#raries availa#le for specific tas$s 9umPy!Computing#4 Py=ame!=ames#4 Tkinter!=81#4 ;atplotli$!=raphing#4 SciPy!Scienti ic#4 <>ango !We$# >ust to mention a ew

You might also like