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
18 changes: 18 additions & 0 deletions FizzBuzz/fizzbuzz.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'''number divisible by 3 and 5 both is fizzbuz;
number divisible by 3 is fizz;
number divisible by 5 is buzz;
'''

def fizzbuzz():
n = int(input("Enter the number to print fizz buzz:"))
for i in range (1 , n+1):
if i % 3 == 0 and i % 5 ==0:
print("fizzbuzz")
elif i % 3 == 0 :
print("fizz")
elif i % 5 ==0:
print("buzz")
else:
print(i)

fizzbuzz()
121 changes: 60 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,54 @@
👋 Hi, I'm Ronit Raj
🐍 Python Developer | Competitive Programmer | Problem Solver
# 👋 Hi, I'm Ronit Raj

I am a dedicated Python learner focused on building strong foundations in programming, data structures, and algorithmic problem-solving.
This repository represents my complete coding journey — from basic Python programs to competitive programming solutions and future advanced projects.
***
🚀 About This Repository
🐍 Python Developer | Competitive Programmer | Problem Solver

This repository is a structured collection of:

🐍 Core Python fundamentals

🔁 Loops, conditions, and functions
I am a dedicated Python learner focused on building strong foundations in programming, data structures, and algorithmic problem-solving. This repository represents my complete coding journey — from basic Python programs to competitive programming solutions and future advanced projects.

🧠 Object-Oriented Programming (OOP)
---

📊 Data Structures & Algorithms
## 🚀 About This Repository

🏆 Competitive programming solutions

🧪 Practice test implementations
This repository is a structured collection of:

🚀 Mini projects and experiments
- 🐍 Core Python fundamentals
- 🔁 Loops, conditions, and functions
- 🧠 Object-Oriented Programming (OOP)
- 📊 Data Structures & Algorithms
- 🏆 Competitive programming solutions
- 🧪 Practice test implementations
- 🚀 Mini projects and experiments

It serves as a personal archive of growth, consistency, and continuous improvement.
***
🏆 Competitive Programming

I actively solve coding problems to improve speed, logic, and optimization skills.

🔥 Practice problems and contests on CodeChef

💡 Algorithm and data structure challenges on HackerRank

Through competitive programming, I focus on:

Writing efficient and optimized solutions

Understanding edge cases

Improving time and space complexity
---

Preparing for technical interviews
## 🏆 Competitive Programming

🛠 Skills & Technologies
I actively solve coding problems to improve speed, logic, and optimization skills.

Python (Core & Advanced Concepts)
- 🔥 Practice problems and contests on CodeChef
- 💡 Algorithm and data structure challenges on HackerRank

Data Structures
### Focus Areas:
- Writing efficient and optimized solutions
- Understanding edge cases
- Improving time and space complexity
- Preparing for technical interviews

Algorithms
---

Problem Solving
## 🛠 Skills & Technologies

Competitive Programming
- Python (Core & Advanced Concepts)
- Data Structures
- Algorithms
- Problem Solving
- Competitive Programming
- Logical Thinking & Debugging

Logical Thinking & Debugging
---

📁 Repository Structure
## 📁 Repository Structure
/Basic_Python
/Control_Statements
/Functions
Expand All @@ -68,30 +60,37 @@ Logical Thinking & Debugging
/Practice_Tests
/Projects


The structure will continue to evolve as I explore more advanced topics.
***
📈 Current Focus

Strengthening DSA concepts
---

## 📈 Current Focus

Improving competitive programming performance
- Strengthening DSA concepts
- Improving competitive programming performance
- Writing cleaner and more optimized Python code
- Building real-world Python projects

Writing cleaner and more optimized Python code
---

Building real-world Python projects
***
🎯 Long-Term Goal
## 🎯 Long-Term Goal

To become a highly skilled software developer with strong problem-solving abilities and deep understanding of algorithms and system design.
***
📌 Philosophy

