RosettaCodeData/Task/Variables/Python/variables.py

9 lines
212 B
Python

# these examples, respectively, refer to integer, float, boolean, and string objects
example1 = 3
example2 = 3.0
example3 = True
example4 = "hello"
# example1 now refers to a string object.
example1 = "goodbye"