From cd9223be55736e62b9ddec9c013b95bedc2675e5 Mon Sep 17 00:00:00 2001 From: TUSHAR KUMAR Date: Thu, 1 Oct 2020 17:42:21 +0530 Subject: [PATCH 1/4] Add files via upload --- beginner_python/array.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 beginner_python/array.py diff --git a/beginner_python/array.py b/beginner_python/array.py new file mode 100644 index 0000000..059437e --- /dev/null +++ b/beginner_python/array.py @@ -0,0 +1,14 @@ +# create an array +cars = ["Ferrai", "BMW", "Mersedes"," Honda"] + +#printting the array +print(cars) + +# for first element in array +print(cars[0]) + +# for last element in array +print(cars[-1]) + +#printing the array in range +print(cars[1:3]) From ccbe1ba78753d69b3d82c9d72b03f772396b5854 Mon Sep 17 00:00:00 2001 From: TUSHAR KUMAR Date: Thu, 1 Oct 2020 17:42:58 +0530 Subject: [PATCH 2/4] Rename array.py to 11 array.py --- beginner_python/{array.py => 11 array.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename beginner_python/{array.py => 11 array.py} (100%) diff --git a/beginner_python/array.py b/beginner_python/11 array.py similarity index 100% rename from beginner_python/array.py rename to beginner_python/11 array.py From 1bffa816dfceba2430ab0d603f0935c8e349015b Mon Sep 17 00:00:00 2001 From: TUSHAR KUMAR Date: Thu, 1 Oct 2020 17:43:19 +0530 Subject: [PATCH 3/4] Rename 11 array.py to 11-array.py --- beginner_python/{11 array.py => 11-array.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename beginner_python/{11 array.py => 11-array.py} (100%) diff --git a/beginner_python/11 array.py b/beginner_python/11-array.py similarity index 100% rename from beginner_python/11 array.py rename to beginner_python/11-array.py From 0cc19bf38d17e193d0908e304174441a314d0f58 Mon Sep 17 00:00:00 2001 From: TUSHAR KUMAR Date: Thu, 1 Oct 2020 17:43:39 +0530 Subject: [PATCH 4/4] Create README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f4779a --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# python +Python tutorials