0% found this document useful (0 votes)
2 views18 pages

Python v C# v VB.net

C# and VB.NET are both modern, object-oriented programming languages developed by Microsoft, with C# designed for the .NET Framework and VB.NET being an evolution of classic Visual Basic. Python, created by Guido van Rossum, is a high-level, interpreted language known for its readability and versatility, supporting multiple programming paradigms. Each language has unique features and advantages, making them popular choices among developers for various applications.

Uploaded by

masteremman2611
Copyright
© © All Rights Reserved
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)
2 views18 pages

Python v C# v VB.net

C# and VB.NET are both modern, object-oriented programming languages developed by Microsoft, with C# designed for the .NET Framework and VB.NET being an evolution of classic Visual Basic. Python, created by Guido van Rossum, is a high-level, interpreted language known for its readability and versatility, supporting multiple programming paradigms. Each language has unique features and advantages, making them popular choices among developers for various applications.

Uploaded by

masteremman2611
Copyright
© © All Rights Reserved
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/ 18

*

C# is a modern, general-purpose, Visual Basic .NET (VB.NET) is an


Python is a high-level, interpreted, object-oriented programming language object-oriented computer
interactive and object-oriented developed by Microsoft and approved programming language implemented
scripting language. Python is designed by European Computer Manufacturers on the .NET Framework. Although it is
to be highly readable. It uses English Association (ECMA) and International an evolution of classic Visual Basic
keywords frequently where as other Standards Organization (ISO). language, it is not backwards-
languages use punctuation, and it has compatible with VB6, and any code
fewer syntactical constructions than C# was developed by Anders written in the old version does not
other languages. Hejlsberg and his team during the compile under VB.NET.
development of .Net Framework.
Python was developed by Guido van Like all other .NET languages,
Rossum in the late eighties and early C# is designed for Common Language VB.NET has complete support for
Infrastructure (CLI), which consists of object-oriented concepts. Everything
nineties at the National Research the executable code and runtime in VB.NET is an object, including all of
Institute for Mathematics and environment that allows use of various the primitive types (Short, Integer,
Computer Science in the Netherlands. high-level languages on different Long, String, Boolean, etc.) and user-
computer platforms and architectures. defined types, events, and even
• Python is Interpreted − Python assemblies. All objects inherits from
is processed at runtime by the The following reasons make C# a the base class Object.
interpreter. You do not need to widely used professional language
compile your program before − VB.NET is implemented by Microsoft's
executing it. This is similar to .NET framework. Therefore, it has full
PERL and PHP. • It is a modern, general-purpose access to all the libraries in the .Net
• Python is Interactive − You can programming language Framework. It's also possible to run
actually sit at a Python prompt • It is object oriented. VB.NET programs on Mono, the open-
and interact with the interpreter • It is component oriented. source alternative to .NET, not only
directly to write your programs. • It is easy to learn. under Windows, but even Linux or
• Python is Object-Oriented − • It is a structured language. Mac OSX.
Python supports Object-Oriented • It produces efficient programs.
style or technique of • It can be compiled on a variety of The following reasons make VB.Net
programming that encapsulates computer platforms. a widely used professional
code within objects. • It is a part of .Net Framework. language −
• Python is a Beginner's
Strong Programming Features of C# • Modern, general purpose.
Language − Python is a great
• Object oriented.
language for the beginner-level Although C# constructs closely follow • Component oriented.
programmers and supports the traditional high-level languages, C and • Easy to learn.
development of a wide range of C++ and being an object-oriented • Structured language.
applications from simple text programming language. It has strong • It produces efficient programs.
processing to WWW browsers to resemblance with Java, it has • It can be compiled on a variety of
games. numerous strong programming computer platforms.
features that make it endearing to a • Part of .Net Framework.
Python is an open-source and cross- number of programmers worldwide.
platform programming language. It is Strong Programming Features
available for use under Python Following is the list of few important VB.Net
Software Foundation features of C# −
License (compatible to GNU General VB.Net has numerous strong
Public License) on all the major • Boolean Conditions programming features that make it
operating system platforms Linux, • Automatic Garbage Collection endearing to multitude of
Windows and Mac OS. • Standard Library programmers worldwide. Let us
• Assembly Versioning mention some of these features −
To facilitate new features and to • Properties and Events
maintain that readability, the Python • Delegates and Events • Boolean Conditions

Enhancement Proposal (PEP) process Management • Automatic Garbage Collection

was developed. This process allows • Easy-to-use Generics • Standard Library

anyone to submit a PEP for a new • Indexers • Assembly Versioning

feature, library, or other addition. • Conditional Compilation • Properties and Events

• Simple Multithreading • Delegates and Events


