Thursday, May 16, 2019

How to control the flow of program in python

Python If-else Statement
If-else statement is a decision making statement that allow us to run a particular block of code for a particular decision. Making decision is the most important features of all programming language.


If Statement
If statement is used to check, whether the condition is true or false. If the condition is true the program execute the true statement and if it is false the program show the final result.



For Example:



OUTPUT







If-else Statement
In if-else statement, one else block is added with if statement. If the condition is true, if statement will execute otherwise the else statement will execute.



For Example: program to check whether a person is eligible to vote or not



OUTPUT






Click Here to know more about Python





Variables in Python


Python is fully object oriented program. variable is a reserved memory location to store values. In other words, a variable in a python program gives data to the computer for processing. Variable also known as identifier. Variable names can be a group of both letters and digits, but they have to begin with a letter or an underscore

There are three types of variable:
  1. Independent Variable
  2. Dependent Variable
  3. Controlling Variable


Independent Variable:  Independent variable that stands alone and it does not changed by the other variables. It is used to determine the dependent variable. Independent variable can be controlled and manipulated.

Dependent Variable: Dependent Variable is a variable that depend on other factor.  It is only affected by our changes to independent variable.

Control Variable: Control Variable is a constant variable. It is used to regulate the flow of control in the program.






Click Here for more information of Python

Wednesday, May 15, 2019

Application of Python

Python is object-oriented programming language. It works on different operating system to develop a world wide range application with images, text, for enterprise level by using scientific numeric data.  Python is used in many application. Here, are some application of python.

 GUI-Based Desktop Applications:

GUI - Graphic User Interface is an interface between user and device. It is a visual interact with device that uses icons. There are various GUI for creating highly functioning applications.

  • Image Processing and Graphic Design Application:

Image processing is a technique to change a picture into digital form and perform certain activities on it, so as to get an improved picture or to extricate some helpful data from it. Python used this application to make 2D images or 3D animation.

Purpose of image processing is –
  1. Visualizing
  2. Sharping and restoration
  3. Measurement of pattern
  4. Image Recoginition


  • Scientific and computational Application:


The higher the speeds, efficiency and accessibility of tool in python, the processing of scientific and computational data is also high. Some useful and library and package are Scipy,  pandas, IPython.

  • Games:
Python has various platform and modules to develop a game. For Example PySoy is a 3D game engine supporting and Pygame provide functionality for developing a game.

Web Application:

Python can use to develop web Application. It provide library to handle the internet protocols like  HTML, XML . web application provide standard modules to perform  a certain task, interaction with database and interfacing with different internet protocols.

Business Application:

Business Application is used in python to create ERP and e-commerce application in a high level platform. Python contain feature like extensibility, adaptability and easy readable syntax. Python is suitable coding language to customize large Application.

Audio and Video based Application:

Python is a multitask software, it can develop multimedia application.  Like TimPlayer, cplay.

Prototyping:

Other than being speedy and simple to learn, Python additionally has the open source advantage of being free with the help of a large company. This makes it the favored decision for prototype development. Thus, agility, extensibility and adaptability makes python faster development.




For More Python Information Click Here


What is Python ?


Python is an object-oriented, high-level programming language with integrated dynamic semantics primarily for web and app development. It was created by Guido van Rossum, and released in 1991.


A good and simple language for beginners because of its intelligibility and other basic components intended to make it understandable. Programs written in Python don't need to be arranged ahead of time so as to run, making it simple to test little bits of code and making code written in Python simpler to move in different platforms.


Python support the utilization of modules and package, which implies that projects can be planned in a modular style and code can be reused over an assortment of tasks. one of the most advantages of Python is that both the standard library and interpreter are accessible with free of charge, in both binary and source form.


Python is used for-
  1. Web development
  2. Software Development
  3. System Scripting
  4. Handling big data and complex mathematics



Get More Information of  Python


How to control the flow of program in python

Python If-else Statement If-else statement is a decision making statement that allow us to run a particular block of code for a particula...