ssn = input("Enter a valid Social Security number: ")
dashes = 0
nums = 0
message = "Invalid SSN"
if len(ssn) == 11:
for x in ssn:
if x.isdigit():
nums += 1
elif x == "-":
dashes += 1
if nums == 9 and dashes == 2:
message = "Valid SSN"
print(message)
I wrote my code in python 3.8. I hope this helps!
Answer:
Follows are the solution to this question:
Explanation:
The simple economy is the greatest incentive to join AI and the cloud. The cloud framework enables consumers to buy processing only after traditional installation costs are eradicated. Each company could use these earnings for the advancement of the AI using this model, that's why the dedicated infrastructure is a key advantage of continuing to work via artificial intelligence (AI) cloud-service fully prepared platform.
A web designers favorite snack is cookies.
Answer:
A local area network (LAN) is a collection of devices connected together in one physical location, such as a building, office, or home.
Setting up a LAN includes the following materials:
1- A network switch - or a router.
2- An ethernet cable
3- A computer.
Hope this helps!