Skip to content

Commit e30a79a

Browse files
word.py upgraded
1 parent cc12519 commit e30a79a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎for_word.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
#Prints each letter of the 'word', one under the other, on new lines
1+
#Prints each letter of the 'word'
22

3-
#word = "Phantasmagorical"
3+
#word = "Spam!"
44

55
word = raw_input("Please type a word: ")
66

77
for i in word:
8-
print i
9-
8+
print i, #the comma keeps it all on one line, as in: S p a m ! (note the spaces)

0 commit comments

Comments
 (0)