Check out f-strings in Python 3. It'll simplify the string formatting code you talk about here and make it easier to read/write. eg. ` print(f"You have entered: '{DNA}')`. Many more features available (all the string formatting features you'd want, arbitrary python expressions, etc) so it's definitely worth checking out the docs, but that's the basic usage. Very handy and definitely a killer-app for Python 3.6+.
Thanks!
Sir, you just helped me complete the problem I’ve been stuck on all day. Thank you, so much.
glad it was helpful! Thanks for watching. 😎
Check out f-strings in Python 3. It'll simplify the string formatting code you talk about here and make it easier to read/write. eg. ` print(f"You have entered: '{DNA}')`. Many more features available (all the string formatting features you'd want, arbitrary python expressions, etc) so it's definitely worth checking out the docs, but that's the basic usage. Very handy and definitely a killer-app for Python 3.6+.
Yes, f-strings are cool. I should probably make a video on that at some point, and I like the way this harkens back to printf from C.