0

How to convert inputed string into raw string.

Like this code, Input = input() #I have to convert Input string into raw string print(Input)

19th Feb 2021, 3:23 PM
Vinay Jaiswal
Vinay Jaiswal - avatar
2 ответов
+ 1
Did you mean str(input)
19th Feb 2021, 3:38 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 1
A Python 3 raw string is a normal string, prefixed with a r or R. This treats characters such as backslash ('\') as a literal character. This also means that this character will not be treated as a escape character. However, internally there's no differences between raw and normal strings... Unlike Python 2, there's no need for a raw_input function ;)
19th Feb 2021, 3:44 PM
visph
visph - avatar