Write the code (from to )using for loop andif elseif statementto accept themobile phone numbersof200 residents of Dubaiasstringand check if thelength of eachmobile number is10. Depending on the first 3 characters of the mobile number,display the messagefrom the table below:First 3 charactersMessage“050”, “054”, “056”Etisalat number“052”,“055”, “058”DunumberFor anyother input(if the phone number is not a ten digit number or if it does not start with any of the above digits)Not a valid mobile number

Answers

Answer 1

Answer:

In Python:

nos = int(input("How many phone number: "))

for i in range(1,nos+1):

   phn = input("Phone Number: ")

   if not len(phn) == 10:

       print("Invalid")

   else:

       charactersMessage = phn[0:3]

       if charactersMessage in ['050', '054', '056']:

           print("Etisalat Number")

       elif charactersMessage in ['052', '055', '058']:

           print("Du Number")

       else:

           print("Invalid")

Explanation:

Prompts the user for the frequency of phone numbers to check

nos = int(input("How many phone number: "))

This iterates through the phone numbers

for i in range(1,nos+1):

This prompts the user for phone number

phn = input("Phone Number: ")

Prints invalid id number length is not 10

if not len(phn) == 10:

   print("Invalid")

If otherwise

else:

This gets the first 3 characters

   charactersMessage = phn[0:3]

Prints Etisalat number if the characters are either 050, 054 or 056

   if charactersMessage in ['050', '054', '056']:

       print("Etisalat Number")

Prints Du number if the characters are either 052, 055 or 058

   elif charactersMessage in ['052', '055', '058']:

       print("Du Number")

Prints error if otherwise

   else:

       print("Invalid")


Related Questions

What were the important developments that occurred in photography that facilitated the creation of motion pictures? Two critical developments in photography that enabled the development of motion pictures were___and___​

Answers

Answer:

"A moving picture is an illusion that makes a still photo seem to move. The basic principal behind motion pictures is the fast transition between one picture to the next, almost creating a seamless transition. A flip-book is a good example of this. Another example would be film used for old movies. The film contains negatives of an image which when light is shined through creates a "shadow" of the image. If you quickly transition the film from one image to the next you end up a motion picture."

Explanation:

How can I redo it again and my teachers are not responding plz tell me what to do for I can redo it again...and I already unsubmit it and it’s still graded..help.

Answers

Answer:

Maybe click on the test to see if there is like a redo button. Like a reset test. If not it might be locked and only your teacher can reset it for you.

If Gabrielle's message contained information that is only intended for the recipient, the message should be marked to discourage it from being shared?
private
normal
sensitive
delayed​

Answers

Private.

From the lack of information in the question, it can be assumed that the message arrived in a timely fashion.

As it is not said that the message is urgent, it is not sensitive to a reply.

Finally, there is a caveat to the message in that it is only intended for he recipient, therefore it is not a normal message.

This leaves one answer and one only: Private.

What type of computer/device do you have i need it for a survey and it due today soooooooooooooo

Answers

Answer:

ooh I have a I phone computer

Match the Internet protocol with its purpose.

News:

http://

ftp://

file://

mailto:

Answers

Answer:

News: enables you to access newsgroups

http:// enables transfer of hypertext documents

ftp:// enables you to download from and upload to a remote computer

file:// loads a local file from your computer

mailto: loads the browser's e-mail screen to send an e-mail message

Answer:News:

✔ Enables you to access newsgroups

http://

✔ Enables transfer of hypertext documents

ftp://

✔ Enables you to download from and upload to a remote computer

file://

✔ Loads a local file from your computer

mailto:

✔ Loads the browser's e-mail screen to send an e-mail message

Explanation:

Right on Edge 2022

How do u reverse image search on Android? ​

Answers

Answer:

go to the page the image is on

hold the picture -a menu will appear

tap Search

Is the color grade of black or white higher?

Answers

Answer: When it comes time to color grade black and white footage, follow this one ... shooting black and white, high contrast almost always looks better.

Which Application program saves data automatically as it is entered?
MS Word
PowerPoint
MS Access
MS Excel

Answers

The application program that saves data automatically as it is entered is the MS Access.

The Application program that saves data automatically as it is entered MS Access. The correct option is C.

What is MS Access?

Microsoft Access is a database management system that includes a graphical user interface, the relational Access Database Engine, and software-development tools.

It is a component of the Microsoft 365 software package and is available as a standalone product or as part of the Professional and higher editions.

Data kept in Access may be found and reported on with ease. Make interactive data entry forms. a variety of data sources can be imported, transformed, and exported.

Access is often more effective at managing data because it makes it easier to keep it structured, searchable, and accessible to several users at once.

MS Access is an application tool that automatically saves data as it is entered.

Thus, the correct option is C.

For more details regarding MS access, visit:

https://brainly.com/question/17135884

#SPJ2

1. This are tools used to make any presentation interesting and exciting.
a. audio and video
c. hyperlinks
b. animations
d. text and graphics​

Answers

Answer:

c. hyperlinks

Explanation:

The correct option is - c.hyperlinks

Reason -