Consistency builds mastery.
Every line of code is progress.
***
📬 Connect With Me
[🏆 CodeChef](https://www.codechef.com/users/its_rsr04)

[💡 HackerRank](https://www.hackerrank.com/profile/ronitrajrsr0409)
***
⭐ This repository grows as I grow.

---

## 📌 Philosophy

> **Consistency builds mastery. Every line of code is progress.**

---

## 📬 Connect With Me

- 🏆 CodeChef
- 💡 HackerRank

---

⭐ This repository grows as I grow.
32 changes: 32 additions & 0 deletions codechef/01_practice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# cook your dish here
# n = 5
# for i in range(1,n+1):
# for j in range(1,i+1):
# print("*",end="")
# print()
# print("code","chef")
# print(5 5)
# print(8)
# print(5,end="")
# print(7)
# print("Hello","world",5,"endl",2)
# print("Hello")
# print(" World")
# print(1,2,3,4,5)
# print("1 2 3 4 5")
# n = 5
# for i in range(1,n+1):
# print(f"{i} - {i*i}")
# cook your dish here
# n = 5
# for i in range(1,n+1):
# print(f"{i}" - "{i*i}")
# n = 5
# for i in range(n):
# for j in range(i):
# print("*",end="")
# print()
for i in range(4):
for j in range(5):
print("*",end="")
print()
12 changes: 12 additions & 0 deletions practice question/01_star_question.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'''
Q1. print this pattern
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
'''
for i in range(1,6):
for j in range(1,6):
print("*",end=" ")
print()
13 changes: 13 additions & 0 deletions practice question/02_star_question.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'''
Q1. print this pattern
*
* *
* * *
* * * *
* * * * *
'''
r = int(input("Enter the number of rows ro print right angle triangle :"))
for i in range (1, r+1):
for j in range (1, i+1):
print("*", end=" ")
print()
13 changes: 13 additions & 0 deletions practice question/03_star_practice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'''
Q3. print this pattern
* * * * *
* * * *
* * *
* *
*
'''
r = int(input("Enter the number of rows to print reverse triangle : "))
for i in range(r,0,-1):
for j in range(i):
print("*",end=" ")
print()
14 changes: 14 additions & 0 deletions practice question/04_star_practice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'''
Docstring for practice question.04_star_practice
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
'''
r = int(input("Enter the number of rows to print numerical triangle : "))
for i in range(1 , r+1):
for j in range(1 , i+1):
print(j, end=" ")
print()

20 changes: 20 additions & 0 deletions practice question/05_star_question.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'''
Docstring for practice question.05_star_question
5 4 3 2 1
4 3 2 1
3 2 1
2 1
1
'''
r = 5
for i in range (r,0,-1):
for j in range(i,0,-1):
print(j, end=" ")
print()


r = 5
for i in range (r,0,-1):
for j in range(i):
print(j, end=" ")
print()
20 changes: 20 additions & 0 deletions practice question/06_star_question.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'''
Docstring for practice question.06_star_question
*
* * *
* * * * *
* * * * * * *
* * * * * * * * *
'''
rows = 5

for i in range(rows):
# Print spaces
for j in range(rows - i - 1):
print(" ", end="")

# Print stars
for k in range(2 * i + 1):
print("*", end=" ")

print()
Empty file.
33 changes: 33 additions & 0 deletions project/main.py.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
'''
Docstring for projrct.01_project
Here,
1 = snake
2 = Water
3 = gun
'''
import random
computer = random.choice([1,2,3])
print("s for snake, \nw for Water \ng for gun")
youstr = input("Enter your choice : ")
youDict = {"s" : 1, "w" : 2, "g" : 3}
reverseDict = {1 : "snake", 2 : "water" , 3 : "gun"}

you = youDict[youstr]
print(f"you Choose {reverseDict[you]} \n and Computer Choose {reverseDict[computer]}")
if (computer == you):
print("Game is Draw :) ")
else:
if(computer == 2 and you == 1):
print("You win!")
elif(computer == 2 and you == 3):
print("You lose!")
elif(computer == 1 and you == 2):
print("You lose!")
elif(computer == 1 and you == 3):
print("You Win!")
elif(computer == 3 and you == 2):
print("You Win!")
elif(computer == 3 and you == 1):
print("You lose!")
else:
print("Somethings went worng")