Missed the actual method name in comment
This commit is contained in:
parent
200772fad2
commit
8a62a49f36
|
@ -9,7 +9,7 @@ print()
|
||||||
print(f"Your name is: {name}")
|
print(f"Your name is: {name}")
|
||||||
# Here we will do the "if" conditional. A conditional means
|
# Here we will do the "if" conditional. A conditional means
|
||||||
# "compare these things" and "if" means "does this whole thing evaluate to True".
|
# "compare these things" and "if" means "does this whole thing evaluate to True".
|
||||||
# In this case we are using the string function/method (see below)
|
# In this case we are using the string function/method "find()" (see below)
|
||||||
# to try and find a space character in the name and print a message if not found.
|
# to try and find a space character in the name and print a message if not found.
|
||||||
# "-1" here means "not found"
|
# "-1" here means "not found"
|
||||||
# Find method: https://www.w3schools.com/python/ref_string_find.asp
|
# Find method: https://www.w3schools.com/python/ref_string_find.asp
|
||||||
|
|
Loading…
Reference in New Issue
Block a user