Same reference to an integer object, a string and a list : Variable Declaration : Language Basics PYTHON examples


PYTHON examples » Language Basics » Variable Declaration »

 

Same reference to an integer object, a string and a list


Same reference to an integer object, a string and a list


x = 0            # x bound to an integer object
print x

x = "Hello"      # now it's a string
print x

x = [123]    # and now it's a list
print x
           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Language Basics
» Variable Declaration