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

you are teaching a class about basic camera functions like power, basic date/time, menu navigation, and how to properly attach and remove lenses from a DSLR or hybrid camera. While you would likely do a lot more showing than telling while teaching, share a script of what you would say to properly explain how to perform these basic actions.

Answers

Answer: So, I would start the class off with this, “Camera’s are so crucial to life, why because they capture light and memories that are a once and a lifetime thing.” Then after the students dwelling on that statement, I would start with talking about how to set up a camera. I would pull out mine and pull up a diagram on the green screen and show them step by step what I do. First, you want to turn the camera on by turning the switch where the white line lines up with “on”, once you are, then you want to set up the time and date. To do so, you want to click on the menu button, once you are in, there should be a list of five options, you want to go to the setup menu. Once there you want to click on “World time” there you can change the date and time.  Once you have set up the time you want to go back to the menu screen, there are 5 options. The five options are called “playback menu”, “Shooting menu”, “Custom Setting menu”, “Setup menu” and “retouch menu”. These five have various purposes in which we will get to later on inside of the lesson. Now camera lenses are super easy, when you are changing or taking off lens, there should be a button on the left side of the camera right under your camera model name. Hold that button in with one hand and grab the lens with the other, then you want to twist the lens till it comes off. To put it back on you want to line up the white dots and it should slide in and then twist it back on.  

Explanation: That is the answer

It should be noted that a camera simply means an optical instrument that's used to capture images or to record moving images.

A camera simply consists of a lens that focuses light from the scene. In a camera, the viewfinder is vital in viewing and framing the subject.

The flash is vital in producing light. The camera lens is important to shift between focal lengths. The shutter button is used to capture it record images.

Learn more about camera on:

https://brainly.com/question/609508

How to make videos that I watch online not buffer and stop so much? it's really annoying.​

Answers

I would recommend buying a higher quality device. This might be happening because you device is old. If not then I’m not sure.

I hope this helps.

Answer:

Delete ittttttttttttt

The idea that money, language, education, or infrastructure creates a gap between those who have access to information technologies and those who do not.

Answers

Answer:

The Digital Divide, or the digital split, is a social issue referring to the differing amount of information between those who have access to the Internet (specially broadband access) and those who do not have access

Explanation:

Assume there is an interactive math tutor. Many students take the math lessons online. At the end of each lesson, students have to attempt a test. What is the performance measure of this agent?

A.
count the number of students
B.
display suggestions for solving problems
C.
take input from the keyboard
D.
enable the student to attain maximum marks

Answers

Answer:

I think it is D

Explanation:

This is the goal, or the requirement for success.

Answer:

D. Enable the student to attain maximum marks

Explanation:

Correct on Clever

Marissa is designing a web page that features lessons on how to build cabinets. how can she make the page most engaging for the user?

A. by adding warm colors to make the content more fun to view.

B. by adding a short video demonstrating how to build cabinets.

C. by adding a variety of font types to make the text look appealing.

D. by adding a slideshow that displays pictures of built cabinets.​

Answers

I am pretty sure it’s B because that’s the only answer that really correlates to teaching people how to build cabinets

1

The tire pressure is 20% underinflated.

The service life is reduced by...

%

check

Answers

Answer

A constant 20 percent underinflated condition will reduce the life of a tire by 30 percent, and 40 percent underinflation will reduce tire life by 50 percent. Underinflation will increase flexing and heat buildup within the tire components which deteriorate tires and reduces casing life and retreadability.

Select the correct answer.
Which graphical element of a spreadsheet does this image represent?

A. column chart
B. scatter plot graph
C. pie chart
D.bar graph

Answers

Answer:

Pie Chart

Explanation:

It’s a pie chart :)

Explanation: pie charts of course look like pie: a circle that has been cut into pieces

write the html code to get the following webpage
the solar system
ina solar system the planets move around a star. earth is a planet around sun .there are eight planets in a solar system . in order of increasing distance from the sun these are 1.mercury 2.venus 3.earth 4.mars 5.jupiter 6.saturn 7.uranus 8.neptune
save the html document as solarsystem.html

Answers

Answer:

<!DOCTYPE html>

<html>

<head> <title>webpage</title>

</head>

<body>

<h1>The Solar System</h1>

<p>In a solar system the planets move around a star. Earth is a planet around sun. There are eight planets in a solar system . In order of increasing distance from the sun these are: </p>

<ol>

<li>Mercury</li>

<li>Venus</li>

<li>Earth</li>

<li>Mars</li>

<li>Jupiter</li>

<li>Saturn</li>

<li>Uranus</li>

