We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9940d4c commit e6d4aeeCopy full SHA for e6d4aee
2 files changed
python-basic-data-types/escape_seqs.py
@@ -1,4 +1,14 @@
1
+# Tab
2
print("a\tb")
3
+
4
+# Linefeed
5
print("a\nb")
-print("a\141\x61")
-print("\N{rightwards arrow}")
6
7
+# Octal
8
+print("\141")
9
10
+# Hex
11
+print(\x61")
12
13
+# Unicode by name
14
+print("\N{rightwards arrow}")
python-basic-data-types/point.py
@@ -10,6 +10,6 @@ def __bool__(self):
origin = Point(0, 0)
-bool(origin)
+print(bool(origin))
point = Point(2, 4)
15
-bool(point)
+print(bool(point))
0 commit comments