The "hyperlink" function in PowerPoint allows users to advance from one slide to another slide in the presentation when they click on a predetermined word, shape, or image, thereby allowing for a more dynamic and interactive experience than can be obtained with serial presentation of slides alone.

Computer software consists of
A.) the peripheral equipment such as a scanner
B.)the physical parts of the computer such as the keyboard.
C.)the programs inside of a computer such as the d.)operating system and gaming.
a monitor and the CPU

Answers

The answer is C) the programs inside of a computer

Answer:

The programs inside of a computer

What are the hardware and software components of a computer

Answers

Answer: See explanation

Explanation:

Computer hardware simply refers to the part of the computer that we can see and also touch. This includes the mouse, keyboard, monitor, central processing unit, monitor etc.

The computer software simply refers to the set of instructions which are used in the operation of the computer. It includes the application programs, operating system etc.

Can anyone help and write a sample answer to this please x

Answers

Answer:

I can give you some points -

Today people consider owning the latest smartphones and gadgets as a symbol of status. The demand for newer models of gadgets results in the production of more things we dont require. More and more waste is generated due to the rejection of older models of working gadgets. More demand for newer models can help in the advancment in technology and encourage manufavturers to produce better gadgets. But this increase in demand can badly affect our environments .

.i hope these points can help you.

Describe a way that you can envision using the power of the computer through


distributed computing to enhance the quality of your life.

Answers

Answer:

Explanation:

In a way, we can use cryptocurrency as an example. Most cryptocurrencies use distributed computing in a form of decentralization to create an economy/system of information where individuals can transfer money. This ultimately gives back power to the people and puts individual's money back in their own hands. Therefore, getting rid of the banks entirely. This is an enormous enhancement in quality of life and is only one of the many innovations that cryptocurrencies have created.

A way that you can envision using the power of the computer through distributed computing to enhance the quality of your life is through content creating/making.

What is content creation?

Content creation is known to be the act or method of finding out/ identifying a novel topic you want to write about and then deciding which way you want the content to take.

Here, one has to create different strategy in producing content.  Through content making, one can use the power of the computer via distributed computing to enhance the quality of your life.

Learn more about  content creating from

https://brainly.com/question/13171394

Q.3- What are keywords?
A. These are names given to variables, constants, classes and
methods.
B. These are constants that hold a fixed value of any of the data types.
C. These are special symbols that perform specific operations,
D. These are reserved words that have special meaning in java
language​

Answers

Answer:

These are reserved words that have special meaning in java  language​

Explanation:

Literally, keywords are special words that have special meaning and purpose and can not be used from any other purpose aside from its predefined purpose.

In other words, they are reserved words.

Examples are: public, class, String, int, and many more

Hence, option (d) is correct

Which steps will open the Access Options dialog box? Complete each statement using the drop-down menus
1. Click the
tab, and enter the
2. Click Options to open a new dialog box
3. Here, you can customize the ribbon, Quick Access Toolbar, and
among other features.

Answers

I believe it is Number 3

Answer:

1st blank: File

2nd blank: Backstage View

3rd blank: Language

Explanation:

edge 2020-21

Programming language​

Answers

And? Please give me an explanation.

help plz ;-;

which of the following terms means "storing a value in a variable"?

assignment
operator
variable
exponent​

Answers

Answer:

Assignment

Explanation:

Storing a value in a variable (memory location) is called assignment.

In programming, Assignment serves as storing a value in a variable.

variable serves as a container for a value. For instance, when performing addition, the number there is a variable

A variable is been considered with space in the computer's memory and this can help in holding a value.

Therefore, option A is correct.

Learn more at:https://brainly.com/question/23275071

PLZZZ HELP I need this done by 7:50

Answers

Answer:

proportionally bias

Explanation:

m

A test's directions often clarify any questions a student might have about answering a response question.

Please select the best answer from the choices provided

True
False

Answers

True, hope you have Have a good day
I’m good at technology and I say True.

does the colour intesity change of the liquid if you add more baking soda?​

Answers

Answer:

adding more baking soda to the water changes the intensity of the color blue. in this case, the liquid becomes a dimmer blue. this is because the pH scale is logarithmicmeaning that a difference in one unit of pH is 10 times the difference in concentration.

Explanation:

Hope this helped Mark BRAINLEST!!!!!

Identify the octal literal from the following:
a) True b) ‘True’ c) 0o345 d) 0o389

Answers

Answer:

c) 0o345 is the answers

Plz help me I need this doneee

Answers

answer: I think it’s true

5 minutes speech on computer and it's impact​

Answers

Answer:

used for inter eliptics

Answer:

Computers have affected our lives in a great deal in that almost every thing now is either run by or made by computers. for instance in large industries, cars and space exploration devices and machines are designed by the use of the computers, in hospitals where medical billing, patients admittance and other medical are run and made by computers. there are also benefits of computer. but it also right it also impact our life.

How to create a checkerboard on Python turtle?
I need to create a generic checkerboard in that box, if anyone knows how to code this I would be absolutely grateful and grant you brainliest for sure!

Answers

Answer:

here is my crude attempt:

import turtle

t = turtle.Turtle()

t.speed(0)

