From d1b33585644209caf72c7162aa764c9ecee302a9 Mon Sep 17 00:00:00 2001 From: Sakshi Agrawal <66746828+SakshiiAgrawal@users.noreply.github.com> Date: Wed, 21 Oct 2020 22:31:44 +0530 Subject: [PATCH] creating 2-D matrix --- 2-D matrix.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 2-D matrix.py diff --git a/2-D matrix.py b/2-D matrix.py new file mode 100644 index 0000000..b836393 --- /dev/null +++ b/2-D matrix.py @@ -0,0 +1,6 @@ +# Input for row and column +# R = int(input()) +# C = int(input()) + +# Using list comprehension for input +matrix = [[int(input()) for x in range (C)] for y in range(R)] \ No newline at end of file