SHARE
TWEET

Untitled

a guest Apr 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '''
  2. @author: kjlw99
  3. '''
  4.  
  5. # String Concatonation Example.
  6.  
  7. var_1 = 'Hello Harry'
  8.  
  9. var_2 = var1 + ' Potter!!'
  10.  
  11. print var_1
  12.  
  13. #String Replace 'Harry Potter' with 'Muggle'
  14.  
  15. print var2[:6] + 'Muggle'
  16.  
  17. OUTPUT:
  18.  
  19. Hello Harry Potter!! Hello Muggle
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top