Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content


Variable names in Python are untyped and refer to typed objects in memory:

# variables are dynamically typed
x = 3
x = "three" # ok in Python
x = [1, 2, 3] # x is a list
y = x # both x and y refer to the same list
y.append(4) # appending to y impacts x as well
s = "three"
# call upper, a member method of the string object
t = s.upper()
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content