From 4ab68b5372dec6c2c53411a427875beeb77ac1fc Mon Sep 17 00:00:00 2001 From: azorahai-01 <67007727+azorahai-01@users.noreply.github.com> Date: Wed, 28 Oct 2020 12:18:49 +0530 Subject: [PATCH] python code merge this please --- python code | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 python code diff --git a/python code b/python code new file mode 100644 index 0000000..101d741 --- /dev/null +++ b/python code @@ -0,0 +1,26 @@ + +# Python program to demonstrate +# Creation of List + +# Creating a List +List = [] +print("Blank List: ") +print(List) + +# Creating a List of numbers +List = [10, 20, 14] +print("\nList of numbers: ") +print(List) + +# Creating a List of strings and accessing +# using index +List = ["Geeks", "For", "Geeks"] +print("\nList Items: ") +print(List[0]) +print(List[2]) + +# Creating a Multi-Dimensional List +# (By Nesting a list inside a List) +List = [['Geeks', 'For'] , ['Geeks']] +print("\nMulti-Dimensional List: ") +print(List)