From a8c5021b3e3a28ce9bfff938a1f44c17be64d5ad Mon Sep 17 00:00:00 2001 From: vabharath2007-wq Date: Thu, 25 Dec 2025 12:45:55 +0530 Subject: [PATCH 1/4] Create README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 000000000..a808ce224 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +Conditional Statements in Python: Even or Odd Checker +🎯 Aim +To write a Python program to check whether the given number is even or odd using if...else statements. + +🧠 Algorithm +Get an input from the user. +Convert the input to an integer and store it in a variable a. +Use the modulo operator % to check if a % 2 == 0. +If true, print "EVEN". +Else, print "ODD". +End the program. +🧾 Program +Output +Result From 42041222dea0440cacd178501abb63f57534ac54 Mon Sep 17 00:00:00 2001 From: vabharath2007-wq Date: Thu, 25 Dec 2025 12:46:17 +0530 Subject: [PATCH 2/4] Update README.md --- README.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/README.md b/README.md index a808ce224..8b1378917 100644 --- a/README.md +++ b/README.md @@ -1,14 +1 @@ -Conditional Statements in Python: Even or Odd Checker -🎯 Aim -To write a Python program to check whether the given number is even or odd using if...else statements. -🧠 Algorithm -Get an input from the user. -Convert the input to an integer and store it in a variable a. -Use the modulo operator % to check if a % 2 == 0. -If true, print "EVEN". -Else, print "ODD". -End the program. -🧾 Program -Output -Result From 9a638ffd1e68f5b4e75d81863f4bda715c1314c5 Mon Sep 17 00:00:00 2001 From: vabharath2007-wq Date: Thu, 25 Dec 2025 12:54:03 +0530 Subject: [PATCH 3/4] Update and rename Conditional Statements in Python: Even or Odd Checker.md to python basics.md --- ...atements in Python: Even or Odd Checker.md | 18 -------- python basics.md | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 18 deletions(-) delete mode 100644 Conditional Statements in Python: Even or Odd Checker.md create mode 100644 python basics.md diff --git a/Conditional Statements in Python: Even or Odd Checker.md b/Conditional Statements in Python: Even or Odd Checker.md deleted file mode 100644 index 2b62af3d1..000000000 --- a/Conditional Statements in Python: Even or Odd Checker.md +++ /dev/null @@ -1,18 +0,0 @@ -# Conditional Statements in Python: Even or Odd Checker - -## 🎯 Aim -To write a Python program to check whether the given number is **even** or **odd** using `if...else` statements. - -## 🧠 Algorithm -1. Get an input from the user. -2. Convert the input to an integer and store it in a variable `a`. -3. Use the modulo operator `%` to check if `a % 2 == 0`. - - If true, print `"EVEN"`. - - Else, print `"ODD"`. -4. End the program. - -## 🧾 Program - -## Output - -## Result diff --git a/python basics.md b/python basics.md new file mode 100644 index 000000000..96583588a --- /dev/null +++ b/python basics.md @@ -0,0 +1,43 @@ +# Python Basics + +## 🎯 Aim +Create a python program to print the string in multiline using triple quotes. + +I am a string literal +... has more than one +... line +....placed inside triple single quotes +I am a string literal +... has more than one +... line +....placed inside triple double quotes + + +## 🧠 Algorithm +1. Get an input from the user. +2. Convert the input to an integer and store it in a variable `a`. +3. Use the modulo operator `%` to check if `a % 2 == 0`. + - If true, print `"EVEN"`. + - Else, print `"ODD"`. +4. End the program. + +## 🧾 Program + +print('''I am a string literal +... has more than one +... line +....placed inside triple single quotes +I am a string literal +... has more than one +... line +....placed inside triple double quotes +''') + +## Output + +image + + +## Result +Thus , the program has been executed succesfully. + From 0d478ed6790a387bae8fec8329a5561aec5b36e8 Mon Sep 17 00:00:00 2001 From: vabharath2007-wq Date: Thu, 25 Dec 2025 13:00:36 +0530 Subject: [PATCH 4/4] Delete python basics.md --- python basics.md | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 python basics.md diff --git a/python basics.md b/python basics.md deleted file mode 100644 index 96583588a..000000000 --- a/python basics.md +++ /dev/null @@ -1,43 +0,0 @@ -# Python Basics - -## 🎯 Aim -Create a python program to print the string in multiline using triple quotes. - -I am a string literal -... has more than one -... line -....placed inside triple single quotes -I am a string literal -... has more than one -... line -....placed inside triple double quotes - - -## 🧠 Algorithm -1. Get an input from the user. -2. Convert the input to an integer and store it in a variable `a`. -3. Use the modulo operator `%` to check if `a % 2 == 0`. - - If true, print `"EVEN"`. - - Else, print `"ODD"`. -4. End the program. - -## 🧾 Program - -print('''I am a string literal -... has more than one -... line -....placed inside triple single quotes -I am a string literal -... has more than one -... line -....placed inside triple double quotes -''') - -## Output - -image - - -## Result -Thus , the program has been executed succesfully. -