<li>Neptune</li>

</ol>

</body>

</html>

<!-- and save the file as solarsystem.html -->

Ill give brainliest if possible

Answers

i can’t see that zoom it in

Answer:

it is C

Explanation:

it is C because it will check morning list and afternoon list to find the kid


What is the difference between iterative and sequential?

Answers

Answer:

iterative means to iterate, or "repeat" ex: 4,4,4,4,4

sequential means to increase with a constant ex:

1,3,5,7,9,11,13. the constant that the terms are incremented by is 2

Sube
When you access a website, your
translates web language code into words, graphics, and videos.
A website address
B. web host
ООО
C Internet service provider
D. HTML decoder
Eweb browser

Answers

Answer:

I think the answer is C correct me if I'm wrong

Answer:

A

Explanation:

im not 100% positive about that but im like 99.9% sure

Brainliest or whatever

Answers

Answer:

Brainliest

Explanation:

Yea

Answer:

tim berners lee

Explanation:

plz give brainliest

sorry if im wrong

HELP ASAP 90 Points
Now it is your turn to practice recording a macro. You have recently started working in an office, and you are required to create multiple letters a day. Your company does not have a standard letterhead and you realize you can easily create a macro with your company letterhead. This will prevent you from having to type this information again and again.

Assignment Guidelines
Record a macro named “letterhead” and create a button on the quick access toolbar.
Develop a letterhead for a company of your choice. Include the company name, address, and phone number.
Format the letterhead in an appealing format.
After you have recorded the macro, open a new document.
Run the macro using the options in the macro grouping on the view tab.
Save your document as “letterhead macro” and submit it to your instructor for grading.

Answers

Answer:

Macros automate common tasks. A macro can be created for virtually any task that you perform in Word. The amount of steps is irrelevant. You can even create a macro that automatically places certain text in a document with as many attributes as you’d like!

Macros are created with a recording device similar to a common tape recorder. Once you start recording your macro, a toolbar pops up with standard stop and pause buttons. The following is an example of how to create a macro for your customized letterhead paper.

Creating The Letterhead Macro

Open a blank document. You want to assign your macro to all documents.

From the View Tab, choose Macros and Record Macro. The Record Macro dialog box is displayed as shown below.

Type a name for your macro, such as Letterhead. (Spaces are not allowed; use an underscore to indicate spacing).

Explanation:

What would you do if you experienced academic frustrations in school? Check all that apply.
Look for ways to do better academically in school.
Ask a friend to explain difficult concepts.
Try to identify the reason you are feeling frustrated.
Ask a teacher for help coming up with a solution.
Search online for help solving this problem.

Answers

I think it is all of them :))

Answer: all are correct

Explanation:

i say all because those are all really good ways to help you in school. if you are struggling then ask a to a teacher for help you, if you need more help, ask a friend. see what you can do to help yourself do better. see what you are doing that could possibly be the reason of your frustrations. and the internet is always open to questions and answers. but it also depends, some schools are strict about using the internet for answers. but if your school is different then use the internet freely. i hope this helped.

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.

Star and peer-to-peer are types of

Answers

networks? i’m not sure, but i know peer-to-peer is a type of network. i’m not sure about lending though

communication network

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

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

Which basic design principle is primarily made up of lines?​

Answers

Answer:

Shape

Explanation:

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

write a python program to input a list of no. and swap element at the even location with element at odd location​

Answers

Answer:

I changed the title to describe the task the code accomplishes, this makes    the contrnt more easily searchable and accessible.

Explanation:

Answer:

The content is more easily searchable and accessible.

Explanation:

What are the steps for inserting an internal link?
1. Type into a cell.
2. Then, select the that includes the cell you wish to link to.
3. Next, click the cell you wish to reference.
4. Finally, press .

Answers

Answer:

=

Worksheet

Ctrl + Enter

Explanation:

Answer:

=, worksheet, Ctrl+Enter

Explanation:

Why are default parameters useful? *This is JavaScript*

Answers

Answer:

It helps in setting a different default value.

Explanation:

They allow you to initialize named parameters with default values if no values are passed into the function.

Which of the following represents a bit?

0

01010110

3F02C

12.356

Answers

Answer:

0

Explanation:

A bit is a single piece of information and the smallest unit that can possibly represented by a computer, like 1 or 0.

The one that represents a bit is 0. The correct option is A.

What is a binary digit?

A binary digit (bit) is the smallest unit of binary data that can be stored in a computer system.

A bit can only be in one of two states: on or off, which are frequently represented by ones and zeros. Which information is entered into and processed by the computer is determined by the combination of ones and zeros.