The design philosophy of Python • LINQ and Lambda Expressions Management
emphasizes on simplicity, readability • Integration with Windows • Easy-to-use Generics
and unambiguity. Python is known for • Indexers
its batteries included approach as • Conditional Compilation
Python software is distributed with a • Simple Multithreading
comprehensive standard library of What is C#? History of VB.NET
functions and modules.
C# (pronounced “see sharp” or “C
Python supports imperative, structured Sharp”) is one of many .NET
as well as object-oriented programming languages. It is object-
programming methodology. It provides oriented and allows you to build
features of functional programming as reusable components for a wide variety
well. of application types Microsoft • VB.NET is a multi-paradigm
introduced C# on June 26th, 2000 and programming language
Pythonic Code Style it became a v1.0 product on Feb 13th developed by Microsoft on the
2002. .NET framework. It was launched
Python leaves you free to choose to in 2002 as a successor to the
program in an object-oriented, C# is an evolution of the C and C++ Visual Basic language. This was
procedural, functional, aspect-oriented, family of languages. However, it the first version of VB.NET
or even logic-oriented way. These borrows features from other (VB.NET 7.0) and it relied on
freedoms make Python a great programming languages, such as .NET version 1.0.
language to write clean and beautiful Delphi and Java. If you look at the • In 2003, the second version of
code. most basic syntax of both C# and VB.NET, VB.NET 7.1, was
Java, the code looks very similar, but released. This one relied on .NET
Pythonic Code Style is actually more version 1.1. This version came
then again, the code looks a lot like
of a design philosophy and suggests to with a number of improvements
C++ too, which is intentional.
write a code which is: including support for .NET
Developers often ask questions about
why C# supports certain features or Compact Framework and an
• Clean
works in a certain way. The answer is improved reliability and
• Simple
often rooted in its C++ heritage. performance of the .NET IDE.
• Beautiful
VB.NET 2003 was also made
• Explicit Recent language features, such as available in the academic edition
• Readable Language Integrated Query (LINQ) of Visual Studio.NET and
and Asynchronous Programming distributed to various scholars
(Async) are not necessarily unique to from different countries for free.
History of Python C#, but do add to its uniqueness. • In 2005, VB.NET 8.0 was
released. The .NET core portion
Python was developed by Guido van
was dropped from its name so as
Rossum in the late eighties and early
to distinguish it from the classical
nineties at the National Research
Visual Basic language. This
Institute for Mathematics and
version was named Visual Basic
Computer Science in the Netherlands.
2005. This version came with
Python is derived from many other many features since Microsoft
languages, including ABC, Modula- wanted this language to be used
3, C, C++, Algol-68, SmallTalk, for rapid application developers.
and Unix shell and other scripting They also wanted to make it
languages. different from C# language.
Some of the features introduced
Python is copyrighted. Like Perl, by this version of VB.NET
Python source code is now available included partial classes, generics,
under the GNU General Public License nullable types, operator
(GPL). overloading, and unsigned
integer support. This version also
For many uninitiated people, the word saw the introduction of the IsNot
Python is related to a species of operator.
snake. Rossum though attributes the
choice of the name Python to a • In 2008, VB 9.0 was introduced.
popular comedy series Monty This was released together with
Python's Flying Circus on BBC. .NET 3.5. Some of the features
added to this release of VB.NET
Being the principal architect of Python, included anonymous types, true
the developer community conferred conditional operator, LINQ
upon him the title of Benevolent support, XML literals, Lambda
Dictator for Life (BDFL). However, in expressions, extension methods,
2018, Rossum relinquished the title. and type inference.
Thereafter, the development and • In 2010, Microsoft released VB
distribution of the reference 2010 (code 10.0). They wanted to
implementation of Python is handled use a Dynamic Language
by a nonprofit organization Python Runtime for this release, but they
Software Foundation. opted for co-evolution strategy
shared between VB.NET and C#
Who Invented Python?
to bring these languages closer
Python was invented by a Dutch to each other.
Programmer Guido Van Rossum in the • In 2012, VB 2012 (code 11.0)
late 1980s. And, Python's first version was release together with .NET
(0.9.0) was released in 1991. 4.5. Its features included call
hierarchy, iterators, caller data,
Evolution of Python – The Major asynchronous programming with
Python Releases “await” and “async” statements
and the “Global” keyword in the
“namespace” statements.
Following are the important stages in • In 2015, VB 2015 (code 14.0)
the history of Python − was released alongside Visual
Studio 2015. The “?.” operator
Python 0.9.0 was introduced to do inline null
checks. A string interpolation
Python's first published version is 0.9.
feature was also introduced to
It was released in February 1991. It
help in formatting strings inline.
consisted of support for core object-
• In 2017, VB 2017 (code 15.0)
oriented programming principles.
was introduced alongside Visual
Python 1.0 Studio 2017. A better way of
organizing source code in just a
In January 1994, version 1.0 was single action was introduced.
released, armed with functional
programming tools, features like VB.NET Features
support for complex numbers etc.
VB.NET comes loaded with numerous
Python 2.0 features that have made it a
popular programming
Next major version − Python 2.0 was language amongst programmers
launched in October 2000. Many new worldwide. These features include the
features such as list comprehension, following:
garbage collection and Unicode
support were included with it. • VB.NET is not case sensitive like
other languages such as C++
and Java..
Python 3.0 • It is an object-oriented
programming language. It treats
Python 3.0, a completely revamped everything as an object.
version of Python was released in • Automatic code formatting, XML
December 2008. The primary objective designer, improved object
of this revamp was to remove a lot of browser etc.
discrepancies that had crept in Python • Garbage collection is automated.
2.x versions. Python 3 was backported • Support for Boolean conditions
to Python 2.6. It also included a utility for decision making.
named as python2to3 to facilitate • Simple multithreading, allowing
automatic translation of Python 2 code your apps to deal with multiple
to Python 3. tasks simultaneously.
• Simple generics.
EOL for Python 2.x
• A standard library.
Even after the release of Python 3, • Events management.
Python Software Foundation continued • References. You should
to support the Python 2 branch with reference an external object that
incremental micro versions till 2019. is to be used in a VB.NET
However, it decided to discontinue the application.
support by the end of year 2020, at • Attributes, which are tags for
which time Python 2.7.17 was the last providing additional information
version in the branch. regarding elements that have
been defined within a program.
Current Version of Python
Meanwhile, more and more features • Windows Forms- you can inherit
have been incorporated into Python's your form from an already
3.x branch. As of date, existing form.
Python 3.11.2 is the current stable
version, released in February 2023. Advantages of VB.NET
What's New in Python 3.11? The following are the pros/benefits you
will enjoy for coding in VB.NET:
One of the most important features of
Python's version 3.11 is the significant • Your code will be formatted
improvement in speed. According to automatically.
Python's official documentation, this • You will use object-oriented
version is faster than the previous constructs to create an
version (3.10) by up to 60%. It also enterprise-class code.
states that the standard benchmark • You can create web applications
suite shows a 25% faster execution with modern features like
rate. performance counters, event
logs, and file system.
• Python 3.11 has a better • You can create your web forms
exception messaging. Instead of with much ease through the
generating a long traceback on visual forms designer. You will
the occurrence of an exception, also enjoy drag and drop
we now get the exact expression capability to replace any
causing the error. elements that you may need.
• As per the recommendations of
PEP 678, the add_note() method
is added to the BaseException • You can connect your
class. You can call this method applications to other applications
inside the except clause and pass created in languages that run on
a custom error message. the .NET framework.
• It also adds the cbroot() function • You will enjoy features like
in the maths module. It returns docking, automatic control
the cube root of a given number. anchoring, and in-place menu
• A new module tomllib is added in editor all good for developing web
the standard library. TOML applications.
(Tom's Obvious Minimal
Language) can be parsed with Disadvantages of VB.NET
tomlib module function.
Below are some of the
Frequently Asked Questions About drawbacks/cons associated with
Python History VB.NET:

