Skip to content

Commit

Permalink
Add 🎶 about string split
Browse files Browse the repository at this point in the history
  • Loading branch information
harishvc committed Sep 4, 2016
1 parent 76329de commit 5cde669
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python-intro2.py
Expand Up @@ -8,6 +8,11 @@
for x in test:
print(x)

test = "Hello World"
a = test.split() #SPLIT with no arguments uses ONE or MANY spaces as delimiter
print(a) #Hello, World


#####LIST - Mutable (inexpensive operation to make changes)
a = []
a = [1]
Expand Down

0 comments on commit 5cde669

Please sign in to comment.