One of the four types of number systems is a binary number system. Binary numbers are basically represented in computer applications by merely two symbols or digits, namely 0 (zero) and 1 (one).

A bit is a binary digit, which is the smallest data increment on a computer. A bit can only hold one of two values: 0 or 1, which correspond to the electrical values off or on.

Thus, the correct option is A.

For more details regarding binary number, visit:

https://brainly.com/question/28222245

#SPJ2

I really need this answer please

Which of the following describes passing by reference?
passing a memory address
passing a defined value
passing a data type copy
passing a variable name

Please help me

Answers

Answer:

Passing by memory address

Explanation:

When you pass a memory reference like &a the data stored at this location can be directly accessed by the function through a dereference like *a = 2;

Alex works as a customer-service representative at an insurance company. Before starting his shift, Alex reviews issues from his last shift to make sure they have been resolved. What workplace habit does Alex show by doing this? problem solving initiative efficiency interpersonal skills

Answers

Answer:

problem-solving

Explanation:

he is making sure all his problems have been resolved before starting a new shift.

Answer:

It's initiative

l
What do we call a statement that displays the result of computations on the screen?
ОА.
result statement
ов.
screen statement
OC output statement
OD
answer statement
OE.
input statement

Answers

Answer:

Output statement. The others do not make sense.

write a loop that finds the sum of the numbers between 7 and 34

Answers

THIS IS FOR PYTHON

total = 0

for i in range(7, 35):

   total += i

   print(i)

print(total)

I forgot the reason but python always stops one number before your desired value. So that's why it's 35

The loop that finds the sum of the numbers between 7 and 34 i2 as follows:

x = 0

for i in range(7, 35):

   x += i

print(x)

   

The code is written in python.

The variable x is initialise with the value zero.

For loop is used to loop through the range of value 7 to 35, excluding 35.

The looped values are then added to the variable x

The final sum is then printed out using the print statements in python.

learn more on loop: https://brainly.com/question/21897044?referrer=searchResults

Plz help me I need this done by 7:50

Answers

Answer:

proportionality bias

Explanation:

The proportionality bias is the tendency to assume that big events have big causes. It is a type of cognitive bias and plays an important role in people's tendency to accept conspiracy theories

I hope this helps! ^^

☁️☁️☁️☁️☁️☁️☁️

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.
Other Questions
Which statement best describes the motion ofthe dye molecules in the water?The dye moleculeso move in a directed way from high to lowconcentration.o move randomly through collisions in noparticular direction.stay close to other dye molecules as theymove through the water.LowCheck ansive Which food dyes in the diagram on the right only contain one colour?( Science, Chromatography ) For what value of the constant c is the function f continuous on (,) where f(b) = { cb + 9 if b 3 c(b) 9 if b > 3 The entire journey lastedapproximately_months. .O 12O 18O 30O 42 Describe the main events leading to the American revolution. A snail travels at an average speed of 0.1 feet per hour for 15 minutes. How many feet will the snail travel? Stationery Supplies is considering installing an inventory control system in its store in Provo, Utah. The store carries about 1,400 different inventory items and has annual gross sales of about $80,000. The inventory control system would cost $12,500 to install and about $2,000 per year in additional supplies, time, and maintenance. If the savings to the store from the system can be represented as a fixed percentage of annual sales, what would that p Please help me if u dont I will get a bad grade 1897 rounded to the nearest 1000 Rocks are classified on the basis of only correct answer ... not for points .with explaination !!!!.the diameter of rectangular box are in the ratio 2:3:5 and difference between the cost of covering with sheet of paper at the rate of 4 and 4.50 per m is 416 . Find the dimension of box . Which is an irrational number Square root of 21 3 5/8 2.4141414 or -13 Please and Thank You Graph the system ofequations on the graphand determine thesolution.Y = -4x +2Y =X +3 A population of 55 foxes in a wildlife preserve quadruples in size every 11 years. The function y equals 55 times 4 Superscript x, where x is the number of 11-year periods, models the population growth. How many foxes will there be after 33 years? Write a message on Christmas message should me original and not copied She is very good at geography is transitive or intransitive 15) When dilute sulfuric acid is added to zinc metal the products of the reaction areA zinc oxide + water + hydrogenB zinc oxide + hydrogenC zinc sulfate + water + hydrogenD zinc sulfate + hydrogen Nine bands are to perform at a weekend festival. Suppose you want to determine how many different ways there are to schedule their appearances. Would you use a combination or a permutation? Choose all the right answers.The skeletons of fossilized animals are put together by:factsrecorded position in the groundinferencescomparison with similar living animals