Posts

Showing posts from March, 2018

Python for loops

Image
Python for loops using len  Python for loop: In python for loop is used to iterate the sequence of value until the condition is satisfied from list, tuples and strings. Syntax:             for val in sequence:                  Body of statement Example:             for i in range(1,10):                   i=i*2                   print("the value of range is:",i)

Python version

Image
Python version 2 vs 3 What is python 2?           Python is widely used for application development such as Google,You tube etc.It is easy to learn, write and read.It supports both procedural and object oriented programming language .Python is an interpreter that does not run the whole code at once but it check the code line by line and finds the error will be displayed without proceeding further and gives the error message to the user. What is python 3?             Python is mainly developed for adding more feature and in order to bugs error. Python 2 and Python 3 is differ in syntax and handling.Python 3 is popular for adding more feature continuously.It implement multi-threading, supports GUI(graphical user interface). Difference between Python 2 and Python 3: Python 2 gets minimum support and additional features. Python 3 gets maximum features continuously and easy to fix error . ...