Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"code-runner.clearPreviousOutput": true,
"code-runner.runInTerminal": true
}
Empty file added DAY_03-Calculator/README.MD
Empty file.
36 changes: 36 additions & 0 deletions DAY_03-Calculator/calculator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
def operation(a,b,symbol):
if symbol == 1:
print(f"{a} + {b}= {a+b}")
elif symbol == 2:
print(f"{a} - {b} ={a - b}")
elif symbol == 3:
print(f"{a} X {b} = {a * b}")
elif symbol == 4:
if b==0:
print("cannot br divided")

else:
print(f"{a} ÷ {b} = {a /b}")

else:
print("Invalid Output")


value1 =int(input("Enter the Value of a :"))
value2 =int(input("Enter the Value of b :"))
print("****Enter Your Choice****")
print("1.Addition")
print("2.Subtraction")
print("3.Multiplication")
print("4.Division")
while True:
try:
sign = int(input("Enter the choice :"))
if 1 <= sign <= 4:
break # valid input, exit the loop
else:
print("Invalid input X options(1 - 4)")
except:
print("Enter Valid option")

operation(value1,value2,sign)
2 changes: 0 additions & 2 deletions Day-01-Hello-World/main.py

This file was deleted.

10 changes: 10 additions & 0 deletions Day-02-Number-Guesser/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# Day02 – Number Guessing Game

Hi! This is my second day contribution to the 30 Days – 30 Python Projects challenge. I'm building a simple number guessing game using Python to sharpen my logic and input/output skills.

## 📝 Project Description
This Python script generates a random number between 1 and 100. The user is prompted to guess the number, and the program provides feedback — whether the guess is too high, too low, or correct. It also tracks the number of attempts.

## 🚀 How to Run
Make sure Python is installed, then run the script using ;)
26 changes: 26 additions & 0 deletions Day-02-Number-Guesser/number_guess.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import random

number = random.randint(1 , 100)
print("Welcome to the Number Guessing Game!")

count = 0
while True:
X = int(input("Guess The Number (1 - 100) :"))
count += 1

if X < 1 or X > 100:
print("invalid Choice!!")
continue
if 1 <= X <= 15:
print("Too Close 🤏")
break
elif 16 <= X <= 25:
print("Try - Try 🤖")
elif 26 <= X <= 35:
print("You are cooked 💀")
elif 36<= X <= 100:
print("You Figure out 🫷")
if X == number:
print("You Guessed It 🚀")
print(f"It took {count} Tries 🏳️")
break