Wednesday, July 30, 2025

SIMPLE PYTHON PRACTICE PROBLEMS FOR ABSOLUTE BEGINNERS

 Hey everyone!, Hope you all have been doing well. Im here to share an exciting news ! . I have created a GitHUb repository for Python Practice. If you're someone who’s unsure where to begin or what to practice to strengthen your Python skills (or even programming in general), this is for you.. In this repository, I have added some simple yet powerful Python scripts  for you to practice. I wrote them personally while learning.. They helped me lot in making understanding with python. Go ahead and check out. Remember, only practice can make good programmers. I have posted first code. I'll update it daily 

Please feel free to visit and practice:

https://github.com/log-Null/Python-Scripts-For-Beginners-

 Best of luck and happy coding!!!!!!!!!!!!!!!!!!!

Sunday, July 27, 2025

My HACKERRANK 30 DAYS CHALLENGE + SOLUTIONS & WHY GITHUB MATTERS FOR BEGINNERS!

 print("HELLO")

Today's post is divided into two parts - My 30 days challenge of HackerRank - and finally figuring out GitHub

I have joined 30 days challenge of HackerRank.I  reccomend all of you to try it. Because even for the laziest of lazy people, this would be good 'start-point'. You get one task per day for 30 days.  All you need to do is to solve that one question and submit the answer. You can even see the leaderboard which is more motivating for us to keep going. I'm currently working through HackerRank’s 30 Days of Code Challenge!You can check out my daily solutions here:

HackerRank 30-Day Challenge – My GitHub Repo

By the way I have created my first Github repository today. wuhuuuu 🎉! Want to see what I’ve been working on behind the scenes? Browse through my GitHub: github.com/log-Null. From now on, whatever projects or works i create, I will upload it here.

If you dont know what a GitHub is, don't worry I'll explain. So basically , GitHub is a platform where developers store and share their code. It helps you track changes, collaborate with others, and build a public portfolio of your work. No matter if  you're a beginner or experienced, having a GitHub profile lets others see what you're learning, building, and contributing to — like an online resume for your coding journey. But, 

Why GitHub Matters — Even If You're Just Starting Out:


GitHub is more than just a place to store code — it’s your proof of work and growth. In today’s tech world, a strong GitHub profile can speak louder than a resume. It shows your skills, consistency, and willingness to learn. Whether you're solving coding challenges, building small projects, or just experimenting, uploading your work to GitHub helps you build a public portfolio, track your growth, and get noticed by recruiters, mentors, or collaborators.

Even if you're still learning, your GitHub can become digital identity in tech world. But getting to GitHub might be overwhelming and all "what-is-going-on-here" vibe. So don't be scared and definitely don't think about giving up. Every one have reached at that point and survived. My advice, Sit down, relax your mind and watch tutorials about Git and GitHub. You will slowly get used to GitHub. Even I was so confused by it and used to ignore GitHub whenever i saw it. But later i realized how far behind  I was compared to others. This made me frustrated and relentless. I realized its importance and impact, finally I gathered the courage to start working on my GitHub. See, today I created my first repository. 


See, it wasn't that hard after all. Anyway you all need to start your GitHub accounts too. This is your sign. After all first steps requires the hardest courage.

Final  Thoughts 💭 

  •  Solve some problems 
  • create your GitHub account
  • post your solutions there

Friday, July 25, 2025

PYTHON PROJECTS FOR BEGINNERS. 🐍💻⌨️

Helloooo,

Here are some projects that help you grow your basic concept knowledge in python, as well as help you practice your skills:( usage of print(), if else conditions, loops, different modules etc..)


1. SIMPLE CALCULATOR

2.TO-DO-LIST

3.NUMBER GUESSING GAME OR QUIZZ

4.ROCK PAPER SCISSOR GAME

5.SIMPLE MARK GRADING SYSTEM

6. MAD LIBS GENERATOR

7.MOOD DETECTOR 

No matter what you should practice your theoretical knowledge to grow your practical skills. so PRACTICE!. This suggestions are for beginners who are learning basic concepts just to make them know how things work. Then again you can modify this ideas on ur own and work creatively, passionately and curiously. That's how we should be coding.

Conclusion:

 I'm gonna be real with you. 

The first task I did was CALCULATOR, because it is so easy to implement. Writing code for a SIMPLE CALCULATOR gave me confidence as a starter. But when i tried NUMBER GUESSING GAME/QUIZZ , things got messy. It made me write  a bit long loops and conditions and ended up causing errors which drained my confidence, but once i learned about lists and dictionaries in python, NUMBER GUESSING GAME/QUIZZ became more easier.( Don't forget, when u study loops learn it thoroughly.) ROCK PAPER SCISSORS GAME is very much fun to write, especially the usage of cool module called  'random '. Another funny and hilarious one is MAD LIBS GENERATOR. Let me tell you this is the easiest one, by far. You can write code easily- all you need is good grip on print(), and string concatenation. With MOOD DETECTOR, you can build it however you want. whether its like an AI you use or fun chat, anything you want. Its all about your creativity to make it look more impressive.

 So now go ahead and try all this. Learn through your errors and mistakes.. 

Feel free to share opinions and suggestions or corrections. Note : I might make mistakes because I'm still learning.


NB: image credit goes to owner 

HOW TO LEARN PYTHON 🐍 OR ANY PROGRAMMING LANGUAGE EFFECTIVELY — POWERFUL & PRODUCTIVE TIPS FOR BEGINNERS


Hey!! 

I got into BTech CSE with absolutely no background in Computer Science. I wanted to learn at least one coding language since  we all know-skills matter more than marks. But i was too lazy to kick off the start point and wasted 3 years. Finally during my 3rd year vacation, which was 2 months ago I suddenly became determined to learn python. This time i was glad ,that i actually started.  But the problem was how to keep this consistency and productiveness. After surfing through basic concepts i tried to attend problems offered by ChatGPT , but guess what? I failed incredibly -why?. Because i lacked in-depth practical knowledge other than theoretical knowledge. My surface-level knowledge didn't do much in my skills. So even if I'm still a beginner, I learned some important things. And i want to share  some real tips and techniques to become productive with your learning-be it python or any language

1. PRACTICE!!! PRACTICE!!!

 Your brain needs practice to remember, understand things. We will become more confident and fluent in coding, the more we practice. 

2. DO PROJECTS 

Beginner projects are gold. Try to do more beginner projects, since you will learn so much by building something yourself. You will see mistakes, errors and ask about it on forums, AI or anywhere and learn. Curiosity is the best teacher. In fact you will study more things than you ever will learn from just watching tutorials. Yeah-you should watch tutorials- you should learn basic syntaxes and base concepts. But use most of your time to implement codes, write your own codes. Once you learned the basics of new concepts, don't waste time on it anymore and jump to practical session.

3. CONSISTENCY 

Code daily! This is one of the decision that requires hardest will power at the beginning. You should build a daily habit of coding. If you are a college student spent atleast 1:30 hours of your night for code practicing. Else if u are a morning birdie, spent that 1:30 hr at morning. Even that much helps in your growth. Anyway code daily. I used to spend my day after college watching animes, reading manhwas, manhuas etc. Now, in 4rth year , I'm giving more focus on coding habits. That being said, I often get tired in the evening after college, so some days I just watch tech reels and skip the practice session of the day. So what I'm saying is, things like this are different for each person , so try to keep consistency without getting overwhelmed or burdened .

4. SOLVE HACKERRANK /LEETCODE PROBLEMS

Solving problems on these platforms offer you the consistency and sharpens your coding skills. It will train your brain and helps it to learn concepts easily. you train logic, focus etc by this. You will get examples, mini challenges, problems. Additionally, these platforms offer competitions , badges and ranks that we can show off and make us more engaged. You will be able to track your growth.  Also it will help you get jobs more easily than others. At first all this might be confusing and difficult but you will definitely get better at the end. I recommend doing at least 2  problems a day. Right now, I'm using HackerRank. I started HackerRank 4 days ago and i feel great. Im planning to use it for consistency.

5. USAGE OF AI'S LIKE CHATGPT, DEEPSEEK

As strange it might sound, it's actually a great method. If you haven't tried learning with AI's , I suggest you try that method. Ask it to give tasks based on any concept you want to study. You will get so many tasks ,plus, simple explanations and so many examples just so you can etch the concept thoroughly in your mind. I personally prefer Chat GPT, since it's more good at personalized teaching methods and strategies. ChatGPT remembers your flaws and problems, it will give you a personalized explanation and examples so that you wont  feel overwhelmed or not going to be at the edge of giving up. If u read my previous post you might have noticed that i learned some cool things by accidently stumbling upon new methods  because i saw in ChatGPT-which i would have never learned or even notice while simply watching tutorials or lecture notes.

WRAPPING UP: 💭

I'm adding my HackerRank rank here-as a reminder to stay consistent and keep growing.

Current HackerRank Rank: 1059578

Someday, if I manage to reach the Top 1000 rank, I’ll update you.

We’re in this together, right?

Also feel free to leave comments, suggestions, mistakes anything. ☺ 



NB : Image credit goes to owner. Not mine





Thursday, July 24, 2025

The side road that made me stay with Python Programming 🐍

Yeah, you read the title right. Today I'm going to share some little python things that made me feel cool and interested as a beginner.

When i first started learning coding, I honestly had no idea where to begin. 

I ended up surfing through random resources, ends up getting mixed with different learning sources-even chatGPT. Anyway this  lead me taking lots of side roads unintentionally. And those side roads? They turned out to be the fun part. You should learn out of curiosity not from responsibility.

 The first code of most coders would be "hello world". and guess what mine was?

it was a CountTimer:

import time
for i in range(10,0,-1):
 print(i)
 time.sleep(1)
print("Happy bday!")

so the output for this one is:

10

9

8

7

6

5

4

3

2

1

Happy bday!


This looked so cool to me, even though i barely knew what was happening back then.  Anyway it was for my sis's bday. And she loved it. Later ,with the help of chatGPT, I actually started understanding what it meant. (Dont worry, I didn't understand that much back then eit.her) But now that i finally learned the 'FOR LOOPS' concept, i got what this simple script means. so let me explain this a bit.

  • First import time- brings in the time module so you can pause the program for a bit. i mean its like- 10. print it. ok wait for one second. then 9 print it, wait for one sec then 8, print it wait for one sec and so on. this would make it look like timer. (dont forget print() is to print message to screen)

  • Then, the for loop starts from 10 and goes backwards to 1. That’s what range(10, 0, -1) does—the -1 means "count in reverse." This is the magic of loop. Each for loop we run through each number. since its 10 and 0 so it counts reverse from 10 to 0 because we gave -1. -1 indicates the computer to read it read backward.

  • Inside the loop, it prints the number, then time.sleep(1) tells it to wait for 1 second before moving to the next one.

  • After the countdown hits 1 and finishes. Here the loop ends so it needs to move to next command which  prints “Happy bday!” like a surprise message.

It’s simple, but when you run it, it feels like the program’s actually doing something real. I love this kind of stuff because it shows how coding can feel alive—not just like writing dry instructions.

But its ok if u didnt understand please feel free to look through tutorials, cause etch this to your hear

"PRACTICE!! PRACTICE!! PRACTICE!!" 

***********************************************************************************

Let me show you some other cool things i found.

>   datetime 🕒 

 check this output

ENTER USERNAME :ichigokurosaki

ENTER PASSWORD :soulsociety2

ACCESS GRANTED TO USER-1

LOGIN TIME RECORDED :2025-07-24 14:05:30.672011


This few lines looks cool right? it gives that hacker vibes ! ( enough to look cool for a beginner). Yes that was what my thought too.

  I will give you the code for this one.

import datetime
input1=input("ENTER USERNAME :")
input2=input("ENTER PASSWORD :")
print(f"ACCESS GRANTED TO USER-1\nLOGIN TIME RECORDED :{datetime.datetime.now()}")

see?!. 

When i was learning, I accidentally discovered .now() from ChatGPT.  It made me curious and i dived more into 'datetime' module. That's how i learned to use it like you see above. This felt like i could track real time with my code. Let me explain this to you in simple words, then again if u didn't understand , check tutorials and PRACTICE!!! PRACTICE!!.

