+ 1

In Python, is there no special characters like newline(\n), vertical tab(\b) as in C or any alternate way to use this.......

11th Jul 2019, 2:13 PM
V.RENUGHA
V.RENUGHA - avatar
2 Respuestas
+ 5
you can use so called whitespaces ( defined in string.whitespacelike): ' \t\n\r\x0b\x0c' this is ascii: 32 = space, 9 = horizontal tab, 10 = new line, 13 = CR, 11 = vertical tab, 12 = form feed. you can use them, but not all show the expected result.
11th Jul 2019, 6:11 PM
Lothar
Lothar - avatar
+ 1
Thank you :) Lothar
12th Jul 2019, 11:55 AM
V.RENUGHA
V.RENUGHA - avatar