4 | Python Beginners Tutorial | Python 2x vs 3x # Python Tutorial in tamil

preview_player
Показать описание
4 | Python Beginners Tutorial | Python 2x vs 3x # Python Tutorial in tamil
Important differences between Python 2.x and Python 3.x with examples
Division operator
print function
Unicode
xrange
Error Handling
If we are porting our code or executing the python 3.x code in python 2.x, it can be dangerous if integer division changes go unnoticed (since it doesn’t raise any error). It is preferred to use the floating value (like 7.0/5 or 7/5.0) to get the expected result when porting our code.
print function

This is the most well known change. In this the print function in Python 2.x is replaced by print() function in Python 3.x,i.e, to print in Python 3.x an extra pair of parenthesis is required.
Unicode:

In Python 2, implicit str type is ASCII. But in Python 3.x implicit str type is Unicode.
xrange:

xrange() of Python 2.x doesn’t exist in Python 3.x. In Python 2.x, range returns a list i.e. range(3) returns [0, 1, 2] while xrange returns a xrange object i. e., xrange(3) returns iterator object which work similar to Java iterator and generates number when needed.
If we need to iterate over the same sequence multiple times, we prefer range() as range provides a static list. xrange() reconstructs the sequence every time. xrange() doesn’t support slices and other list methods. The advantage of xrange() is, it saves memory when task is to iterate over a large range.

In Python 3.x, the range function now does what xrange does in Python 2.x, so to keep our code portable, we might want to stick to using range instead. So Python 3.x’s range function is xrange from Python 2.x.
Error Handling:

There is a small change in error handling in both versions. In python 3.x, ‘as’ keyword is required.
In this video we will see :
- What is python
- Why to learn it
- Why it is so useful

Python is one of the fastest growing language

Python is interpreted, object oriented, high level, procedure oriented language

It has different versions

The reason behind it is there are huge number of libraries available in the market, many companies and developers are using it and it can be implemented in many areas.

It is general Purpose language as it can be used in Machine learning, GUI, Software Development, Web development and many more.

Google, YouTube, Dropbox, NASA, Yahoo use python

Reddit totally uses python

_
like our face book page..
--------------------------------------------------------------------------------
send request our channel official facebookprofile...
---------------------------------------------------------------------------------
#python #santratechspot #programming
Рекомендации по теме
Комментарии
Автор

Bro na ipotha pythan learn Panna poren so all functions and commands a detail a explain Panna nallarukum. Nenga str solringa string nu solringa atha explain Panna nallarukum

abdulhakkeemmuzahith
Автор

Hi bro oru fresher ahh intha python ahh epdi learn pandrathu, oru fresher apdina programming (about programming zero knowledge have) apdinu onnume theriyama irukkura oru person epdi python learning pandrathu. Athuku oru video poduga. Ippo scl la padikum pothu epdi syllabus step by step ahh irukum solli tharuvagala for ex: first அ, ஆ..., apr123..., Apr Abc..., , Apr Formula, apr Addition, subtraction, multiplication, division ellam epdi oru kids ku step by step ahh solli tharaga athu pola oru programming ku epdi step by step ahh paython ku learn pandrathu apdinu konjom video make panni poda mudiuma brother pls pls pls pls pls pls ithu varaikkum ithu pola YouTube la yarume clear ahh class solli tharala pls ungala la niraiya person benefits ahh irukum bro pls help me 🙏🙏

aaro
Автор

Epa tha bro ellam learn panitu erukan. Videos deleted panirinthinga bro. Tqsm 🌈 free studies ki

bhumg
Автор

Hi bro, am new to programming language. i like to kw the difference between
a=b"hi"
type(a)
it shows class (byte)..instead of that u are using (u) its shows class type is str???
a=u"hi"
type(a)
it shows class str.. video timing is 4.48 version 3

jagadeeshkanagasabapathy
Автор

Bro innum vera enna lam change panirukanga konjam overview ah solla mudima

marchflower
Автор

itha 5 different matum than major ra bro illa inum iruka

Chennaiikuputhusu
welcome to shbcf.ru