This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Bhojpur": [ | |
"Bhojpur", | |
"Sadananda", | |
"Tyamkemaiyum", | |
"Ramprasadrai", | |
"Arun", | |
"Pauwadungma", | |
"Salpasilichho", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Agricultural Development Bank Ltd.": [ | |
"Palpa (Rampur) Branch", | |
"Tinpaini Branch", | |
"Terhathum Branch", | |
"Kalanki", | |
"Ghorahi Banking", | |
"Gulariya Branch", | |
"Tamghas Branch", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) " \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()), |