Guest User

Untitled

a guest
Nov 18th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. # Let's make a variable!
  2. # This will let us store some information so we can refer to it later
  3.  
  4. favourite_harry_potter_character = "Hermione Granger"
  5.  
  6. # Now that we've save it, let's actually "call" or refer to that same value again
  7. favourite_harry_potter_character
  8. # This would output Hermione Granger
  9.  
  10. # Ok so... say we change our minds, say that now we have been corrupted by the Slytherin...
  11. favourite_harry_potter_character = "Draco Malfoy"
  12.  
  13. # Now if we ask our program again...
  14. favourite_harry_potter_character
  15. # Because we have redefine it we would see it say Draco Malfoy
Add Comment
Please, Sign In to add comment