Apr-15-2019, 09:15 AM
This seems simple enough, but I can't seem to get my head around it.
The problem:
Create an empty string and assign it to the variable lett. Then using range, write code such that when your code is run, lett has 7 b’s ("bbbbbbb").
My attempt:
The problem:
Create an empty string and assign it to the variable lett. Then using range, write code such that when your code is run, lett has 7 b’s ("bbbbbbb").
My attempt:
lett = ' ' for _ in range (7): append.lett(b) print(lett)I'm pretty sure you can't append to a string, but I'm at a loss for other options. It doesn't seem like we can split lett then rejoin.