- Launch Chrome with no internet.
- Type Anything in search bar and press enter.
- Now, Open Inspect tab by right click and selecting inspect tab or press "ctrl+shift+i"
- Click on the console tab
- At last type the following Command
This file contains hidden or 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
from tqdm import tqdm, trange | |
import time | |
for i in tqdm(range(10)): | |
time.sleep(1) | |
for i in trange(10): | |
time.sleep(1) |
This file contains hidden or 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
# pip install forex-python | |
from forex_python.converter import CurrencyCodes, CurrencyRates | |
from forex_python.bitcoin import BtcConverter | |
codes = CurrencyCodes() | |
l = ['INR', 'USD'] | |
for i in l: | |
name = codes.get_currency_name(i) | |
symbol = codes.get_symbol(i) |
This file contains hidden or 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 pywhatkit as kt | |
topics = ["C++", "Python 3"] | |
text = {} | |
for topic in topics: | |
text[topic] = kt.info(topic, 4) | |
print(topic) |
This file contains hidden or 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
from turtle import Turtle, done | |
flag = Turtle() | |
flag.speed(3) | |
flag.pensize(5) | |
flag.color("#000080") | |
def draw(x, y): |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Set Public Visibility Of An Organization.</title> | |
</head> | |
<body> | |
<script type="module"> | |
import { Octokit } from "https://cdn.skypack.dev/@octokit/core" | |
const octokit = new Octokit({ auth: `<------Put Here Your GitHub Personal Access Token----->` }); |
This file contains hidden or 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
from moviepy import editor | |
video = editor.VideoFileClip("GIF.mp4") # Put Video Path | |
audio = video.audio | |
file_name = str(audio.filename).split('.')[0] | |
audio.write_audiofile(file_name+".mp3") | |
print("==========Succesfully Converted==========") |
This file contains hidden or 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 pyautogui | |
pyautogui.typewrite('Hello World', interval=0.25) |
This file contains hidden or 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 turtle as t | |
t.speed(5) | |
t.bgcolor('black') | |
r, g, b = 255, 0, 0 | |
for i in range(255 * 2): | |
t.colormode(255) | |
if i < 255 // 3: |
This file contains hidden or 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
from countryinfo import CountryInfo | |
name = "India" | |
country = CountryInfo(name) | |
print(country.alt_spellings()) | |
print(country.capital()) | |
print(country.currencies()) | |
print(country.languages()) |