variables in Python 3 part-4

Published: 01 January 2018
on channel: Cook The Code
15
1

What is Variable?
A variable is nothing but a reserved memory location to store values. In other words a variable in a program gives data to the computer to work on.

Every value in Python has a datatype. Different data types in Python are Numbers, List, Tuple, Strings, Dictionary, etc. Variables can be declared by any name or even alphabets like a, aa, abc etc.

#!/usr/bin/python

counter = 100 # An integer assignment
miles = 1000.0 # A floating point
name = "John" # A string

print counter
print miles
print name

website:- https://coderworld109.blogspot.in/