Answer:
userpassword = {"123456",
"password",
"123456789",
"12345678",
"12345",
"111111",
"1234567",
"sunshine",
"qwerty",
"abc123"}
#We define the function that prompts the user for a password
def user_passinput():
password = input("Choose enter a password: ")
return password
#Function that checks the password
def check_password():
count = 0
check_pass = user_passinput()
if check_pass in userpassword:
print("Yay!! you entered the correct password")
elif count <10:
count = count+1
print("Please try again")
user_passinput()
else:
print ("Maximum tries exceeded")
check_password()
Explanation:
Using Python for this code, in the first line of the code, we list the dictionary of 10 most common passwords searched on the web. In line 12, we define the function that will demand the user to enter a password and return the value the user entered. Line 16 defines the function that checks if the password is common and prints to the screen either "Yay!! you entered the correct password", "Please try again" or "Maximum tries exceeded" depending on the condition that is satisfied. The last line of the code calls the check_password() function, which actually initiates the designed program.
Answer:
Diffraction
Explanation:
Diffraction occurs when an electromagnetic waves encounter an obstruction and split in secondary waves, these waves continue the same direction that was split.
These waves going to around the object, obstacle with sharp edges could cause detraction, like tables, refrigerators chairs, walls, furniture, etc.
Answer:
VPNs encrypt your traffic while proxy servers don't.
Explanation:
Answer:
Following python statement will give the assignment to testResult as specified:
if((geneticMarkerA == 1) or (geneticMarkerB ==1)):
testResult = 1
if((geneticMarkerA ==1) and (geneticMarkerB == 1)):
testResult = 0
if((geneticMarkerA == 0) and (geneticMarkerB == 0)):
testResult = 0
Explanation:
In above statements or and and operator are used to check the conditions of set of values present in variable geneticMarkerA and geneticMarkerB.
Based on if the condition evaluate to true or false respective values to testResult varaible is assigned.
Following is sample run for above statements:
geneticMarkerA = 1
geneticMarkerB = 0
if((geneticMarkerA == 1) or (geneticMarkerB ==1)):
testResult = 1
if((geneticMarkerA ==1) and (geneticMarkerB == 1)):
testResult = 0
if((geneticMarkerA == 0) and (geneticMarkerB == 0)):
testResult = 0
print(testResult)
Output
1
The most important reason we should make a backup of our files on a USB or other device is in case our computer suddenly dies. If something in it goes bad and it stops working, you will have then lost everything on your computer. But, if you make a save, you can buy another computer and upload everything onto the new one.