Course Modules
- Introduction
- About Python
- Versions of Python
- Applications of Python
- Loops in Python
Introduction
Python is a general-purpose programming language that was created by Guido Van Rossum and the world sees the python introduction in 1991.
Python is interpreted, high-level, dynamically typed, and garbage-collected language which aims to help a programmer to write clear and logical code for both small and large-scale projects.
Why Python?
- Easy to learn
- Easy to write code
- Big Community support
- Used to make GUI applications
- In demand
- Used for scripting and automation
- Web development
- Data Science
- Machine learning
- Artificial Intelligence
- Easy image processing
- Rich in libraries
What you will Learn?
We have designed this course for beginners and professionals. We will explain everything in detail while avoiding any confusion. We will cover most of the topics in python-like syntax, statements, comments, lists, dictionaries, functions, classes and objects, inheritance, date-time, modules, libraries, exceptions, file I/O, etc. So, we are very excited to see you in further lectures.
Versions of Python
Python 3.8.3 – 13 May 2020.
Python 3.8.2 – 24 February 2020.
Python 3.8.1 – 18 December 2019.
Python 3.8.0 – 14 October 2019.
Python 3.7.7 – 10 March 2020.
Python 3.7.6 – 18 December 2019.
Python 3.7.5 – 15 October 2019.
Python 3.7.4 – 08 July 2019.
Python 3.7.3 – 25 March 2019.
Python 3.7.2 – 24 December 2018.
Python 3.7.1 – 20 October 2018.
Python 3.7.0 – 27 June 2018.
Python 3.6.10 – 18 December 2019.
Python 3.6.9 – 02 July 2019.
Python 3.6.8 – 24 December 2018.
Python 3.6.7 – 20 October 2018.
Python 3.6.6 – 27 June 2018.
Python 3.6.5 – 28 March 2018.
Python 3.6.4 – 19 December 2017.
Python 3.6.3 – 03 October 2017.
Python 3.6.2 – 17 July 2017.
Python 3.6.1 – 21 March 2017.
Python 3.6.0 – 23 December 2016.
Python 3.5.8 – 29 October 2019.
Python 3.5.7 – 18 March 2019.
Python 3.5.6 – 8 August 2018.
Python 3.5.5 – 4 February 2018.
Python 3.5.4 – 25 July 2017.
Python 3.5.3 – 17 January 2017.
Python 3.5.2 – 27 June 2016.
Python 3.5.1 – 07 December 2015.
Python 3.5.0 – 13 September 2015.
Python 3.4.10 – 18 March 2019.
Python 3.4.9 – 8 August 2018.
Python 3.4.8 – 4 February 2018.
Python 3.4.7 – 25 July 2017.
Python 3.4.6 – 17 January 2017.
Python 3.4.5 – 26 June 2016.
Python 3.4.4 – 06 December 2015.
Python 3.4.3 – 25 February 2015.
Python 3.4.2 – 4 October 2014.
Python 3.4.1 – 18 May 2014.
Python 3.4.0 – 16 March 2014.
Python 3.3.7 – 19 September 2017.
Python 3.3.6 – 12 October 2014.
Python 3.3.5 – 9 March 2014.
Python 3.3.4 – 9 February 2014.
Python 3.3.3 – 17 November 2013.
Python 3.3.2 – 15 May 2013.
Python 3.3.1 – 7 April 2013.
Python 3.3.0 – 29 September 2012.
Python 3.2.6 – 11 October 2014.
Python 3.2.5 – 15 May 2013.
Python 3.2.4 – 7 April 2013.
Python 3.2.3 – 10 April 2012.
Python 3.2.2 – 4 September 2011.
Python 3.2.1 – 10 July 2011.
Python 3.2 – 20 February 2011.
Python 3.1.5 – 9 April 2012.
Python 3.1.4 – 11 June 2011.
Python 3.1.3 – 27 November 2010.
Python 3.1.2 – 21 March 2010.
Python 3.1.1 – 17 August 2009.
Python 3.1 – 27 June 2009.
Python 3.0.1 – 13 February 2009.
Python 3.0 – 3 December 2008.
Python 2.7.18 – 20 April 2020
Python 2.7.17 – 19 October 2019
Python 2.7.16 – 02 March 2019
Python 2.7.15 – 30 April 2018
Python 2.7.14 – 16 September 2017
Python 2.7.13 – 17 December 2016
Python 2.7.12 – 26 June 2016.
Python 2.7.11 – 5 December 2015.
Python 2.7.10 – 23 May 2015.
Python 2.7.9 – 10 December 2014.
Python 2.7.8 – 1 July 2014.
Python 2.7.7 – 31 May 2014.
Python 2.7.6 – 10 November 2013.
Python 2.7.5 – 15 May 2013.
Python 2.7.4 – 6 April 2013.
Python 2.7.3 – 9 April 2012.
Python 2.7.2 – 11 June 2011.
Python 2.7.1 – 27 November 2010.
Python 2.7 – 4 July 2010.
Python 2.6.9 – 29 October 2013.
Python 2.6.8 – 10 April 2012.
Python 2.6.7 – 3 June 2011.
Python 2.6.6 – 24 August 2010.
Python 2.6.5 – 19 March 2010.
Python 2.6.4 – 25 October 2009.
Python 2.6.3 – 2 October 2009.
Python 2.6.2 – 14 April 2009.
Python 2.6.1 – 4 December 2008.
Python 2.6 – 1 October 2008.
Python 2.5.4 – 23 December 2008.
Python 2.5.3 – 19 December 2008.
Python 2.5.2 – 21 February 2008.
Python 2.5.1 – 18 April 2007.
Python 2.5 – 19 September 2006.
Python 2.4.4 – 18 October 2006.
Python 2.4.3 – 29 March 2006.
Python 2.4.2 – 28 September 2005.
Python 2.4.1 – 30 March 2005.
Python 2.4 – 30 November 2004.
Python 2.3.5 – 8 February 2005.
Python 2.3.4 – 27 May 2004.
Python 2.3.3 – 19 December 2003.
Python 2.3.2 – 3 October 2003.
Python 2.3.1 – 23 September 2003.
Python 2.3 – 29 July 2003.
Python 2.2.3 – 30 May 2003.
Python 2.2.2 – 14 October 2002.
Python 2.2.1 – 10 April 2002.
Python 2.2p1 – 29 March 2002.
Python 2.2 – 21 December 2001.
Python 2.1.3 – 8 April 2002.
Python 2.1.2 – 16 January 2002.
Python 2.1.1 – 20 July 2001.
Python 2.1 – 15 April 2001.
Python 2.0.1 – 22 June 2001.
Python 2.0 – 16 October 2000.
Python 1.6 – 5 September 2000.
Python 1.5.2p2 – 22 March 2000.
Python 1.5.2p1 – 6 July 1999.
Python 1.5.2 – 30 April 1999.
Python 1.5.1p1 – 6 August 1998.
Python 1.5.1 – 14 April 1998.
Python 1.5 – 17 February 1998.
Python 1.4 – 25 October 1996.
So friends as you can see that there are many versions of python, but do you know which version is the most stable? So let me tell you one thing that the most stable is always the current version and here it is the 3.8.3 but if there is any update after this version then that version should be more stable then the current version.
Applications of Python
- Data Science
- Automation
- Application Development
- Artificial Intelligence
- Machine Learning
- Web development
- Business applications
- Image Processing
- Desktop GUI
- Audio/Video Applications
- Scientific Calculations
- Embedded Application
Loops in Python
First a fall we must know the meaning of Loop - a Structure, series, or process the end of which is connected at the beginning.
In general, statements are executed sequentially: The first statement in a function is executed first, followed by the second, and so on. There may be a situation when you need to execute a block of code several times.
Programming languages provide various control structures that allow for more complicated execution paths.
A loop statement allows us to execute a statement or group of statements multiple times. The following diagram illustrates a loop statement
Types of Loops
- for loop
- while loop
Loop Control Statements
Python For Loop is used to iterate over a sequence of Python’s iterable objects like list, strings, tuple, and sets or a part of the program several times.
Syntax
for iterating_var in sequence: statements(s)
Example
for letter in 'Python': # First Example print 'Current Letter :', letter fruits = ['banana', 'apple', 'mango'] for fruit in fruits: # Second Example print 'Current fruit :', fruit print "Good bye!"
Output
Current Letter : P Current Letter : y Current Letter : t Current Letter : h Current Letter : o Current Letter : n Current fruit : banana Current fruit : apple Current fruit : mango Good bye!
while Loop
Python while loop is used to execute a block of code until the given condition is True.
Syntax
while expression: statement(s)
Example
count = 0 while (count < 9): print 'The count is:', count count = count + 1 print "Good bye!"
Output
The count is: 0 The count is: 1 The count is: 2 The count is: 3 The count is: 4 The count is: 5 The count is: 6 The count is: 7 The count is: 8 Good bye!
Loop Control Statements
Break Statement
We can use a break statement if we want to exit the while loop.
Generally, we use break statements in a while loop when we have some specific conditions to exit the while loop.
Syntax
break
Example
for letter in 'Python': # First Example if letter == 'h': break print 'Current Letter :', letter var = 10 # Second Example while var > 0: print 'Current variable value :', var var = var -1 if var == 5: break print "Good bye!"
Output
Current Letter : P Current Letter : y Current Letter : t Current variable value : 10 Current variable value : 9 Current variable value : 8 Current variable value : 7 Current variable value : 6 Good bye!
Continue Statement
Unlike the break statement, continue statement skips one step of the loop and continues with the next step.
Syntax
continue
Example
for letter in 'Python': # First Example if letter == 'h': continue print 'Current Letter :', letter var = 10 # Second Example while var > 0: var = var -1 if var == 5: continue print 'Current variable value :', var print "Good bye!"
Output
Current Letter : P Current Letter : y Current Letter : t Current Letter : o Current Letter : n Current variable value : 9 Current variable value : 8 Current variable value : 7 Current variable value : 6 Current variable value : 4 Current variable value : 3 Current variable value : 2 Current variable value : 1 Current variable value : 0 Good bye!
Pass Statement
The pass statement in Python is used when a statement is required syntactically but you do not want any command or code to execute.
Syntax
pass
Example
for letter in 'Python': if letter == 'h': pass print 'This is pass block' print 'Current Letter :', letter print"Good bye!"
Output
Current Letter : P Current Letter : y Current Letter : t This is pass block Current Letter : h Current Letter : o Current Letter : n Good bye!





No comments:
New comments are not allowed.