Skip to content

Commit 21ea26f

Browse files
committed
Refactor string_help.py
1 parent 2cfe571 commit 21ea26f

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

string_help.py

-20
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,20 @@
55
else:
66
print("cutu cutu")
77

8-
# >>> cutu cutu
9-
108
x[0]
119

12-
# >>> i
13-
1410
x[1]
1511

16-
# >>> n
17-
1812
x[-1]
1913

20-
# >>> e
21-
2214
x[-2]
2315

24-
# >>> i
25-
2616
x[3:]
2717

28-
# >>> oeducatie
29-
3018
x[4:-2]
3119

32-
# >>> educat
33-
3420
x.replace("e", "#")
3521

36-
# >>> info#ducati#
37-
3822
len(x)
3923

40-
# >>> 12
41-
4224
"educat" in x
43-
44-
# >>> True

0 commit comments

Comments
 (0)