From 1d10f6fd51255b1d43f2ff2ea5cb4e222a702f62 Mon Sep 17 00:00:00 2001
From: Prajwal Kedari <65669641+prajwalkedari@users.noreply.github.com>
Date: Sun, 26 Dec 2021 23:03:38 +0530
Subject: [PATCH 1/9] Even or Odd and Prime or not
Check Number is odd or Even
And also chech
This number Prime or Not
---
projects/Odd or Even and Prime or Not/Main.py | 25 +++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 projects/Odd or Even and Prime or Not/Main.py
diff --git a/projects/Odd or Even and Prime or Not/Main.py b/projects/Odd or Even and Prime or Not/Main.py
new file mode 100644
index 00000000..e0813269
--- /dev/null
+++ b/projects/Odd or Even and Prime or Not/Main.py
@@ -0,0 +1,25 @@
+
+
+'''
+Name: Prajwal Kedari
+Country:India
+GitHub: prajwalkedari , prajwal-kedari
+Link: https://www.github.com/prajwalkedari/
+Source: Python-world
+Thank!!!
+''''
+
+num = int(input("Enter a number: "))
+if (num % 2) == 0:
+ print(f"{num} is Even")
+else:
+ print(f"{num} is Odd")
+if num > 1:
+ for i in range(2, int(num/2)+1):
+ if (num % i) == 0:
+ print(num, "is not a prime number")
+ break
+ else:
+ print(num, "is a prime number")
+else:
+ print(num, "is not a prime number")
From 61ee31ec427fbcae03401e52739b482dfb25f8bd Mon Sep 17 00:00:00 2001
From: Prajwal Kedari <65669641+prajwalkedari@users.noreply.github.com>
Date: Sun, 26 Dec 2021 23:32:40 +0530
Subject: [PATCH 2/9] Odd or even and prime or nor
---
projects/Odd or Even and Prime or Not/Main.py | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/projects/Odd or Even and Prime or Not/Main.py b/projects/Odd or Even and Prime or Not/Main.py
index e0813269..9639f175 100644
--- a/projects/Odd or Even and Prime or Not/Main.py
+++ b/projects/Odd or Even and Prime or Not/Main.py
@@ -7,19 +7,21 @@
Link: https://www.github.com/prajwalkedari/
Source: Python-world
Thank!!!
-''''
+'''
num = int(input("Enter a number: "))
if (num % 2) == 0:
- print(f"{num} is Even")
+ Odd_or_even_result=f"{num} is Even as well as"
else:
- print(f"{num} is Odd")
+ Odd_or_even_result=f"{num} is Odd as well as"
if num > 1:
for i in range(2, int(num/2)+1):
if (num % i) == 0:
- print(num, "is not a prime number")
+ prime_or_not_result=" nor prime number"
break
else:
- print(num, "is a prime number")
+ prime_or_not_result=" prime number"
else:
- print(num, "is not a prime number")
+ prime_or_not_result=" nor prime number"
+
+print(Odd_or_even,prime_or_not_result)
From 2059e338b00e5c026ccb7696188b80f4d1ac2054 Mon Sep 17 00:00:00 2001
From: Prajwal Kedari <65669641+prajwalkedari@users.noreply.github.com>
Date: Sun, 26 Dec 2021 23:34:25 +0530
Subject: [PATCH 3/9] Updated main.py
---
projects/Odd or Even and Prime or Not/Main.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/Odd or Even and Prime or Not/Main.py b/projects/Odd or Even and Prime or Not/Main.py
index 9639f175..0847c937 100644
--- a/projects/Odd or Even and Prime or Not/Main.py
+++ b/projects/Odd or Even and Prime or Not/Main.py
@@ -24,4 +24,4 @@
else:
prime_or_not_result=" nor prime number"
-print(Odd_or_even,prime_or_not_result)
+print(Odd_or_even_result,prime_or_not_result)
From a42ac01cd74786d8737cfc39e3c446b175b5ace3 Mon Sep 17 00:00:00 2001
From: Prajwal Kedari <65669641+prajwalkedari@users.noreply.github.com>
Date: Sun, 26 Dec 2021 23:40:37 +0530
Subject: [PATCH 4/9] Change folder name
---
projects/Odd or Even as Well as Prime or Nor-Prime | 1 +
1 file changed, 1 insertion(+)
create mode 100644 projects/Odd or Even as Well as Prime or Nor-Prime
diff --git a/projects/Odd or Even as Well as Prime or Nor-Prime b/projects/Odd or Even as Well as Prime or Nor-Prime
new file mode 100644
index 00000000..8b137891
--- /dev/null
+++ b/projects/Odd or Even as Well as Prime or Nor-Prime
@@ -0,0 +1 @@
+
From 5446f0f7aba6d42f11aa3b25cf49847099ffb14e Mon Sep 17 00:00:00 2001
From: Prajwal Kedari <65669641+prajwalkedari@users.noreply.github.com>
Date: Sun, 26 Dec 2021 23:42:46 +0530
Subject: [PATCH 5/9] Create Odd or Even as Well as Prime or Not
---
projects/Odd or Even as Well as Prime or Not | 1 +
1 file changed, 1 insertion(+)
create mode 100644 projects/Odd or Even as Well as Prime or Not
diff --git a/projects/Odd or Even as Well as Prime or Not b/projects/Odd or Even as Well as Prime or Not
new file mode 100644
index 00000000..8b137891
--- /dev/null
+++ b/projects/Odd or Even as Well as Prime or Not
@@ -0,0 +1 @@
+
From d976a83427f51ee3f9cbc46091e383d67792ca2a Mon Sep 17 00:00:00 2001
From: Prajwal Kedari <65669641+prajwalkedari@users.noreply.github.com>
Date: Sun, 26 Dec 2021 23:43:39 +0530
Subject: [PATCH 6/9] .
---
projects/Odd or Even as Well as Prime or Not | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 projects/Odd or Even as Well as Prime or Not
diff --git a/projects/Odd or Even as Well as Prime or Not b/projects/Odd or Even as Well as Prime or Not
deleted file mode 100644
index 8b137891..00000000
--- a/projects/Odd or Even as Well as Prime or Not
+++ /dev/null
@@ -1 +0,0 @@
-
From 0eb1d912c7dc5ccd154cc314c0ea4127236df37d Mon Sep 17 00:00:00 2001
From: Prajwal Kedari <65669641+prajwalkedari@users.noreply.github.com>
Date: Sun, 26 Dec 2021 23:43:52 +0530
Subject: [PATCH 7/9] .
---
projects/Odd or Even as Well as Prime or Nor-Prime | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 projects/Odd or Even as Well as Prime or Nor-Prime
diff --git a/projects/Odd or Even as Well as Prime or Nor-Prime b/projects/Odd or Even as Well as Prime or Nor-Prime
deleted file mode 100644
index 8b137891..00000000
--- a/projects/Odd or Even as Well as Prime or Nor-Prime
+++ /dev/null
@@ -1 +0,0 @@
-
From cd47ccc779d8fd8e9a0651ac23cfc3d7a646ccb5 Mon Sep 17 00:00:00 2001
From: Prajwal Kedari <65669641+prajwalkedari@users.noreply.github.com>
Date: Sun, 26 Dec 2021 23:46:07 +0530
Subject: [PATCH 8/9] Rename
---
.../Main.py | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename projects/{Odd or Even and Prime or Not => Odd or Even as Well as Prime or Not}/Main.py (100%)
diff --git a/projects/Odd or Even and Prime or Not/Main.py b/projects/Odd or Even as Well as Prime or Not/Main.py
similarity index 100%
rename from projects/Odd or Even and Prime or Not/Main.py
rename to projects/Odd or Even as Well as Prime or Not/Main.py
From a1d4108de9a0b31e22176c348f2d13005972b854 Mon Sep 17 00:00:00 2001
From: Prajwal Kedari <65669641+prajwalkedari@users.noreply.github.com>
Date: Mon, 27 Dec 2021 00:24:07 +0530
Subject: [PATCH 9/9] Read me
---
.../README.md | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 projects/Odd or Even as Well as Prime or Not/README.md
diff --git a/projects/Odd or Even as Well as Prime or Not/README.md b/projects/Odd or Even as Well as Prime or Not/README.md
new file mode 100644
index 00000000..37dd6442
--- /dev/null
+++ b/projects/Odd or Even as Well as Prime or Not/README.md
@@ -0,0 +1,37 @@
+# Odd or Even as Well as Prime or Not
+
+Simple Python program for check a number is an Odd or even as well as Prime or Nor prime
+
+
+## Prerequisites
+You only need Python3 to run this script. You can visit [here](https://www.python.org/downloads/) to download Python.
+
+
+
+## How to run the script
+Running the script is really simple! Just open a terminal(cmd) in the folder where your script is located and run the following command :
+```bash
+python main.py
+```
+
+
+## Sample use of the script
+
+``` bash
+$python main.py
+Enter a number : 5
+5 is a odd as well as Prime number
+
+$python main.py
+Enter a number : 9
+9 is a odd as well as Nor-Prime number
+
+$python main.py
+Enter a number : 6
+6 is a even as well as Nor-Prime number
+```
+
+
+## Author
+[@prajwalkedari](https://GitHub.com/prajwalkedari)
+ @prajwalkedari