Python Programming

Python: Python is an open source programming language. This has overcome Java as it is easy and consumes less time. It provides the user with the ease of creating a program with shorter length. The effective approach to OOP and high level data structures code efficient and better than java. It is mostly used to fetch data as it is handy.

Python Variables: Python user does not required to declare variables before using them, or declares their type. Every variable in Python is an object.

There is some basic types of variables.

Python supports two types of numbers – integers and floating point numbers.

To define an integer, use the following syntax:

myint=9

print (myint)

myfloat=9.5

print(myfloat)

Strings are defined either with a single quote or double quotes.

s = ‘hello’

print(s)

s1 = “hello”

print(s1)

Leave a Reply

Your email address will not be published. Required fields are marked *