From 1c2fc5cd33bfc8f1f4610b7ad47d14ede6c2fa7b Mon Sep 17 00:00:00 2001 From: Anshika Pandey <232010850+anshikap088pandey-lgtm@users.noreply.github.com> Date: Mon, 27 Apr 2026 23:03:20 +0530 Subject: [PATCH] Add positive/negative number checker in README Added a Python program to check if a number is positive, negative, or zero. --- README.md | 151 ++++++++---------------------------------------------- 1 file changed, 21 insertions(+), 130 deletions(-) diff --git a/README.md b/README.md index 6f93903..135c3f5 100644 --- a/README.md +++ b/README.md @@ -1,131 +1,22 @@ +Anshika_PositiveNegative_q1.py # 🚀 WTC Coding Practice Repository - -Welcome to the **WTC Coding Practice Repository**. -This repository is a collaborative workspace where the **WTC team** solves programming problems, strengthens problem-solving skills, and builds a **strong personal and team coding brand** through consistent GitHub contributions. - ---- - -## 🎯 Purpose of This Repository - -- Practice and master **Data Structures & Algorithms** -- Develop **logical thinking and coding discipline** -- Build a **professional GitHub profile** for each team member -- Maintain **clean code and standard conventions** -- Track individual and team progress transparently - ---- - -## 👥 Who Can Contribute? - -This repository is intended **only for WTC team members**. -Every contributor is expected to: -- Solve assigned programming questions -- Push solutions regularly -- Follow the repository standards strictly - ---- - -## 📁 File Naming Convention (Strictly Mandatory) - -Each solution file **must follow** the naming format below: - -``` -Name_Question_q.No.extension -``` - -### ✅ Correct Examples -``` -Divyansh_TwoSum_q1.py -Aarav_ReverseArray_q12.cpp -Sneha_BinarySearch_q7.java -``` - -### ❌ Incorrect Examples -``` -q1.py -solution.cpp -TwoSum.java -``` - -**Rules:** -- `Name` → Your name (use the same format every time) -- `Question` → Short and meaningful problem name -- `q.No.` → Question number as per the shared list - ---- - -## 🧠 Problem Source - -All problems will be taken from the **official question list shared with the WTC team** -(e.g., Top 100 DSA sheet, daily practice sheet, or curated problem sets). - -Make sure: -- You solve the correct question number -- Your solution matches the problem statement -- No copied or plagiarized code is pushed - ---- - -## 🛠️ Allowed Programming Languages - -You may use: -- **C / C++** -- **Java** -- **Python** -- **JavaScript** - -Choose your preferred language, but ensure: -- Readable code -- Proper formatting -- Meaningful variable names - ---- - -## 📌 Contribution Guidelines - -1. Clone or fork the repository (as instructed) -2. Add your solution file following the naming convention -3. Write clean and well-structured code -4. Push your changes to the repository -5. Update the **progress tracking sheet** after every submission - ---- - -## 📊 Progress Tracking - -Each contributor must update the shared tracking sheet with: -- Name -- Question number solved -- Programming language used -- Date of submission - -This helps maintain **accountability and transparency**. - ---- - -## 🏆 Building the WTC Brand - -This repository represents the **technical identity of WTC**. -Your contributions should reflect: -- Consistency -- Professionalism -- Strong coding fundamentals - -Code as if a **recruiter or senior engineer** is reviewing it. - ---- - -## 📬 Support - -For any doubts related to: -- Problem statements -- Contribution rules -- File naming conventions - -Please contact the **WTC core team**. - ---- - -### 🔥 Code Daily. Improve Constantly. Build Your Brand. - -Happy Coding! 🚀 +# 👩‍💻 Contributor: Khushi +# 📌 Question: Positive or Negative Number +# 🔢 Question No: q1 +# 🐍 Language: Python + +""" +Problem Statement: +Write a program to check whether a given number is positive, negative, or zero. +""" + +# Taking input from user +n = int(input("Enter a number: ")) + +# Checking the number +if n > 0: + print("Positive number") +elif n < 0: + print("Negative number") +else: + print("Zero")