1. Who created Python? • VB.NET cannot handle pointers


directly. This is a significant
Python created by Guido Van Rossum, disadvantage since pointers are
a Dutch Programmer. much necessary for
programming. Any additional
2. Why Python is called Python?
coding will lead to many CPU
Python does not have any relation to cycles, requiring more processing
Snake. The name of the Python time. Your application will
programming language was inspired become slow.
by a British Comedy Group Monty • VB.NET is easy to learn. This has
Python. led to a large talent pool. Hence,
it may be challenging to secure a
3. When was Python's first version job as a VB.NET programmer.
released?

Python's first version was released in Summary


February 1991.
• VB.NET was developed by
4. What was the first version of Microsoft.
Python? • It is an object-oriented language.
• The language is not case
Python's first version was Python 0.9.0 sensitive.
• VB.NET programs run on
5. When was Python 3.0 version the .NET framework.
released? • In VB.NET, the garbage
Python 3.0 version was released in collection process has been
December 2018. automated.
• The language provides windows
forms from which you can inherit
your own forms.
• VB.NET allows you to enjoy the
drag and drop feature when
creating a user interface.
Create a Hello World Program in VB.Net
Getting Input in C# Getting Input in Python Getting Input in VB.Net

Code: Code: Code:

Sample Test Run: Sample Test Run:


Sample Test Run:
Data Types is C# Data Types is Python Data Types is VB.Net
https://www.linkedin.com/pulse/evolution-programming-languages-from-assembly-ai-driven-rahul-n-rccde/?trackingId=l%2B1xSjEcTlm6KIy%2BYu1wJw%3D%3D

https://www.linkedin.com/pulse/from-c-python-evolution-programming-paradigms-nidhi-krishna-p-v-w2mtc/?trackingId=Kgvqh681TnCdJywaw0RJAQ%3D%3D

https://www.linkedin.com/pulse/how-programming-languages-evolved-bridge-interaction-between-sofia-sdnxf/?trackingId=Ft3m68VGSdaPlnOKSV0bXA%3D%3D

https://www.linkedin.com/pulse/confused-which-programming-language-learn-first-sofia-siddiqua-jsrne/

You might also like