From d9f24706ac80fc7ee57fee74aa14b578e46dde81 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Wed, 30 Nov 2022 17:06:34 +0000 Subject: [PATCH] Test string slicing. --- main.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/main.py b/main.py index 5597c22..9424eac 100644 --- a/main.py +++ b/main.py @@ -1,12 +1,6 @@ #String tests a = "hello world" -b = """hello -world""" -c = 'world hello!' -d = '''world -hello!''' -e = "!" -print("!" not in a) -print(e not in b) -print("!" not in c) -print(e not in d) +#[lw_inc:up_exc] +print(a[2:8]) +print(a[:8]) +print(a[2:])