Look at the following piece of code:
fruit = "avocado"
print(id(fruit)) # 879148
fruit = "apple"
print(id(fruit))
What will be printed?
Look at the following piece of code:
fruit = "avocado"
print(id(fruit)) # 879148
fruit = "apple"
print(id(fruit))
What will be printed?
Create a free account to access the full topic