Skip to content

Commit 3affbac

Browse files
Caleb CurryCaleb Curry
authored andcommitted
mistake fixes
1 parent a56f47b commit 3affbac

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎beginner_python/02-strings.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179
#this works however sometimes you just need one combined string instead of components.
180180
#when we use a comma, we are passing in data as separate arguments.
181181
#fortunately, print knows how to handle it. Other times, we must pass in one string.
182+
#WARNING --> Commas automatically print a space.
182183
print("length is ", length)
183184

184185
#an example of this is if we need a variable. We cannot use a comma:
@@ -193,7 +194,7 @@
193194
print(msg)
194195

195196
#EVEN BETTER
196-
#We can also nest method calls:
197+
#We can also nest function calls:
197198
print("length is " + str(len(name)))
198199
#The order in which these are invoked are in to out...
199200
#len(name) is first which returns a number.

‎beginner_python/03-list-basics.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
#another Option is to use a method on the list...copy()
7171
names1 = ["Caleb", "Emily", "Sabrina"]
72-
names2 = names.copy()
72+
names2 = names1.copy()
7373
names2[0] = "Kaylubbbbb"
7474
print(names) #Caleb YAAYYYYY
7575

0 commit comments

Comments
 (0)