From c6d2c59ec40d0d1b8c0ed0ac003d382ed3216fd0 Mon Sep 17 00:00:00 2001 From: Akshat Raj <48322760+Akshat-Raj@users.noreply.github.com> Date: Thu, 1 Oct 2020 12:51:36 +0530 Subject: [PATCH 01/10] Update class.py --- class.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/class.py b/class.py index c358896..ca96e48 100644 --- a/class.py +++ b/class.py @@ -1,6 +1,11 @@ class Person: + def __int__(self,name,age): + self.name = name + self.age = age + def __repr__(self): + return f"My name is {self.name} and my age {self.age}" - age = 18 - - def name(self, name): - return list(name) + def name(self): + return self.name + def age(self): + return self.age From e0f720af6c47639769d1aee937766baaaf79095b Mon Sep 17 00:00:00 2001 From: Yash Jha <72140357+YashJha05@users.noreply.github.com> Date: Sat, 2 Oct 2021 13:57:38 +0530 Subject: [PATCH 02/10] Create add.py --- add.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 add.py diff --git a/add.py b/add.py new file mode 100644 index 0000000..561bb6f --- /dev/null +++ b/add.py @@ -0,0 +1,4 @@ +a = int(input('enter first number') +b = int(input('enter second number') +c = a + b +print(c) From 4bf43ef65d1c244ff818a534dcad23df92b303b6 Mon Sep 17 00:00:00 2001 From: Yash Jha <72140357+YashJha05@users.noreply.github.com> Date: Sat, 2 Oct 2021 13:58:12 +0530 Subject: [PATCH 03/10] Create sub.py --- sub.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 sub.py diff --git a/sub.py b/sub.py new file mode 100644 index 0000000..f6a42c8 --- /dev/null +++ b/sub.py @@ -0,0 +1,4 @@ +a = int(input('enter first number') +b = int(input('enter second number') +c = a - b +print(c) From ea01f366b700cc0a911c4f5698f4e9702508a384 Mon Sep 17 00:00:00 2001 From: Yash Jha <72140357+YashJha05@users.noreply.github.com> Date: Sat, 2 Oct 2021 13:58:35 +0530 Subject: [PATCH 04/10] Create mul.py --- mul.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 mul.py diff --git a/mul.py b/mul.py new file mode 100644 index 0000000..53e11c8 --- /dev/null +++ b/mul.py @@ -0,0 +1,4 @@ +a = int(input('enter first number') +b = int(input('enter second number') +c = a * b +print(c) From f74b33a6cbb3edc3eebe9e74208456a48b9e8ef9 Mon Sep 17 00:00:00 2001 From: Yash Jha <72140357+YashJha05@users.noreply.github.com> Date: Sat, 2 Oct 2021 13:59:01 +0530 Subject: [PATCH 05/10] Create divide.py --- divide.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 divide.py diff --git a/divide.py b/divide.py new file mode 100644 index 0000000..62ab60f --- /dev/null +++ b/divide.py @@ -0,0 +1,4 @@ +a = int(input('enter first number') +b = int(input('enter second number') +c = a / b +print(c) From 0458f82f8b2be7bbd89be69d6a71943afccf0665 Mon Sep 17 00:00:00 2001 From: Yash Jha <72140357+YashJha05@users.noreply.github.com> Date: Sat, 2 Oct 2021 14:00:54 +0530 Subject: [PATCH 06/10] Create greeting.py --- greeting.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 greeting.py diff --git a/greeting.py b/greeting.py new file mode 100644 index 0000000..15a1136 --- /dev/null +++ b/greeting.py @@ -0,0 +1,2 @@ +n = input('enter your name') +print('hello' n) From 23303feee3fdbd2e846031778699e5e59bf2657b Mon Sep 17 00:00:00 2001 From: Yash Jha <72140357+YashJha05@users.noreply.github.com> Date: Sat, 2 Oct 2021 14:17:35 +0530 Subject: [PATCH 07/10] Create greetings.py --- greetings.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 greetings.py diff --git a/greetings.py b/greetings.py new file mode 100644 index 0000000..23c2fa3 --- /dev/null +++ b/greetings.py @@ -0,0 +1 @@ +print("hello there") From 53a5089729e3ad35072fde6fd62291f179c8b32b Mon Sep 17 00:00:00 2001 From: Yash Jha <72140357+YashJha05@users.noreply.github.com> Date: Sat, 2 Oct 2021 14:22:12 +0530 Subject: [PATCH 08/10] Create how to input.py --- how to input.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 how to input.py diff --git a/how to input.py b/how to input.py new file mode 100644 index 0000000..d34081a --- /dev/null +++ b/how to input.py @@ -0,0 +1,2 @@ +#how to input a numbeer +a = int(input('enter a number') From 5d3228de5a4f4b3727bd0a6c55532bc11393e6e3 Mon Sep 17 00:00:00 2001 From: Yash Jha <72140357+YashJha05@users.noreply.github.com> Date: Sat, 2 Oct 2021 14:23:34 +0530 Subject: [PATCH 09/10] Create how to use print.py --- how to use print.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 how to use print.py diff --git a/how to use print.py b/how to use print.py new file mode 100644 index 0000000..cd21934 --- /dev/null +++ b/how to use print.py @@ -0,0 +1 @@ +print('hello, to use print, syntax is print()') From 69ffd4b543ce5e0c28e9112cafeb126599f0be49 Mon Sep 17 00:00:00 2001 From: Yash Jha <72140357+YashJha05@users.noreply.github.com> Date: Sat, 2 Oct 2021 14:24:33 +0530 Subject: [PATCH 10/10] Create how to input strings.py --- how to input strings.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 how to input strings.py diff --git a/how to input strings.py b/how to input strings.py new file mode 100644 index 0000000..5078f5b --- /dev/null +++ b/how to input strings.py @@ -0,0 +1 @@ +a = input("enter a name")