8000 Update 2-basic-string-operations.py · pbt001/python-basics-exercises@6996ebd · GitHub
[go: up one dir, main page]

Skip to content

Commit 6996ebd

Browse files
authored
Update 2-basic-string-operations.py
1 parent 6227709 commit 6996ebd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ch04-strings-and-methods/2-basic-string-operations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
my_word = "antidisestablishmentarianism"
88
print(len(my_word))
99

10+
1011
# Exercise 2
1112
# Concatenate two strings together
1213
string_left = "bat"
1314
string_right = "man"
1415
print(string_left + string_right)
1516

17+
1618
# Exercise 3
1719
# Display two strings together, with a space in between
1820
string_one = "heebie"

0 commit comments

Comments
 (0)
0