@@ -66,7 +66,7 @@ isn't exactly like mine but it works just fine it's ok, and you can
6666 ```python
6767 no_space = input (" Enter a word: " )
6868 yes_space = no_space + " "
69- print (yes_space * 999 + no_space)
69+ print (yes_space* 999 + no_space)
7070 ```
7171
72725 . Like this:
@@ -79,21 +79,20 @@ isn't exactly like mine but it works just fine it's ok, and you can
7979 ```
8080
81816 . We can compare the word against an empty string (`" " ` or `' ' ` ) to
82- check if it' s empty. In this example, the password is "s3cr3t ".
82+ check if it' s empty. In this example, the password is "seKr3t ".
8383
8484 ```python
8585 word = input (" Enter your password: " )
8686
87- if word == " s3cr3t " :
87+ if word == " seKr3t " :
8888 print (" Welcome!" )
8989 elif word == " " :
9090 print (" You didn't enter anything." )
9191 else :
9292 print (" Access denied." )
9393 ```
9494
95- This is not a good way to ask a password from the user because the
96- password isn' t hidden in any way, but this is just an example.
95+ Again, this is not a good way to ask a real password from the user.
9796
9897# # Handy stuff: Strings
9998
@@ -219,7 +218,8 @@ isn't exactly like mine but it works just fine it's ok, and you can
219218 problems and solutions:
220219
221220 - `namelist` is None . It should be `namelist.extend(' theelous3' )` ,
222- not `namelist = namelist.extend(' theelous3' )` .
221+ not `namelist = namelist.extend(' theelous3' )` . See [this
222+ thing](using- functions.md# return-values).
223223 - Now the namelist is like `[' wub_wub' , ... , ' t' , ' h' , ' e' , ' e' , ... ]` .
224224 Python treated `' theelous3' ` like a list so it added each of its
225225 characters to `namelist` . We can use `namelist.append(' theelous3' )`
0 commit comments