Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Let's make a variable!
- # This will let us store some information so we can refer to it later
- favourite_harry_potter_character = "Hermione Granger"
- # Now that we've save it, let's actually "call" or refer to that same value again
- favourite_harry_potter_character
- # This would output Hermione Granger
- # Ok so... say we change our minds, say that now we have been corrupted by the Slytherin...
- favourite_harry_potter_character = "Draco Malfoy"
- # Now if we ask our program again...
- favourite_harry_potter_character
- # Because we have redefine it we would see it say Draco Malfoy
Add Comment
Please, Sign In to add comment