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
balandron [24]
4 years ago
14

Python

Computers and Technology
1 answer:
Archy [21]4 years ago
3 0

Create a function generateString(char, val) that returns a string with val number of char characters concatenated together. For example generateString('a', 7) will return aaaaaaa. Additionally create the code to run your function and print out the new string.

Explanation:

<u>CODE :</u>

import sys

import random

character= sys.argv[1]

count= int(sys.argv[2])

def generateString('char', count):

 random = char * count

 return random

print(character*count)

<u>OUTPUT :</u>

  • String('a' , 7)
  • aaaaaaa

In the above code, you are accepting a character, and a count value to go with it. When the value is updated, character is multiplied with the count, and the output is generated accordingly

You might be interested in
Which statement is true about the purpose of a work in process constraint?
NemiM [27]

The available options are:

A. It identifies possible constraints for Solution completion.

B. It helps analyze, approve, and track Portfolio Epics and Enablers.

C. It captures where all new "big" ideas come from.

D. It encourages collaboration and enables

Answer:

It identifies possible constraints for Solution completion

Explanation:

Work in Process is an activity or operational related term that describes a form of self-assigned restriction by a team or organization to aid them in regulating their responsibility, exercise corporate reasoning, and recognize alternatives for lasting development.

Hence, in this case, considering the available option, the correct answer is that Work in Process " identifies possible constraints for Solution completion."

3 0
4 years ago
A signal has a spectrum from 0 to 145 Hz, as shown below. It is sampled at a rate of 295 Hz. Find the region of the baseband spe
kirza4 [7]

Answer:  None; all will be recoverable

Explanation:

If a signal (band-limited) is sampled at regular intervals, it could be recoverable or not, based on the number of samples taken.

Let's assume that we want to take samples of a simple sinusoid; If we take more than two samples during a signal cycle, the original waveform will be able to be reconstructed, just passing the sampled waveform through a low-pass filter.

In the more general case in which the signal occupies a frequency spectrum, if the sample frequency is greater than the double of the highest frequency in the spectrum, the signal can be retrieved completely, according to the  Nyquist Theorem.

In this case , as the highest frequency is 145 Hz, it would be enough  to take samples at a rate greater than 290 Hz; As the sample rate is 295 Hz, all the signal can be recovered, at least, using an ideal "brickwall" low-pass filter.

7 0
3 years ago
Read 2 more answers
The ____ command can be used to view the contents of a record when it is anticipated that the record will need to be modified. I
GREYUIT [131]

Answer:

The correct answer is B)

Explanation:

The commit command allows us to:

• Consolidate, confirm

• committing refers to the idea of confirming a set of provisional changes permanently.

• A popular use is at the end of a database transaction.

•

The LOCK TABLE command should be used:

• when a lock of the mode specified in the table can be acquired.

• The command will wait for everything you need to get the lock,

• In case you cannot acquire the lock immediately, the NOWAIT option is specified so that the command cancels the transaction.

6 0
3 years ago
Emma wants to create a web page for her school’s volleyball team. Which of these could she use?
ser-zykov [4K]

Answer:

Emma should use Chrome

3 0
3 years ago
Choose the word that best completes this sentence. You should post safe load _________ for each floor and keep aisles and passag
erica [24]
You should post safe load limits for
3 0
3 years ago
Read 2 more answers
Other questions:
  • Which term defines a star system with two stars?
    13·2 answers
  • After a webcast is completed there are no files left on your computer.
    14·1 answer
  • What happens if you never confirm your facebook account?
    8·1 answer
  • Web 2.0 has led to a shift just from consuming content towards what
    6·1 answer
  • The early success of Microsoft was cemented by the release of which software product:
    12·1 answer
  • Package Newton’s method for approximating square roots (Case Study 3.6) in a function named newton. This function expects the in
    7·1 answer
  • PLEASE HURRYYY Suppose your employer wants you to purchase a tablet device that you will use to run the company's custom sales s
    15·2 answers
  • The one who will defeat me in this typing race I will mark the one brainliest:
    5·2 answers
  • Please help.........​
    13·1 answer
  • Pick the correct statements on the 64-bit machine representation of numbers.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!