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 math import sqrt | |
print("Calculating confidence of 95%") | |
avg = float(input("Enter average of the data:")) | |
n = int(input("Enter number of items:")) | |
sd = float(input("Enter standard devation:")) | |
z = 1.96 | |
conf_high = avg + z * (sd/sqrt(n)) | |
conf_low = avg - z * (sd/sqrt(n)) |
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 imaplib | |
import email | |
from json import loads | |
def email_login_info(file_name='login.json'): | |
try: | |
file_keys = open(file_name) | |
except: | |
file_keys = open(file_name, 'w') | |
raw_json = '''{ |
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 imaplib | |
import email | |
from json import loads | |
def email_login_info(file_name='login.json'): | |
try: | |
file_keys = open(file_name) | |
except: |
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
@echo off | |
set /p ssid="Enter SSID of Network" | |
netsh wlan show profile name=%ssid% key=clear | findstr Key | |
pause |
NewerOlder