Return a random social security number


Write a Python procedure, call it ss(), that will return a random social security number xxx-xx-xxxx with the following restrictions: The first digit cannot be a zero, neither of the middle two digits can be a 9, and the last digit cannot be a 5. So, 012-23-3335, 123-29-1234, 123-92-1234 and 123-34- 6785 are examples of unacceptable social security numbers. (Extra credit: what is the probability that your procedure would print a specific (like yours) ss number?)

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Return a random social security number
Reference No:- TGS088941

Expected delivery within 24 Hours