Skip to content

headings for wifi and password #394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AI_for_Guess_the_number/AI_for_Guess_the_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
print("Wanna go again? y for yes and anykey for no. ")
i = input("");
if(i == "y"):
print(breaking * 10);
print(breaking * 10)
a = int(input("Min: "))
b = int(input("Max: "))

Expand Down
2 changes: 2 additions & 0 deletions Wifi-Password/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
password=wifiPass[15].strip("psk=");
print ("{:<30} {:<}".format(wifiname, password))
else:
print ("Wifiname Password")
print ("----------------------------------------")
wifi = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8', errors="backslashreplace").split('\n')
profiles = [i.split(":")[1][1:-1] for i in wifi if "All User Profile" in i]
for i in profiles:
Expand Down
10 changes: 9 additions & 1 deletion Wikipedia-Search/pywikisearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@
while True:
ques = input("What would you like to ask Wikipedia?")
wikipedia.set_lang("en") #change "en" to convenient language for example wikipedia.set_lang("es") will set the language to spanish
print wikipedia.summary(ques, sentences=3)
try:
print(wikipedia.summary(ques, sentences=3))
except wikipedia.exceptions.DisambiguationError as e:
print(f"DisambiguationError: {e}")
except wikipedia.exceptions.PageError as e:
print(f"PageError: {e}")
more = input("Do you want to ask anything else? (y/n)")
if more.lower() != 'y':
break