# 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"
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter