Skip to content

Instantly share code, notes, and snippets.

View nawarazpokhrel's full-sized avatar
💭
I may be slow to respond.

Navaraj nawarazpokhrel

💭
I may be slow to respond.
  • Olive Group
  • Kathmandu
  • 06:18 (UTC -12:00)
View GitHub Profile
import json
out = {}
for b, g in df.groupby("Make"):
out[b] = {
row["Model"]: {
"2021": " ".join(str(row["2021"]).split()),
"2020": " ".join(str(row["2020"]).split()),
"2019": " ".join(str(row["2019"]).split()),
"2018": " ".join(str(row["2018"]).split()),
@nawarazpokhrel
nawarazpokhrel / dice_game.py
Created December 11, 2022 13:07
python dice game
import random
def get_players_numbers():
try:
player_number = int(input("Please enter the number of players: "))
return player_number
except ValueError:
print("print provide alpha numeric or numeric value of players numbers")
@nawarazpokhrel
nawarazpokhrel / tictactoe.py
Created December 11, 2022 13:05
Python Tic Tac Toe Game
class TicTacToe:
player1 = input("What’s player #1 name? ")
player2 = input("What’s player #2 name? ")
def __init__(self):
# initialize the game board
self.board = ["1", "2", "3",
"4", "5", "6",
"7", "8", "9"]
import json
import os
import re
import time
from decimal import Decimal
from scrapy import Request, FormRequest
from scrapy.http import HtmlResponse
from scrapy_selenium import SeleniumRequest
from selenium import webdriver
import json
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from webdriver_manager.firefox import GeckoDriverManager
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) " \
@nawarazpokhrel
nawarazpokhrel / nepali_branch.json
Last active November 8, 2021 15:31
Nepali Bank and Branches python json
[
{
"Agricultural Development Bank Ltd.": [
"Palpa (Rampur) Branch",
"Tinpaini Branch",
"Terhathum Branch",
"Kalanki",
"Ghorahi Banking",
"Gulariya Branch",
"Tamghas Branch",
@nawarazpokhrel
nawarazpokhrel / district_municipalites.json
Last active November 8, 2021 15:29
Nepali Districts,States,Municipality Data
[
{
"Bhojpur": [
"Bhojpur",
"Sadananda",
"Tyamkemaiyum",
"Ramprasadrai",
"Arun",
"Pauwadungma",
"Salpasilichho",