colors = ["black", "yellow"]

SQUARES = 8

SQUARESIZE = 20

def rectangle(color, s):

 t.begin_fill()

 t.pendown()

 t.color(color)

 for i in range(4):

   t.forward(s)

   t.right(90)

 t.end_fill()

 t.penup()

for row in range(SQUARES):

 for col in range(SQUARES):

   t.setpos(row*SQUARESIZE, col*SQUARESIZE)

   rectangle(colors[(row+col)%2], SQUARESIZE)

-FOR EXCEL AND WILL GIVE BRAINLIEST-

The numbers in our worksheet look like this: 1000
You want them to look like this: $1,000.00
How can you accomplish this?

A. Select Format>Money from the menu
B. Click currency style button on the formatting toolbar
C. You have to retype everything and manually add the dollar signs, commas, and decimals
D. None of the above

Answers

Answer:

I believe the answer is B. Click currency style button on the formatting toolbar

Explanation:

Hello i should be write engilish but i from turkey and my brainly APS is engilish how can ı change this lengue haa​

Answers

Explanation:

there are buttons like q ans influence and me

go to me and tap settings

Answer:

you can translate it into English if u know how to do and if there is option for that.

Explanation:

Word Bank:


X Y Color Line Width Radius




Fill in the correct parts of a circle command:


draw_circle ((

x

,

y

),

Line Width

,

Color

,

Radius

)

Answers

Explanation:

circle with radius and colour red

Answer:

x, y  ,  radius  ,  line width  ,  color  

Explanation:

type x in the first blank

then y in the second blank

then radius in the third

in the forth line width

then in the last one type color

Answer 1:

X

Answer 2:

Y

Answer 3:

Radius

Answer 4:

Line Width

Answer 5:

Color

How many countries don't uses the metric system?​

Answers

Answer:

The USA, Liberia, and Burma (a.k.a. Myanmar)

Explanation:

These are the only 3 countries that don't use the metric system

3 countries don’t. At this time, only three countries—Burma, Liberia, and the US—have not adopted the International System of Units (SI, or metric system) as their official system of weights and measures."

Which of the following is an example of a goal? *
10 points
Establish an online presence
Sell products or services to generate income
Present information on a topic
Increase sales by 10 percent by the end of the year

Answers

i would say d! sorry if im incorrect <3

what do you understand by local technology?

Answers

Answer:

It's basically people that assist to their activities in a daily life

Explanation:

Answer:

People that assist with each daily activities

Explanation:

Other Questions
When continental crust and oceanic crust collide, ________ crust goes under (subducts) ___________ crust. _____________ then form on the continent and a ___________ forms where the plates collide.Can someone help me I am stoopid. mary may not come but we will get ready in case she? Q. The children are afraid .........cats? Ans. The children are afraid of cats ? Is it correct ? Need help!!!!!!!!!!!!!!!!!!!! MARKING BRAINLIEST PLEASE HELP WICH ITEMS DO I DRAG INTO EACH BOXES PLEASE ONLY ANSWER IF YOU'RE 100% SURE A car magazine reports the number of miles driven for different amounts of gas for car C. How many miles does the car travel on 2 gallons of gas?1. 100 miles in 2 gallons2. 50 gallons in 23. 10 in 2 ANSWER NOW PLZ describe what movement causes an electric current in a wire A 6 Sentence paragraph that compares the beliefs/values in Sparta and Athens Does Anjana owe any money? into statement Dion is a police officer who gets called to a disturbance at a retail store. A teenager has been begging for money, and the store owner wants the teenager arrested for harassing customers. Dion knows the teenager lives with his grandfather and the family has not been able to make ends meet financially. Dion decides not to arrest the teenager. Instead Dion gives the teenager a warning and provides him with some information on where to go to for help. A.Ethical B.Unethical C.illegal Your reasons : 1.2.3. The cost to produce the master disc of a DVD is $2000, while additional discs costs $4 each. Determine a profit function P that results if the DVDs are sold for $15. Find the profit from selling 2800 DVDs. Find p(x) At your first job you make $1200 a month of that you save $200 a month. Your goal is to save 20% did you reach your goal? ASAP PLEASEWhich of the following would be an effective way for Mexico to decrease the number of its citizens migrating away from the country? A. Guatemala builds a wall across its border with Mexico. B. Mexico enforces fewer anti-drug laws. C. United States increases anti-poverty efforts for residents of the USA. D. Mexico uses tax money to build more schools. Which three side lengths best describe the triangle in the diagram? 936 292 round to the nearest hundred thousand Sometimes Earth's layers are called crust mantle, and core. These are the names of Earth's layers based on their ___ composition. Give an example of a sports performer that would require a high level of CV endurance. Caroline took a math test and got 15 out of 25 correct. What was the percent of questions she gotcorrect Solve the linear system of equations using addition. Graph the equations to verify your solution. -4x = y + 3 y=-4x - 3 Why is pH so important to maintain life?A small change in pH in the ocean can be very harmful to sea lifeHuman blood is kept at a constant pH otherwise we would dieThe pH of soil is very important for plant to be able to grown in itOr all the above