1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
frosja888 [35]
3 years ago
12

Write a program that prompts the user to enter a Social Security number in the format ddd-dd-dddd, where d is a digit. The progr

am displays Valid SSN for a correct Social Security number or Invalid SSN otherwise.
Computers and Technology
1 answer:
koban [17]3 years ago
3 0

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!

You might be interested in
What are the 6 example of computer hardware​
zheka24 [161]

Answer:

Monitor.

Motherboard.

CPU(Microprocessor.

Main memory(RAM)

Expansion cards.

Power supply unit.

Explanation:

7 0
3 years ago
Read 2 more answers
calculate how much memory is needed to store a foir minute music trackusing the of bytes needed per second from above​
sergeinik [125]

Answer:

1400 bytes

hope that helps!

4 0
3 years ago
Which of the following is not a common network architecture type?
solong [7]

Answer:

c

Explanation:

i guess bcs i didnt learn this actually

3 0
3 years ago
Pls help will mark brainliest as soon as u awnser
NNADVOKAT [17]

Answer:

The answer is...

Explanation:

It is A or D I would go with D tho

Hope this helped

:)

5 0
3 years ago
Why Use LinkedIn AI Automation Tools to Grow Your Sales Pipeline?
guajiro [1.7K]

Answer:

With more than 722 million prospects on this platform, there’s a huge potential to find your next set of qualified leads.

  • More than 89% of the B2B marketers are already using LinkedIn to scale their lead generation efforts.
  • Almost 62% of them admit that LinkedIn has helped them to generate 2X more leads than any other social channels.
  • Almost 49% of the B2B marketers are using LinkedIn AI automation tools to find their future customers easily.
  • Also, more than half of the B2B buyers are on LinkedIn to make their buying decisions. This means that your ideal future leads are on LinkedIn making it a perfect platform for your business.  

That’s part of the reason why LinkedIn is one of the favorite platforms to generate B2B leads.

7 0
3 years ago
Other questions:
  • Rachel is on her way to an interview for the position of a project manager. She is trying to prepare for this interview by analy
    6·1 answer
  • What would the output be if we replaced the math expression in the last line with dependents * ((yearsOnJob - 1) * 4) - 6 and th
    5·1 answer
  • To help determine which technology to use, Raul creates a table to help him compare the pros and cons of his choices. What part
    15·1 answer
  • You are asked to write an app to keep track of a relatively small music library. The app should load song information from a dat
    14·1 answer
  • Inkjet printers and laser printers are examples of ________ printers. (1 point)
    13·1 answer
  • What does it mean if the phone number is red on iphone?
    13·1 answer
  • Explain in your own words how you can use MSCONFIG and Task Manager to troubleshoot problems on the computer.
    15·1 answer
  • Fuction table of JK-Flip flop?
    11·1 answer
  • Java: Programming Question: Reverse OrderWrite a program that reads ten integers into an array; define another array to save tho
    10·1 answer
  • To simplify input management, you are asked, neglecting the handling of exceptions, to write a keyboard class so that the input
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!