Aug-26-2019, 05:30 AM
(Aug-25-2019, 02:12 PM)ThomasL Wrote: The conversion is not necessary, just use f-strings (Python >=3.6)Wow, thank you again!
angle1 = str(angle1) angle2 = str(angle2) print("This is angle1:", angle1, "and this is angle2:",angle2)print(f'This is angle1: {angle1} and this is angle2: {angle2}')And maybe you should bookmark this link: Python built-in functions
I'm still a newbie, so my knowledge is almost zero, but I'm learning a bit, mostly by imitating code I see, that I can understand and use or tweak.
Thank you for making me aware of more ways to format and use strings. I had already seen and tweaked some in a few posts here about splitting email addresses.
Quote:And maybe you should bookmark this link: Python built-in functionsThe link you provided is great, and I have already bookmarked it for later reference, (when I know more Python), but at my current knowledge and way of learning, it's a bit more discouraging than encouraging...
All the best,
newbieAuggie2019
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs