From 7e01c9b4f42f65cc42dde2beab1710ca3a25d448 Mon Sep 17 00:00:00 2001 From: Mohammad umar mochi <65342404+maahieummah@users.noreply.github.com> Date: Fri, 2 Oct 2020 20:40:46 +0530 Subject: [PATCH] Create forloopinpython --- forloopinpython | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 forloopinpython diff --git a/forloopinpython b/forloopinpython new file mode 100644 index 0000000..fa90667 --- /dev/null +++ b/forloopinpython @@ -0,0 +1,5 @@ +fruits = ["apple", "banana", "cherry"] +for x in fruits: + if x == "banana": + break + print(x)