From f9518b5766c698ec39516514a6d027cf3ea042fc Mon Sep 17 00:00:00 2001 From: Shaurya Bara <38855541+shaurya619@users.noreply.github.com> Date: Sat, 5 May 2018 22:13:33 +0530 Subject: [PATCH] Add files via upload --- QuestionSets/PythonLanguage/BasicsAndArrays/a1.py | 4 ++++ QuestionSets/PythonLanguage/BasicsAndArrays/a1.txt | 2 ++ QuestionSets/PythonLanguage/BasicsAndArrays/a2.py | 6 ++++++ QuestionSets/PythonLanguage/BasicsAndArrays/a2.txt | 6 ++++++ QuestionSets/PythonLanguage/BasicsAndArrays/a3.py | 7 +++++++ QuestionSets/PythonLanguage/BasicsAndArrays/a3.txt | 7 +++++++ 6 files changed, 32 insertions(+) create mode 100644 QuestionSets/PythonLanguage/BasicsAndArrays/a1.py create mode 100644 QuestionSets/PythonLanguage/BasicsAndArrays/a1.txt create mode 100644 QuestionSets/PythonLanguage/BasicsAndArrays/a2.py create mode 100644 QuestionSets/PythonLanguage/BasicsAndArrays/a2.txt create mode 100644 QuestionSets/PythonLanguage/BasicsAndArrays/a3.py create mode 100644 QuestionSets/PythonLanguage/BasicsAndArrays/a3.txt diff --git a/QuestionSets/PythonLanguage/BasicsAndArrays/a1.py b/QuestionSets/PythonLanguage/BasicsAndArrays/a1.py new file mode 100644 index 0000000..0c9346b --- /dev/null +++ b/QuestionSets/PythonLanguage/BasicsAndArrays/a1.py @@ -0,0 +1,4 @@ +for i in range(1001): + print(i) + + diff --git a/QuestionSets/PythonLanguage/BasicsAndArrays/a1.txt b/QuestionSets/PythonLanguage/BasicsAndArrays/a1.txt new file mode 100644 index 0000000..4d12494 --- /dev/null +++ b/QuestionSets/PythonLanguage/BasicsAndArrays/a1.txt @@ -0,0 +1,2 @@ +for i in range(1001): + print(i) \ No newline at end of file diff --git a/QuestionSets/PythonLanguage/BasicsAndArrays/a2.py b/QuestionSets/PythonLanguage/BasicsAndArrays/a2.py new file mode 100644 index 0000000..1d11c46 --- /dev/null +++ b/QuestionSets/PythonLanguage/BasicsAndArrays/a2.py @@ -0,0 +1,6 @@ +sumup = 0 +for i in range(1001): + sumup = sumup + i + print(sumup) + +#Took A little help from Rajat Varma diff --git a/QuestionSets/PythonLanguage/BasicsAndArrays/a2.txt b/QuestionSets/PythonLanguage/BasicsAndArrays/a2.txt new file mode 100644 index 0000000..1d11c46 --- /dev/null +++ b/QuestionSets/PythonLanguage/BasicsAndArrays/a2.txt @@ -0,0 +1,6 @@ +sumup = 0 +for i in range(1001): + sumup = sumup + i + print(sumup) + +#Took A little help from Rajat Varma diff --git a/QuestionSets/PythonLanguage/BasicsAndArrays/a3.py b/QuestionSets/PythonLanguage/BasicsAndArrays/a3.py new file mode 100644 index 0000000..7cdb23e --- /dev/null +++ b/QuestionSets/PythonLanguage/BasicsAndArrays/a3.py @@ -0,0 +1,7 @@ +import numpy as np +arrayA = np.arange(0,14) +arrayA +arrayB = arrayA.reshape(7,2) +arrayB + +#Made By 619 diff --git a/QuestionSets/PythonLanguage/BasicsAndArrays/a3.txt b/QuestionSets/PythonLanguage/BasicsAndArrays/a3.txt new file mode 100644 index 0000000..06b3b42 --- /dev/null +++ b/QuestionSets/PythonLanguage/BasicsAndArrays/a3.txt @@ -0,0 +1,7 @@ +import numpy as np +arrayA = np.arange(0,14) +arrayA +arrayB = arrayA.reshape(7,2) +arrayB + +#Made By 619 \ No newline at end of file