Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reassign variable python

>>> coffee_cup = 'coffee'
>>> print ("My cup is full of", coffee_cup)
My cup is full of coffee
>>> coffee_cup = 'tea'
>>> print ("My cup is full of", coffee_cup)
My cup is full of tea
>>>
Source by www.informit.com #
 
PREVIOUS NEXT
Tagged: #reassign #variable #python
ADD COMMENT
Topic
Name
4+9 =