Friday, 5 January 2018

Assigning values to the variables in python

 The equal sign (=) is used to assign values to variables

#!/usr/bin/python3
counter = 116                         # An integer assignment
km = 1000.0                           # A floating point
name = "Sateesh Bagadhi"     # A string
print (counter)
print (km)
print (name)


OUTPUT:
116
1000.0
Sateesh Bagadhi




No comments:

Post a Comment

Lists

Python  Lists Python Collections (Arrays) There are four collection data types in the Python programming language: List  is a ...