Explanation:

  • First line 'import datetime' brings in Python’s built-in date & time tools.

  • The f you saw inside print is f strings thats a bit more advanced not usually learned by beginners but guess what i learned this early( blaming it too on chatGPT). Let me tell you the purpose of f strings.f-strings (short for formatted strings) are a super-easy way to add variables inside a string in PythonYou just put an f before the string and write your variable inside curly braces {}.

  • IN SHORT F STRING LET YOY PUT VARIABLES DIRECTLY INSIDE A STRING USING{}— and Python will replace it with the actual value when printing. check the code given below

         name = "Coder"
         print(f"Hello, {Coder}!")
          
         the output will be:
          Hello, Coder! 
          
        see how it worked perfectly?


  • Then it asks the user to type a username and password (but doesn’t actually check if it’s correct — just for input). remember : in python we print msg using print() and ask input from user using input(). it allows user to input something inside.

  • After entering them, it shows:

    • A message that access is “granted”

    • And logs the exact time you logged in, using datetime.datetime.now()

So basically, it looks like a basic login system, and it prints the current date and time to make it feel like a real terminal system response. cool isnt it?.


Things like this kept me engaged to coding as a beginner. 🖥 

******************************************************************************

ANSI CODES. 🌈 🌈 

ok, this was unexpected- but made everything look ten times cooler.It let you add color to ur terminal text.You can use ANSI codes to give your terminal programs a hacker vibe, add status messages, or just make things more readable and fun—without needing any extra library. I mainly used the ANSI COLOR CODES to make my output look colorful and vibrant so it would make me feel alive.

Color   Code Usage Example
Black  \033[30m     print("\033[30mBlack\033[0m")
Red  \033[31m print("\033[31mRed\033[0m")
Green  \033[32m print("\033[32mGreen\033[0m")
Yellow       \033[33m print("\033[33mYellow\033[0m")
Blue  \033[34m print("\033[34mBlue\033[0m")
Magenta  \033[35m print("\033[35mMagenta\033[0m")
Cyan  \033[36m print("\033[36mCyan\033[0m")
White  \033[37m print("\033[37mWhite\033[0m")


so this is the basic ansi color codes

Lets look at this 
import datetime
input1=input("ENTER USERNAME :")
input2=input("ENTER PASSWORD :")
print(f"\033[31m ACCESS GRANTED\033[0m TO USER-1\nLOGIN TIME RECORDED :{datetime.datetime.now()}")

        
i added ansi escape sequences: \033[31m and \033[0m. to print the words in between( ACCESS GRANTED) in red colour in output.  We added those escape sequences to beginning and end of sentence we need to print in different colour.  Here in the code we saw 31 is red so output will print in red .It will look cool when ur output shows different colours.



Try all of  them when u feel dry as a beginner. i assure you this will make u more engaged.


💭 💭:
 Also don't just read these things, GOOOOOOOOOO Y'ALL ,WRITE ITTTT, TRY IT,  RUN IT FOR YOURSELVES. I didn't plan to learn coding this way. I just followed my curiosity and landed here- but it made me stay.
so whenever you feel stuck as a beginner:
try small things like this...❤ 

again PRACTICEEEEEE!!! Y'ALLL!!!!!


NB: The image credit goes to owner. Not mine









Tuesday, July 22, 2025

So..lets go python time 🐍

 print("Hellooooooo")

output: Hellooooooo

# yep thats right you have learned two things here, about python

1.How to print a message using the print() function-use print() function.

2. # is how you write comments in Python.

so me?

Not a pro. Not a genius. Just a Gen-z human trying to make sense of Python, data, and where I even fit in this tech world.

Right now, I’m doing a data science internship. Half the time I feel lost, but I still show up. Ok fine- i slack 6 days and shows up the 7th day. (but you guys don't take this bad habit)

This blog? It's where I’ll keep track of all that. Even if no one reads it, I want to remember how I started.

That’s it. Day 1 ( not literally day 1. still you can label me "beginner" as of now")

That's it .



SIMPLE PYTHON PRACTICE PROBLEMS FOR ABSOLUTE BEGINNERS

 Hey everyone!, Hope you all have been doing well. Im here to share an exciting news ! . I have created a GitHUb repository for Python Pract...