Premium Only Content
Learn Web Development with Python: Build Real World Project
A comprehensive guide to Python programming for web development. Practical Python Web.
In most of programming languages, whenever a new version released, it supports the features and syntax of the existing version of the language, therefore, it is easier for the projects to switch in the newer version. However, in the case of Python, the two versions Python 2 and Python 3 are very much different from each other.
A list of differences between Python 2 and Python 3 are given below:
Python 2 uses print as a statement and used as print "something" to print some string on the console. On the other hand, Python 3 uses print as a function and used as print("something") to print something on the console.
Python 2 uses the function raw_input() to accept the user's input. It returns the string representing the value, which is typed by the user. To convert it into the integer, we need to use the int() function in Python. On the other hand, Python 3 uses input() function which automatically interpreted the type of input entered by the user. However, we can cast this value to any type by using primitive functions (int(), str(), etc.).
In Python 2, the implicit string type is ASCII, whereas, in Python 3, the implicit string type is Unicode.
Python 3 doesn't contain the xrange() function of Python 2. The xrange() is the variant of range() function which returns a xrange object that works similar to Java iterator. The range() returns a list for example the function range(0,3) contains 0, 1, 2.
There is also a small change made in Exception handling in Python 3. It defines a keyword as which is necessary to be used. We will discuss it in Exception handling section of Python programming tutorial.
Python was invented by Guido van Rossum in 1991 at CWI in Netherland. The idea of Python programming language has taken from the ABC programming language or we can say that ABC is a predecessor of Python language.
There is also a fact behind the choosing name Python. Guido van Rossum was a fan of the popular BBC comedy show of that time, "Monty Python's Flying Circus". So he decided to pick the name Python for his newly created programming language.
What you'll learn:
Become a professional Python Developer
Improve your web development and coding resume
Understand how using frameworks like Django will save you a ton of time in web development
Learn how to use Python in Web Development Projects
#Python #WebDevelopment
-
2:13:41
TimcastIRL
5 hours agoCNN SLAMMED For Claiming BLACK J6 Bomb Suspect IS A WHITE MAN w/ Milo & George Santos | Timcast IRL
223K267 -
LIVE
SynthTrax & DJ Cheezus Livestreams
1 day agoFriday Night Synthwave 80s 90s Electronica and more DJ MIX Livestream CHROMIUM Edition
183 watching -
LIVE
GritsGG
13 hours agoBO7 Warzone Is Here! Win Streaking! New Leaderboard?
182 watching -
3:53:07
VapinGamers
4 hours ago $0.65 earnedDestiny 2 - Star Wars Renegade Lightsabers Oh My! - !rumbot !music
11.9K1 -
2:13:17
TheSaltyCracker
5 hours agoPipe Bomb Bull Sh*t ReeEEStream 12-05-25
90.5K188 -
LIVE
DannyStreams
3 hours agoBF the WZ
39 watching -
LIVE
Finfante
4 hours ago $0.11 earned*Interactive Stream* Something is WRONG. (Dane Jonson). | LIVE INDIE HORROR NIGHT
60 watching -
21:51
DBoss_Firearms
10 hours ago $0.19 earnedHeaded to The Gathering with some friends!
5.1K -
58:48
Flyover Conservatives
23 hours agoUnmasking Antifa: Inside the Red–Green Revolution Aimed at the U.S. Constitution - Kyle Shideler | FOC Show
17.5K26 -
55:26
Sarah Westall
5 hours agoJobs Losses Hit the Millions, Real Estate Nightmare, Repo Markets, & more w/ Andy Schectman
22.7K10