update no. plus equals

PHOTO EMBED

Tue Aug 09 2022 09:02:11 GMT+0000 (Coordinated Universal Time)

Saved by @Abubakar5 #python

# First we have a variable with a number saved
number_of_miles_hiked = 12
 
# Then we need to update that variable
# Let's say we hike another two miles today
number_of_miles_hiked += 2
 
# The new value is the old value
# Plus the number after the plus-equals
print(number_of_miles_hiked)
# Prints 14


hike_caption = "What an amazing time to walk through nature!"
 
# Almost forgot the hashtags!
hike_caption += " #nofilter"
hike_caption += " #blessed"
content_copyCOPY