Quantcast
Browsing latest articles
Browse All 2 View Live

Answer by Hans Musgrave for I know of f-strings, but what are r-strings? Are...

An r-string is a raw string.It ignores escape characters. For example, "\n" is a string containing a newline character, and r"\n" is a string containing a backslash and the letter n.If you wanted to...

View Article


I know of f-strings, but what are r-strings? Are there others?

I started learning python for the first time in an accelerated course on data science a few weeks ago and we were introduced early on to f-strings.The simple code:name = 'Tim'print(f'There are some who...

View Article

Browsing latest articles
Browse All 2 View Live