Skip to content

Instantly share code, notes, and snippets.

View Sarthak-Sidhant's full-sized avatar
🤒
Out sick

Sarthak Sidhant Sarthak-Sidhant

🤒
Out sick
View GitHub Profile
@Sarthak-Sidhant
Sarthak-Sidhant / ranchi.nic.in_results.json
Created March 27, 2026 16:41
ranchi's NIC website scrape results based on my new and improved: table+web-elements scraper, with depth 20
{
"domain": "ranchi.nic.in",
"total_paths_discovered": 224,
"site_overview": "N/A",
"subsite_analysis": [],
"categories": [
{
"category": "Priority Documents (Fallback)",
"paths": [
"/notice/tender-invitation-5/",
@Sarthak-Sidhant
Sarthak-Sidhant / dictionary.md
Created October 5, 2024 08:22
dictionary - gpt4o

A Comprehensive Guide to Dictionaries in Python

Introduction

Dictionaries are a fundamental data structure in Python, allowing you to store and manipulate data in a flexible and efficient way. In this guide, we'll cover the basics of dictionaries, their methods, and how to use them effectively in your Python programs.

Creating Dictionaries

print("hello world")
#output: hello world
print("===========================")
print("hello world",end="#")
print("hello people")
print("how are you")
#output:
# hello world#hello people
# how are you

Hi My name is Sarthak Sidhant

Web Developer And Amateur Programmer

I'm literally the Most Annoying Person on The Internet

  • 🌍  I'm based in Bokaro, Jharkhand, India
  • 🖥️  See my portfolio at sarthaksidhant.me
# Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/
# No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes.
#in this program, we will have a basic idea of how to code lists in python
#we will start off by creating a list of numbers
list1=[1,2,3,4,5,6,7,8,9,10]
#this list contains numbers from 1 to 10, all of these are integers, and we will print them out
print(list1)
#we will now understand how to access elements in a list
#positive indexing: we will print the first element of list1, the indexing (counting) starts from 0
@Sarthak-Sidhant
Sarthak-Sidhant / WhileLoop.py
Created February 5, 2023 05:33
Detailed Instruction And Usage Of While Loop By Sarthak Sidhant
# Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/
# No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes.
#Loops in python
#For Loop
#While Loop
#For Loop
#We Will Only Be Covering For Loop In This Tutorial
#For Loop is used to iterate over a sequence (list, tuple, string) or other iterable objects.
@Sarthak-Sidhant
Sarthak-Sidhant / ForLoop.py
Created February 5, 2023 05:19
Detailed Instruction And Different Usages Of The For Loop By Sarthak Sidhant
# Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/
# No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes.
#Loops in python
#For Loop
#While Loop
#For Loop
#We Will Only Be Covering For Loop In This Tutorial
#For Loop is used to iterate over a sequence (list, tuple, string) or other iterable objects.
@Sarthak-Sidhant
Sarthak-Sidhant / operators.py
Last active July 13, 2024 09:37
Detailed Introduction to Python Operators - Sarthak Sidhant
# Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/
# No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes.
#Operators in Python
#Operators are used to perform operations on variables and values.
#There are 4 types of Python Operators, they are: Arithmetic Operators, Comparison Operators, Assignment Operators, Logical Operators
#Arithmetic Operators
#Arithmetic operators are used with numeric values to perform common mathematical operations:
print("Arithmetic Operators")