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
Ray Of Light [21]
3 years ago
9

PYTHON QUESTION

Computers and Technology
1 answer:
zloy xaker [14]3 years ago
7 0

Answer:

num=[]

a=input("Enter the number count")

i=0

for i in range(0,int(a)):

   b=input("Enter the number")

   num.append(b)

def safe_int(num):

   i=0

   for i in range(0,int(a)-1):

       if( num[i].isdigit()):

           num[i]=num[i]

       else:

           num[i]=0

safe_int(num)

print(num)

Explanation:

Above we have entered a list, and then pass it to the function. There we check if each item of list is an integer, and if it is an integer it is left as it is, or else 0 is stored for it in the list.

You might be interested in
Consider the language S*, where S = {a ab ba}.
Nezavi [6.7K]

Answer:

Check Explanation

Explanation:

A) the string (abbba) is not a word in this language because in this language, each b must preceded or followed by an a. Three consecutive b's are just not possible.

B) All the words with 3 letters in this language

aaa

aab

aba

baa

C) 5 words with four letters from this language. I'll write as many as possible to make things as easy as possible.

aaaa

aaab

aaba

baab

baba

baaa

abaa

abab

abba

D) This is the language of words without bbb, with every bb preceded and followed by an a (that is, no word can start or end wilth bb). All non-empty strings contain at least one a (so b and bb together are not allowed!).

Hope this Helps!!!

6 0
3 years ago
To have a​ monopoly, barriers to entering the market must be so high that no other firms can enter. Do network externalites crea
svp [43]

Answer:

Network externality is one of the market failures that justify the regulation of telecommunications markets and especially the interconnection between operators' networks. Externality is defined as the variation in utility that an agent obtains when the number of other agents that consume the same type of good or service varies. External effects are considered network effects that cannot be internalized by market agents.

Network externalities lead to the creation of natural monopolies as they generate positive feedback processes that make each new user of a service more valuable for the next user.

8 0
4 years ago
Cryptography is the science of secret writing. Cryptography involves creating written or generated codes that allow information
Rudiy27

Answer:

true

Explanation:

the answer is true dude

5 0
2 years ago
Assume that a boolean variable isQuadrilateral has been declared, and that another variable, numberOfSides has been declared and
egoroff_w [7]

Answer:

# The below code is in python programming language.

if(numberOfSides==4): #check the value number of slide is equal to 4 or not.

   isQuadrilateral=True # assignment statement for if condition

else:

  isQuadrilateral=False # assignment statement for else condition

Explanation:

The above code is in python language in which--

  • The first lines are the "if" condition which checks the value of "numberofslides" variable.
  • The second lines assign true in "isQuadrilateral" variable if "if" condition is true.
  • The third line is for "else" statement that executes when the "if" condition is false.
  • The fourth line is for "else" statement which assigns the value false to the numberofslides variables.
4 0
4 years ago
Write an algorithm that describes the second part of the process of making change (counting out the coins and bills).
Alenkasestr [34]

An Algorithm that describes the second part of the process can be written as listed below :

<h3>Algorithm describing the second part of the process of making change (counting out the coins and bills ) </h3>

<u>First step</u> : Initialize the required variables to zero to determine the number of coins and bills.

<u>Second step</u> : Prompt and read the amount to convert. amount to Hundreds

<u>Third step</u> : Compute hundred bill note as 100 amount equal to  ( amount% * 100 fifties - amount )

<u>Fourth step </u>: Compute fifty bill notes as :  ( amount% * 50 fifty bill notes )

<u>Fifth Step</u> : Compute Twenty bill notes as amount equal to ( amount% *20 Twenties - amount )

<u>Sixth Step</u> : Compute Tens bill notes as : ( amount% * 10 Tens bill notes )

<em>Note : continue the process for fives, Quarters, Dimes, Nickels, and Pennies. </em>

<em />

Learn more about Algorithm : brainly.com/question/13800096

#SPJ1

<u>Attached below is the missing part of the question </u>

<em>Write an algorithm that describes the second part of the process of making change (counting...</em>

3 0
2 years ago
Other questions:
  • A car moves down the street at 45 kph. The driver takes his foot off the gas pedal but does not brake. Which is the correct expl
    5·2 answers
  • When do on loop conditions happen? (1 point)
    5·1 answer
  • Helping people keep track on things is the purpose of_____ A database B table C query D form​
    12·1 answer
  • 2. Driving above the posted speed limit is _
    13·2 answers
  • Want to network 2 laptops togetger using ethernet cable...But it won't connect
    9·1 answer
  • Write HTML code for inserting an image "cricket.jpeg" in size 500 width and 400 height.
    12·1 answer
  • What is the advantage of video conferecing
    13·2 answers
  • Discuss, in brief thedifferent variations of BLAST. (Maximum 5 innumber)
    10·1 answer
  • What are the values of a[k] and a[k+1] after code corresponding to the following pseudocode runs?
    9·2 answers
  • Rudy accidentally sent a sensitive work report to a personal friend named James instead one of his co-workers, who is also named
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!