Answer:
def check_password(pwd):
c=0
d=0
for i in pwd:
if (i>='a' and i<='z') or (i>='A' and i<='Z'):
c+=1
elif i>='0' and i<='9':
d+=1
c+=1
if len(pwd)==c and d>=2 and len(pwd)>=8:
print("valid password")
else:
print("Invalid password")
ps=input("Enter password for checking : ")
check_password(ps)
Explanation:
- Loop through the password and check if it contains any alphabet.
- Increment the counter if it contains any alphabet.
- If it contains a number, increment both c and d variables.
- Finally display the relevant message.
A smart speaker has no screen or keypad for changing its settings.
The steps we will follow to configure the speaker are
- Firstly we need to enter the password to the speaker’s Wi-Fi hotspot .so that we can connect the speakers Wi-Fi.
- Secondly we should connect the smartphone to the speaker’s Wi-Fi hotspot.
- Thirdly we should download the speaker’s app to a smartphone.So that we can operate the speaker
Explanation:
A smart speaker has no screen or keypad for changing its settings.The steps we will follow to configure the speaker are
- Firstly we need to enter the password to the speaker’s Wi-Fi hotspot .so that we can connect the speakers Wi-Fi.
- Secondly we should connect the smartphone to the speaker’s Wi-Fi hotspot.
- Thirdly we should download the speaker’s app to a smartphone.So that we can operate the speaker
Thus above mentioned is the order of the three steps that we need to follow in order to configure the speaker.
8,5,3,6,1,2,7,4 there you go bud