SyntaxFix
Write A Post
Hire A Developer
Questions
These two examples result in the same thing. However, the first provides you with using the str variable outside of the while loop; the second is not.
str